SoObjectToRegionProcessing2d Class Reference
[Labeling]

ImageViz SoObjectToRegionProcessing2d engine More...

#include <ImageViz/Engines/ImageSegmentation/Labeling/SoObjectToRegionProcessing2d.h>

Inheritance diagram for SoObjectToRegionProcessing2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

 SoObjectToRegionProcessing2d ()

Public Attributes

SoSFImageDataAdapter inObjectImage
SoImageVizEngineOutput
< SoSFImageDataAdapter,
SoImageDataAdapter * > 
outRegionImage

Detailed Description

ImageViz SoObjectToRegionProcessing2d engine

The SoObjectToRegionProcessing2d engine transforms an object image into a region image.

A region image is a label image where each pixel has a value greater than zero.

The SoObjectToRegionProcessing2d engine scans the image from top to bottom and left to right. This engine extracts all connected entities (Regions). Two pixels are in the same regions if they have the same gray level value and if there is path between them with only this gray level value. Each pixel of the same region takes the same value, and each object is assigned a different value, starting from value 1. The assigned gray level depends on the location of the object in the image. The maximum gray level value gives the total number of regions in the original image. The algorithm works in three steps:

BEFORE:

\[ \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline 1 & 1 & 1 & 1 & 1 & 2 \\ \hline 1 & 1 & 2 & 1 & 1 & 2 \\ \hline 1 & 2& 2 & 1 & 1 & 2 \\ \hline 1 & 2 & 2 & 2 & 1 & 2 \\ \hline 2 & 1 & 1 & 2 & 1 & 2 \\ \hline \end{tabular} \]

AFTER:

\[ \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline 1 & 1 & 1 & 1 & 1 & 3 \\ \hline 1 & 1 & 2 & 1 & 1 & 3 \\ \hline 1 & 2 & 2 & 1 & 1 & 3 \\ \hline 1 & 2 & 2 & 2 & 1 & 3 \\ \hline 2 & 1 & 1 & 2 & 1 & 3 \\ \hline \end{tabular} \]

SEE ALSO

SoRegionToObjectProcessing2d, SoLabelingProcessing.

FILE FORMAT/DEFAULT


Library references: region


Constructor & Destructor Documentation

SoObjectToRegionProcessing2d::SoObjectToRegionProcessing2d (  ) 

Constructor.


Member Data Documentation

The input object label image.

Default value is NULL. Supported types include: label color image.

The output region label image.

Default value is NULL. Supported types include: grayscale binary label color image.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/