Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Image Region Example

This example demonstrates how to use algorithm on regions. For a general understanding of regions, have a look at the Image Region from file example.

A region can be dilated and eroded by using a structuring element. The structuring element is defined as a region itself. Note, that the structuring element must not be inside the image coordinate system. It has its own coordinate system, which may even start negative. In this example a structuring element in form of a rectangle is used:

x: -1
y: -1
width: 3
height: 3

The following images are scaled for visuals.

Input Image (created at runtime)

Input Image

Output

The region is displayed in red.

Image with dilated region:

Output Image with dilated region

Image with eroded region:

Output Image with eroded region

Requirements

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)