Class RandomRegions

    • Field Detail

      • m_Finder

        protected ObjectFinder m_Finder
        the object finder to use.
      • m_Seed

        protected long m_Seed
        the seed value.
      • m_MinWidth

        protected int m_MinWidth
        the minimum width.
      • m_MaxWidth

        protected int m_MaxWidth
        the maximum width.
      • m_MinHeight

        protected int m_MinHeight
        the minimum height.
      • m_MaxHeight

        protected int m_MaxHeight
        the maximum height.
      • m_NumRegions

        protected int m_NumRegions
        the number of regions to generate (before removing overlapping ones).
      • m_OverlapDetection

        protected ObjectOverlap m_OverlapDetection
        the object overlap calculation to use.
      • m_Random

        protected transient Random m_Random
        the random number generator.
    • Constructor Detail

      • RandomRegions

        public RandomRegions()
    • Method Detail

      • setFinder

        public void setFinder​(ObjectFinder value)
        Sets the object finder to use.
        Parameters:
        value - the finder
      • getFinder

        public ObjectFinder getFinder()
        Returns the object finder in use.
        Returns:
        the finder
      • finderTipText

        public String finderTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSeed

        public void setSeed​(long value)
        Sets the seed value.
        Specified by:
        setSeed in interface Randomizable
        Parameters:
        value - the seed
      • getSeed

        public long getSeed()
        Returns the seed value.
        Specified by:
        getSeed in interface Randomizable
        Returns:
        the seed
      • seedTipText

        public String seedTipText()
        Returns the tip text for this property.
        Specified by:
        seedTipText in interface Randomizable
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMinWidth

        public void setMinWidth​(int value)
        Sets the minimum width a negative region must have.
        Parameters:
        value - the minimum width, ignored if <1
      • getMinWidth

        public int getMinWidth()
        Returns the minimum width a negative region must have.
        Returns:
        the minimum width, ignored if <1
      • minWidthTipText

        public String minWidthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMaxWidth

        public void setMaxWidth​(int value)
        Sets the maximum width a negative region can have.
        Parameters:
        value - the maximum width, ignored if <1
      • getMaxWidth

        public int getMaxWidth()
        Returns the maximum width a negative region can have.
        Returns:
        the maximum width, ignored if <1
      • maxWidthTipText

        public String maxWidthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMinHeight

        public void setMinHeight​(int value)
        Sets the minimum height a negative region must have.
        Parameters:
        value - the minimum height, ignored if <1
      • getMinHeight

        public int getMinHeight()
        Returns the minimum height a negative region must have.
        Returns:
        the minimum height, ignored if <1
      • minHeightTipText

        public String minHeightTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMaxHeight

        public void setMaxHeight​(int value)
        Sets the maximum height a negative region can have.
        Parameters:
        value - the maximum height, ignored if <1
      • getMaxHeight

        public int getMaxHeight()
        Returns the maximum height a negative region can have.
        Returns:
        the maximum height, ignored if <1
      • maxHeightTipText

        public String maxHeightTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumRegions

        public void setNumRegions​(int value)
        Sets the number of regions to generate, before removing ones that overlap or overlap with annotations.
        Parameters:
        value - the number of regions
      • getNumRegions

        public int getNumRegions()
        Returns the number of regions to generate, before removing ones that overlap or overlap with annotations.
        Returns:
        the number of regions
      • numRegionsTipText

        public String numRegionsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOverlapDetection

        public void setOverlapDetection​(ObjectOverlap value)
        Sets the algorithm for determining the overlapping objects
        Parameters:
        value - the algorithm
      • getOverlapDetection

        public ObjectOverlap getOverlapDetection()
        Returns the algorithm for determining the overlapping objects.
        Returns:
        the algorithm
      • overlapDetectionTipText

        public String overlapDetectionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setOverlapRemoval

        public void setOverlapRemoval​(OverlappingObjectRemoval value)
        Sets the algorithm for determining the overlapping objects
        Parameters:
        value - the algorithm
      • getOverlapRemoval

        public OverlappingObjectRemoval getOverlapRemoval()
        Returns the algorithm for determining the overlapping objects.
        Returns:
        the algorithm
      • overlapRemovalTipText

        public String overlapRemovalTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.