40 namespace visualization
42 template<
typename Po
intT>
void
45 Eigen::Matrix4d proj,
view;
52 template<
typename Po
intT>
void
55 Eigen::Vector4d pte (pt.x, pt.y, pt.z, 1);
56 window_cord = composite_mat * pte;
57 window_cord /=window_cord (3);
58 window_cord[0] = (window_cord[0]+1.0) / 2.0*
window_size[0];
59 window_cord[1] = (window_cord[1]+1.0) / 2.0*
window_size[1];
60 window_cord[2] = (window_cord[2]+1.0) / 2.0;
void cvtWindowCoordinates(const PointT &pt, Eigen::Vector4d &window_cord) const
Converts point to window coordinates.
void computeViewMatrix(Eigen::Matrix4d &view_mat) const
Computes View matrix for Camera (Based on gluLookAt)
double view[3]
Up vector of the camera.
void computeProjectionMatrix(Eigen::Matrix4d &proj) const
Computes Projection Matrix for Camera.
A point structure representing Euclidean xyz coordinates, and the RGB color.