SoAreaQuantification2d engine SoAreaQuantification2d computes the area of the pixels object. More...
#include <ImageViz/Engines/ImageAnalysis/GlobalMeasures/SoAreaQuantification2d.h>
Classes | |
class | SbArea2DDetail |
Results details of 2d Area measurement. More... | |
Public Member Functions | |
SoAreaQuantification2d () | |
Public Attributes | |
SoSFImageDataAdapter | inImage |
SoImageVizEngineAnalysisOutput < SbArea2DDetail > | outResult |
For an introduction, see section Image Analysis.
In the continuous, or theoretical, case, area is defined as:
In the discrete, or actual, case, area is approximated by the number of pixels in X:
Where :
The area measure can be weighted by a size factor which characterizes the area of a single pixel. In which case, the measure is physically homogeneous to the area.
On a binary image, this module returns the number of non zero pixels in the image. Computed area takes into account pixel size.
See also: SoIntensityIntegralQuantification2d, SoIntensityIntegralQuantification3d.
inImage | NULL |
SoAreaQuantification2d::SoAreaQuantification2d | ( | ) |
Constructor.
The input binary image.
Default value is NULL. Supported types include: binary color image.
The output measure result.
Default value is NULL.