![]() |
IDS peak ICV v1.2.0
|
The IDS peak ICV library provides a flexible, language-independent image model that allows easy image creation, manipulation, and conversion across all supported programming languages. Each language binding offers APIs that integrate naturally with the language environment while maintaining consistency with the core image model.
This guide describes the primary ways to create and work with images using the IDS peak ICV library.
Images can be created in several ways, depending on your data source and application requirements. The following core methods are available in all supported programming languages:
When an image is captured into a buffer using the IDS peak genericAPI, an ICV image can be created directly from that buffer by constructing an ImageView.
Use this method when the buffer acquired via the IDS peak genericAPI contains raw camera data that requires processing before it can be used as a ready-to-use image. The Image Processing Pipeline performs essential steps such as debayering, color correction, and format conversion automatically.
This approach can also be used if auto features (e.g., auto exposure, auto gain, or auto white balance) are required.
Convert an existing IDS peak IPL image into an IDS peak ICV image.
This method is primarily provided for backward compatibility with older code that uses the IPL image format. For new projects, it is recommended to directly work with the ICV image format.
Create an image by loading it from a supported file format.
Create a blank image by specifying the pixel format and the image dimensions (width × height).
Construct an image directly from a raw byte buffer. The buffer must contain binary image data in a format supported by the IDS peak ICV library.
Each IDS peak ICV image includes a Region, which by default covers the entire image. When no custom region is specified, the entire image is processed. You can define a custom region to process only a specific part of the image.
The region can be of any shape, depending on the use case, and can be set dynamically at runtime.
If you need to revert to processing the entire image, you can reset the region back to its default full image coverage.
Additionally, the current region of an image can be queried programmatically.
<– TOTO: Add a section describing image meta data -->
Pixel formats define how pixel data is stored and interpreted. The IDS peak ICV library supports various pixel formats which are described in detail in Pixel and Pixel Format Specifications.
To convert an image from one pixel format to another, use the appropriate conversion functions provided by the library. Check the documentation for each function to verify format compatibility and any conversion limitations.
To correctly interpret pixel data, you can query details such as the format name, the bit depth, and the minimum and maximum possible channel values.
By using these methods, you obtain the information required to correctly interpret the image data and make informed decisions about image processing and format conversions.
If a transfer from IDS peak ICV to a third-party library is needed, you can get a pointer to raw data: