MIRA
Public Member Functions | Protected Attributes | List of all members
ImgPixel< T, Channels > Class Template Reference

dynamic ImgPixel class template ImgPixel class providing flexible types and channels. More...

#include <image/ImgPixel.h>

Inheritance diagram for ImgPixel< T, Channels >:
Inheritance graph
[legend]

Public Member Functions

 ImgPixel ()
 The default constructor. More...
 
 ImgPixel (const cv::Scalar &s)
 setting cv::Vector from Scalar More...
 
operator[] (int i) const
 access to index i of vector More...
 
T & operator[] (int i)
 const access to index i of vector More...
 
operator() (int i) const
 access to index i of vector More...
 
T & operator() (int i)
 const access to index i of vector More...
 
bool operator== (const ImgPixelBase &other) const
 
 operator cv::Scalar () const
 casts internal cv::Vect to cv::Scalar More...
 

Protected Attributes

cv::Vec< T, Channels > v
 

Detailed Description

template<typename T, int Channels>
class mira::ImgPixel< T, Channels >

dynamic ImgPixel class template ImgPixel class providing flexible types and channels.

Channels of this class are >= 5, since cases 1-4 are specialized in extra classes for efficiency and convenience reasons.

Constructor & Destructor Documentation

◆ ImgPixel() [1/2]

ImgPixel ( )
inline

The default constructor.

◆ ImgPixel() [2/2]

ImgPixel ( const cv::Scalar &  s)
inlineexplicit

setting cv::Vector from Scalar

Member Function Documentation

◆ operator[]() [1/2]

T operator[] ( int  i) const
inlineinherited

access to index i of vector

◆ operator[]() [2/2]

T& operator[] ( int  i)
inlineinherited

const access to index i of vector

◆ operator()() [1/2]

T operator() ( int  i) const
inlineinherited

access to index i of vector

◆ operator()() [2/2]

T& operator() ( int  i)
inlineinherited

const access to index i of vector

◆ operator==()

bool operator== ( const ImgPixelBase< T, Channels > &  other) const
inlineinherited

◆ operator cv::Scalar()

operator cv::Scalar ( ) const
inlineinherited

casts internal cv::Vect to cv::Scalar

Member Data Documentation

◆ v

cv::Vec<T, Channels> v
protectedinherited

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