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

base interface for ImgPixel classes This class wraps typed cv::Vect to represent an ImagePixel The Vect is typed by template parameter T and channels are set by template parameter Channels. More...

#include <image/ImgPixel.h>

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

Public Member Functions

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::ImgPixelBase< T, Channels >

base interface for ImgPixel classes This class wraps typed cv::Vect to represent an ImagePixel The Vect is typed by template parameter T and channels are set by template parameter Channels.

Member Function Documentation

◆ operator[]() [1/2]

T operator[] ( int  i) const
inline

access to index i of vector

◆ operator[]() [2/2]

T& operator[] ( int  i)
inline

const access to index i of vector

◆ operator()() [1/2]

T operator() ( int  i) const
inline

access to index i of vector

◆ operator()() [2/2]

T& operator() ( int  i)
inline

const access to index i of vector

◆ operator==()

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

◆ operator cv::Scalar()

operator cv::Scalar ( ) const
inline

casts internal cv::Vect to cv::Scalar

Member Data Documentation

◆ v

cv::Vec<T, Channels> v
protected

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