public class VisOdomDirectColorDepth<I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
extends java.lang.Object
| Constructor and Description |
|---|
VisOdomDirectColorDepth(int numBands,
java.lang.Class<I> imageType,
java.lang.Class<D> derivType)
Declares internal data structures and specifies the type of input images to expect
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeFeatureDiversity(georegression.struct.se.Se3_F32 keyToCurrent)
Computes the diversity of valid pixels in keyframe to the location in the current frame.
|
boolean |
estimateMotion(boofcv.struct.image.Planar<I> input,
georegression.struct.se.Se3_F32 hintKeyToInput)
Estimates the motion relative to the key frame.
|
boofcv.struct.image.ImageType<boofcv.struct.image.Planar<D>> |
getDerivType() |
float |
getErrorOptical() |
boofcv.struct.image.ImageType<boofcv.struct.image.Planar<I>> |
getImageType() |
int |
getInboundsPixels() |
int |
getKeyframePixels() |
georegression.struct.se.Se3_F32 |
getKeyToCurrent() |
void |
setCameraParameters(float fx,
float fy,
float cx,
float cy,
int width,
int height)
Specifies intrinsic camera parameters.
|
void |
setConvergence(float convergenceTol,
int maxIterations)
Specifies convergence parameters
|
void |
setInterpolation(double inputMin,
double inputMax,
double derivMin,
double derivMax,
boofcv.alg.interpolate.InterpolationType type)
Used to change interpolation method.
|
public VisOdomDirectColorDepth(int numBands,
java.lang.Class<I> imageType,
java.lang.Class<D> derivType)
imageType - Input image typederivType - Type of image to store the derivative inpublic void setCameraParameters(float fx,
float fy,
float cx,
float cy,
int width,
int height)
fx - focal length x (pixels)fy - focal length y (pixels)cx - principle point x (pixels)cy - principle point y (pixels)width - Width of the imageheight - Height of the imagepublic void setInterpolation(double inputMin,
double inputMax,
double derivMin,
double derivMax,
boofcv.alg.interpolate.InterpolationType type)
inputMin - min value for input pixels. 0 is typicalinputMax - max value for input pixels. 255 is typicalderivMin - min value for the derivative of input pixelsderivMax - max value for the derivative of input pixelstype - Type of interpolation method to usepublic void setConvergence(float convergenceTol,
int maxIterations)
convergenceTol - When change in error is less than this fraction stop. Try 1e-6maxIterations - When this number of iterations has been exceeded stop. Try 10public double computeFeatureDiversity(georegression.struct.se.Se3_F32 keyToCurrent)
public boolean estimateMotion(boofcv.struct.image.Planar<I> input, georegression.struct.se.Se3_F32 hintKeyToInput)
input - Next image in the sequencehintKeyToInput - estimated transform from keyframe to the current input imagepublic float getErrorOptical()
public int getInboundsPixels()
public int getKeyframePixels()
public georegression.struct.se.Se3_F32 getKeyToCurrent()
public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<I>> getImageType()
public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<D>> getDerivType()