ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::ImgView< ValType, OPTIONS > Class Template Reference

provides convenient matrix-like access for MappedImage More...

#include <MappedImage.h>

+ Collaboration diagram for ChimeraTK::ImgView< ValType, OPTIONS >:

Public Types

using iterator = ValType *
 
using value_type = ValType
 

Public Member Functions

 ImgView (MappedImage *owner)
 
ValType & operator() (unsigned dx, unsigned dy, unsigned channel=0)
 This allows to read/write image pixel values, for given coordinates. More...
 
ValType * begin ()
 
ValType * end ()
 
ValType * beginRow (unsigned row)
 
ValType * endRow (unsigned row)
 
ImgHeaderheader ()
 

Protected Member Functions

ValType * vec ()
 

Protected Attributes

MappedImage_mi
 

Detailed Description

template<typename ValType, ImgOptions OPTIONS>
class ChimeraTK::ImgView< ValType, OPTIONS >

provides convenient matrix-like access for MappedImage

Definition at line 113 of file MappedImage.h.

Member Typedef Documentation

◆ iterator

template<typename ValType , ImgOptions OPTIONS>
using ChimeraTK::ImgView< ValType, OPTIONS >::iterator = ValType*

Definition at line 125 of file MappedImage.h.

◆ value_type

template<typename ValType , ImgOptions OPTIONS>
using ChimeraTK::ImgView< ValType, OPTIONS >::value_type = ValType

Definition at line 126 of file MappedImage.h.

Constructor & Destructor Documentation

◆ ImgView()

template<typename ValType , ImgOptions OPTIONS>
ChimeraTK::ImgView< ValType, OPTIONS >::ImgView ( MappedImage owner)
inline

Definition at line 115 of file MappedImage.h.

Member Function Documentation

◆ begin()

template<typename ValType , ImgOptions OPTIONS>
ValType* ChimeraTK::ImgView< ValType, OPTIONS >::begin ( )
inline

Definition at line 128 of file MappedImage.h.

+ Here is the call graph for this function:

◆ beginRow()

template<typename ValType , ImgOptions OPTIONS>
ValType* ChimeraTK::ImgView< ValType, OPTIONS >::beginRow ( unsigned  row)
inline

Definition at line 131 of file MappedImage.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ end()

template<typename ValType , ImgOptions OPTIONS>
ValType* ChimeraTK::ImgView< ValType, OPTIONS >::end ( )
inline

Definition at line 129 of file MappedImage.h.

+ Here is the call graph for this function:

◆ endRow()

template<typename ValType , ImgOptions OPTIONS>
ValType* ChimeraTK::ImgView< ValType, OPTIONS >::endRow ( unsigned  row)
inline

Definition at line 132 of file MappedImage.h.

+ Here is the call graph for this function:

◆ header()

template<typename ValType , ImgOptions OPTIONS>
ImgHeader * ChimeraTK::ImgView< ValType, OPTIONS >::header

Definition at line 300 of file MappedImage.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator()()

template<typename ValType , ImgOptions OPTIONS>
ValType & ChimeraTK::ImgView< ValType, OPTIONS >::operator() ( unsigned  dx,
unsigned  dy,
unsigned  channel = 0 
)

This allows to read/write image pixel values, for given coordinates.

dx, dy are relative to x_start, y_start, i.e. x = x_start+dx on output side channel is 0..2 for RGB this method is for random access. for sequential access, iterators provide better performance

Definition at line 280 of file MappedImage.h.

◆ vec()

template<typename ValType , ImgOptions OPTIONS>
ValType * ChimeraTK::ImgView< ValType, OPTIONS >::vec
protected

Definition at line 305 of file MappedImage.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _mi

template<typename ValType , ImgOptions OPTIONS>
MappedImage* ChimeraTK::ImgView< ValType, OPTIONS >::_mi
protected

Definition at line 137 of file MappedImage.h.


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