Class RecognizedObject<T,​V>


  • public class RecognizedObject<T,​V>
    extends Object

    Class giving data regarding a recognized object in an image.

    Contains data, at which coordinates the object was found, in which image it was found and which threshold was used for calculation.

    Since:
    1.0
    Author:
    Christoph Praschl, Andreas Pointner
    • Constructor Detail

      • RecognizedObject

        public RecognizedObject​(T fromImage,
                                List<JavaPoint2D> coordinates,
                                double thresholdUsed)
    • Method Detail

      • calculateUpperRightBoundingBox

        public JavaPoint2D calculateUpperRightBoundingBox()
        Calculates most upper left point to create a bounding box around the object.
        Returns:
        JavaPoint with the most upper left point
      • calculateLowerLeftBoundingBox

        public JavaPoint2D calculateLowerLeftBoundingBox()
        Calculates most lower right point to create a bounding box around the object.
        Returns:
        JavaPoint with the most lower right point