Class AlgorithmCropTilted

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

    public class AlgorithmCropTilted
    extends AlgorithmBase
    Algorithm to crop a tilted rectangle
    • Field Detail

      • x1

        private double x1
      • x2

        private double x2
      • x3

        private double x3
      • x4

        private double x4
      • x5

        private double x5
      • x6

        private double x6
      • x7

        private double x7
      • x8

        private double x8
      • y1

        private double y1
      • y2

        private double y2
      • y3

        private double y3
      • y4

        private double y4
      • y5

        private double y5
      • y6

        private double y6
      • y7

        private double y7
      • y8

        private double y8
      • z1

        private double z1
      • z2

        private double z2
      • z3

        private double z3
      • z4

        private double z4
      • z5

        private double z5
      • z6

        private double z6
      • z7

        private double z7
      • z8

        private double z8
      • method

        int method
      • run2D

        private boolean run2D
    • Constructor Detail

      • AlgorithmCropTilted

        public AlgorithmCropTilted​(ModelImage srcImage,
                                   double x1,
                                   double y1,
                                   double x2,
                                   double y2,
                                   double x3,
                                   double y3,
                                   double x4,
                                   double y4,
                                   int method)
        Rotate tilted rectangle to remove tilt and crop rectangle.
        Parameters:
        srcImage - original image
        x1 -
        y1 -
        x2 -
        y2 -
        x3 -
        y3 -
        x4 -
        y4 -
      • AlgorithmCropTilted

        public AlgorithmCropTilted​(ModelImage srcImage,
                                   double x1,
                                   double y1,
                                   double z1,
                                   double x2,
                                   double y2,
                                   double z2,
                                   double x3,
                                   double y3,
                                   double z3,
                                   double x4,
                                   double y4,
                                   double z4,
                                   double x5,
                                   double y5,
                                   double z5,
                                   double x6,
                                   double y6,
                                   double z6,
                                   double x7,
                                   double y7,
                                   double z7,
                                   double x8,
                                   double y8,
                                   double z8,
                                   int method)
        Rotate tilted cuboid to remove tilt and crop cuboid.
        Parameters:
        srcImage - original image
        x1 -
        y1 -
        z1 -
        x2 -
        y2 -
        z2 -
        x3 -
        y3 -
        z3 -
        x4 -
        y4 -
        z4 -
        x5 -
        y5 -
        z5 -
        x6 -
        y6 -
        z6 -
        x7 -
        y7 -
        z7 -
        x8 -
        y8 -
        z8 -
    • Method Detail

      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase
      • getResultImage

        public ModelImage getResultImage()