![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GaussianFilter.h>
Applies a symmetric Gaussian filter to an image. More...
Applies a symmetric Gaussian filter to an image.
Algorithm is based on separable convolution. Guarantees identical results between OpenGL and CPU modes, up to numerical precision (which is slightly higher on CPU).
Public Member Functions | |
| GaussianFilter (unsigned int kernelRadius=3, double sigma=1.0) | |
| void | setSigmaInPixels (double sigma) |
| Set standard deviation for Gauss curve in pixels, does not change kernel size. | |
| void | setKernelRadius (unsigned int r) |
| Set kernel radius, total size is 2*r+1 pixels. Does not change sigma. | |
| bool | setSigmaAsCutoffRatio (double cutoffRatio) |
| Sets sigma such that at the kernel edge the Gauss has cutoffRatio of its peak value. Returns whether value was valid. | |
| void | setUseGPU (bool val) |
| void | setIgnoreOutside (bool val) |
| std::unique_ptr< SharedImage > | compute (const SharedImage &imgIn) |
| std::unique_ptr< SharedImage > | compute (const MemImage &imgIn) |
| void | compute (const float *in, float *out, int width, int height, int slices, int channels) |