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

specialization of PixelBase class for 3 channels More...

#include <image/ImgPixel.h>

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

Public Member Functions

 ImgPixel ()
 The default constructor. More...
 
 ImgPixel (T v0, T v1, T v2)
 constructor setting the values of the pixel More...
 
 ImgPixel (const ColorBase &color)
 construction from a color of ColorBase 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, 3 >

specialization of PixelBase class for 3 channels

Constructor & Destructor Documentation

◆ ImgPixel() [1/3]

ImgPixel ( )
inline

The default constructor.

◆ ImgPixel() [2/3]

ImgPixel ( v0,
v1,
v2 
)
inline

constructor setting the values of the pixel

◆ ImgPixel() [3/3]

ImgPixel ( const ColorBase color)
inline

construction from a color of ColorBase

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