API
pixaccess.hpp File Reference
#include "ImageStruct.hpp"
Include dependency graph for pixaccess.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename returnT , typename dataT >
returnT getPix (void *imdata, size_t idx)
 Function to cast the data type to float. More...
 

Variables

template<typename returnT , int imageStructDataT>
returnT(*)(void *, size_t) getPixPointer ()
 Get the function pointer for getPix for the type. More...
 

Function Documentation

◆ getPix()

template<typename returnT , typename dataT >
returnT getPix ( void *  imdata,
size_t  idx 
)

Function to cast the data type to float.

Todo:
document this file

Accesses the imdata pointer at linear position idx, and then casts the result to float.

Returns
the value of the image at linear position idx cast to float
Template Parameters
dataTthe type of the image data.
Parameters
[in]imdataPointer to the image data
[in]idxLinear position of the pixel in the imdata

Definition at line 18 of file pixaccess.hpp.

Variable Documentation

◆ getPixPointer

template<typename returnT , int imageStructDataT>
returnT(*)(void*, size_t) getPixPointer(int imageStructDataT) ( )

Get the function pointer for getPix for the type.

Definition at line 27 of file pixaccess.hpp.