Package boofcv.abst.sfm.d2
Interface ImageMotion2D<I extends ImageBase<I>,IT extends InvertibleTransform>
- Type Parameters:
I
- Input image typeIT
- Internally used image motion model
- All Known Implementing Classes:
PlToGrayMotion2D
,WrapImageMotionPtkSmartRespawn
public interface ImageMotion2D<I extends ImageBase<I>,IT extends InvertibleTransform>
Estimates the 2D motion of images in a video sequence. All internal motion models must belong to the
Homography2D_F64
transformation 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
Modifier and TypeMethodDescriptionTransform from first image into the current image.long
Returns the ID of the most recently processed frame.Type of transform that it estimatesboolean
Processes and updates the image transform.void
reset()
Resets the class into its initial state and throws away any information on the image sequencevoid
Turns the current image into the origin of the coordinate system.
-
Method Details
-
process
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
Type of transform that it estimates- Returns:
- Transform type.
-