Detailed Description
Definition at line 85 of file
ConvolutionKernel.h.
#include <ConvolutionKernel.h>
List
of all members.
Constructor & Destructor Documentation
user specified arbitrary size x size kernel.
The ctor copies the kernel into this class.
ConvolutionKernel |
( |
float |
sharpness = 0.5f , |
|
|
float |
radius = 1.5f , |
|
|
float |
sigma =
(1.0f/3.0f) |
|
) |
|
|
construct a procedurally generated kernel (as described
above)
destructor. Releases memory
Member Function Documentation
void setSharpness |
( |
float |
val |
) |
|
void setRadius |
( |
float |
val |
) |
|
void setSigma |
( |
float |
val |
) |
|
void setKernel |
( |
float * |
f, |
|
|
int |
Size |
|
) |
|
|
Copies the supplied kernel into this class.
float getSharpness |
( |
|
) |
const [inline] |
float getRadius |
( |
|
) |
const [inline] |
float getSigma |
( |
|
) |
const [inline] |
bool isGenerated |
( |
void |
|
) |
const [inline] |
int getSize |
( |
void |
|
) |
const [inline] |
- Returns:
- the size of the kernel (width and height are the same)
Definition at line 131 of file
ConvolutionKernel.h.
void getKernel |
( |
float * |
targetBuffer |
) |
const |
copies the kernel to the target buffer which must be
appropriately sized
const float* getKernel |
( |
void |
|
) |
const [inline] |
const short* getFixedKernel |
( |
void |
|
) |
const [inline] |
- Returns:
- a pointer to the 16 bit fixed point kernel in S4.11 format
- Note:
- The Fixed kernel is made up of fixed point signed numbers in
the form S4.11. This was chosen because the procedurally generated
kernel will always be expressable in this form as long as the
sharpness is in the range -1 to 10.
Definition at line 145 of file
ConvolutionKernel.h.
{ return m_fixedKernel; }
void logPrintKernel |
( |
void |
|
) |
const |
Prints the convolution kernel to the log. (for debugging
purposes)
The documentation for this class was generated from the following
file: