Optimized Belief Propagation (CPU and GPU)
SmoothImageCUDA Class Referencefinal

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

#include <SmoothImageCUDA.h>

Inheritance diagram for SmoothImageCUDA:
Collaboration diagram for SmoothImageCUDA:

Public Member Functions

 SmoothImageCUDA (const ParallelParams &cuda_params)
 
void operator() (const BpImage< unsigned int > &in_image, float sigma, float *smoothed_image) const override
 For the CUDA smoothing, the input image is on the host and the output image is on the device (GPU) 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 CUDA implementation.

Definition at line 44 of file SmoothImageCUDA.h.

Constructor & Destructor Documentation

◆ SmoothImageCUDA()

SmoothImageCUDA::SmoothImageCUDA ( const ParallelParams cuda_params)
inlineexplicit

Definition at line 46 of file SmoothImageCUDA.h.

Member Function Documentation

◆ operator()()

void SmoothImageCUDA::operator() ( const BpImage< unsigned int > &  in_image,
float  sigma,
float *  smoothed_image 
) const
overridevirtual

For the CUDA smoothing, the input image is on the host and the output image is on the device (GPU)

Parameters
in_image
sigma
smoothed_image

Implements SmoothImage.

Definition at line 31 of file SmoothImageCUDA.cpp.

Here is the call graph for this function:

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