Package boofcv.alg.meshing
Class DepthImageToMeshGridSample
java.lang.Object
boofcv.alg.meshing.DepthImageToMeshGridSample
Samples disparity image in a regular grid pattern. If it finds 4 corners that are valid it creates 2 triangles
from them. Can't get much simpler than this.
-
Field Summary
Modifier and TypeFieldDescriptionNumber of pixels in the regular grid that it samples. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processDisparity
(DisparityParameters parameters, GrayF32 disparity, float maxDisparityJump) Processes the disparity image and returns all the found 3D meshesvoid
processInvDepth
(GrayF32 inverseDepth, PixelTransform<Point2D_F64> pixelToNorm, float maxInverseJump) Processes the inverse depth image and returns all the found 3D meshes
-
Field Details
-
samplePeriod
Number of pixels in the regular grid that it samples. Relative to (w+h)/2
-
-
Constructor Details
-
DepthImageToMeshGridSample
public DepthImageToMeshGridSample()
-
-
Method Details
-
processDisparity
public void processDisparity(DisparityParameters parameters, GrayF32 disparity, float maxDisparityJump) Processes the disparity image and returns all the found 3D meshes- Parameters:
parameters
- Stereo parametersdisparity
- disparity image
-
processInvDepth
public void processInvDepth(GrayF32 inverseDepth, PixelTransform<Point2D_F64> pixelToNorm, float maxInverseJump) Processes the inverse depth image and returns all the found 3D meshes- Parameters:
inverseDepth
- Stereo parameters
-