Class RotationOffset

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    OrientationOffset

    public class RotationOffset
    extends TranslationOffset

    Class for representing translation and rotational offset of two images.

    Also contains a failure-value representing the correctness of the result.

    • Failure < 0 means that correctness of the offsets was not determined
    • Failure = 0 means offset is accurate.
    • Failure > 0 means offset is not total accurate (the higher this value, the less it is sure that the offset is correct).
    Since:
    1.0
    Author:
    Christoph Praschl
    See Also:
    Serialized Form
    • Field Detail

      • rotationalOffset

        protected double rotationalOffset
    • Constructor Detail

      • RotationOffset

        public RotationOffset()
      • RotationOffset

        public RotationOffset​(double rotationalOffset)
      • RotationOffset

        public RotationOffset​(double xOffset,
                              double yOffset,
                              double rotationalOffset)
      • RotationOffset

        public RotationOffset​(double xOffset,
                              double yOffset,
                              double failure,
                              double rotationalOffset)
      • RotationOffset

        public RotationOffset​(TranslationOffset offset,
                              double rotationalOffset)
    • Method Detail

      • getRotationalOffset

        public double getRotationalOffset()
        Getter of rotational offset (in degrees)
        Returns:
        Returns the rotational offset
      • setRotationalOffset

        public void setRotationalOffset​(double rotationalOffset)
        Setter for of rotational offset (in degrees)
        Parameters:
        rotationalOffset - Value (in degrees) which should be set
      • checkRotationValue

        protected void checkRotationValue​(double rotation,
                                          String offsetName)
      • toString

        public String toString()
        toString Overload for TranslationOffset class Printing the TranslationOffset with rounded values (6 digits after decimal point) Displays ? for not set values. Excludes offset areas if no value in area is set
        Overrides:
        toString in class TranslationOffset
        Returns:
        the string representation of offset