Package science.aist.imaging.api.domain
Class RecognizedObject<T,V>
- java.lang.Object
-
- science.aist.imaging.api.domain.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 Summary
Constructors Constructor Description RecognizedObject(T fromImage, List<JavaPoint2D> coordinates, double thresholdUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaPoint2D
calculateLowerLeftBoundingBox()
Calculates most lower right point to create a bounding box around the object.JavaPoint2D
calculateUpperRightBoundingBox()
Calculates most upper left point to create a bounding box around the object.
-
-
-
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
-
-