vcg::Camera< S > Class Template Reference

#include <camera.h>

List of all members.

Public Types

typedef S ScalarType

Public Member Functions

 Camera ()
vcg::Point2< S > DistortedToUndistorted (vcg::Point2< S > d) const
 transforms a distorted 2D camera plane point in an undistorted 2D camera plane point
void GetFrustum (S &sx, S &dx, S &bt, S &tp, S &nr)
 returns the frustum
bool IsOrtho () const
vcg::Point2< S > LocalTo_0_1 (const vcg::Point2< S > &p) const
 transforms local plane coords to [0 1] coords
vcg::Point2< S > LocalTo_neg1_1 (const vcg::Point2< S > &p) const
 transforms local plane coords to [-1 1] coords
vcg::Point2< S > LocalToViewportPx (const vcg::Point2< S > &p) const
 transforms local plane coords to vieport (pixel) coords
vcg::Point2< S > Neg1_1ToViewportPx (const vcg::Point2< S > &p) const
 transforms [-1 1] coords to vieport (pixel) coords MICHELE IO
vcg::Point2< S > Project (const vcg::Point3< S > &p) const
 project a point from 3d CAMERA space to the camera local plane
void SetCavalieri (S sx, S dx, S bt, S tp, S Focal, vcg::Point2< int > Viewport)
 set the camera specifying the cavalieri view
void SetFrustum (S dx, S sx, S bt, S tp, S Focal, vcg::Point2< int > Viewport)
 set the camera specifying the frustum view
void SetIsometric (S sx, S dx, S bt, S tp, S Focal, vcg::Point2< int > Viewport)
 set the camera specifying the isometric view
void SetOrtho (S dist)
 Type of camera: PERSPECTIVE,ORTHO,ISOMETRIC,CAVALIERI.
void SetPerspective (S AngleDeg, S AspectRatio, S Focal, vcg::Point2< int > Viewport)
 set the camera specifying the perspecive view
vcg::Point2< S > UndistortedToDistorted (vcg::Point2< S > u) const
 transforms an undistorted 2D camera plane point in a distorted 2D camera plane point
vcg::Point3< S > UnProject (const vcg::Point2< S > &p, const S &d) const
 unproject a point from the camera local plane (plus depth) to 3d CAMERA space
vcg::Point2< S > ViewportPxTo_neg1_1 (const vcg::Point2< S > &p) const
 transforms vieport (pixel) coords to [-1 1] coords
vcg::Point2< S > ViewportPxToLocal (const vcg::Point2< S > &p) const
 transforms vieport (pixel) coords to local plane coords

Public Attributes

int cameraType
 1st & 2nd order radial lens distortion coefficient (only the first 2 terms are used)
Point2< S > CenterPx
 Dimension in mm of a single pixel.
Point2< S > DistorCenterPx
 Position of the projection of the focal center on the image plane. Expressed in pixels.
ScalarType FocalMm
k [4]
 Position of the radial distortion center on the image plane in pixels.
Point2< S > PixelSizeMm
 Dimension of the Image Plane (in pixels).
Point2< int > ViewportPx
 Focal Distance: the distance between focal center and image plane. Expressed in mm.

Detailed Description

template<class S>
class vcg::Camera< S >

Definition at line 148 of file vcg/math/camera.h.


Member Typedef Documentation

template<class S>
typedef S vcg::Camera< S >::ScalarType

Definition at line 151 of file vcg/math/camera.h.


Constructor & Destructor Documentation

template<class S>
vcg::Camera< S >::Camera (  )  [inline]

Definition at line 153 of file vcg/math/camera.h.


Member Function Documentation

template<class S>
vcg::Point2< S > vcg::Camera< S >::DistortedToUndistorted ( vcg::Point2< S >  d  )  const [inline]

transforms a distorted 2D camera plane point in an undistorted 2D camera plane point

Definition at line 417 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::GetFrustum ( S &  sx,
S &  dx,
S &  bt,
S &  tp,
S &  nr 
) [inline]

returns the frustum

Definition at line 488 of file vcg/math/camera.h.

template<class S>
bool vcg::Camera< S >::IsOrtho (  )  const [inline]

Definition at line 182 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::LocalTo_0_1 ( const vcg::Point2< S > &  p  )  const [inline]

transforms local plane coords to [0 1] coords

transforms local plane coords to [0-1] coords

Definition at line 333 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::LocalTo_neg1_1 ( const vcg::Point2< S > &  p  )  const [inline]

transforms local plane coords to [-1 1] coords

Definition at line 343 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::LocalToViewportPx ( const vcg::Point2< S > &  p  )  const [inline]

transforms local plane coords to vieport (pixel) coords

Definition at line 291 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::Neg1_1ToViewportPx ( const vcg::Point2< S > &  p  )  const [inline]

transforms [-1 1] coords to vieport (pixel) coords MICHELE IO

Definition at line 323 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::Project ( const vcg::Point3< S > &  p  )  const [inline]

project a point from 3d CAMERA space to the camera local plane

project a point from 3d CAMERA space to the camera's plane]

Definition at line 243 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::SetCavalieri ( sx,
dx,
bt,
tp,
Focal,
vcg::Point2< int >  Viewport 
) [inline]

set the camera specifying the cavalieri view

Definition at line 472 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::SetFrustum ( dx,
sx,
bt,
tp,
Focal,
vcg::Point2< int >  Viewport 
) [inline]

set the camera specifying the frustum view

Definition at line 447 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::SetIsometric ( sx,
dx,
bt,
tp,
Focal,
vcg::Point2< int >  Viewport 
) [inline]

set the camera specifying the isometric view

Definition at line 480 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::SetOrtho ( dist  )  [inline]

Type of camera: PERSPECTIVE,ORTHO,ISOMETRIC,CAVALIERI.

Definition at line 176 of file vcg/math/camera.h.

template<class S>
void vcg::Camera< S >::SetPerspective ( AngleDeg,
AspectRatio,
Focal,
vcg::Point2< int >  Viewport 
) [inline]

set the camera specifying the perspecive view

set the camera specifying the perspective view

Definition at line 434 of file vcg/math/camera.h.

template<class Scalar>
vcg::Point2< Scalar > vcg::Camera< Scalar >::UndistortedToDistorted ( vcg::Point2< Scalar >  u  )  const [inline]

transforms an undistorted 2D camera plane point in a distorted 2D camera plane point

Definition at line 353 of file vcg/math/camera.h.

template<class S>
vcg::Point3< S > vcg::Camera< S >::UnProject ( const vcg::Point2< S > &  p,
const S &  d 
) const [inline]

unproject a point from the camera local plane (plus depth) to 3d CAMERA space

unproject a point from the camera 2d plane [-1,-1]x[1,1] (plus depth) to 3d CAMERA space

Definition at line 268 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::ViewportPxTo_neg1_1 ( const vcg::Point2< S > &  p  )  const [inline]

transforms vieport (pixel) coords to [-1 1] coords

Definition at line 313 of file vcg/math/camera.h.

template<class S>
vcg::Point2< S > vcg::Camera< S >::ViewportPxToLocal ( const vcg::Point2< S > &  p  )  const [inline]

transforms vieport (pixel) coords to local plane coords

Definition at line 303 of file vcg/math/camera.h.


Member Data Documentation

template<class S>
int vcg::Camera< S >::cameraType

1st & 2nd order radial lens distortion coefficient (only the first 2 terms are used)

Definition at line 174 of file vcg/math/camera.h.

template<class S>
Point2<S> vcg::Camera< S >::CenterPx

Dimension in mm of a single pixel.

Definition at line 168 of file vcg/math/camera.h.

template<class S>
Point2<S> vcg::Camera< S >::DistorCenterPx

Position of the projection of the focal center on the image plane. Expressed in pixels.

Definition at line 170 of file vcg/math/camera.h.

template<class S>
ScalarType vcg::Camera< S >::FocalMm

Definition at line 165 of file vcg/math/camera.h.

template<class S>
S vcg::Camera< S >::k[4]

Position of the radial distortion center on the image plane in pixels.

Definition at line 171 of file vcg/math/camera.h.

template<class S>
Point2<S> vcg::Camera< S >::PixelSizeMm

Dimension of the Image Plane (in pixels).

Definition at line 167 of file vcg/math/camera.h.

template<class S>
Point2<int> vcg::Camera< S >::ViewportPx

Focal Distance: the distance between focal center and image plane. Expressed in mm.

Definition at line 166 of file vcg/math/camera.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:58 2013