Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
vcg::Shot< S, RotationType > Class Template Reference

#include <shot.h>

List of all members.

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)
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

Detailed Description

template<class S, class RotationType = Matrix44<S>>
class vcg::Shot< S, RotationType >

Definition at line 67 of file vcg/math/shot.h.


Member Typedef Documentation

template<class S, class RotationType = Matrix44<S>>
typedef Camera<S> vcg::Shot< S, RotationType >::CameraType

Definition at line 69 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
typedef S vcg::Shot< S, RotationType >::ScalarType

Definition at line 70 of file vcg/math/shot.h.


Constructor & Destructor Documentation

template<class S, class RotationType = Matrix44<S>>
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.

template<class S, class RotationType = Matrix44<S>>
vcg::Shot< S, RotationType >::Shot ( const Camera< S > &  c) [inline]

Definition at line 95 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
vcg::Shot< S, RotationType >::Shot ( ) [inline]

Definition at line 101 of file vcg/math/shot.h.


Member Function Documentation

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.

template<class S , class RotationType >
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.

template<class S, class RotationType = Matrix44<S>>
template<class Q >
static Shot vcg::Shot< S, RotationType >::Construct ( const Shot< Q > &  b) [inline, static]

Definition at line 107 of file vcg/math/shot.h.

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::ConvertFocalToMM ( ccdwidth)

Definition at line 388 of file vcg/math/shot.h.

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.

template<class S, class RotationType = Matrix44<S>>
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.

template<class S , class RotationType >
float vcg::Shot< S, RotationType >::GetFovFromFocal ( )

GET fov from focal.

Definition at line 256 of file vcg/math/shot.h.

template<class S , class RotationType >
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewDir ( ) const

GET the viewdir.

Definition at line 232 of file vcg/math/shot.h.

template<class S , class RotationType >
const vcg::Point3< S > vcg::Shot< S, RotationType >::GetViewPoint ( ) const

GET the viewpoint.

Definition at line 242 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
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.

template<class S, class RotationType = Matrix44<S>>
bool vcg::Shot< S, RotationType >::IsValid ( ) const [inline]

Definition at line 222 of file vcg/math/shot.h.

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::LookTowards ( const vcg::Point3< S > &  z_dir,
const vcg::Point3< S > &  up 
)

look towards (dir+up)

look towards

Definition at line 293 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
void vcg::Shot< S, RotationType >::MultMatrix ( vcg::Matrix44< S >  m44) [inline]

Definition at line 209 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
void vcg::Shot< S, RotationType >::MultSimilarity ( const Similarity< S > &  s) [inline]

Definition at line 220 of file vcg/math/shot.h.

template<class S, class RotationType >
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.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::RescalingWorld ( scalefactor,
bool  adjustIntrinsics 
)

Definition at line 402 of file vcg/math/shot.h.

template<class S, class RotationType >
void vcg::Shot< S, RotationType >::SetViewPoint ( const vcg::Point3< S > &  viewpoint)

SET the viewpoint.

Definition at line 248 of file vcg/math/shot.h.

template<class S, class RotationType >
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.

template<class S, class RotationType >
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.


Member Data Documentation

template<class S, class RotationType = Matrix44<S>>
ReferenceFrame<S,RotationType> vcg::Shot< S, RotationType >::Extrinsics

Definition at line 88 of file vcg/math/shot.h.

template<class S, class RotationType = Matrix44<S>>
Camera<S> vcg::Shot< S, RotationType >::Intrinsics

Definition at line 87 of file vcg/math/shot.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:20