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

#include <filter_radial_basis_function.hpp>

Public Member Functions

 Buffer ()
 

Static Public Member Functions

static T * assign (T *buffer, int n, T value)
 assign assigns value to buffer More...
 
static T * assign (T *bufferOut, T *bufferIn, int n)
 assign assigns bufferIn to bufferOut More...
 
static T * add (T *buffer, int n, T value)
 add peforms addition More...
 
static T * add (T *bufferOut, T *bufferIn0, T *bufferIn1, int n)
 add More...
 
static T * add (T *bufferOut, T *bufferIn, int n)
 
static T * addS (T *bufferOut, T *bufferIn, int n, int channels)
 
static T * mul (T *buffer, int n, T value)
 mul multiplies a constant value More...
 
static T * mul (T *bufferOut, T *bufferIn0, T *bufferIn1, int n)
 mul More...
 
static T * mul (T *bufferOut, T *bufferIn, int n)
 BufferMul. More...
 
static T * mulS (T *bufferOut, T *bufferIn, int n, int channels)
 mulS More...
 
static T * sub (T *buffer, int n, T value)
 sub More...
 
static T * sub (T *bufferOut, T *bufferIn0, T *bufferIn1, int n)
 sub More...
 
static T * sub (T *bufferOut, T *bufferIn, int n)
 sub More...
 
static T * subS (T *bufferOut, T *bufferIn, int n, int channels)
 subS More...
 
static T * div (T *buffer, int n, T value)
 div divides by a constant value More...
 
static T * div (T *bufferOut, T *bufferIn0, T *bufferIn1, int n)
 div More...
 
static T * div (T *bufferOut, T *bufferIn, int n)
 div More...
 
static T * divS (T *bufferOut, T *bufferIn, int n, int channels)
 divS More...
 
static void flipH (T *buffer, int width, int height, int channels, int frames)
 flipH flips a buffer horizontally More...
 
static void flipV (T *buffer, int width, int height, int channels, int frames)
 flipV flips an image vertically More...
 
static void rotate90CW (T *buffer, int &width, int &height, int channels)
 rotate90CW rotates an image 90 CW More...
 
static void rotate90CCW (T *buffer, int &width, int &height, int channels)
 rotate90CCW rotates an image 90 CCW More...
 
static T * shift (T *bufferOut, T *bufferIn, int dx, int dy, int width, int height, int channels, int frames)
 shift More...
 
static T * transpose (T *bufferOut, T *bufferIn, int width, int height, int channels, int frames)
 transpose transposes a buffer More...
 
static T * BGRtoRGB (T *buffer, int width, int height, int channels, int frames)
 BGRtoRGB swizzles from BGR to RGB a buffer. More...
 
static T * BufferFromLayerToIntervaleaved (T *bufferOut, T *bufferIn, int n, int channels)
 BufferFromLayerToIntervaleaved change from RGB RGB RGB... to RRR... GGG... BBB... More...
 
static T * clone (T *bufferOut, T *bufferIn, int n, int channels)
 clone More...
 
static void unique (T *buffer, int n, std::set< T > &uniqueValues)
 unique More...
 
static void copySubBuffer (T *bufIn, int bi_width, int bi_height, int bi_channels, int startX, int startY, T *bufOut, int bo_width, int bo_height, int bo_channels)
 copySubBuffer More...
 

Constructor & Destructor Documentation

◆ Buffer()

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

Member Function Documentation

◆ add() [1/3]

template<class T>
static T* pic::pic::Buffer< T >::add ( T *  buffer,
int  n,
value 
)
inlinestatic

add peforms addition

Parameters
bufferis the output buffer
nis the number of elements of the buffer
valueis the value to be added to all values of buffer
Returns
it returns the pointer to buffer

◆ add() [2/3]

template<class T>
static T* pic::pic::Buffer< T >::add ( T *  bufferOut,
T *  bufferIn0,
T *  bufferIn1,
int  n 
)
inlinestatic

add

Parameters
bufferOut
bufferIn0
bufferIn1
n
Returns

◆ add() [3/3]

template<class T>
static T* pic::pic::Buffer< T >::add ( T *  bufferOut,
T *  bufferIn,
int  n 
)
inlinestatic

◆ addS()

template<class T>
static T* pic::pic::Buffer< T >::addS ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

◆ assign() [1/2]

template<class T>
static T* pic::pic::Buffer< T >::assign ( T *  buffer,
int  n,
value 
)
inlinestatic

assign assigns value to buffer

Parameters
bufferis the output buffer
nis the number of elements of the buffer
valueis the value to be assigned to all values of buffer
Returns
it returns the pointer to buffer

◆ assign() [2/2]

template<class T>
static T* pic::pic::Buffer< T >::assign ( T *  bufferOut,
T *  bufferIn,
int  n 
)
inlinestatic

assign assigns bufferIn to bufferOut

Parameters
bufferOutis the output buffer
bufferInis the input buffer
nis the number of elements of bufferIn and bufferOut (they have to be of same length)
Returns
it returns the pointer to buffer

◆ BGRtoRGB()

template<class T>
static T* pic::pic::Buffer< T >::BGRtoRGB ( T *  buffer,
int  width,
int  height,
int  channels,
int  frames 
)
inlinestatic

BGRtoRGB swizzles from BGR to RGB a buffer.

Parameters
buffer
width
height
channels
frames
Returns

◆ BufferFromLayerToIntervaleaved()

template<class T>
static T* pic::pic::Buffer< T >::BufferFromLayerToIntervaleaved ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

BufferFromLayerToIntervaleaved change from RGB RGB RGB... to RRR... GGG... BBB...

Parameters
bufferOut
bufferIn
n
channels
Returns

◆ clone()

template<class T>
static T* pic::pic::Buffer< T >::clone ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

clone

Parameters
bufferOut
bufferIn
n
channels
Returns

◆ copySubBuffer()

template<class T>
static void pic::pic::Buffer< T >::copySubBuffer ( T *  bufIn,
int  bi_width,
int  bi_height,
int  bi_channels,
int  startX,
int  startY,
T *  bufOut,
int  bo_width,
int  bo_height,
int  bo_channels 
)
inlinestatic

copySubBuffer

Parameters
bufIn
bi_width
bi_height
bi_channels
startX
startY
bufOut
bo_width
bo_height
bo_channels

◆ div() [1/3]

template<class T>
static T* pic::pic::Buffer< T >::div ( T *  buffer,
int  n,
value 
)
inlinestatic

div divides by a constant value

Parameters
buffer
n
value
Returns

◆ div() [2/3]

template<class T>
static T* pic::pic::Buffer< T >::div ( T *  bufferOut,
T *  bufferIn0,
T *  bufferIn1,
int  n 
)
inlinestatic

div

Parameters
bufferOut
bufferIn0
bufferIn1
n
Returns

◆ div() [3/3]

template<class T>
static T* pic::pic::Buffer< T >::div ( T *  bufferOut,
T *  bufferIn,
int  n 
)
inlinestatic

div

Parameters
bufferOut
bufferIn
n
Returns

◆ divS()

template<class T>
static T* pic::pic::Buffer< T >::divS ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

divS

Parameters
bufferOut
bufferIn
n
channels
Returns

◆ flipH()

template<class T>
static void pic::pic::Buffer< T >::flipH ( T *  buffer,
int  width,
int  height,
int  channels,
int  frames 
)
inlinestatic

flipH flips a buffer horizontally

Parameters
buffer
width
height
channels
frames

◆ flipV()

template<class T>
static void pic::pic::Buffer< T >::flipV ( T *  buffer,
int  width,
int  height,
int  channels,
int  frames 
)
inlinestatic

flipV flips an image vertically

Parameters
buffer
width
height
channels
frames

◆ mul() [1/3]

template<class T>
static T* pic::pic::Buffer< T >::mul ( T *  buffer,
int  n,
value 
)
inlinestatic

mul multiplies a constant value

Parameters
buffer
n
value
Returns

◆ mul() [2/3]

template<class T>
static T* pic::pic::Buffer< T >::mul ( T *  bufferOut,
T *  bufferIn0,
T *  bufferIn1,
int  n 
)
inlinestatic

mul

Parameters
bufferOut
bufferIn0
bufferIn1
n
Returns

◆ mul() [3/3]

template<class T>
static T* pic::pic::Buffer< T >::mul ( T *  bufferOut,
T *  bufferIn,
int  n 
)
inlinestatic

BufferMul.

Parameters
bufferOut
bufferIn
n
Returns

◆ mulS()

template<class T>
static T* pic::pic::Buffer< T >::mulS ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

mulS

Parameters
bufferOut
bufferIn
n
channels
Returns

◆ rotate90CCW()

template<class T>
static void pic::pic::Buffer< T >::rotate90CCW ( T *  buffer,
int &  width,
int &  height,
int  channels 
)
inlinestatic

rotate90CCW rotates an image 90 CCW

Parameters
buffer
width
height
channels

◆ rotate90CW()

template<class T>
static void pic::pic::Buffer< T >::rotate90CW ( T *  buffer,
int &  width,
int &  height,
int  channels 
)
inlinestatic

rotate90CW rotates an image 90 CW

Parameters
buffer
width
height
channels

◆ shift()

template<class T>
static T* pic::pic::Buffer< T >::shift ( T *  bufferOut,
T *  bufferIn,
int  dx,
int  dy,
int  width,
int  height,
int  channels,
int  frames 
)
inlinestatic

shift

Parameters
bufferOut
bufferIn
dx
dy
width
height
channels
frames
Returns

◆ sub() [1/3]

template<class T>
static T* pic::pic::Buffer< T >::sub ( T *  buffer,
int  n,
value 
)
inlinestatic

sub

Parameters
buffer
n
value
Returns

◆ sub() [2/3]

template<class T>
static T* pic::pic::Buffer< T >::sub ( T *  bufferOut,
T *  bufferIn0,
T *  bufferIn1,
int  n 
)
inlinestatic

sub

Parameters
bufferOut
bufferIn0
bufferIn1
n
Returns

◆ sub() [3/3]

template<class T>
static T* pic::pic::Buffer< T >::sub ( T *  bufferOut,
T *  bufferIn,
int  n 
)
inlinestatic

sub

Parameters
bufferOut
bufferIn
n
Returns

◆ subS()

template<class T>
static T* pic::pic::Buffer< T >::subS ( T *  bufferOut,
T *  bufferIn,
int  n,
int  channels 
)
inlinestatic

subS

Parameters
bufferOut
bufferIn
n
channels
Returns

◆ transpose()

template<class T>
static T* pic::pic::Buffer< T >::transpose ( T *  bufferOut,
T *  bufferIn,
int  width,
int  height,
int  channels,
int  frames 
)
inlinestatic

transpose transposes a buffer

Parameters
bufferOut
bufferIn
width
height
channels
frames
Returns

◆ unique()

template<class T>
static void pic::pic::Buffer< T >::unique ( T *  buffer,
int  n,
std::set< T > &  uniqueValues 
)
inlinestatic

unique

Parameters
buffer
n
uniqueValues
Returns

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