Interface PositionEvaluator<I,P>
-
- Type Parameters:
I
- Type of Image wrapped by ImageWrapperP
- Type of Point wrapped by Point2Wrapper
- All Known Subinterfaces:
GridbasedPositionEvaluator<I,P>
,SizebasedPositionEvaluator<I,P>
- All Known Implementing Classes:
OpenCVGridbasedPositionEvaluator
,OpenCVSizebasedPositionEvaluator
public interface PositionEvaluator<I,P>
Interface which provides functionality to evaluate e.g. the position of an object in the image
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
calibrate(ImageWrapper<I> imageForCalibration)
Method for calibrating the PositionEvaluatorTranslationOffsetInMM
getOffset(ImageWrapper<I> ref, ImageWrapper<I> current)
Method for evaluating the offset of an object between two imagesPoint2Wrapper<P>
getPosition(ImageWrapper<I> image)
Method for evaluating e.g.
-
-
-
Method Detail
-
calibrate
void calibrate(ImageWrapper<I> imageForCalibration)
Method for calibrating the PositionEvaluator- Parameters:
imageForCalibration
- Image used for calibration
-
getPosition
Point2Wrapper<P> getPosition(ImageWrapper<I> image)
Method for evaluating e.g. the position of an object in the image- Parameters:
image
- Image where Object should be found.- Returns:
- Position of the Object in the image (Position -1/-1 -> no position found)
-
getOffset
TranslationOffsetInMM getOffset(ImageWrapper<I> ref, ImageWrapper<I> current)
Method for evaluating the offset of an object between two images- Parameters:
ref
- The reference image containing the objectcurrent
- The current image containing the object- Returns:
- The offset between the object´s position in ref and the object´s position in current
-
-