To flip the image up-down or left-right, you can use the mirror transformation feature of the camera.
|
Many sensors support to mirror the image at least in one direction. |
Refer to the "List of supported features" for GigE Vision cameras and USB3 Vision cameras for more information on a specific camera model.
|
If your camera model does not support the needed mirror feature, you can use a software algorithm instead, see Transforming images (flip, rotate). |
Configuration
ReverseX = True;
ReverseY = True;
Dependencies to other features: PixelFormat
Using a RAW Bayer format in combination with mirror features of the camera (ReverseX, ReverseY) can affect the pixel order and thus the PixelFormat. E.g. a ReverseX mirror (left/right) transformation changes a BayerRG to a BayerGR format.
Fig. 117: Typical change of PixelFormat in combination with ReverseX, ReverseY mirror features
|
There are some sensors that do not change PixelFormat but rather shift the sensor ROI by one pixel to maintain the PixelFormat. |