Templates -- Meow  1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
meow::FeaturePoint< Scalar, Description > Class Template Reference

特徵點 More...

#include "FeaturePoint.h"

Inheritance diagram for meow::FeaturePoint< Scalar, Description >:
meow::ObjBase

Public Member Functions

 FeaturePoint ()
 constructor More...
 
 FeaturePoint (size_t pDim, size_t dDim)
 constructor More...
 
 FeaturePoint (FeaturePoint const &fp)
 constructor More...
 
 ~FeaturePoint ()
 destructor More...
 
FeaturePointcopyFrom (FeaturePoint const &fp)
 複製 More...
 
FeaturePointreferenceFrom (FeaturePoint const &fp)
 參照 More...
 
Vector< Scalar > const & position () const
 回傳position More...
 
Vector< Scalar > & positionGet ()
 回傳position (non-const reference) More...
 
Vector< Description > const & description () const
 回傳description More...
 
Vector< Description > & descriptionGet ()
 回傳description (non-const reference) More...
 
Vector< Scalar > const & position (Vector< Scalar > const &p) const
 修改position More...
 
Vector< Description > const & description (Vector< Description > const &d)
 修改description More...
 
Scalar position (size_t index) const
 回傳position的第i個scalar More...
 
Description description (size_t i) const
 回傳description的第i個Description More...
 
Scalar position (size_t i, Scalar const &s)
 修改position的第i個scalar More...
 
Description description (size_t i, Description const &d)
 修改description的第i個Description More...
 
FeaturePointoperator= (FeaturePoint const &fp)
 same as copyFrom(fp) More...
 
Scalar const & operator() (size_t i) const
 same as position(i) More...
 
Description operator[] (size_t i) const
 same as description(i) More...
 
bool write (FILE *f, bool bin, unsigned int fg) const
 將物件寫入檔案, 預設implement為直接回傳 false More...
 
bool read (FILE *f, bool bin, unsigned int fg)
 將物件從檔案讀出, 預設implement為直接回傳 false More...
 
ObjBasecreate () const
 回傳一個new出來的物件, 預設implement為直接回傳 NULL More...
 
ObjBasecopyFrom (ObjBase const &b)
 
char const * ctype () const
 用C-style string回傳這個class的type name More...
 
std::string type () const
 用std::string回傳這個class的type name More...
 
- Public Member Functions inherited from meow::ObjBase
virtual ~ObjBase ()
 
virtual ObjBasecopyFrom (ObjBase const *b)
 複製, 預設使用operator= More...
 

Additional Inherited Members

- 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...
 
- Protected Member Functions inherited from meow::ObjBase
 ObjBase ()
 

Detailed Description

template<class Scalar, class Description>
class meow::FeaturePoint< Scalar, Description >

特徵點

Author
cat_leopard

Definition at line 21 of file FeaturePoint.h.

Constructor & Destructor Documentation

template<class Scalar , class Description >
meow::FeaturePoint< Scalar, Description >::FeaturePoint ( )
inline

constructor

Definition at line 29 of file FeaturePoint.h.

template<class Scalar , class Description >
meow::FeaturePoint< Scalar, Description >::FeaturePoint ( size_t  pDim,
size_t  dDim 
)
inline

constructor

Definition at line 35 of file FeaturePoint.h.

template<class Scalar , class Description >
meow::FeaturePoint< Scalar, Description >::FeaturePoint ( FeaturePoint< Scalar, Description > const &  fp)
inline

constructor

Definition at line 42 of file FeaturePoint.h.

template<class Scalar , class Description >
meow::FeaturePoint< Scalar, Description >::~FeaturePoint ( )
inline

destructor

Definition at line 49 of file FeaturePoint.h.

Member Function Documentation

template<class Scalar , class Description >
FeaturePoint& meow::FeaturePoint< Scalar, Description >::copyFrom ( FeaturePoint< Scalar, Description > const &  fp)
inline

複製

Definition at line 55 of file FeaturePoint.h.

template<class Scalar , class Description >
ObjBase* meow::FeaturePoint< Scalar, Description >::copyFrom ( ObjBase const &  b)
inline

Definition at line 219 of file FeaturePoint.h.

template<class Scalar , class Description >
ObjBase* meow::FeaturePoint< Scalar, Description >::create ( ) const
inlinevirtual

回傳一個new出來的物件, 預設implement為直接回傳 NULL

Reimplemented from meow::ObjBase.

Definition at line 215 of file FeaturePoint.h.

template<class Scalar , class Description >
char const* meow::FeaturePoint< Scalar, Description >::ctype ( ) const
inlinevirtual

用C-style string回傳這個class的type name

Reimplemented from meow::ObjBase.

Definition at line 223 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Description> const& meow::FeaturePoint< Scalar, Description >::description ( ) const
inline

回傳description

Definition at line 87 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Description> const& meow::FeaturePoint< Scalar, Description >::description ( Vector< Description > const &  d)
inline

修改description

Definition at line 109 of file FeaturePoint.h.

template<class Scalar , class Description >
Description meow::FeaturePoint< Scalar, Description >::description ( size_t  i) const
inline

回傳description的第i個Description

Definition at line 124 of file FeaturePoint.h.

template<class Scalar , class Description >
Description meow::FeaturePoint< Scalar, Description >::description ( size_t  i,
Description const &  d 
)
inline

修改description的第i個Description

Definition at line 139 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Description>& meow::FeaturePoint< Scalar, Description >::descriptionGet ( )
inline

回傳description (non-const reference)

Definition at line 94 of file FeaturePoint.h.

template<class Scalar , class Description >
Scalar const& meow::FeaturePoint< Scalar, Description >::operator() ( size_t  i) const
inline

same as position(i)

Definition at line 154 of file FeaturePoint.h.

template<class Scalar , class Description >
FeaturePoint& meow::FeaturePoint< Scalar, Description >::operator= ( FeaturePoint< Scalar, Description > const &  fp)
inline

same as copyFrom(fp)

Definition at line 147 of file FeaturePoint.h.

template<class Scalar , class Description >
Description meow::FeaturePoint< Scalar, Description >::operator[] ( size_t  i) const
inline

same as description(i)

Definition at line 161 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Scalar> const& meow::FeaturePoint< Scalar, Description >::position ( ) const
inline

回傳position

Definition at line 73 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Scalar> const& meow::FeaturePoint< Scalar, Description >::position ( Vector< Scalar > const &  p) const
inline

修改position

Definition at line 101 of file FeaturePoint.h.

template<class Scalar , class Description >
Scalar meow::FeaturePoint< Scalar, Description >::position ( size_t  index) const
inline

回傳position的第i個scalar

Definition at line 117 of file FeaturePoint.h.

template<class Scalar , class Description >
Scalar meow::FeaturePoint< Scalar, Description >::position ( size_t  i,
Scalar const &  s 
)
inline

修改position的第i個scalar

Definition at line 131 of file FeaturePoint.h.

template<class Scalar , class Description >
Vector<Scalar>& meow::FeaturePoint< Scalar, Description >::positionGet ( )
inline

回傳position (non-const reference)

Definition at line 80 of file FeaturePoint.h.

template<class Scalar , class Description >
bool meow::FeaturePoint< Scalar, Description >::read ( FILE *  f,
bool  bin,
unsigned int  fg 
)
inlinevirtual

將物件從檔案讀出, 預設implement為直接回傳 false

Parameters
[in]f檔案
[in]bin是否為binary模式
[in]fg使用者自訂的argument
Returns
成功或失敗

Reimplemented from meow::ObjBase.

Definition at line 189 of file FeaturePoint.h.

template<class Scalar , class Description >
FeaturePoint& meow::FeaturePoint< Scalar, Description >::referenceFrom ( FeaturePoint< Scalar, Description > const &  fp)
inline

參照

Definition at line 64 of file FeaturePoint.h.

template<class Scalar , class Description >
std::string meow::FeaturePoint< Scalar, Description >::type ( ) const
inlinevirtual

用std::string回傳這個class的type name

Reimplemented from meow::ObjBase.

Definition at line 227 of file FeaturePoint.h.

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

將物件寫入檔案, 預設implement為直接回傳 false

Parameters
[in]f檔案
[in]bin是否為binary模式
[in]fg使用者自訂的argument
Returns
成功或失敗

Reimplemented from meow::ObjBase.

Definition at line 165 of file FeaturePoint.h.


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