OIV.ImageViz.Engines.ImageSegmentation.ComputationalGeometry Namespace |
This group contains engines capable of transforming images into geometric objects.
Enumeration | Description | |
---|---|---|
![]() | SoPolylineResamplerApproximation2dInterpolationModes | |
![]() | SoPolylineResamplerApproximation3dInterpolationModes | |
![]() | SoSurfaceFittingApproximation3dBoundaryConditions | Define the type of supported boundaries condition. |
![]() | SoSurfaceFittingApproximation3dDetectionTypes | |
![]() | SoSurfaceFittingApproximation3dRegularizationTypes | The type of regularization applied to the mesh. |
![]() | SoSurfaceUnfoldingProcessing3dInterpolationTypes | This enum defines the type of interpolation used. |
Contour chaining involves representing edge lines as a list of consecutive pixels. This change in the representation, called vectorization, is most suitable for binary lines of one pixel thickness resulting from the OIV.ImageViz.Engines.EdgeDetection.EdgeMarking.SoZeroCrossingsProcessing2d or OIV.ImageViz.Engines.EdgeDetection.EdgeMarking.SoGradientLocalMaximaProcessing2d commands.
Although many applications do not require vectorized edges, it results in a vast reduction of data, and it provides a representation more suitable for some algorithms. In particular, it is possible to process chains with computational geometry algorithms or 1D signal processing operators, and to solve problems that have a better formulation within these theories.
A chain consists of a list of adjacent pixels of an edge lying between two free ends, two triple points, or a free end and a triple point, as represented in Figure 1. Chains are oriented, and the orientation may be a function of the gradient. Each chain has a header containing information such as the size, the numbers of the previous or next connected chains, etc..
Let be an angle and
the first point of the chain:
1. For each point , a cone
of summit
, of axis
and of angle
can be defined;
2. Let be the intersection of the
's
: if
is not empty, starting from
, one can search for
, the first point for which the distance to the axis of
is a local minimum. The point
is then examined (back to 1).