CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxBinaryImageComponent Struct Reference

Integer pixel bounds and moments. More...

#include <ctxImageAnalysis.h>

Public Attributes

gzUInt32 label
gzUInt32 x
gzUInt32 y
gzUInt32 width
gzUInt32 height
gzUInt32 area
gzUInt64 sumX
gzUInt64 sumY

Detailed Description

Integer pixel bounds and moments.

Coordinates are original integer pixel centers; bounds are half-open. Dividing sumX/sumY by area gives the centroid. Label IDs follow row-major first-foreground discovery, starting at one.

Definition at line 52 of file ctxImageAnalysis.h.

Member Data Documentation

◆ area

gzUInt32 ctxBinaryImageComponent::area

Definition at line 54 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ height

gzUInt32 ctxBinaryImageComponent::height

Definition at line 54 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ label

gzUInt32 ctxBinaryImageComponent::label

Definition at line 54 of file ctxImageAnalysis.h.

◆ sumX

gzUInt64 ctxBinaryImageComponent::sumX

Definition at line 55 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ sumY

gzUInt64 ctxBinaryImageComponent::sumY

Definition at line 55 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ width

gzUInt32 ctxBinaryImageComponent::width

Definition at line 54 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ x

gzUInt32 ctxBinaryImageComponent::x

Definition at line 54 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().

◆ y

gzUInt32 ctxBinaryImageComponent::y

Definition at line 54 of file ctxImageAnalysis.h.

Referenced by ctxBinaryImageAnalysis::labelComponents().


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