ImFusion SDK 4.3
GaussianFilter Class Reference

#include <ImFusion/GL/GaussianFilter.h>

Applies a symmetric Gaussian filter to an image. More...

Detailed Description

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< SharedImagecompute (const SharedImage &imgIn)
 
std::unique_ptr< SharedImagecompute (const MemImage &imgIn)
 
void compute (const float *in, float *out, int width, int height, int slices, int channels)
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close