|
| Downsampler (double step) |
| Constructs downsampler with equal step size in all directions. More...
|
|
| Downsampler (double x, double y, double z) |
| Construct downsampler with given step sizes in x, y, z directions. More...
|
|
void | setStep (double step) |
| Sets equal step size in all direction. More...
|
|
void | setStep (double x, double y, double z) |
| Sets step sizes in x, y, z directions. More...
|
|
int | getIndex (int x, int y, int z) |
| Returns location index given by x, y, z position. More...
|
|
int | getSize () |
| Returns map size. More...
|
|
void | setSizes (BoundingBoxInfo &bb) |
| Sets sizes (in x, y, z direction) based on the given bounding box. More...
|
|
bool | isActive (int i) |
| Decides whether the cell is active or not. More...
|
|
void | addPoint (PointXYZ &p) |
| Adds given point to the map. More...
|
|
void | downsample (BoundingBoxInfo &bb, std::vector< PointXYZ > &points) |
| Adds given points to the map specified by the bounding box. More...
|
|
void | getPoints (std::vector< PointXYZ > &pts) |
| Returns points (with x, y, z coordinates) stored in the map. More...
|
|
void | getPoints (std::vector< PointXYZNormal > &pts) |
| Returns points (with x, y, z coordinates and normal vector) stored in the map. More...
|
|
void | computeNormals () |
| Calculates normals.
|
|
Downsampler::Downsampler |
( |
double |
step | ) |
|
|
inline |
Constructs downsampler with equal step size in all directions.
- Parameters
-
Downsampler::Downsampler |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
inline |
Construct downsampler with given step sizes in x, y, z directions.
- Parameters
-
x | Step to be set in x-direction |
y | Step to be set in y-direction |
z | Step to be set in z-direction |
void Downsampler::addPoint |
( |
PointXYZ & |
p | ) |
|
|
inline |
Adds given point to the map.
- Parameters
-
Adds given points to the map specified by the bounding box.
- Parameters
-
bb | Bounding box definig the map size |
points | Points to be added |
int Downsampler::getIndex |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
|
inline |
Returns location index given by x, y, z position.
- Parameters
-
x | Position in x-direction |
y | Position in y-direction |
z | Position in z-direction |
- Returns
- Calculated index
void Downsampler::getPoints |
( |
std::vector< PointXYZ > & |
pts | ) |
|
|
inline |
Returns points (with x, y, z coordinates) stored in the map.
- Parameters
-
pts | Return parametr storing the points |
Returns points (with x, y, z coordinates and normal vector) stored in the map.
- Parameters
-
pts | Return parametr storing the points |
int Downsampler::getSize |
( |
| ) |
|
|
inline |
Returns map size.
- Returns
- Map size
bool Downsampler::isActive |
( |
int |
i | ) |
|
|
inline |
Decides whether the cell is active or not.
- Parameters
-
- Returns
- True if cell is active
-
False if cell is inactive
Sets sizes (in x, y, z direction) based on the given bounding box.
- Parameters
-
bb | Bounding box based on which to set the size |
void Downsampler::setStep |
( |
double |
step | ) |
|
|
inline |
Sets equal step size in all direction.
- Parameters
-
void Downsampler::setStep |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
inline |
Sets step sizes in x, y, z directions.
- Parameters
-
x | Step to be set in x-direction |
y | Step to be set in y-direction |
z | Step to be set in z-direction |
The documentation for this class was generated from the following file:
- /home/edita/spcl2/src/Downsampler.h