Public Member Functions | Public Attributes | List of all members
class_camera_projection Class Reference

The class camera projection. Provides functionalities to perform projection of an image into a polygon plane. More...

#include <camera_projection.h>

Inheritance diagram for class_camera_projection:
Inheritance graph
[legend]

Public Member Functions

 class_camera_projection (void)
 Constructor. More...
 
int compute_pixel_list_to_vertex_list (pcl::ModelCoefficientsPtr coeff)
 
void compute_projectable_pixels (void)
 
int create_image_canvas (const cv::Mat *image, std::vector< pcl::PointXY > *pts)
 Creates the image canvas pixels list and stores it to. More...
 
int create_image_canvas_for_known_camera (const cv::Mat *image, std::vector< pcl::PointXY > *pts, std::string name)
 
int create_polygon_from_pts_list (const pcl::PointCloud< pcl::PointXYZ > *vertexes, pcl::PointCloud< pcl::PointXYZ > *vertices)
 
int draw_pixels_projectable (cv::Mat *image, pcl::PointCloud< pcl::PointXYZRGB > *pc, const cv::Scalar color, int thickness=1)
 
int draw_pixels_vector (cv::Mat *image, std::vector< pcl::PointXY > *pts, const cv::Scalar color, int thickness=1)
 
int draw_pixels_vector_as_polyline (cv::Mat *image, std::vector< pcl::PointXY > *pts, const cv::Scalar color, int thickness)
 
float get_weight_for_pixel (int l, int c, double resolution_factor, float px, float py, float pz)
 
int set_image (const cv::Mat *image, ros::Time time, std::string name="none")
 Sets the image to be projected. Also computes the canvas, canny and grid masks. More...
 
int set_vertex_chull (const pcl::PointCloud< pcl::PointXYZ >::Ptr vertexes)
 
 ~class_camera_projection (void)
 The destrictor. Does nothing. More...
 
- Public Member Functions inherited from class_pinhole_projection
 class_pinhole_projection (void)
 
int compute_transformation_matrix (void)
 Computation. More...
 
 ~class_pinhole_projection (void)
 
int set_projection_plane (double a, double b, double c, double d)
 Sets and gets. More...
 
int project_vertex_to_pixel (const pcl::PointCloud< pcl::PointXYZ >::Ptr v, std::vector< pcl::PointXY > *p)
 Projections. More...
 
int project_pixel_to_vertex (const std::vector< pcl::PointXY > *p, pcl::PointCloud< pcl::PointXYZ > *v)
 
int project_pixel_with_color_to_vertex (const pcl::PointCloud< pcl::PointXYZRGB > *p, pcl::PointCloud< pcl::PointXYZRGB > *v)
 
int print_CvMat (cv::Mat *mat, const char *name)
 Prints. More...
 
- Public Member Functions inherited from class_camera_parameters
 class_camera_parameters (void)
 
int set_distortion (double k1, double k2, double p1, double p2, double k3)
 
int set_distortion_spherical (double calibration_width, double calibration_height, double cx, double cy, double param, double image_scale=1)
 
int set_extrinsic (double p11, double p12, double p13, double p14, double p21, double p22, double p23, double p24, double p31, double p32, double p33, double p34)
 sets extrinsic parameters More...
 
int set_extrinsic (tf::StampedTransform *t)
 
int set_extrinsic (tf::Transform *t)
 
int set_intrinsic (double fx, double fy, double cx, double cy)
 sets intrinsic parameters from a 3x3 CvMat More...
 
int set_width_height_num_channels (int w, int h, int nc)
 
 ~class_camera_parameters (void)
 
- Public Member Functions inherited from class_distortion_correction
 class_distortion_correction (void)
 
int correct_image_distortion (const cv::Mat *distorted, cv::Mat *corrected)
 
int correct_spherical_image_distortion (const cv::Mat *distorted, cv::Mat *corrected)
 
 ~class_distortion_correction (void)
 
- Public Member Functions inherited from class_projection_mesh
int add_vertex_to_mesh (double x, double y, double z, float rgb, float weight)
 
 class_projection_mesh (void)
 
int clear_constraints (void)
 
int clear_vertices (void)
 
int compute_face_weights (void)
 
void discoverComponent (const PT &ct, PT::Face_handle start, int index, std::list< PT::Edge > &border)
 
void discoverComponents (const PT &ct)
 
int draw_mesh_triangles (cv::Mat *image, cv::Scalar color, int thickness)
 
int export_triangles (pcl::PointCloud< pcl::PointXYZRGB > *vertex_list, std::vector< float > *face_weights)
 
int export_triangles_in_order (pcl::PointCloud< pcl::PointXYZRGB > *vertex_list, std::vector< float > *face_weights)
 
int initialize_all_faces_status (void)
 
int initialize_visited (void)
 
int print_all_vertices (void)
 
int set_constraint_polygon (std::vector< pcl::PointXY > *p)
 
 ~class_projection_mesh (void)
 

Public Attributes

std::vector< float > face_weight
 
cv::Mat image_corrected
 
cv::Mat image_gray
 
cv::Mat image_gui
 
cv::Mat image_original
 
bool is_mapped_to_mesh
 
cv::Mat mask_canny
 
cv::Mat mask_grid
 
cv::Mat mask_intersection
 
cv::Mat mask_projectable_pixels
 
pcl::PointCloud< pcl::PointXYZRGB > pixel_list
 
std::vector< pcl::PointXY > pixels_intersection
 
pcl::PointCloud< pcl::PointXYZRGB > pixels_projectable
 
std::string projection_name
 
pcl::PointCloud< pcl::PointXYZ > vertex_canvas
 
pcl::PointCloud< pcl::PointXYZ > vertex_chull
 
pcl::PointCloud< pcl::PointXYZ > vertex_intersection
 
pcl::PointCloud< pcl::PointXYZRGB > vertex_list
 
pcl::PointCloud< pcl::PointXYZRGB > vertex_projectable
 
- Public Attributes inherited from class_pinhole_projection
struct {
   double   a
 
   double   b
 
   double   c
 
   double   d
 
projection_plane
 
- Public Attributes inherited from class_camera_parameters
tf::StampedTransform camera_6dof_position
 
cv::Mat distortion
 
cv::Mat extrinsic
 
cv::Mat extrinsic_inverse
 
int height
 
cv::Mat intrinsic
 
int num_channels
 
std::vector< pcl::PointXY > pixels_canvas
 
struct {
   double   calibration_height
 
   double   calibration_width
 
   double   cx
 
   double   cy
 
   double   param
 
   double   scale
 
spherical_distortion_params
 
ros::Time stamp
 
cv::Mat transformation
 
int width
 
- Public Attributes inherited from class_projection_mesh
PT mesh
 

Detailed Description

The class camera projection. Provides functionalities to perform projection of an image into a polygon plane.

Definition at line 69 of file camera_projection.h.

Constructor & Destructor Documentation

class_camera_projection::class_camera_projection ( void  )
inline

Constructor.

Definition at line 79 of file camera_projection.h.

class_camera_projection::~class_camera_projection ( void  )
inline

The destrictor. Does nothing.

Definition at line 84 of file camera_projection.h.

Member Data Documentation

std::vector<float> class_camera_projection::face_weight

Definition at line 146 of file camera_projection.h.

cv::Mat class_camera_projection::image_corrected

Definition at line 123 of file camera_projection.h.

cv::Mat class_camera_projection::image_gray

Definition at line 127 of file camera_projection.h.

cv::Mat class_camera_projection::image_gui

Definition at line 124 of file camera_projection.h.

cv::Mat class_camera_projection::image_original

Definition at line 122 of file camera_projection.h.

bool class_camera_projection::is_mapped_to_mesh

Definition at line 148 of file camera_projection.h.

cv::Mat class_camera_projection::mask_canny

Definition at line 128 of file camera_projection.h.

cv::Mat class_camera_projection::mask_grid

Definition at line 129 of file camera_projection.h.

cv::Mat class_camera_projection::mask_intersection

Definition at line 130 of file camera_projection.h.

cv::Mat class_camera_projection::mask_projectable_pixels

Definition at line 131 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZRGB> class_camera_projection::pixel_list

Definition at line 144 of file camera_projection.h.

std::vector<pcl::PointXY> class_camera_projection::pixels_intersection

Definition at line 137 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZRGB> class_camera_projection::pixels_projectable

Definition at line 138 of file camera_projection.h.

std::string class_camera_projection::projection_name

Definition at line 121 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZ> class_camera_projection::vertex_canvas

Definition at line 134 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZ> class_camera_projection::vertex_chull

Definition at line 135 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZ> class_camera_projection::vertex_intersection

Definition at line 136 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZRGB> class_camera_projection::vertex_list

Definition at line 145 of file camera_projection.h.

pcl::PointCloud<pcl::PointXYZRGB> class_camera_projection::vertex_projectable

Definition at line 139 of file camera_projection.h.


The documentation for this class was generated from the following files:


polygon_primitives_extraction
Author(s): Miguel Oliveira
autogenerated on Mon Mar 2 2015 01:32:42