Optimized Belief Propagation (CPU and GPU)
|
Child class of SmoothImage for smoothing images in the optimized CPU implementation. More...
#include <SmoothImageCPU.h>
Public Member Functions | |
SmoothImageCPU (const ParallelParams &opt_cpu_params) | |
void | operator() (const BpImage< unsigned int > &in_image, const float sigma, float *smoothed_image) const override |
Function to use the image filter to apply a guassian filter to the a single image. Input images have each pixel stored as an unsigned int (value between 0 and 255 assuming 8-bit grayscale image used). Output filtered images have each pixel stored as a float after the image has been smoothed with a Gaussian filter of sigma. Mask is normalized so it integrates to one. More... | |
![]() | |
SmoothImage (const ParallelParams ¶llel_params) | |
Additional Inherited Members | |
![]() | |
std::vector< float > | MakeFilter (float sigma) const |
Create a Gaussian filter from a sigma value. More... | |
![]() | |
const ParallelParams & | parallel_params_ |
Parallel parameters to use parallel operations (number of threads on CPU / thread block config in CUDA) More... | |
Child class of SmoothImage for smoothing images in the optimized CPU implementation.
Definition at line 41 of file SmoothImageCPU.h.
|
inlineexplicit |
Definition at line 43 of file SmoothImageCPU.h.
|
overridevirtual |
Function to use the image filter to apply a guassian filter to the a single image.
Input images have each pixel stored as an unsigned int (value between 0 and 255 assuming 8-bit grayscale image used).
Output filtered images have each pixel stored as a float after the image has been smoothed with a Gaussian filter of sigma.
Mask is normalized so it integrates to one.
in_image | |
sigma | |
smoothed_image |
Implements SmoothImage.
Definition at line 33 of file SmoothImageCPU.cpp.