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

specialization of PixelBase class for 4 channels More...

#include <image/ImgPixel.h>

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

Public Member Functions

 ImgPixel ()
 
 ImgPixel (T v0, T v1, T v2, T v3)
 constructor setting the values of the pixel More...
 
 ImgPixel (const ColorBase &color)
 constructor that takes ColorBase, internally the cv::Scalar conversion operator of the color is used. 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>
class mira::ImgPixel< T, 4 >

specialization of PixelBase class for 4 channels

Constructor & Destructor Documentation

◆ ImgPixel() [1/3]

ImgPixel ( )
inline

◆ ImgPixel() [2/3]

ImgPixel ( v0,
v1,
v2,
v3 
)
inline

constructor setting the values of the pixel

◆ ImgPixel() [3/3]

ImgPixel ( const ColorBase color)
inline

constructor that takes ColorBase, internally the cv::Scalar conversion operator of the color is used.

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, 4 > &  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: