PICCANTE  0.4
The hottest HDR imaging library!
Static Public Member Functions | List of all members
pic::Mask Class Reference

#include <mask.hpp>

Inheritance diagram for pic::Mask:
pic::pic::Buffer< bool >

Static Public Member Functions

static bool * removeIsolatedPixels (bool *dataOut, bool *dataIn, int width, int height)
 removeIsolatedPixels removes isolated pixels. More...
 
static bool * erode (bool *dataOut, bool *dataIn, int width, int height, int kernelSize=3)
 erode erodes a mask. More...
 
static bool * dilate (bool *dataOut, bool *dataIn, int width, int height, int kernelSize=3)
 MaskDilate dilates a mask. More...
 
static bool empty (bool *dataIn, int width, int height)
 MaskEmpty checks if a mask is empty. More...
 
static bool * thinning (bool *dataOut, bool *dataIn, int width, int height)
 thinning thins a mask. More...
 
- Static Public Member Functions inherited from pic::pic::Buffer< bool >
static bool * assign (bool *buffer, int n, bool value)
 assign assigns value to buffer More...
 
static bool * assign (bool *bufferOut, bool *bufferIn, int n)
 assign assigns bufferIn to bufferOut More...
 
static bool * add (bool *buffer, int n, bool value)
 add peforms addition More...
 
static bool * add (bool *bufferOut, bool *bufferIn0, bool *bufferIn1, int n)
 add More...
 
static bool * add (bool *bufferOut, bool *bufferIn, int n)
 
static bool * addS (bool *bufferOut, bool *bufferIn, int n, int channels)
 
static bool * mul (bool *buffer, int n, bool value)
 mul multiplies a constant value More...
 
static bool * mul (bool *bufferOut, bool *bufferIn0, bool *bufferIn1, int n)
 mul More...
 
static bool * mul (bool *bufferOut, bool *bufferIn, int n)
 BufferMul. More...
 
static bool * mulS (bool *bufferOut, bool *bufferIn, int n, int channels)
 mulS More...
 
static bool * sub (bool *buffer, int n, bool value)
 sub More...
 
static bool * sub (bool *bufferOut, bool *bufferIn0, bool *bufferIn1, int n)
 sub More...
 
static bool * sub (bool *bufferOut, bool *bufferIn, int n)
 sub More...
 
static bool * subS (bool *bufferOut, bool *bufferIn, int n, int channels)
 subS More...
 
static bool * div (bool *buffer, int n, bool value)
 div divides by a constant value More...
 
static bool * div (bool *bufferOut, bool *bufferIn0, bool *bufferIn1, int n)
 div More...
 
static bool * div (bool *bufferOut, bool *bufferIn, int n)
 div More...
 
static bool * divS (bool *bufferOut, bool *bufferIn, int n, int channels)
 divS More...
 
static void flipH (bool *buffer, int width, int height, int channels, int frames)
 flipH flips a buffer horizontally More...
 
static void flipV (bool *buffer, int width, int height, int channels, int frames)
 flipV flips an image vertically More...
 
static void rotate90CW (bool *buffer, int &width, int &height, int channels)
 rotate90CW rotates an image 90 CW More...
 
static void rotate90CCW (bool *buffer, int &width, int &height, int channels)
 rotate90CCW rotates an image 90 CCW More...
 
static bool * shift (bool *bufferOut, bool *bufferIn, int dx, int dy, int width, int height, int channels, int frames)
 shift More...
 
static bool * transpose (bool *bufferOut, bool *bufferIn, int width, int height, int channels, int frames)
 transpose transposes a buffer More...
 
static bool * BGRtoRGB (bool *buffer, int width, int height, int channels, int frames)
 BGRtoRGB swizzles from BGR to RGB a buffer. More...
 
static bool * BufferFromLayerToIntervaleaved (bool *bufferOut, bool *bufferIn, int n, int channels)
 BufferFromLayerToIntervaleaved change from RGB RGB RGB... to RRR... GGG... BBB... More...
 
static bool * clone (bool *bufferOut, bool *bufferIn, int n, int channels)
 clone More...
 
static void unique (bool *buffer, int n, std::set< bool > &uniqueValues)
 unique More...
 
static void copySubBuffer (bool *bufIn, int bi_width, int bi_height, int bi_channels, int startX, int startY, bool *bufOut, int bo_width, int bo_height, int bo_channels)
 copySubBuffer More...
 

Additional Inherited Members

- Public Member Functions inherited from pic::pic::Buffer< bool >
 Buffer ()
 

Member Function Documentation

◆ dilate()

static bool* pic::Mask::dilate ( bool *  dataOut,
bool *  dataIn,
int  width,
int  height,
int  kernelSize = 3 
)
inlinestatic

MaskDilate dilates a mask.

Parameters
dataOut
dataIn
width
height
kernelSize
Returns

◆ empty()

static bool pic::Mask::empty ( bool *  dataIn,
int  width,
int  height 
)
inlinestatic

MaskEmpty checks if a mask is empty.

Parameters
dataIn
width
height
Returns

◆ erode()

static bool* pic::Mask::erode ( bool *  dataOut,
bool *  dataIn,
int  width,
int  height,
int  kernelSize = 3 
)
inlinestatic

erode erodes a mask.

Parameters
dataOut
dataIn
width
height
kernelSize
Returns

◆ removeIsolatedPixels()

static bool* pic::Mask::removeIsolatedPixels ( bool *  dataOut,
bool *  dataIn,
int  width,
int  height 
)
inlinestatic

removeIsolatedPixels removes isolated pixels.

Parameters
dataOut
dataIn
width
height
Returns

◆ thinning()

static bool* pic::Mask::thinning ( bool *  dataOut,
bool *  dataIn,
int  width,
int  height 
)
inlinestatic

thinning thins a mask.

Parameters
dataOut
dataIn
width
height

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