GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
gcvl::cuda::BlockMatching Class Reference

#include <cudablockmatching.h>

Inheritance diagram for gcvl::cuda::BlockMatching:
gcvl::cuda::Algorithm

List of all members.

Public Member Functions

 BlockMatching (Core &core, std::string inputLeft, std::string inputRight, std::unique_ptr< unsigned char[]> &output)
 Class constructor.
 ~BlockMatching ()
 Class destructor.
void setAggDim (const int val)
 Sets the aggregation window dimension.
void setMaxDisp (const int val)
 Sets the maximum disparity.
void setNormalize (const bool val)
 Activates or deactivates disparity map normalization.
unsigned int getWidth ()
 Obtains image width.
unsigned int getHeight ()
 Obtains image height.
void prepare ()
 Function that performs pre-processing steps.
void setArgs ()
 Function that sets arguments.
void launch ()
 Launch the CUDA kernels.
void postpare ()
 Function that waits for the kernels to finish processing.

Constructor & Destructor Documentation

BlockMatching::BlockMatching ( Core &  core,
std::string  inputLeft,
std::string  inputRight,
std::unique_ptr< unsigned char[]> &  output 
)

Class constructor.

Parameters:
coreOpenCL core instance in which the user wants to run the Block Matching algorithm.
inputLeftpath to the left input image.
inputRightpath to the right input image.
outputpointer to the Block Matching resulting disparity map.
See also:
~BlockMatching()

Class destructor.

See also:
BlockMatching()

Member Function Documentation

unsigned int gcvl::cuda::BlockMatching::getHeight ( ) [inline]

Obtains image height.

Returns:
image height in pixels.
unsigned int gcvl::cuda::BlockMatching::getWidth ( ) [inline]

Obtains image width.

Returns:
image width in pixels.
void BlockMatching::launch ( ) [virtual]

Launch the CUDA kernels.

Implements gcvl::cuda::Algorithm.

void BlockMatching::postpare ( ) [virtual]

Function that waits for the kernels to finish processing.

Implements gcvl::cuda::Algorithm.

void BlockMatching::prepare ( ) [virtual]

Function that performs pre-processing steps.

Implements gcvl::cuda::Algorithm.

void gcvl::cuda::BlockMatching::setAggDim ( const int  val) [inline]

Sets the aggregation window dimension.

Parameters:
valaggregation window dimension in pixels.
void BlockMatching::setArgs ( ) [virtual]

Function that sets arguments.

Implements gcvl::cuda::Algorithm.

void gcvl::cuda::BlockMatching::setMaxDisp ( const int  val) [inline]

Sets the maximum disparity.

Parameters:
valmaximum disparity in pixels.
void gcvl::cuda::BlockMatching::setNormalize ( const bool  val) [inline]

Activates or deactivates disparity map normalization.

Parameters:
valnormalization usage.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines