Package boofcv.abst.sfm.d2
Interface ImageMotion2D<I extends boofcv.struct.image.ImageBase<I>,IT extends georegression.struct.InvertibleTransform>
-
- Type Parameters:
I- Input image typeIT- Internally used image motion model
- All Known Implementing Classes:
PlToGrayMotion2D,WrapImageMotionPtkSmartRespawn
public interface ImageMotion2D<I extends boofcv.struct.image.ImageBase<I>,IT extends georegression.struct.InvertibleTransform>Estimates the 2D motion of images in a video sequence. All internal motion models must belong to theHomography2D_F64transformation family, The returned transformations use the first image as the reference frame, but other images can be converted into the reference frame. Typically used in image stabilization or image mosaic applications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITgetFirstToCurrent()Transform from first image into the current image.longgetFrameID()Returns the ID of the most recently processed frame.java.lang.Class<IT>getTransformType()Type of transform that it estimatesbooleanprocess(I input)Processes and updates the image transform.voidreset()Resets the class into its initial state and throws away any information on the image sequencevoidsetToFirst()Turns the current image into the origin of the coordinate system.
-
-
-
Method Detail
-
process
boolean process(I input)
Processes and updates the image transform. The very first image processed will always return true and have a transform of no motion.- Parameters:
input- Next image in the sequence. Not modified.- Returns:
- true if the transform has been updated and false if not
-
reset
void reset()
Resets the class into its initial state and throws away any information on the image sequence
-
setToFirst
void setToFirst()
Turns the current image into the origin of the coordinate system.
-
getFrameID
long getFrameID()
Returns the ID of the most recently processed frame. Starts at zero and increments with each call to process.
-
getFirstToCurrent
IT getFirstToCurrent()
Transform from first image into the current image. NOTE: Returned transform is owned by this class and can be modified after any function is called.- Returns:
- Image transform
-
getTransformType
java.lang.Class<IT> getTransformType()
Type of transform that it estimates- Returns:
- Transform type.
-
-