RVC X PointMap.
More...
#include <RVC.h>
◆ Create()
◆ CreateFromFile()
Create PointMap object from file. Only support the *.ply* format. If actual number of points in the point cloud is not equal to sz.width * sz.height, the function will return an invalid pointmap. If point cloud unit in the file is millimeter, the point cloud data will be divided by 1000.
- Parameters
-
| fileName | Name of file to be loaded. |
| sz | Size of the point cloud. |
| unit | The unit of the point cloud data in the file. |
◆ Destroy()
| static void RVC::PointMap::Destroy |
( |
PointMap |
pm, |
|
|
bool |
no_reuse = true |
|
) |
| |
|
static |
Destroy a PointMap object.
- Parameters
-
| pm | PointMap object will be destroyed |
| no_reuse | True for reuse current space of PointMap |
◆ GetNormalDataConstPtr()
| const double* RVC::PointMap::GetNormalDataConstPtr |
( |
| ) |
const |
Get the Normal Const Data Ptr of PointMap object.
- Returns
- const double* Normal Data Ptr
◆ GetNormalDataPtr()
| double* RVC::PointMap::GetNormalDataPtr |
( |
| ) |
|
Get the Normal Data Ptr of PointMap object.
- Returns
- double* Normal Data Ptr
◆ GetPointDataConstPtr()
| const double* RVC::PointMap::GetPointDataConstPtr |
( |
| ) |
const |
Get the Point Data Const Ptr of PointMap object.
- Returns
- const double* Point Data Ptr (m)
◆ GetPointDataPtr()
| double* RVC::PointMap::GetPointDataPtr |
( |
| ) |
|
Get the Point Data Ptr of PointMap object.
- Returns
- double* Point Data Ptr (m)
◆ GetPointMapSeperated()
| bool RVC::PointMap::GetPointMapSeperated |
( |
double * |
x, |
|
|
double * |
y, |
|
|
double * |
z, |
|
|
const double |
scale = 1.0 |
|
) |
| |
Get the Point Data Seperated.
- Parameters
-
| x | |
| y | |
| z | |
| scale | default set to 1 |
- Returns
- true
-
false
◆ GetSize()
| Size RVC::PointMap::GetSize |
( |
| ) |
const |
◆ IsValid()
| bool RVC::PointMap::IsValid |
( |
| ) |
const |
Check PointMap is Valid or not.
- Returns
- true Valid
-
false Not valid
◆ Save()
export PointMap's data to local file. Only support the *.ply* format.
- Parameters
-
| fileName | Name of file to be created. |
| unit | The unit of exported data. If save unit is millimeter, the point cloud data will be multiplied by 1000. |
| isBinary | Whether to export to binary format. |
- Returns
- bool.
The documentation for this struct was generated from the following file: