public abstract class DepthSparse3D<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DepthSparse3D.F32
Implementation for
GrayF32. |
static class |
DepthSparse3D.I<T extends boofcv.struct.image.GrayI<T>>
Implementation for
GrayI. |
| Modifier and Type | Field and Description |
|---|---|
protected T |
depthImage |
| Constructor and Description |
|---|
DepthSparse3D(double depthScale)
Configures parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(boofcv.alg.distort.LensDistortionNarrowFOV model,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> visualToDepth)
Configures intrinsic camera parameters
|
georegression.struct.point.Point3D_F64 |
getWorldPt()
The found 3D coordinate of the point in the visual camera coordinate system.
|
protected abstract double |
lookupDepth(int depthX,
int depthY)
Internal function which looks up the pixel's depth.
|
boolean |
process(int x,
int y)
Given a pixel coordinate in the visual camera, compute the 3D coordinate of that point.
|
void |
setDepthImage(T depthImage)
Sets the depth image.
|
public DepthSparse3D(double depthScale)
depthScale - Used to change units found in the depth image.public void configure(boofcv.alg.distort.LensDistortionNarrowFOV model,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> visualToDepth)
model - Model for narrow FOV camerasvisualToDepth - Transform from visual to depth camera pixel coordinate systems.public void setDepthImage(T depthImage)
depthImage - Image containing depth information.public boolean process(int x,
int y)
x - x-coordinate of point in visual cameray - y-coordinate of point in visual camerapublic georegression.struct.point.Point3D_F64 getWorldPt()
process(int, int) returns true.protected abstract double lookupDepth(int depthX,
int depthY)
depthX - x-coordinate of pixel in depth cameradepthY - y-coordinate of pixel in depth camera