Optimized Belief Propagation (CPU and GPU)
SmoothImageCPU Class Referencefinal

Child class of SmoothImage for smoothing images in the optimized CPU implementation. More...

#include <SmoothImageCPU.h>

Inheritance diagram for SmoothImageCPU:
Collaboration diagram for SmoothImageCPU:

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...
 
- Public Member Functions inherited from SmoothImage
 SmoothImage (const ParallelParams &parallel_params)
 

Additional Inherited Members

- Protected Member Functions inherited from SmoothImage
std::vector< float > MakeFilter (float sigma) const
 Create a Gaussian filter from a sigma value. More...
 
- Protected Attributes inherited from SmoothImage
const ParallelParamsparallel_params_
 Parallel parameters to use parallel operations (number of threads on CPU / thread block config in CUDA) More...
 

Detailed Description

Child class of SmoothImage for smoothing images in the optimized CPU implementation.

Definition at line 41 of file SmoothImageCPU.h.

Constructor & Destructor Documentation

◆ SmoothImageCPU()

SmoothImageCPU::SmoothImageCPU ( const ParallelParams opt_cpu_params)
inlineexplicit

Definition at line 43 of file SmoothImageCPU.h.

Member Function Documentation

◆ operator()()

void SmoothImageCPU::operator() ( const BpImage< unsigned int > &  in_image,
const float  sigma,
float *  smoothed_image 
) const
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.

Parameters
in_image
sigma
smoothed_image

Implements SmoothImage.

Definition at line 33 of file SmoothImageCPU.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: