Jetson Inference
DNN Vision Library
|
3D point cloud processing and visualization. More...
Classes | |
class | cudaPointCloud |
CUDA-accelerated point cloud processing. More... | |
3D point cloud processing and visualization.
class cudaPointCloud |
CUDA-accelerated point cloud processing.
Public Member Functions | |
struct cudaPointCloud::Vertex | __attribute__ ((packed)) |
~cudaPointCloud () | |
Destructor. More... | |
bool | Reserve (uint32_t maxPoints) |
Allocate and reserve memory for the max number of points. More... | |
void | Free () |
Free the memory being used to store the point cloud. More... | |
void | Clear () |
Clear the points, but keep the memory allocated. More... | |
bool | Extract (float *depth, float4 *rgba, uint32_t width, uint32_t height) |
Extract point cloud from depth map and optional RGBA image. More... | |
bool | Extract (float *depth, uint32_t depth_width, uint32_t depth_height, float4 *rgba, uint32_t color_width, uint32_t color_height) |
Extract point cloud from depth map and optional RGBA image. More... | |
uint32_t | GetNumPoints () const |
Retrieve the number of points being used. More... | |
uint32_t | GetMaxPoints () const |
Retrieve the max number of points in memory. More... | |
size_t | GetSize () const |
Retrieve the size in bytes currently being used. More... | |
size_t | GetMaxSize () const |
Retrieve the maximum size in bytes of the point cloud. More... | |
Vertex * | GetData () const |
Retrieve memory pointer to point cloud data. More... | |
Vertex * | GetData (size_t index) const |
Retrieve memory pointer to a specific point. More... | |
bool | HasRGB () const |
Does the point cloud have RGB data? More... | |
bool | Render () |
Render the point cloud with OpenGL. More... | |
bool | Save (const char *filename) |
Save point cloud to PCD file. More... | |
bool | SetCalibration (const char *filename) |
Set the intrinsic camera calibration. More... | |
void | SetCalibration (const float K[3][3]) |
Set the intrinsic camera calibration. More... | |
void | SetCalibration (const float2 &focalLength, const float2 &principalPoint) |
Set the intrinsic camera calibration. More... | |
Static Public Member Functions | |
static cudaPointCloud * | Create () |
Create. More... | |
Protected Member Functions | |
cudaPointCloud () | |
bool | allocBufferGL () |
bool | allocDepthResize (size_t size) |
Protected Attributes | |
Vertex * | mPointsCPU |
Vertex * | mPointsGPU |
glBuffer * | mBufferGL |
glCamera * | mCameraGL |
uint32_t | mNumPoints |
uint32_t | mMaxPoints |
float2 | mFocalLength |
float2 | mPrincipalPoint |
float * | mDepthResize |
size_t | mDepthSize |
bool | mHasRGB |
bool | mHasNewPoints |
bool | mHasCalibration |
cudaPointCloud::~cudaPointCloud | ( | ) |
Destructor.
|
protected |
struct cudaPointCloud::Vertex cudaPointCloud::__attribute__ | ( | (packed) | ) |
|
protected |
|
protected |
void cudaPointCloud::Clear | ( | ) |
Clear the points, but keep the memory allocated.
|
static |
Create.
bool cudaPointCloud::Extract | ( | float * | depth, |
float4 * | rgba, | ||
uint32_t | width, | ||
uint32_t | height | ||
) |
Extract point cloud from depth map and optional RGBA image.
bool cudaPointCloud::Extract | ( | float * | depth, |
uint32_t | depth_width, | ||
uint32_t | depth_height, | ||
float4 * | rgba, | ||
uint32_t | color_width, | ||
uint32_t | color_height | ||
) |
Extract point cloud from depth map and optional RGBA image.
void cudaPointCloud::Free | ( | ) |
Free the memory being used to store the point cloud.
|
inline |
Retrieve memory pointer to point cloud data.
|
inline |
Retrieve memory pointer to a specific point.
|
inline |
Retrieve the max number of points in memory.
|
inline |
Retrieve the maximum size in bytes of the point cloud.
|
inline |
Retrieve the number of points being used.
|
inline |
Retrieve the size in bytes currently being used.
|
inline |
Does the point cloud have RGB data?
bool cudaPointCloud::Render | ( | ) |
Render the point cloud with OpenGL.
bool cudaPointCloud::Reserve | ( | uint32_t | maxPoints | ) |
bool cudaPointCloud::Save | ( | const char * | filename | ) |
Save point cloud to PCD file.
bool cudaPointCloud::SetCalibration | ( | const char * | filename | ) |
Set the intrinsic camera calibration.
void cudaPointCloud::SetCalibration | ( | const float | K[3][3] | ) |
Set the intrinsic camera calibration.
void cudaPointCloud::SetCalibration | ( | const float2 & | focalLength, |
const float2 & | principalPoint | ||
) |
Set the intrinsic camera calibration.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |