cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels > Class Template Reference

#include <svlSampleImageCustom.h>

Inheritance diagram for svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >:
svlSampleImage svlSample mtsGenericObject cmnGenericObject

Public Member Functions

 svlSampleImageCustom ()
 
 svlSampleImageCustom (bool owndata)
 
 svlSampleImageCustom (const svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels > &other)
 
 ~svlSampleImageCustom ()
 
svlSampleImageCustomoperator= (const svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels > &other)
 
svlSampleGetNewInstance () const
 
svlStreamType GetType () const
 
int SetSize (const svlSample *sample)
 
int SetSize (const svlSample &sample)
 
int CopyOf (const svlSample *sample)
 
int CopyOf (const svlSample &sample)
 
bool IsInitialized () const
 
unsigned char * GetUCharPointer ()
 
const unsigned char * GetUCharPointer () const
 
unsigned int GetDataSize () const
 
virtual void SerializeRaw (std::ostream &outputStream) const
 
virtual void DeSerializeRaw (std::istream &inputStream)
 
IplImageIplImageRef (const unsigned int CMN_UNUSED(videochannel)=0) const
 
cv::Mat CvMatRef (const unsigned int CMN_UNUSED(videochannel)=0) const
 
unsigned char * GetUCharPointer (const unsigned int videochannel)
 
const unsigned char * GetUCharPointer (const unsigned int videochannel) const
 
unsigned char * GetUCharPointer (const unsigned int videochannel, const unsigned int x, const unsigned int y)
 
const unsigned char * GetUCharPointer (const unsigned int videochannel, const unsigned int x, const unsigned int y) const
 
void SetSize (const unsigned int width, const unsigned int height)
 
void SetSize (const unsigned int videochannel, const unsigned int width, const unsigned int height)
 
int SetSize (const IplImage *CMN_UNUSED(ipl_image), const unsigned int CMN_UNUSED(videochannel)=0)
 
int SetSize (const cv::Mat &CMN_UNUSED(cv_mat), const unsigned int CMN_UNUSED(videochannel)=0)
 
int CopyOf (const IplImage *CMN_UNUSED(ipl_image), const unsigned int CMN_UNUSED(videochannel)=0)
 
int CopyOf (const cv::Mat &CMN_UNUSED(cv_mat), const unsigned int CMN_UNUSED(videochannel)=0)
 
unsigned int GetVideoChannels () const
 
unsigned int GetDataChannels () const
 
unsigned int GetBPP () const
 
unsigned int GetWidth (const unsigned int videochannel=0) const
 
unsigned int GetHeight (const unsigned int videochannel=0) const
 
unsigned int GetRowStride (const unsigned int videochannel=0) const
 
unsigned int GetDataSize (const unsigned int videochannel) const
 
svlSampleImageGetSubImage (const unsigned int top, const unsigned int height, const unsigned int videochannel=0)
 
svlSampleImageGetSubImage (svlProcInfo *procInfo, const unsigned int videochannel=0)
 
template<class __ownerType >
int SetMatrix (vctDynamicMatrixBase< __ownerType, _ValueType > &matrix, unsigned int videochannel=0)
 
int SetMatrix (cv::Mat &matrix, unsigned int videochannel=0)
 
vctDynamicMatrixRef< _ValueType > GetMatrixRef (const unsigned int videochannel=0)
 
vctDynamicConstMatrixRef
< _ValueType > 
GetMatrixRef (const unsigned int videochannel=0) const
 
_ValueType * GetPointer (const unsigned int videochannel=0)
 
const _ValueType * GetPointer (const unsigned int videochannel=0) const
 
_ValueType * GetPointer (const unsigned int videochannel, const unsigned int x, const unsigned int y)
 
const _ValueType * GetPointer (const unsigned int videochannel, const unsigned int x, const unsigned int y) const
 
- Public Member Functions inherited from svlSampleImage
 svlSampleImage ()
 
 svlSampleImage (const svlSampleImage &other)
 
virtual ~svlSampleImage ()
 
virtual svlPixelType GetPixelType () const
 
virtual int GetAlphaChannel () const
 
virtual IplImageIplImageRef (const unsigned int videochannel=0) const =0
 
virtual cv::Mat CvMatRef (const unsigned int videochannel=0) const =0
 
virtual int SetSize (const IplImage *ipl_image, const unsigned int videochannel=0)=0
 
virtual int SetSize (const cv::Mat &cv_mat, const unsigned int videochannel=0)=0
 
virtual int CopyOf (const IplImage *ipl_image, const unsigned int videochannel=0)=0
 
virtual int CopyOf (const cv::Mat &cv_mat, const unsigned int videochannel=0)=0
 
int ImportData (unsigned char *input, const unsigned int size, const int param=0, const unsigned int videoch=SVL_LEFT)
 
int ImportData (unsigned short *input, const unsigned int size, const int param=0, const unsigned int videoch=SVL_LEFT)
 
int ImportData (unsigned int *input, const unsigned int size, const int param=0, const unsigned int videoch=SVL_LEFT)
 
int ImportData (float *input, const unsigned int size, const int param=0, const unsigned int videoch=SVL_LEFT)
 
int ImportImage (const svlSampleImage *image, const int param=0)
 
int ImportImage (const svlSampleImage &image, const int param=0)
 
int ImportImage (const svlSampleImage *image, const unsigned int src_channel, const unsigned int dest_channel, const int param=0)
 
int ImportImage (const svlSampleImage &image, const unsigned int src_channel, const unsigned int dest_channel, const int param=0)
 
int ImportMatrix (const svlSampleMatrix *matrix, const int param=0, const unsigned int videoch=SVL_LEFT)
 
int ImportSample (const svlSample *sample)
 
int ImportSample (const svlSample *sample, const unsigned int videoch)
 
- Public Member Functions inherited from svlSample
 svlSample ()
 
 svlSample (const svlSample &other)
 
svlSampleoperator= (const svlSample &other)
 
virtual ~svlSample ()
 
void SetTimestamp (double ts)
 
double GetTimestamp () const
 
void SetEncoder (const std::string &codec, const int parameter)
 
void GetEncoder (std::string &codec, int &parameter) const
 
- Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 
 mtsGenericObject (const mtsGenericObject &other)
 
virtual ~mtsGenericObject (void)
 
bool SetTimestampIfAutomatic (double timestamp)
 
virtual void ToStream (std::ostream &outputStream) const
 
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
 
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter= ' ')
 
size_t ScalarNumber (void) const
 
bool ScalarNumberIsFixed (void) const
 
double Scalar (const size_t index) const throw (std::out_of_range)
 
std::string ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range)
 
- Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
 
virtual const
cmnClassServicesBase
Services (void) const =0
 
bool ReconstructFrom (const cmnGenericObject &other)
 
std::string ToString (void) const
 
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
 
virtual double Scalar (const size_t CMN_UNUSED(index)) const throw (std::out_of_range)
 
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const
 

Additional Inherited Members

- Static Public Member Functions inherited from svlSample
static svlSampleGetNewFromType (svlStreamType type)
 

Constructor & Destructor Documentation

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::svlSampleImageCustom ( )
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::svlSampleImageCustom ( bool  owndata)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::svlSampleImageCustom ( const svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels > &  other)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::~svlSampleImageCustom ( )
inline

Member Function Documentation

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::CopyOf ( const svlSample sample)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::CopyOf ( const svlSample sample)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::CopyOf ( const IplImage CMN_UNUSEDipl_image,
const unsigned int   CMN_UNUSEDvideochannel = 0 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::CopyOf ( const cv::Mat CMN_UNUSEDcv_mat,
const unsigned int   CMN_UNUSEDvideochannel = 0 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
cv::Mat svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::CvMatRef ( const unsigned int   CMN_UNUSEDvideochannel = 0) const
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
virtual void svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::DeSerializeRaw ( std::istream &  inputStream)
inlinevirtual

Binary deserialization

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetBPP ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetDataChannels ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetDataSize ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetDataSize ( const unsigned int  videochannel) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetHeight ( const unsigned int  videochannel = 0) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
vctDynamicMatrixRef<_ValueType> svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetMatrixRef ( const unsigned int  videochannel = 0)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
vctDynamicConstMatrixRef<_ValueType> svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetMatrixRef ( const unsigned int  videochannel = 0) const
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSample* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetNewInstance ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
_ValueType* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetPointer ( const unsigned int  videochannel = 0)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
const _ValueType* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetPointer ( const unsigned int  videochannel = 0) const
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
_ValueType* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetPointer ( const unsigned int  videochannel,
const unsigned int  x,
const unsigned int  y 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
const _ValueType* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetPointer ( const unsigned int  videochannel,
const unsigned int  x,
const unsigned int  y 
) const
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetRowStride ( const unsigned int  videochannel = 0) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImage* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetSubImage ( const unsigned int  top,
const unsigned int  height,
const unsigned int  videochannel = 0 
)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImage* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetSubImage ( svlProcInfo procInfo,
const unsigned int  videochannel = 0 
)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlStreamType svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetType ( void  ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( )
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
const unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( const unsigned int  videochannel)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
const unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( const unsigned int  videochannel) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( const unsigned int  videochannel,
const unsigned int  x,
const unsigned int  y 
)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
const unsigned char* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetUCharPointer ( const unsigned int  videochannel,
const unsigned int  x,
const unsigned int  y 
) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetVideoChannels ( ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
unsigned int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::GetWidth ( const unsigned int  videochannel = 0) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
IplImage* svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::IplImageRef ( const unsigned int   CMN_UNUSEDvideochannel = 0) const
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
bool svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::IsInitialized ( void  ) const
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
svlSampleImageCustom& svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::operator= ( const svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels > &  other)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
virtual void svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SerializeRaw ( std::ostream &  outputStream) const
inlinevirtual

Binary serialization

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
template<class __ownerType >
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetMatrix ( vctDynamicMatrixBase< __ownerType, _ValueType > &  matrix,
unsigned int  videochannel = 0 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetMatrix ( cv::Mat matrix,
unsigned int  videochannel = 0 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const svlSample sample)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const svlSample sample)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
void svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const unsigned int  width,
const unsigned int  height 
)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
void svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const unsigned int  videochannel,
const unsigned int  width,
const unsigned int  height 
)
inlinevirtual

Implements svlSampleImage.

template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const IplImage CMN_UNUSEDipl_image,
const unsigned int   CMN_UNUSEDvideochannel = 0 
)
inline
template<class _ValueType, unsigned int _DataChannels, unsigned int _VideoChannels>
int svlSampleImageCustom< _ValueType, _DataChannels, _VideoChannels >::SetSize ( const cv::Mat CMN_UNUSEDcv_mat,
const unsigned int   CMN_UNUSEDvideochannel = 0 
)
inline

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