 Intensity - Maple Help

ImageTools

 Intensity
 measure the intensity of the layers of an image Calling Sequence Intensity( img, meas ) Parameters

 img - Image; input image meas - (optional) name; intensity measure Description

 • The Intensity command computes an intensity measure of the layers of an image.
 • The img parameter specifies the input image. It may be a GrayImage, a ColorImage, or a ColorAImage. If a GrayImage, then a numeric value is returned. If a ColorImage or a ColorAImage, then a list of numeric values is returned, with each element corresponding to the value of the computation for the corresponding layer. Intensity Measures

The optional meas parameter is a name that selects the computed measure of the intensity. Following are the allowable names and the meaning of each:

 energy : energy of the pixel values (${\mathrm{rms}}^{2}$)
 maximum : maximum pixel value
 mean : mean pixel value
 minimum : minimum pixel value
 range : range of the pixel values ($\mathrm{minimum}..\mathrm{maximum}$)
 rms : rms of the pixel values
 variance : variance of the pixel values

The default is range. Examples

 > $\mathrm{with}\left(\mathrm{ImageTools}\right):$
 > $\mathrm{img}≔\mathrm{Create}\left(100,200,\left(r,c\right)→\mathrm{evalf}\left(0.5\mathrm{sin}\left(\frac{r}{50}\right)+0.5\mathrm{sin}\left(\frac{c}{30}\right)\right)\right):$
 > $\mathrm{Intensity}\left(\mathrm{img}\right)$
 ${-0.489962295500000}{..}{0.999974559700000}$ (1)
 > $\mathrm{all}≔\mathrm{map2}\left(\mathrm{Intensity},\mathrm{img},\left[\mathrm{minimum},\mathrm{maximum},\mathrm{range},\mathrm{mean},\mathrm{variance},\mathrm{rms},\mathrm{energy}\right]\right):$
 > ${\mathrm{evalf}}_{3}\left(\mathrm{all}\right)$
 $\left[{-0.490}{,}{1.00}{,}{-0.490}{..}{1.00}{,}{0.362}{,}{0.141}{,}{0.522}{,}{0.272}\right]$ (2)