Vuo
1.2.6
|
VuoImageConvolve implementation.
Classes | |
struct | VuoImageConvolve_internal |
State data for the image convolver. More... | |
Functions | |
void | VuoImageConvolve_free (void *convolve) |
Frees image blender state data. | |
double | VuoImageConvolve_laplacianOfGaussian (double x, double y, double radius) |
Returns the (0,0)-centered Laplacian-of-Gaussian function at the given position and sigma. | |
unsigned int | VuoImageConvolve_laplacianOfGaussianWidth (double radius) |
Returns a recommended matrix width for VuoImageConvolve_laplacianOfGaussian. | |
VuoImage | VuoImageConvolve_generateMatrix (VuoImageConvolveFunction f, unsigned int width, bool removeDCOffset, double param) |
Returns an image containing a set of (unnormalized) weights for the specified function. | |
VuoImageConvolve | VuoImageConvolve_make (void) |
Creates state data for the image Convolverer. | |
VuoImage | VuoImageConvolve_convolve (VuoImageConvolve convolve, VuoImage image, VuoImage convolutionMatrix, VuoThresholdType channels, double intensity, VuoDiode range) |
Returns a convolved copy of image. | |
struct VuoImageConvolve_internal |
Class Members | ||
---|---|---|
VuoShader | shader |
VuoImage VuoImageConvolve_convolve | ( | VuoImageConvolve | convolve, |
VuoImage | image, | ||
VuoImage | convolutionMatrix, | ||
VuoThresholdType | channels, | ||
double | intensity, | ||
VuoDiode | range | ||
) |
Returns a convolved copy of image.
(Or, if radius is zero, returns image.)
convolutionMatrix
must be square and have odd width/height.
void VuoImageConvolve_free | ( | void * | convolve | ) |
Frees image blender state data.
VuoImage VuoImageConvolve_generateMatrix | ( | VuoImageConvolveFunction | f, |
unsigned int | width, | ||
bool | removeDCOffset, | ||
double | param | ||
) |
Returns an image containing a set of (unnormalized) weights for the specified function.
double VuoImageConvolve_laplacianOfGaussian | ( | double | x, |
double | y, | ||
double | radius | ||
) |
Returns the (0,0)-centered Laplacian-of-Gaussian function at the given position and sigma.
(This is the continuous version of the function, but we make up for it by normalizing and removing the DC offset in VuoImageConvolve_generateMatrix.)
unsigned int VuoImageConvolve_laplacianOfGaussianWidth | ( | double | radius | ) |
Returns a recommended matrix width for VuoImageConvolve_laplacianOfGaussian.
VuoImageConvolve VuoImageConvolve_make | ( | void | ) |
Creates state data for the image Convolverer.