boofcv.abst.sfm.d2
Class PlToGrayMotion2D<T extends ImageGray,IT extends InvertibleTransform>
- java.lang.Object
-
- boofcv.abst.sfm.d2.PlToGrayMotion2D<T,IT>
-
- All Implemented Interfaces:
- AccessPointTracks, ImageMotion2D<Planar<T>,IT>
public class PlToGrayMotion2D<T extends ImageGray,IT extends InvertibleTransform> extends java.lang.Object implements ImageMotion2D<Planar<T>,IT>, AccessPointTracks
Wrapper which converts a planar image into a gray scale image before computing its image motion.
-
-
Constructor Summary
Constructors Constructor and Description PlToGrayMotion2D(ImageMotion2D<T,IT> motion, java.lang.Class<T> imageType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Point2D_F64>getAllTracks()All the points being actively tracked in pixel coordinates.ITgetFirstToCurrent()Transform from first image into the current image.longgetTrackId(int index)Used to get the track ID of an active Trackjava.lang.Class<IT>getTransformType()Type of transform that it estimatesbooleanisInlier(int index)True if the specified track is an inlier used in motion estimationbooleanisNew(int index)True if the specified track was just spawnedbooleanprocess(Planar<T> 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.
-
-
-
Constructor Detail
-
PlToGrayMotion2D
public PlToGrayMotion2D(ImageMotion2D<T,IT> motion, java.lang.Class<T> imageType)
-
-
Method Detail
-
process
public boolean process(Planar<T> input)
Description copied from interface:ImageMotion2DProcesses and updates the image transform. The very first image processed will always return true and have a transform of no motion.- Specified by:
processin interfaceImageMotion2D<Planar<T extends ImageGray>,IT extends InvertibleTransform>- Parameters:
input- Next image in the sequence. Not modified.- Returns:
- true if the transform has been updated and false if not
-
reset
public void reset()
Description copied from interface:ImageMotion2DResets the class into its initial state and throws away any information on the image sequence- Specified by:
resetin interfaceImageMotion2D<Planar<T extends ImageGray>,IT extends InvertibleTransform>
-
setToFirst
public void setToFirst()
Description copied from interface:ImageMotion2DTurns the current image into the origin of the coordinate system.- Specified by:
setToFirstin interfaceImageMotion2D<Planar<T extends ImageGray>,IT extends InvertibleTransform>
-
getFirstToCurrent
public IT getFirstToCurrent()
Description copied from interface:ImageMotion2DTransform from first image into the current image. NOTE: Returned transform is owned by this class and can be modified after any function is called.- Specified by:
getFirstToCurrentin interfaceImageMotion2D<Planar<T extends ImageGray>,IT extends InvertibleTransform>- Returns:
- Image transform
-
getTransformType
public java.lang.Class<IT> getTransformType()
Description copied from interface:ImageMotion2DType of transform that it estimates- Specified by:
getTransformTypein interfaceImageMotion2D<Planar<T extends ImageGray>,IT extends InvertibleTransform>- Returns:
- Transform type.
-
getTrackId
public long getTrackId(int index)
Description copied from interface:AccessPointTracksUsed to get the track ID of an active Track- Specified by:
getTrackIdin interfaceAccessPointTracks- Parameters:
index- which track- Returns:
- The track's ID
-
getAllTracks
public java.util.List<Point2D_F64> getAllTracks()
Description copied from interface:AccessPointTracksAll the points being actively tracked in pixel coordinates.- Specified by:
getAllTracksin interfaceAccessPointTracks- Returns:
- all active tracks in pixel coordinates
-
isInlier
public boolean isInlier(int index)
Description copied from interface:AccessPointTracksTrue if the specified track is an inlier used in motion estimation- Specified by:
isInlierin interfaceAccessPointTracks- Parameters:
index- The index in all- Returns:
- if it is an inlier or not
-
isNew
public boolean isNew(int index)
Description copied from interface:AccessPointTracksTrue if the specified track was just spawned- Specified by:
isNewin interfaceAccessPointTracks- Parameters:
index- The index in all- Returns:
- if it is new or not
-
-
DataMelt 3.0 © DataMelt by jWork.ORG