Operators |
deviation_image — Calculate the standard deviation of gray values within rectangular windows.
deviation_image(Image : ImageDeviation : Width, Height : )
deviation_image calculates the standard deviation of gray values in the image Image within a rectangular mask of size (Height, Width). The resulting image is returned in ImageDeviation. To better use the range of gray values available in the output image, the result is multiplied by 2. If the parameters Height and Width are even, they are changed to the next larger odd value. At the image borders the gray values are mirrored.
deviation_image can be executed on OpenCL devices. As the same OpenCL code is used, the same limitations as for mean_image apply. Since deviation_image uses single precision floating point arithmetic internally, the results may differ slightly from the CPU version.
Note that filter operators may return unexpected results if an image with a reduced domain is used as input. Please refer to the chapter Filters.
Image for which the standard deviation is to be calculated.
Image containing the standard deviation.
Width of the mask in which the standard deviation is calculated.
Default value: 11
Suggested values: 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25
Restriction: 3 <= Width && odd(Width)
Height of the mask in which the standard deviation is calculated.
Default value: 11
Suggested values: 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25
Restriction: 3 <= Height && odd(Height)
read_image(Image,'fabrik') dev_display(Image) deviation_image(Image,Deviation,9,9) dev_display(Image)
deviation_image returns 2 (H_MSG_TRUE) if all parameters are correct. If the input is empty the behaviour can be set via set_system('no_object_result',<Result>). If necessary, an exception is raised.
convol_image, texture_laws, intensity
Foundation
Operators |