ConvolutionKernel Class Reference
#include <ConvolutionKernel.h>
Definition at line 85 of file ConvolutionKernel.h.
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
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 |
bool isGenerated |
( |
void |
| ) |
const |
|
inline |
- Returns
- true if procedurally generated, false otherwise
Definition at line 128 of file ConvolutionKernel.h.
128 {
return m_Generated; }
- 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.
145 {
return m_fixedKernel; }
Prints the convolution kernel to the log. (for debugging purposes)
The documentation for this class was generated from the following file: