cgv
Loading...
Searching...
No Matches
cgv::math::pinhole< T > Class Template Reference

class to store and use a pinhole camera model without distortion but with support for skew and different focal lengths in x and y direction More...

#include <camera.h>

Inheritance diagram for cgv::math::pinhole< T >:
cgv::math::distorted_pinhole< T > cgv::math::camera< T >

Public Member Functions

 pinhole ()
 standard constructor
 
template<typename S >
 pinhole (const pinhole< S > &ph)
 copy constructor
 
fmat< T, 2, 3 > get_camera_matrix () const
 
fmat< T, 3, 3 > get_squared_camera_matrix () const
 
fmat< T, 4, 4 > get_homogeneous_camera_matrix () const
 
fvec< T, 2 > image_to_pixel_coordinates (const fvec< T, 2 > &x) const
 
fvec< T, 2 > pixel_to_image_coordinates (const fvec< T, 2 > &p) const
 
bool estimate_parameters (const std::vector< fmat< T, 3, 3 > > &Hs, bool quadratic_pixels=true, bool no_skew=true)
 

Public Attributes

unsigned w
 
unsigned h
 
fvec< T, 2 > s
 
fvec< T, 2 > c
 
skew = 0.0f
 

Detailed Description

template<typename T>
class cgv::math::pinhole< T >

class to store and use a pinhole camera model without distortion but with support for skew and different focal lengths in x and y direction

Definition at line 270 of file camera.h.

Constructor & Destructor Documentation

◆ pinhole() [1/2]

template<typename T >
cgv::math::pinhole< T >::pinhole ( )
inline

standard constructor

Definition at line 282 of file camera.h.

◆ pinhole() [2/2]

template<typename T >
template<typename S >
cgv::math::pinhole< T >::pinhole ( const pinhole< S > &  ph)
inline

copy constructor

Definition at line 285 of file camera.h.

Member Function Documentation

◆ estimate_parameters()

template<typename T >
bool cgv::math::pinhole< T >::estimate_parameters ( const std::vector< fmat< T, 3, 3 > > &  Hs,
bool  quadratic_pixels = true,
bool  no_skew = true 
)
inline

Definition at line 308 of file camera.h.

◆ get_camera_matrix()

template<typename T >
fmat< T, 2, 3 > cgv::math::pinhole< T >::get_camera_matrix ( ) const
inline

Definition at line 292 of file camera.h.

◆ get_homogeneous_camera_matrix()

template<typename T >
fmat< T, 4, 4 > cgv::math::pinhole< T >::get_homogeneous_camera_matrix ( ) const
inline

Definition at line 298 of file camera.h.

◆ get_squared_camera_matrix()

template<typename T >
fmat< T, 3, 3 > cgv::math::pinhole< T >::get_squared_camera_matrix ( ) const
inline

Definition at line 295 of file camera.h.

◆ image_to_pixel_coordinates()

template<typename T >
fvec< T, 2 > cgv::math::pinhole< T >::image_to_pixel_coordinates ( const fvec< T, 2 > &  x) const
inline

Definition at line 301 of file camera.h.

◆ pixel_to_image_coordinates()

template<typename T >
fvec< T, 2 > cgv::math::pinhole< T >::pixel_to_image_coordinates ( const fvec< T, 2 > &  p) const
inline

Definition at line 304 of file camera.h.

Member Data Documentation

◆ c

template<typename T >
fvec<T,2> cgv::math::pinhole< T >::c

Definition at line 278 of file camera.h.

◆ h

template<typename T >
unsigned cgv::math::pinhole< T >::h

Definition at line 274 of file camera.h.

◆ s

template<typename T >
fvec<T,2> cgv::math::pinhole< T >::s

Definition at line 276 of file camera.h.

◆ skew

template<typename T >
T cgv::math::pinhole< T >::skew = 0.0f

Definition at line 280 of file camera.h.

◆ w

template<typename T >
unsigned cgv::math::pinhole< T >::w

Definition at line 274 of file camera.h.


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