![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpFeatureLuminanceMapping.h>
Public Member Functions | |
| vpLuminanceMapping (unsigned int mappingSize) | |
| virtual | ~vpLuminanceMapping () |
| virtual void | map (const vpImage< unsigned char > &I, vpColVector &s)=0 |
| virtual void | interaction (const vpImage< unsigned char > &I, const vpMatrix &LI, const vpColVector &s, vpMatrix &L)=0 |
| virtual void | inverse (const vpColVector &s, vpImage< unsigned char > &I)=0 |
| unsigned int | getProjectionSize () const |
| unsigned int | getBorder () const |
| void | setBorder (unsigned border) |
Static Public Member Functions | |
| static void | imageAsVector (const vpImage< unsigned char > &I, vpColVector &Ivec, unsigned border) |
| static void | imageAsMatrix (const vpImage< unsigned char > &I, vpMatrix &Imat, unsigned border) |
Protected Attributes | |
| unsigned | m_mappingSize |
| unsigned | m_border |
Base class for functions that map an image and its interaction matrix to a different domain.
Definition at line 57 of file vpFeatureLuminanceMapping.h.
|
inline |
Construct a new vp Luminance Mapping object.
| mappingSize | The size of the space that this transformation maps to. |
Definition at line 65 of file vpFeatureLuminanceMapping.h.
References m_mappingSize.
Referenced by vpLuminanceDCT::vpLuminanceDCT(), vpLuminanceDCT::vpLuminanceDCT(), vpLuminancePCA::vpLuminancePCA(), vpLuminancePCA::vpLuminancePCA(), and vpLuminancePCA::vpLuminancePCA().
|
inlinevirtual |
Destructor.
Definition at line 70 of file vpFeatureLuminanceMapping.h.
|
inline |
Returns the number of pixels that are removed by the photometric VS computation.
Definition at line 114 of file vpFeatureLuminanceMapping.h.
References m_border.
|
inline |
Returns the size of the space to which an image is mapped to.
Definition at line 107 of file vpFeatureLuminanceMapping.h.
References m_mappingSize.
Referenced by vpLuminanceDCT::vpLuminanceDCT().
|
static |
Definition at line 59 of file vpFeatureLuminanceMapping.cpp.
References vpException::dimensionError, and vpArray2D< Type >::resize().
Referenced by vpLuminanceDCT::map().
|
static |
Definition at line 43 of file vpFeatureLuminanceMapping.cpp.
References vpException::dimensionError, and vpColVector::resize().
Referenced by vpLuminancePCA::map().
|
pure virtual |
Compute the interaction matrix associated with the representation s.
| I | input image used to compute s |
| LI | Photometric interaction matrix associated to I (see vpFeatureLuminance) |
| s | the already computed representation |
| L | The output interaction matrix, of dimensions getProjectionSize() x 6 |
Implemented in vpLuminanceDCT, and vpLuminancePCA.
|
pure virtual |
Reconstruct I from a representation s.
| s | the representation |
| I | Output lossy reconstruction |
Implemented in vpLuminanceDCT, and vpLuminancePCA.
|
pure virtual |
Map an image I to a representation s. This representation s has getProjectionSize() rows.
Note that when combined with vpFeatureLuminanceMapping, The image I does not have the same size as the image input of vpFeatureLuminanceMapping::build. I is the center crop of this image.
| I | The input image |
| s | The resulting representation that will serve as visual servoing features. |
Implemented in vpLuminanceDCT, and vpLuminancePCA.
|
inline |
Set the number of pixels that are removed by the photometric VS computation This function should be called by vpFeatureLuminanceMapping.
| border |
Definition at line 122 of file vpFeatureLuminanceMapping.h.
References m_border.
|
protected |
Final vector size.
Definition at line 129 of file vpFeatureLuminanceMapping.h.
Referenced by getBorder(), vpLuminanceDCT::init(), vpLuminancePCA::init(), vpLuminanceDCT::map(), vpLuminancePCA::map(), vpLuminancePCA::operator=(), and setBorder().
|
protected |
Definition at line 128 of file vpFeatureLuminanceMapping.h.
Referenced by getProjectionSize(), vpLuminanceDCT::init(), vpLuminancePCA::init(), vpLuminanceDCT::interaction(), vpLuminanceDCT::map(), vpLuminancePCA::operator=(), vpLuminanceMapping(), and vpLuminancePCA::vpLuminancePCA().