Class SoGroupCloseLabelslProcessing2d

  • All Implemented Interfaces:

    public class SoGroupCloseLabelslProcessing2d
    extends SoImageVizEngine
    As of Open Inventor 2023.2. ImageViz API is replaced by the new ImageDev toolkit.
    SoGroupCloseLabelslProcessing2d engine. The SoGroupCloseLabelslProcessing2d groups the objects of the input image according to the distance between them. Knowing the grouping distance, objects will be given the same label if they are separated by this distance or less

    Label grouping on a binary image The figure above shows the results of the SoLabelingProcessing and SoGroupCloseLabelslProcessing2d engines on a binary image. The SoLabelingProcessing engine gives a label number to each cell. The SoGroupCloseLabelslProcessing2d will associate the same label number to each cell of a group, a group being defined by the distance between the separated particles. On the example above the chosen distance is 20 pixels, therefore cells separated by 20 pixels or less will be recognised as belonging to the same group.

    File format/default:

    GroupCloseLabelslProcessing2d {

      inObjectImage NULL
      maxDistance 3.0f

    Library references: group_label

    • Field Detail

      • inObjectImage

        public final SoSFImageDataAdapter inObjectImage
        The input binary or label image. Default value is NULL. Supported types include: binary label color image.
      • maxDistance

        public final SoSFFloat maxDistance
        The maximal distance for grouping objects. Default value is 3.0f.
    • Constructor Detail

      • SoGroupCloseLabelslProcessing2d

        public SoGroupCloseLabelslProcessing2d()