Class AbstractObjectDetector<I,P,R>
- java.lang.Object
-
- science.aist.imaging.api.objectdetection.AbstractObjectDetector<I,P,R>
-
- Type Parameters:
P
- Type of Point wrapped by Point2WrapperI
- Type of Image wrapped by ImageWrapperR
- Type of Rectangle wrapped by RectangleWrapper
- All Implemented Interfaces:
ObjectDetector<I,P,R>
- Direct Known Subclasses:
AbstractColorbasedObjectDetector
,AbstractDifferencebasedObjectDetector
,AbstractFeaturebasedObjectDetector
public abstract class AbstractObjectDetector<I,P,R> extends Object implements ObjectDetector<I,P,R>
Abstract Object detector
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
Fields Modifier and Type Field Description protected science.aist.jack.general.transformer.Transformer<Point2Wrapper<P>,JavaPoint2D>
pointTransformer
Reference to Point Transformer
-
Constructor Summary
Constructors Constructor Description AbstractObjectDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point2Wrapper<P>
getObjectCenter(ImageWrapper<I> image)
Method for detecting an object with preferably unique color.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.objectdetection.ObjectDetector
getBoundingBox
-
-
-
-
Field Detail
-
pointTransformer
protected science.aist.jack.general.transformer.Transformer<Point2Wrapper<P>,JavaPoint2D> pointTransformer
Reference to Point Transformer
-
-
Method Detail
-
getObjectCenter
public Point2Wrapper<P> getObjectCenter(ImageWrapper<I> image)
Method for detecting an object with preferably unique color. Detects the biggest object colored with a color between the given color range.- Specified by:
getObjectCenter
in interfaceObjectDetector<I,P,R>
- Parameters:
image
- Image where object should be detected- Returns:
- Returns the center point of the detected object.
-
-