Packages

 

com.aspose.imaging.masking.options

Class AutoMaskingArgs

    • Constructor Detail

      • AutoMaskingArgs

        public AutoMaskingArgs()
    • Method Detail

      • getNumberOfObjects

        public final int getNumberOfObjects()

        Gets the number of objects to separate initial image to (optional), default value is 2 (object and background).

        Value: The number of objects.
        Returns:
        the number of objects to separate initial image to (optional), default value is 2 (object and background).
      • setNumberOfObjects

        public final void setNumberOfObjects(int value)

        Sets the number of objects to separate initial image to (optional), default value is 2 (object and background).

        Value: The number of objects.
        Parameters:
        value - the number of objects to separate initial image to (optional), default value is 2 (object and background).
      • getObjectsRectangles

        public final Rectangle[] getObjectsRectangles()

        Gets the objects rectangles that belong to separated objects (optional). This parameter is used to increase segmentation method precision.

        Value: The objects rectangles.
        Returns:
        the objects rectangles that belong to separated objects (optional).
      • setObjectsRectangles

        public final void setObjectsRectangles(Rectangle[] value)

        Sets the objects rectangles that belong to separated objects (optional). This parameter is used to increase segmentation method precision.

        Value: The objects rectangles.
        Parameters:
        value - the objects rectangles that belong to separated objects (optional).
      • getObjectsPoints

        public final Point[][] getObjectsPoints()

        Gets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image. This parameter is used to increase segmentation method precision.

        Value: The objects points.
        Returns:
        the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
      • setObjectsPoints

        public final void setObjectsPoints(Point[][] value)

        Sets the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image. This parameter is used to increase segmentation method precision.

        Value: The objects points.
        Parameters:
        value - the points that belong to separated objects (optional) NumberOfObjects coordinates that belong to NumberOfObjects objects of initial image.
      • getOrphanedPoints

        public final Point[] getOrphanedPoints()

        Gets the points that no longer belong to any object (optional). This parameter is used only in case of re-segmentation.

        Value: The orphaned points.
        Returns:
        the points that no longer belong to any object (optional).
      • setOrphanedPoints

        public final void setOrphanedPoints(Point[] value)

        Sets the points that no longer belong to any object (optional). This parameter is used only in case of re-segmentation.

        Value: The orphaned points.
        Parameters:
        value - the points that no longer belong to any object (optional).
      • getPrecision

        public final double getPrecision()

        Gets the precision of segmentation method (optional).

        Value: The precision of segmentation method (optional).
        Returns:
        the precision of segmentation method (optional).
      • setPrecision

        public final void setPrecision(double value)

        Sets the precision of segmentation method (optional).

        Value: The precision of segmentation method (optional).
        Parameters:
        value - the precision of segmentation method (optional).
      • getMaxIterationNumber

        public final int getMaxIterationNumber()

        Gets the maximum number of iterations.

        Value: The maximum maximum number of iterations.
        Returns:
        the maximum number of iterations.
      • setMaxIterationNumber

        public final void setMaxIterationNumber(int value)

        Sets the maximum number of iterations.

        Value: The maximum maximum number of iterations.
        Parameters:
        value - the maximum number of iterations.