This example demonstrates how to handle image regions with the IDS peak ICV library.
Regions can be interpreted as a set of points
and can fill a rectangular area of the image, but they don't necessarily have to.
As they are a set of points, their shape can be anything from a single point, over a pixelized circle, to a rectangle.
They are used to enhance image processing performance, while keeping the original image.
Several algorithms in the IDS peak ICV library check for an available region in the image and use it when processing.
To illustrate, how regions affect the output of algorithms, the image with its region is processed by a threshold.
The region is displayed in green. The result of the threshold is displayed in red.
Image with full region:
Image with reduced region:
One can observe, that the threshold only processed the green region area.
Only the bubbles inside the region are colored red.
This example depends on the following components:
- IDS peak standard Setup version 2.19 or later
- CMake version 3.10 or later
- A supported C++ compiler (MSVC, GCC, or Clang)


