![]() |
OpenCV
5.0.0-pre
Open Source Computer Vision
|
#include <opencv2/3d/volume.hpp>
Public Member Functions | |
Volume () | |
Constructor of default volume - TSDF. More... | |
Volume (VolumeType vtype, const VolumeSettings &settings) | |
Constructor of custom volume. More... | |
~Volume () | |
void | fetchNormals (InputArray points, OutputArray normals) const |
Extract the all data from volume. More... | |
void | fetchPointsNormals (OutputArray points, OutputArray normals) const |
Extract the all data from volume. More... | |
void | fetchPointsNormalsColors (OutputArray points, OutputArray normals, OutputArray colors) const |
Extract the all data from volume. More... | |
size_t | getTotalVolumeUnits () const |
return number of vulmeunits in volume. More... | |
int | getVisibleBlocks () const |
return visible blocks in volume. More... | |
void | integrate (const OdometryFrame &frame, InputArray pose) |
Integrates the input data to the volume. More... | |
void | integrate (InputArray depth, InputArray pose) |
Integrates the input data to the volume. More... | |
void | integrate (InputArray depth, InputArray image, InputArray pose) |
Integrates the input data to the volume. More... | |
void | raycast (InputArray cameraPose, OdometryFrame &outFrame) const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system. More... | |
void | raycast (InputArray cameraPose, OutputArray points, OutputArray normals, OutputArray colors=noArray()) const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system. More... | |
void | raycast (InputArray cameraPose, int height, int width, OdometryFrame &outFrame) const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system. More... | |
void | raycast (InputArray cameraPose, int height, int width, OutputArray points, OutputArray normals, OutputArray colors=noArray()) const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system. More... | |
void | reset () |
clear all data in volume. More... | |
cv::Volume::Volume | ( | ) |
Constructor of default volume - TSDF.
cv::Volume::Volume | ( | VolumeType | vtype, |
const VolumeSettings & | settings | ||
) |
Constructor of custom volume.
vtype | the volume type [TSDF, HashTSDF, ColorTSDF]. |
settings | the custom settings for volume. |
cv::Volume::~Volume | ( | ) |
void cv::Volume::fetchNormals | ( | InputArray | points, |
OutputArray | normals | ||
) | const |
Extract the all data from volume.
points | the input exist point. |
normals | the storage of normals (corresponding to input points) in the image. |
void cv::Volume::fetchPointsNormals | ( | OutputArray | points, |
OutputArray | normals | ||
) | const |
Extract the all data from volume.
points | the storage of all points. |
normals | the storage of all normals, corresponding to points. |
void cv::Volume::fetchPointsNormalsColors | ( | OutputArray | points, |
OutputArray | normals, | ||
OutputArray | colors | ||
) | const |
Extract the all data from volume.
points | the storage of all points. |
normals | the storage of all normals, corresponding to points. |
colors | the storage of all colors, corresponding to points (only for ColorTSDF). |
size_t cv::Volume::getTotalVolumeUnits | ( | ) | const |
return number of vulmeunits in volume.
int cv::Volume::getVisibleBlocks | ( | ) | const |
return visible blocks in volume.
void cv::Volume::integrate | ( | const OdometryFrame & | frame, |
InputArray | pose | ||
) |
Integrates the input data to the volume.
Camera intrinsics are taken from volume settings structure.
frame | the object from which to take depth and image data. For color TSDF a depth data should be registered with color data, i.e. have the same intrinsics & camera pose. This can be done using function registerDepth() from 3d module. |
pose | the pose of camera in global coordinates. |
void cv::Volume::integrate | ( | InputArray | depth, |
InputArray | pose | ||
) |
Integrates the input data to the volume.
Camera intrinsics are taken from volume settings structure.
depth | the depth image. |
pose | the pose of camera in global coordinates. |
void cv::Volume::integrate | ( | InputArray | depth, |
InputArray | image, | ||
InputArray | pose | ||
) |
Integrates the input data to the volume.
Camera intrinsics are taken from volume settings structure.
depth | the depth image. |
image | the color image (only for ColorTSDF). For color TSDF a depth data should be registered with color data, i.e. have the same intrinsics & camera pose. This can be done using function registerDepth() from 3d module. |
pose | the pose of camera in global coordinates. |
void cv::Volume::raycast | ( | InputArray | cameraPose, |
OdometryFrame & | outFrame | ||
) | const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system.
Rendered image size and camera intrinsics are taken from volume settings structure.
cameraPose | the pose of camera in global coordinates. |
outFrame | the object where to store rendered points and normals. |
void cv::Volume::raycast | ( | InputArray | cameraPose, |
OutputArray | points, | ||
OutputArray | normals, | ||
OutputArray | colors = noArray() |
||
) | const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system.
Rendered image size and camera intrinsics are taken from volume settings structure.
cameraPose | the pose of camera in global coordinates. |
points | image to store rendered points. |
normals | image to store rendered normals corresponding to points. |
colors | image to store rendered colors corresponding to points (only for ColorTSDF). |
void cv::Volume::raycast | ( | InputArray | cameraPose, |
int | height, | ||
int | width, | ||
OdometryFrame & | outFrame | ||
) | const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system.
Rendered image size and camera intrinsics are taken from volume settings structure.
cameraPose | the pose of camera in global coordinates. |
height | the height of result image. |
width | the width of result image. |
outFrame | the object where to store rendered points and normals. |
void cv::Volume::raycast | ( | InputArray | cameraPose, |
int | height, | ||
int | width, | ||
OutputArray | points, | ||
OutputArray | normals, | ||
OutputArray | colors = noArray() |
||
) | const |
Renders the volume contents into an image. The resulting points and normals are in camera's coordinate system.
Rendered image size and camera intrinsics are taken from volume settings structure.
cameraPose | the pose of camera in global coordinates. |
height | the height of result image. |
width | the width of result image. |
points | image to store rendered points. |
normals | image to store rendered normals corresponding to points. |
colors | image to store rendered colors corresponding to points (only for ColorTSDF). |
void cv::Volume::reset | ( | ) |
clear all data in volume.