Class PhysicalScale


  • public class PhysicalScale
    extends java.lang.Object
    Used to specify physical scale when reading or storing image information.
    • Field Detail

      • units

        private final int units
      • horizontalUnitsPerPixel

        private final double horizontalUnitsPerPixel
      • verticalUnitsPerPixel

        private final double verticalUnitsPerPixel
    • Constructor Detail

      • PhysicalScale

        private PhysicalScale​(int units,
                              double horizontalUnitsPerPixel,
                              double verticalUnitsPerPixel)
    • Method Detail

      • createFromMeters

        public static PhysicalScale createFromMeters​(double x,
                                                     double y)
      • createFromRadians

        public static PhysicalScale createFromRadians​(double x,
                                                      double y)
      • isInMeters

        public boolean isInMeters()
      • isInRadians

        public boolean isInRadians()
      • getHorizontalUnitsPerPixel

        public double getHorizontalUnitsPerPixel()
      • getVerticalUnitsPerPixel

        public double getVerticalUnitsPerPixel()