CustomAttribute This example demonstrates how to use the
SoDataMeasureAttributes node in order to modify the attributes of a measure.
DESCRIPTION:
Some of the ImageViz native measures have attributes (measures related to Ferets diameters, histogram computation or cooccurrence matrix).
This example shows how to modify the attributes of a measure.
The Feret's diameter ratio computes the ratio between 2 Feret's diameter. Depending on the angular step used to compute the distribution of Feret's diameters, the precision of the result can change.
-
The workflow is almost the same as the Label analysis example.
-
Two different SoLabelAnalysisQuantification engines are intialized.
-
The first one keeps the default distribution of Feret diameters (10 diameters, each 18 degrees).
-
The second one takes a new distribution of Feret diameters (90 diameters, each 2 degrees).
-
Both analysis are computed and both results of the most elongated particle are displayed to show the impact of this change.
NOTE:
-
When a measure contains attributes a link to the attribute API is given in the relate SoDataMeasurePredefined enumerate.
-
For more information about image analysis, see section Image Analysis .
SEE ALSO
SoDataMeasureAttributes, SoLabelAnalysisQuantification
SCREENSHOT:
FILES:
-
ImageViz/GettingStarted/03.3.CustomAttribute.cxx