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.