IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
•Flipping in X direction with creation of a new peak::ipl::Image
•Flipping in X direction into an existing peak::ipl::Image
•Flipping in Y direction with creation of a new peak::ipl::Image
•Flipping in Y direction into an existing peak::ipl::Image
•Flipping in both directions with creation of a new peak::ipl::Image
•Flipping in both directions into an existing peak::ipl::Image
•Rotation of the image by 180 degrees
•Rotation of the image by 90 degrees clockwise
•Rotation of the image by 90 degrees counterclockwise
•Complete example: image acquisition loop with flipping and rotation
In addition to the Bayer conversion, other conversion functions are available in IDS peak IPL that can be applied to the camera’s images. These are performed using objects similar to peak::ipl::ImageConverter (see Converting images). Additionally, you can retrieve information about the image (pixel values of a row/column, histogram, value at an image position) and load or save images.
Name |
Function |
---|---|
peak::ipl::ColorCorrector |
Performs color correction, see Applying color correction. |
peak::ipl::GammaCorrector |
Performs gamma correction. |
peak::ipl::ImageTransformer |
Performs flips and rotations. |
peak::ipl::ImageReader |
Creates an image (peak::ipl::Image) from an image file. |
peak::ipl::ImageWriter |
Saves an image (peak::ipl::Image) into an image file, see Saving/loading images. |
peak::ipl::PixelColumn |
Creates a vertical intensity profile for a special column of an image, see Image data and histogram. |
peak::ipl::PixelRow |
Creates a horizontal intensity profile for a specific line of an image, see Image data and histogram. |
peak::ipl::Histogram |
Returns a histogram of the image, see Image data and histogram. |
After converting the Bayer image in the image acquisition loop, the flipping is performed via a peak::ipl::ImageTransformer object. This object should be created previously in a central part of the program.
genericC++ |
---|
peak::ipl::ImageTransformer m_imageTransformerIPL; |
Flipping in X direction with creation of a new peak::ipl::Image
genericC++ |
---|
auto imageTransformed = m_imageTransformerIPL.MirrorLeftRight(image); |
Flipping in X direction into an existing peak::ipl::Image
genericC++ |
---|
m_imageTransformerIPL.MirrorLeftRightInPlace(image); |
Flipping in Y direction with creation of a new peak::ipl::Image
genericC++ |
---|
auto imageTransformed = m_imageTransformerIPL.MirrorUpDown(image) |
Flipping in Y direction into an existing peak::ipl::Image
genericC++ |
---|
m_imageTransformerIPL.MirrorUpDownInPlace(image); |
Flipping in both directions with creation of a new peak::ipl::Image
genericC++ |
---|
auto imageTransformed = m_imageTransformerIPL.MirrorUpDownLeftRight(image); |
Flipping in both directions into an existing peak::ipl::Image
genericC++ |
---|
m_imageTransformerIPL.MirrorUpDownLeftRightInPlace(image); |
Rotation of the image by 180 degrees
genericC++ |
---|
// Rotate and create new image |
Rotation of the image by 90 degrees clockwise
genericC++ |
---|
// Rotate and create new image |
Rotation of the image by 90 degrees counterclockwise
genericC++ |
---|
// Rotate and create new image |
Complete example: image acquisition loop with flipping and rotation
By using the "InPlace" functions, the result image is automatically written into the existing image.