Templates -- Meow  1.1.2
不能,也不應該先編譯成obj-file的templates
meow::Camera< Pixel > Class Template Reference

Camera. More...

#include "Camera.h"

Inheritance diagram for meow::Camera< Pixel >:
meow::ObjBase

Public Types

typedef IdentityPoints< int,
double
FixedPoints2D
 

Public Member Functions

 Camera ()
 constructor More...
 
 Camera (Camera const &b)
 copy constructor More...
 
 ~Camera ()
 destructor More...
 
CameracopyFrom (Camera const &b)
 複製資料 More...
 
CamerareferenceFrom (Camera const &b)
 參照 More...
 
Photo< Pixel > const & photo () const
 取得 photo More...
 
Photo< Pixel > & photoGet ()
 取得 photo (non-constant) More...
 
Photo< Pixel > const & photo (Photo< Pixel > const &pho)
 設定 photo More...
 
Rotation3D< double > const & rotation () const
 取得rotation More...
 
Rotation3D< double > & rotationGet ()
 取得rotation (non-constant) More...
 
Rotation3D< double > const & rotation (Rotation3D< double > const &rot)
 設定rotation More...
 
FixedPoints2D const & fixedPoints2D () const
 取得所有FixedPoint More...
 
FixedPoints2DfixedPoints2DGet () const
 取得所有FixedPoint(non-constant reference) More...
 
FixedPoints2D const & fixedPoints2D (FixedPoints2D const &fps2d) const
 設定FixedPoint More...
 
Vector< doublefixedPoints2D (int i)
 取得編號為i的fixed points 2d More...
 
bool inside (Vector3D< double > p) const
 詢問某點是否在底片範圍內 More...
 
Pixel color (Vector3D< double > p) const
 取得底片color More...
 
Cameraoperator= (Camera const &b)
 same as copyFrom(b) More...
 
bool write (FILE *f, bool bin, unsigned int fg) const
 將資料寫入檔案 More...
 
bool read (FILE *f, bool bin, unsigned int fg)
 將資料讀入 More...
 
ObjBasecreate () const
 new一個自己 More...
 
ObjBasecopyFrom (ObjBase const *b)
 複製資料 More...
 
char const * ctype () const
 回傳class的type More...
 
std::string type () const
 回傳class的type More...
 
- Public Member Functions inherited from meow::ObjBase
virtual ~ObjBase ()
 

Static Public Member Functions

static double boundleAdjustment2D (std::vector< Camera > *cs, double threshold)
 將數台camera用fixed points做boundle adjustment More...
 
- Static Public Member Functions inherited from meow::ObjBase
static char const * ctypeBase ()
 用C-style string回傳base的type name More...
 
static std::string typeBase ()
 用std::string回傳base的type name More...
 

Additional Inherited Members

- Protected Member Functions inherited from meow::ObjBase
 ObjBase ()
 

Detailed Description

template<class Pixel>
class meow::Camera< Pixel >

Camera.

實際上就是一個 Photo 加上一個 Rotation3D. 另外附有 fixedPoint, 可以用來定位時參考

Author
cat_leopard

Member Typedef Documentation

template<class Pixel>
typedef IdentityPoints<int, double> meow::Camera< Pixel >::FixedPoints2D

Constructor & Destructor Documentation

template<class Pixel>
meow::Camera< Pixel >::Camera ( )
inline

constructor

template<class Pixel>
meow::Camera< Pixel >::Camera ( Camera< Pixel > const &  b)
inline

copy constructor

template<class Pixel>
meow::Camera< Pixel >::~Camera ( )
inline

destructor

Member Function Documentation

template<class Pixel>
static double meow::Camera< Pixel >::boundleAdjustment2D ( std::vector< Camera< Pixel > > *  cs,
double  threshold 
)
inlinestatic

將數台camera用fixed points做boundle adjustment

Parameters
[in]cs要調整的cameras
[in]threshold允許誤差值
Returns
誤差值
template<class Pixel>
Pixel meow::Camera< Pixel >::color ( Vector3D< double p) const
inline

取得底片color

template<class Pixel>
Camera& meow::Camera< Pixel >::copyFrom ( Camera< Pixel > const &  b)
inline

複製資料

template<class Pixel>
ObjBase* meow::Camera< Pixel >::copyFrom ( ObjBase const *  b)
inlinevirtual

複製資料

輸入型別是 \c ObjBase \c const*
事實上這個method就只是幫忙轉型然後呼叫原本的\c copyFrom
Parameters
[in]b資料來源
Returns
this

Reimplemented from meow::ObjBase.

template<class Pixel>
ObjBase* meow::Camera< Pixel >::create ( ) const
inlinevirtual

new一個自己

Returns
一個new出來的pointer

Reimplemented from meow::ObjBase.

template<class Pixel>
char const* meow::Camera< Pixel >::ctype ( ) const
inlinevirtual

回傳class的type

Returns
char const* 形式的typename

Reimplemented from meow::ObjBase.

template<class Pixel>
FixedPoints2D const& meow::Camera< Pixel >::fixedPoints2D ( ) const
inline

取得所有FixedPoint

template<class Pixel>
FixedPoints2D const& meow::Camera< Pixel >::fixedPoints2D ( FixedPoints2D const &  fps2d) const
inline

設定FixedPoint

template<class Pixel>
Vector<double> meow::Camera< Pixel >::fixedPoints2D ( int  i)
inline

取得編號為i的fixed points 2d

template<class Pixel>
FixedPoints2D& meow::Camera< Pixel >::fixedPoints2DGet ( ) const
inline

取得所有FixedPoint(non-constant reference)

template<class Pixel>
bool meow::Camera< Pixel >::inside ( Vector3D< double p) const
inline

詢問某點是否在底片範圍內

template<class Pixel>
Camera& meow::Camera< Pixel >::operator= ( Camera< Pixel > const &  b)
inline

same as copyFrom(b)

template<class Pixel>
Photo<Pixel> const& meow::Camera< Pixel >::photo ( ) const
inline

取得 photo

template<class Pixel>
Photo<Pixel> const& meow::Camera< Pixel >::photo ( Photo< Pixel > const &  pho)
inline

設定 photo

template<class Pixel>
Photo<Pixel>& meow::Camera< Pixel >::photoGet ( )
inline

取得 photo (non-constant)

template<class Pixel>
bool meow::Camera< Pixel >::read ( FILE *  f,
bool  bin,
unsigned int  fg 
)
inlinevirtual

將資料讀入

Note
未完成

Reimplemented from meow::ObjBase.

template<class Pixel>
Camera& meow::Camera< Pixel >::referenceFrom ( Camera< Pixel > const &  b)
inline

參照

template<class Pixel>
Rotation3D<double> const& meow::Camera< Pixel >::rotation ( ) const
inline

取得rotation

template<class Pixel>
Rotation3D<double> const& meow::Camera< Pixel >::rotation ( Rotation3D< double > const &  rot)
inline

設定rotation

template<class Pixel>
Rotation3D<double>& meow::Camera< Pixel >::rotationGet ( )
inline

取得rotation (non-constant)

template<class Pixel>
std::string meow::Camera< Pixel >::type ( ) const
inlinevirtual

回傳class的type

Returns
std::string 形式的typename

Reimplemented from meow::ObjBase.

template<class Pixel>
bool meow::Camera< Pixel >::write ( FILE *  f,
bool  bin,
unsigned int  fg 
) const
inlinevirtual

將資料寫入檔案

Note
未完成

Reimplemented from meow::ObjBase.


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