Flip the image horizontally or vertically
1. imgFlip d:=horizontal;
2. imgFlip d:=vertical img:=mat(1) oimg:=mat(2);
Please refer to the page for additional option switches when accessing the x-function from script
Specifies whether to flip the image horizontally or vertically.
Specifies the image to be manipulated. The default input is the active image.
Specifies the output image. By default, the output image is the same as the input image.
See the syntax here.
This function flips a specified image either horizontally or vertically.
In this example, we use the imgFlip function to flip the input image horizontally:
A new image is created. As you can see, the image have been flipped horizontally.
The computation uses L_FlipBitmap() and L_ReverseBitmap() function from LEADTOOLS Main API. Please refer to the LEADTOOLS Main API Help file, Version 14 and read the L_FlipBitmap and L_ReverseBitmap topics.
LEADTOOLS Main API Help file, Version 14