27 #ifndef SMOOTH_IMAGE_HOST_HEADER_H
28 #define SMOOTH_IMAGE_HOST_HEADER_H
70 float* smoothed_image)
const = 0;
79 std::vector<float>
MakeFilter(
float sigma)
const;
95 void NormalizeFilter(std::vector<float>& filter)
const;
File with namespace for enums, constants, structures, and functions specific to belief propagation pr...
Declares class to define images that are used in bp processing.
Declares child class of ParallelParams to store and process parallelization parameters to use in each...
constexpr float kWidthSigma1
constexpr float kMinSigmaValSmooth
Class to define images that are used in bp processing.
Abstract class for holding and processing parallelization parameters. Child class(es) specific to im...
Class for smoothing the images before running BP. Smoothing image always uses float data type.
virtual void operator()(const BpImage< unsigned int > &in_image, float sigma, float *smoothed_image) const =0
Function to use the image filter to apply a guassian filter to the a single image....
SmoothImage(const ParallelParams ¶llel_params)
const ParallelParams & parallel_params_
Parallel parameters to use parallel operations (number of threads on CPU / thread block config in CUD...
std::vector< float > MakeFilter(float sigma) const
Create a Gaussian filter from a sigma value.