Main Content

getMaxIntensity

Get maximum value of image from image model

Description

maxval = getMaxIntensity(imgmodel) returns the maximum value of the image in imgmodel.

Input Arguments

collapse all

Image model, specified as a scalar imagemodel object.

Output Arguments

collapse all

Maximum image value, returned as a numeric scalar. For a grayscale image, the value returned is the maximum intensity, calculated as max(Image(:)). For an indexed image, the value returned is the maximum index. For any other image type, the value returned is an empty array, []. The class of maxval depends on the class of the target image.

Version History

Introduced before R2006a