#include <shot.h>
Classes | |
class | ReferenceFrame |
Public Types | |
typedef Camera< S > | CameraType |
typedef S | ScalarType |
Public Member Functions | |
vcg::Point3< S > | Axis (const int &i) const |
GET the i-th axis of the coordinate system of the camera. | |
vcg::Point3< S > | ConvertCameraToWorldCoordinates (const vcg::Point3< S > &p) const |
convert a 3d point from camera to world coordinates | |
vcg::Point3< S > | ConvertCameraToWorldCoordinates_Substitute (const vcg::Point3< S > &p) const |
vcg::Point3< S > | ConvertWorldToCameraCoordinates (const vcg::Point3< S > &p) const |
convert a 3d point from world to camera coordinates | |
S | Depth (const vcg::Point3< S > &p) const |
returns distance of point p from camera plane (z depth), used for unprojection | |
Matrix44< S > | GetExtrinsicsToWorldMatrix () const |
const vcg::Point3< S > | GetViewPoint () const |
GET the viewpoint. | |
Matrix44< S > | GetWorldToExtrinsicsMatrix () const |
bool | IsValid () const |
void | LookAt (const S &eye_x, const S &eye_y, const S &eye_z, const S &at_x, const S &at_y, const S &at_z, const S &up_x, const S &up_y, const S &up_z) |
look at (opengl-like) | |
void | LookAt (const vcg::Point3< S > &point, const vcg::Point3< S > &up) |
look at (point+up) | |
void | LookTowards (const vcg::Point3< S > &z_dir, const vcg::Point3< S > &up) |
look towards (dir+up) | |
void | MultMatrix (vcg::Matrix44< S > m44) |
void | MultSimilarity (const Similarity< S > &s) |
vcg::Point2< S > | Project (const vcg::Point3< S > &p) const |
project a 3d point from world coordinates to 2d camera viewport (pixel) | |
void | SetViewPoint (const vcg::Point3< S > &viewpoint) |
SET the viewpoint. | |
Shot () | |
Shot (Camera< S > c) | |
vcg::Point3< S > | UnProject (const vcg::Point2< S > &p, const S &d) const |
inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates | |
vcg::Point3< S > | UnProject_Substitute (const vcg::Point2< S > &p, const S &d) const |
Public Attributes | |
ReferenceFrame< S, RotationType > | Extrinsics |
Camera< S > | Intrinsics |
Definition at line 130 of file vcg/math/shot.h.
typedef Camera<S> vcg::Shot< S, RotationType >::CameraType |
Definition at line 132 of file vcg/math/shot.h.
typedef S vcg::Shot< S, RotationType >::ScalarType |
Definition at line 133 of file vcg/math/shot.h.
vcg::Shot< S, RotationType >::Shot | ( | Camera< S > | c | ) | [inline] |
Definition at line 152 of file vcg/math/shot.h.
Definition at line 158 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::Axis | ( | const int & | i | ) | const [inline] |
GET the i-th axis of the coordinate system of the camera.
Definition at line 269 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates | ( | const vcg::Point3< S > & | p | ) | const [inline] |
convert a 3d point from camera to world coordinates
Definition at line 325 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates_Substitute | ( | const vcg::Point3< S > & | p | ) | const [inline] |
convert a 3d point from camera to world coordinates, uses inverse instead of trranspose for non-exactly-rigid rotation matrices (such as calculated by tsai and garcia)
Definition at line 338 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertWorldToCameraCoordinates | ( | const vcg::Point3< S > & | p | ) | const [inline] |
convert a 3d point from world to camera coordinates
Definition at line 314 of file vcg/math/shot.h.
S vcg::Shot< S, RotationType >::Depth | ( | const vcg::Point3< S > & | p | ) | const [inline] |
returns distance of point p from camera plane (z depth), used for unprojection
Definition at line 381 of file vcg/math/shot.h.
Matrix44<S> vcg::Shot< S, RotationType >::GetExtrinsicsToWorldMatrix | ( | ) | const [inline] |
Definition at line 213 of file vcg/math/shot.h.
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewPoint | ( | ) | const [inline] |
GET the viewpoint.
Definition at line 255 of file vcg/math/shot.h.
Matrix44<S> vcg::Shot< S, RotationType >::GetWorldToExtrinsicsMatrix | ( | ) | const [inline] |
Definition at line 222 of file vcg/math/shot.h.
bool vcg::Shot< S, RotationType >::IsValid | ( | ) | const [inline] |
Definition at line 243 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::LookAt | ( | const S & | eye_x, | |
const S & | eye_y, | |||
const S & | eye_z, | |||
const S & | at_x, | |||
const S & | at_y, | |||
const S & | at_z, | |||
const S & | up_x, | |||
const S & | up_y, | |||
const S & | up_z | |||
) | [inline] |
look at (opengl-like)
Definition at line 286 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::LookAt | ( | const vcg::Point3< S > & | point, | |
const vcg::Point3< S > & | up | |||
) | [inline] |
look at (point+up)
Definition at line 279 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::LookTowards | ( | const vcg::Point3< S > & | z_dir, | |
const vcg::Point3< S > & | up | |||
) | [inline] |
void vcg::Shot< S, RotationType >::MultMatrix | ( | vcg::Matrix44< S > | m44 | ) | [inline] |
Definition at line 231 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::MultSimilarity | ( | const Similarity< S > & | s | ) | [inline] |
Definition at line 241 of file vcg/math/shot.h.
vcg::Point2< S > vcg::Shot< S, RotationType >::Project | ( | const vcg::Point3< S > & | p | ) | const [inline] |
project a 3d point from world coordinates to 2d camera viewport (pixel)
Definition at line 350 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::SetViewPoint | ( | const vcg::Point3< S > & | viewpoint | ) | [inline] |
SET the viewpoint.
Definition at line 261 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject | ( | const vcg::Point2< S > & | p, | |
const S & | d | |||
) | const [inline] |
inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates
Definition at line 360 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject_Substitute | ( | const vcg::Point2< S > & | p, | |
const S & | d | |||
) | const [inline] |
inverse projection from 2d camera viewport (pixel) + Zdepth to 3d world coordinates, uses inverse instead of trranspose for non-exactly-rigid rotation matrices (such as calculated by tsai and garcia)
Definition at line 371 of file vcg/math/shot.h.
ReferenceFrame<S,RotationType> vcg::Shot< S, RotationType >::Extrinsics |
Definition at line 149 of file vcg/math/shot.h.
Camera<S> vcg::Shot< S, RotationType >::Intrinsics |
Definition at line 148 of file vcg/math/shot.h.