Class to render synthetic views of a 3D mesh using a tesselated sphere NOTE: This class should replace renderViewTesselatedSphere from pcl::visualization. Some extensions are planned in the near future to this class like removal of duplicated views for symmetrical objects, generation of RGB synthetic clouds when RGB available on mesh, etc. More...
#include <render_views_tesselated_sphere.h>
Public Member Functions | |
void | addModelFromPolyData (vtkSmartPointer< vtkPolyData > polydata) |
void | generateViews () |
void | getEntropies (std::vector< float > &entropies) |
void | getPoses (std::vector< Eigen::Matrix4f, Eigen::aligned_allocator< Eigen::Matrix4f > > &poses) |
void | getViews (std::vector< pcl::PointCloud< pcl::PointXYZ >::Ptr > &views) |
RenderViewsTesselatedSphere () | |
void | setComputeEntropies (bool compute) |
void | setRadiusSphere (float radius) |
void | setResolution (int res) |
void | setTesselationLevel (int level) |
void | setUseVertices (bool use) |
void | setViewAngle (float angle) |
Private Attributes | |
bool | compute_entropy_ |
std::vector< float > | entropies_ |
std::vector< pcl::PointCloud < pcl::PointXYZ >::Ptr > | generated_views_ |
vtkSmartPointer< vtkPolyData > | polydata_ |
std::vector< Eigen::Matrix4f, Eigen::aligned_allocator < Eigen::Matrix4f > > | poses_ |
float | radius_sphere_ |
int | resolution_ |
int | tesselation_level_ |
bool | use_vertices_ |
float | view_angle_ |
Class to render synthetic views of a 3D mesh using a tesselated sphere NOTE: This class should replace renderViewTesselatedSphere from pcl::visualization. Some extensions are planned in the near future to this class like removal of duplicated views for symmetrical objects, generation of RGB synthetic clouds when RGB available on mesh, etc.
Definition at line 26 of file render_views_tesselated_sphere.h.
Definition at line 41 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::addModelFromPolyData | ( | vtkSmartPointer< vtkPolyData > | polydata | ) | [inline] |
Definition at line 110 of file render_views_tesselated_sphere.h.
Definition at line 30 of file render_views_tesselated_sphere.cpp.
void pcl::apps::RenderViewsTesselatedSphere::getEntropies | ( | std::vector< float > & | entropies | ) | [inline] |
Definition at line 142 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::getPoses | ( | std::vector< Eigen::Matrix4f, Eigen::aligned_allocator< Eigen::Matrix4f > > & | poses | ) | [inline] |
Definition at line 124 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::getViews | ( | std::vector< pcl::PointCloud< pcl::PointXYZ >::Ptr > & | views | ) | [inline] |
Definition at line 133 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setComputeEntropies | ( | bool | compute | ) | [inline] |
Definition at line 83 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setRadiusSphere | ( | float | radius | ) | [inline] |
Definition at line 74 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setResolution | ( | int | res | ) | [inline] |
Definition at line 55 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setTesselationLevel | ( | int | level | ) | [inline] |
Definition at line 92 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setUseVertices | ( | bool | use | ) | [inline] |
Definition at line 65 of file render_views_tesselated_sphere.h.
void pcl::apps::RenderViewsTesselatedSphere::setViewAngle | ( | float | angle | ) | [inline] |
Definition at line 101 of file render_views_tesselated_sphere.h.
bool pcl::apps::RenderViewsTesselatedSphere::compute_entropy_ [private] |
Definition at line 37 of file render_views_tesselated_sphere.h.
std::vector<float> pcl::apps::RenderViewsTesselatedSphere::entropies_ [private] |
Definition at line 31 of file render_views_tesselated_sphere.h.
std::vector<pcl::PointCloud<pcl::PointXYZ>::Ptr> pcl::apps::RenderViewsTesselatedSphere::generated_views_ [private] |
Definition at line 30 of file render_views_tesselated_sphere.h.
vtkSmartPointer<vtkPolyData> pcl::apps::RenderViewsTesselatedSphere::polydata_ [private] |
Definition at line 38 of file render_views_tesselated_sphere.h.
std::vector<Eigen::Matrix4f, Eigen::aligned_allocator<Eigen::Matrix4f> > pcl::apps::RenderViewsTesselatedSphere::poses_ [private] |
Definition at line 29 of file render_views_tesselated_sphere.h.
float pcl::apps::RenderViewsTesselatedSphere::radius_sphere_ [private] |
Definition at line 36 of file render_views_tesselated_sphere.h.
int pcl::apps::RenderViewsTesselatedSphere::resolution_ [private] |
Definition at line 32 of file render_views_tesselated_sphere.h.
Definition at line 33 of file render_views_tesselated_sphere.h.
bool pcl::apps::RenderViewsTesselatedSphere::use_vertices_ [private] |
Definition at line 34 of file render_views_tesselated_sphere.h.
float pcl::apps::RenderViewsTesselatedSphere::view_angle_ [private] |
Definition at line 35 of file render_views_tesselated_sphere.h.