invert_image — 反转图像。
invert_image(Image : ImageInvert : : )
算子 invert_image inverts the gray values of an image.
For images of the byte and cyclic type the result is
calculated
as:
g' = 255 - g
Images of the 'direction' type are transformed by
g' = (g + 90) modulo 180
In the case of signed types the values are negated. The resulting
image has the same pixel type as the input image.
Several images can be processed in one call. An output image is generated for every input image.
invert_image can be executed on an OpenCL device for byte,
direction, cyclic, int1, int2,
uint2, int4, and real images.
Image (输入对象) (multichannel-)image(-array) → object (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / int8 / real*) *允许用于计算设备
Input image(s).
ImageInvert (输出对象) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)
Image(s) with inverted gray values.
read_image(Orig,'fabrik') invert_image(Orig,Invert) dev_display(Invert)
scale_image,
add_image,
sub_image
基础