Class AlgorithmEllipseGeneration

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmEllipseGeneration
    extends AlgorithmBase
    This module draws uniformly randomly positioned ellipses with a specified semi-major axis, semi-minor axis, and angle phi between the x-axis and the major axis of the ellipse.
    • Field Detail

      • semiMajorAxis

        private int semiMajorAxis
      • semiMinorAxis

        private int semiMinorAxis
      • phi

        private double phi
      • numEllipses

        private int numEllipses
      • initialRandomEllipses

        private int initialRandomEllipses
      • pattern

        private int pattern
      • minimumNearestNeighborDistance

        private double minimumNearestNeighborDistance
      • maximumNearestNeighborDistance

        private double maximumNearestNeighborDistance
      • lowestForbiddenNNDistance

        private double lowestForbiddenNNDistance
      • highestForbiddenNNDistance

        private double highestForbiddenNNDistance
      • highestRegenerationNNDistance

        private double highestRegenerationNNDistance
    • Constructor Detail

      • AlgorithmEllipseGeneration

        public AlgorithmEllipseGeneration()
        AlgorithmEllipseGeneration - default constructor.
      • AlgorithmEllipseGeneration

        public AlgorithmEllipseGeneration​(ModelImage srcImage,
                                          int semiMajorAxis,
                                          int semiMinorAxis,
                                          double phi,
                                          int numEllipses,
                                          int pattern,
                                          int initialRandomEllipses,
                                          double minimumNearestNeighborDistance,
                                          double maximumNearestNeighborDistance,
                                          double lowestForbiddenNNDistance,
                                          double highestForbiddenNNDistance,
                                          double highestRegenerationNNDistance)
        AlgorithmEllipseGeneration.
        Parameters:
        srcImg - Blank source image in which circles will be drawn
        semiMajorAxis - Ellipse semi-major axis
        semiMajorAxis - Ellipse semi-minor axis
        phi - Angle between the x-axis and the major axis of the ellipse in radians
        numEllipses - Number of ellipses to be drawn
        pattern - RANDOM, AGGREGATED, or REGULAR
        initialRandomEllipses - Used in AGGREGATED. initialRandomEllipses are drawn randomly. The rest are drawn with nearestNeighborDistance less than or equal ot maximumNearestNeighborDistance.
        minimumNearestNeighborDistance - Used in REGULAR
        maximumNearestNeighborDistance - Used in AGGREGATED and REGULAR
        lowestForbiddenNNDistance - Used in CONSTRAINED
        highestForbiddenNNDistance - Used in CONSTRAINED
        highestRegeneerationNNDistance - Used in CONSTRAINED