#include <shot.h>
Classes | |
class | ReferenceFrame |
Public Types | |
typedef Camera< S > | CameraType |
typedef S | ScalarType |
Public Member Functions | |
void | ApplyRigidTransformation (const Matrix44< S > &M) |
Given a pure roto-translation (4-by-4) modifies the reference frame accordingly. | |
void | ApplySimilarity (Matrix44< S > M) |
Given a similarity transformation such that p' = s R p + T modifies the reference frame accordingly. | |
void | ApplySimilarity (const Similarity< S > &Sim) |
Given a similarity transformation such that p' = s R p + T modifies the reference frame accordingly. | |
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 (do not confuse with the Shot reference frame) to world coordinates | |
vcg::Point3< S > | ConvertCameraToWorldCoordinates_Substitute (const vcg::Point3< S > &p) const |
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) | |
void | ConvertFocalToMM (S ccdwidth) |
vcg::Point3< S > | ConvertWorldToCameraCoordinates (const vcg::Point3< S > &p) const |
convert a 3d point from world to camera coordinates (do not confuse with the Shot reference frame) | |
S | Depth (const vcg::Point3< S > &p) const |
returns the distance of point p from camera plane (z depth), required for unprojection operation | |
Matrix44< S > | GetExtrinsicsToWorldMatrix () const |
Returns the (4-by-4) matrix M such that 3dpoint_in_world_coordinates = M * 3dpoint_in_local_coordinates. | |
float | GetFovFromFocal () |
GET fov from focal. | |
const vcg::Point3< S > | GetViewDir () const |
GET the viewdir. | |
const vcg::Point3< S > | GetViewPoint () const |
GET the viewpoint. | |
Matrix44< S > | GetWorldToExtrinsicsMatrix () const |
Returns the (4-by-4) matrix M such that 3dpoint_in_local_coordinates = M * 3dpoint_in_world_coordinates. | |
bool | IsValid () const |
void | LookAt (const vcg::Point3< S > &point, const vcg::Point3< S > &up) |
look at (point+up) | |
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 | 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 (the value returned is in pixels) | |
void | RescalingWorld (S scalefactor, bool adjustIntrinsics) |
void | SetViewPoint (const vcg::Point3< S > &viewpoint) |
SET the viewpoint. | |
Shot (const Camera< S > &i, const ReferenceFrame< S, RotationType > &e) | |
Shot (const Camera< S > &c) | |
Shot () | |
vcg::Point3< S > | UnProject (const vcg::Point2< S > &p, const S &d) const |
inverse projection from 2d camera viewport (in pixels) to 3d world coordinates (it requires the original depth of the projected point) | |
vcg::Point3< S > | UnProject_Substitute (const vcg::Point2< S > &p, const S &d) const |
Static Public Member Functions | |
template<class Q > | |
static Shot | Construct (const Shot< Q > &b) |
Public Attributes | |
ReferenceFrame< S, RotationType > | Extrinsics |
Camera< S > | Intrinsics |
Definition at line 67 of file vcg/math/shot.h.
typedef Camera<S> vcg::Shot< S, RotationType >::CameraType |
Definition at line 69 of file vcg/math/shot.h.
typedef S vcg::Shot< S, RotationType >::ScalarType |
Definition at line 70 of file vcg/math/shot.h.
vcg::Shot< S, RotationType >::Shot | ( | const Camera< S > & | i, |
const ReferenceFrame< S, RotationType > & | e | ||
) | [inline] |
Definition at line 89 of file vcg/math/shot.h.
vcg::Shot< S, RotationType >::Shot | ( | const Camera< S > & | c | ) | [inline] |
Definition at line 95 of file vcg/math/shot.h.
Definition at line 101 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::ApplyRigidTransformation | ( | const Matrix44< S > & | M | ) |
Given a pure roto-translation (4-by-4) modifies the reference frame accordingly.
Given a pure roto-translation matrix (4-by-4) modify the reference frame accordingly.
Definition at line 427 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::ApplySimilarity | ( | Matrix44< S > | M | ) |
Given a similarity transformation such that p' = s R p + T modifies the reference frame accordingly.
Given a similarity transformation modifies the reference frame accordingly.
Definition at line 441 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::ApplySimilarity | ( | const Similarity< S > & | Sim | ) |
Given a similarity transformation such that p' = s R p + T modifies the reference frame accordingly.
Given a similarity transformation modifies the reference frame accordingly.
Definition at line 468 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::Axis | ( | const int & | i | ) | const |
GET the i-th axis of the coordinate system of the camera.
Definition at line 266 of file vcg/math/shot.h.
static Shot vcg::Shot< S, RotationType >::Construct | ( | const Shot< Q > & | b | ) | [inline, static] |
Definition at line 107 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates | ( | const vcg::Point3< S > & | p | ) | const |
convert a 3d point from camera (do not confuse with the Shot reference frame) to world coordinates
convert a 3d point from camera coordinates (do not confuse with the Shot reference frame) to world coordinates
Definition at line 322 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertCameraToWorldCoordinates_Substitute | ( | const vcg::Point3< S > & | p | ) | const |
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 334 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::ConvertFocalToMM | ( | S | ccdwidth | ) |
Definition at line 388 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::ConvertWorldToCameraCoordinates | ( | const vcg::Point3< S > & | p | ) | const |
convert a 3d point from world to camera coordinates (do not confuse with the Shot reference frame)
Definition at line 311 of file vcg/math/shot.h.
S vcg::Shot< S, RotationType >::Depth | ( | const vcg::Point3< S > & | p | ) | const |
returns the distance of point p from camera plane (z depth), required for unprojection operation
Definition at line 378 of file vcg/math/shot.h.
Matrix44<S> vcg::Shot< S, RotationType >::GetExtrinsicsToWorldMatrix | ( | ) | const [inline] |
Returns the (4-by-4) matrix M such that 3dpoint_in_world_coordinates = M * 3dpoint_in_local_coordinates.
Definition at line 191 of file vcg/math/shot.h.
float vcg::Shot< S, RotationType >::GetFovFromFocal | ( | ) |
GET fov from focal.
Definition at line 256 of file vcg/math/shot.h.
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewDir | ( | ) | const |
GET the viewdir.
Definition at line 232 of file vcg/math/shot.h.
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewPoint | ( | ) | const |
GET the viewpoint.
Definition at line 242 of file vcg/math/shot.h.
Matrix44<S> vcg::Shot< S, RotationType >::GetWorldToExtrinsicsMatrix | ( | ) | const [inline] |
Returns the (4-by-4) matrix M such that 3dpoint_in_local_coordinates = M * 3dpoint_in_world_coordinates.
Definition at line 199 of file vcg/math/shot.h.
bool vcg::Shot< S, RotationType >::IsValid | ( | ) | const [inline] |
Definition at line 222 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::LookAt | ( | const vcg::Point3< S > & | point, |
const vcg::Point3< S > & | up | ||
) |
look at (point+up)
Definition at line 276 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 | ||
) |
look at (opengl-like)
Definition at line 283 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::LookTowards | ( | const vcg::Point3< S > & | z_dir, |
const vcg::Point3< S > & | up | ||
) |
void vcg::Shot< S, RotationType >::MultMatrix | ( | vcg::Matrix44< S > | m44 | ) | [inline] |
Definition at line 209 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::MultSimilarity | ( | const Similarity< S > & | s | ) | [inline] |
Definition at line 220 of file vcg/math/shot.h.
vcg::Point2< S > vcg::Shot< S, RotationType >::Project | ( | const vcg::Point3< S > & | p | ) | const |
project a 3d point from world coordinates to 2d camera viewport (the value returned is in pixels)
project a 3d point from world coordinates to 2d camera viewport (the value returned is in pixel)
Definition at line 346 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::RescalingWorld | ( | S | scalefactor, |
bool | adjustIntrinsics | ||
) |
Definition at line 402 of file vcg/math/shot.h.
void vcg::Shot< S, RotationType >::SetViewPoint | ( | const vcg::Point3< S > & | viewpoint | ) |
SET the viewpoint.
Definition at line 248 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject | ( | const vcg::Point2< S > & | p, |
const S & | d | ||
) | const |
inverse projection from 2d camera viewport (in pixels) to 3d world coordinates (it requires the original depth of the projected point)
inverse projection from 2d camera viewport (in pixels) to 3d world coordinates (it requires the original depth of the point to unproject)
Definition at line 356 of file vcg/math/shot.h.
vcg::Point3< S > vcg::Shot< S, RotationType >::UnProject_Substitute | ( | const vcg::Point2< S > & | p, |
const S & | d | ||
) | const |
Definition at line 368 of file vcg/math/shot.h.
ReferenceFrame<S,RotationType> vcg::Shot< S, RotationType >::Extrinsics |
Definition at line 88 of file vcg/math/shot.h.
Camera<S> vcg::Shot< S, RotationType >::Intrinsics |
Definition at line 87 of file vcg/math/shot.h.