PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
pic::RAW< T > Class Template Reference

#include <raw.hpp>

Inheritance diagram for pic::RAW< T >:
pic::pic::Array< T >

Public Member Functions

 RAW ()
 RAW. More...
 
 RAW (int n)
 RAW. More...
 
 RAW (std::string nameFile, int nData=-1)
 RAW. More...
 
 ~RAW ()
 
bool Read (std::string nameFile, int nData)
 Read. More...
 
bool Write (std::string nameFile)
 Write. More...
 
- Public Member Functions inherited from pic::pic::Array< T >
 Array ()
 Array. More...
 
 Array (int n)
 Array. More...
 
 Array (T *data, int nData, bool bShallow)
 Array. More...
 
 ~Array ()
 
void allocate (int n)
 allocate More...
 
void release ()
 release More...
 
Array< T > * clone ()
 clone More...
 

Static Public Member Functions

static RAW< T > * getMeanRAWStack (std::vector< RAW< T > > &stack)
 getMeanRAWStack More...
 
static unsigned long * getMeanRAWIterative (RAW< T > *img, unsigned long *dataAcc, bool bStart)
 
static RAW< T > * getMeanRAWFromFile (std::string nameDir, std::string nameFilter, int width, int height)
 getMeanRAWFromFile More...
 
static void getMeanRAWFromFile (std::string nameDir, std::string nameFilter, std::string nameOut, int width, int height)
 getMeanRAWFromFile More...
 
- Static Public Member Functions inherited from pic::pic::Array< T >
static T * genValue (T value, int n, T *ret)
 genValue More...
 
static T * genRange (T minVal, T step, T maxVal, T *ret, int &n)
 genRange More...
 
static T * linspace (T minVal, T maxVal, int n, T *ret)
 linspace More...
 
static T distanceSq (T *data0, T *data1, int n)
 distanceSq More...
 
static T * zeros (int n)
 zeros More...
 
static T norm_sq (float *data, int n)
 norm_sq More...
 
static T norm (float *data, int n)
 norm More...
 
static float normalize (float *data, int n, float norm_sq=-1.0f)
 normalize More...
 
static T dot (T *data0, T *data1, int n)
 dot More...
 
static void mul (T *data, int size, T scale)
 mul More...
 
static void mul (T *data, int size, T *ret)
 mul More...
 
static T * add (T *data, int size, T *ret)
 add More...
 
static void div (T *data, int size, T value)
 div More...
 
static T getMean (T *data, int size)
 getMean More...
 
static T getVariance (T *data, int size)
 getVariance More...
 
static T sum (T *data, int size)
 sum More...
 
static T * cumsum (T *vec, int size, T *ret)
 cumsum More...
 
static T * assign (T *data, int size, T *ret)
 assign More...
 
static T * assign (T data, T *ret, int size)
 assign More...
 
static T * apply (T *data, int size, T *ret, T(*func)(T))
 apply More...
 
static T getMax (T *data, int size, int &ind)
 getMax More...
 
static T getMin (T *data, int size, int &ind)
 getMin More...
 
static T interp (T *x, T *y, int size, T xval)
 interp linearly interpolates x and y data More...
 
static int binSearchLeft (T *data, T key, int low, int high)
 binSearchLeft More...
 

Protected Attributes

bool valid
 
- Protected Attributes inherited from pic::pic::Array< T >
bool bShallow
 

Additional Inherited Members

- Public Attributes inherited from pic::pic::Array< T >
T * data
 
int nData
 

Constructor & Destructor Documentation

◆ RAW() [1/3]

template<class T>
pic::RAW< T >::RAW ( )
inline

RAW.

◆ RAW() [2/3]

template<class T>
pic::RAW< T >::RAW ( int  n)
inline

RAW.

Parameters
nData

◆ RAW() [3/3]

template<class T>
pic::RAW< T >::RAW ( std::string  nameFile,
int  nData = -1 
)
inline

RAW.

Parameters
nameFile
nData

◆ ~RAW()

template<class T>
pic::RAW< T >::~RAW ( )
inline

Member Function Documentation

◆ getMeanRAWFromFile() [1/2]

template<class T>
static RAW<T>* pic::RAW< T >::getMeanRAWFromFile ( std::string  nameDir,
std::string  nameFilter,
int  width,
int  height 
)
inlinestatic

getMeanRAWFromFile

Parameters
nameDir
nameFilter
width
height
Returns

◆ getMeanRAWFromFile() [2/2]

template<class T>
static void pic::RAW< T >::getMeanRAWFromFile ( std::string  nameDir,
std::string  nameFilter,
std::string  nameOut,
int  width,
int  height 
)
inlinestatic

getMeanRAWFromFile

Parameters
nameDir
nameFilter
nameOut
width
height

◆ getMeanRAWIterative()

template<class T>
static unsigned long* pic::RAW< T >::getMeanRAWIterative ( RAW< T > *  img,
unsigned long *  dataAcc,
bool  bStart 
)
inlinestatic

◆ getMeanRAWStack()

template<class T>
static RAW<T>* pic::RAW< T >::getMeanRAWStack ( std::vector< RAW< T > > &  stack)
inlinestatic

getMeanRAWStack

Parameters
stack
Returns

◆ Read()

template<class T>
bool pic::RAW< T >::Read ( std::string  nameFile,
int  nData 
)
inline

Read.

Parameters
nameFile
nData
Returns

◆ Write()

template<class T>
bool pic::RAW< T >::Write ( std::string  nameFile)
inline

Write.

Parameters
nameFile
Returns

Member Data Documentation

◆ valid

template<class T>
bool pic::RAW< T >::valid
protected

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