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

The IndexedArray class. More...

#include <indexed_array.hpp>

Public Member Functions

 IndexedArray ()
 

Static Public Member Functions

static bool bFuncNotNeg (T val)
 bFuncNotNeg More...
 
static bool bFuncNotZero (T val)
 bFuncNotZero More...
 
static bool bFuncNeg (T val)
 bFuncNeg More...
 
static void findSimple (T *data, int nData, bool(*func)(float), IntCoord &ret, int stride=1)
 findSimple collects coordinates of data which satisfies a bool function func. More...
 
static void find (float *data, int nData, bool(*func)(float, std::vector< float >), std::vector< float > param, IntCoord &ret)
 find collects coordinates of data which satisfies a bool function func. More...
 
static T mean (T *data, IntCoord &coord)
 mean computes the mean value. More...
 
static T min (T *data, IntCoord &coord)
 min computes the min value. More...
 
static T max (T *data, IntCoord &coord)
 max computes the max value. More...
 
static T percentile (T *data, IntCoord &coord, float percent)
 percentile More...
 
static void scale (IntCoord &coord, int scale)
 scale scales values. More...
 
static float log10Mean (float *data, IntCoord &coord)
 log10Mean computes mean in the log10 domain. More...
 
static float log2Mean (float *data, IntCoord &coord)
 log2Mean computes mean in the log2 domain. More...
 
static void negative (T *data, IntCoord &coord, T referencePoint=T(1))
 negative computes the negative value given a val reference point. More...
 
static void add (T *data, IntCoord &coord, T val)
 add is the additive operator. More...
 
static void sub (T *data, IntCoord &coord, T val)
 sub is the subtractive operator. More...
 
static void mul (T *data, IntCoord &coord, T val)
 mul is the multiplicative operator. More...
 
static void div (T *dataDst, IntCoord &coord, T val)
 div is the division operator. More...
 
static void assign (T *dataDst, IntCoord &coord, T dataSrc)
 assign More...
 
static void assign (T *dataDst, IntCoord &coord, T *dataSrc)
 Assign. More...
 

Detailed Description

template<class T>
class pic::IndexedArray< T >

The IndexedArray class.

Constructor & Destructor Documentation

◆ IndexedArray()

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

Member Function Documentation

◆ add()

template<class T >
static void pic::IndexedArray< T >::add ( T *  data,
IntCoord coord,
val 
)
inlinestatic

add is the additive operator.

Parameters
data
coord
val

◆ assign() [1/2]

template<class T >
static void pic::IndexedArray< T >::assign ( T *  dataDst,
IntCoord coord,
dataSrc 
)
inlinestatic

assign

Parameters
dataDst
coord
dataSrc

◆ assign() [2/2]

template<class T >
static void pic::IndexedArray< T >::assign ( T *  dataDst,
IntCoord coord,
T *  dataSrc 
)
inlinestatic

Assign.

Parameters
dataDst
coord
dataSrc

◆ bFuncNeg()

template<class T >
static bool pic::IndexedArray< T >::bFuncNeg ( val)
inlinestatic

bFuncNeg

Parameters
val
Returns

◆ bFuncNotNeg()

template<class T >
static bool pic::IndexedArray< T >::bFuncNotNeg ( val)
inlinestatic

bFuncNotNeg

Parameters
val
Returns

◆ bFuncNotZero()

template<class T >
static bool pic::IndexedArray< T >::bFuncNotZero ( val)
inlinestatic

bFuncNotZero

Parameters
val
Returns

◆ div()

template<class T >
static void pic::IndexedArray< T >::div ( T *  dataDst,
IntCoord coord,
val 
)
inlinestatic

div is the division operator.

Parameters
dataDst
coord
val

◆ find()

template<class T >
static void pic::IndexedArray< T >::find ( float *  data,
int  nData,
bool(*)(float, std::vector< float >)  func,
std::vector< float >  param,
IntCoord ret 
)
inlinestatic

find collects coordinates of data which satisfies a bool function func.

Parameters
data
nData
param
ret

◆ findSimple()

template<class T >
static void pic::IndexedArray< T >::findSimple ( T *  data,
int  nData,
bool(*)(float)  func,
IntCoord ret,
int  stride = 1 
)
inlinestatic

findSimple collects coordinates of data which satisfies a bool function func.

Parameters
data
nData
ret
stride

◆ log10Mean()

template<class T >
static float pic::IndexedArray< T >::log10Mean ( float *  data,
IntCoord coord 
)
inlinestatic

log10Mean computes mean in the log10 domain.

Parameters
data
coord
Returns

◆ log2Mean()

template<class T >
static float pic::IndexedArray< T >::log2Mean ( float *  data,
IntCoord coord 
)
inlinestatic

log2Mean computes mean in the log2 domain.

Parameters
data
coord
Returns

◆ max()

template<class T >
static T pic::IndexedArray< T >::max ( T *  data,
IntCoord coord 
)
inlinestatic

max computes the max value.

Parameters
data
coord
Returns

◆ mean()

template<class T >
static T pic::IndexedArray< T >::mean ( T *  data,
IntCoord coord 
)
inlinestatic

mean computes the mean value.

Parameters
data
coord
Returns

◆ min()

template<class T >
static T pic::IndexedArray< T >::min ( T *  data,
IntCoord coord 
)
inlinestatic

min computes the min value.

Parameters
data
coord
Returns

◆ mul()

template<class T >
static void pic::IndexedArray< T >::mul ( T *  data,
IntCoord coord,
val 
)
inlinestatic

mul is the multiplicative operator.

Parameters
data
coord
val

◆ negative()

template<class T >
static void pic::IndexedArray< T >::negative ( T *  data,
IntCoord coord,
referencePoint = T(1) 
)
inlinestatic

negative computes the negative value given a val reference point.

Parameters
data
coord
referencePoint

◆ percentile()

template<class T >
static T pic::IndexedArray< T >::percentile ( T *  data,
IntCoord coord,
float  percent 
)
inlinestatic

percentile

Parameters
data
coord
percent
Returns

◆ scale()

template<class T >
static void pic::IndexedArray< T >::scale ( IntCoord coord,
int  scale 
)
inlinestatic

scale scales values.

Parameters
coord
scaling

◆ sub()

template<class T >
static void pic::IndexedArray< T >::sub ( T *  data,
IntCoord coord,
val 
)
inlinestatic

sub is the subtractive operator.

Parameters
data
coord
val

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