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

#include <oclblockmatching.h>

Inheritance diagram for gcvl::opencl::BlockMatching:
gcvl::opencl::Algorithm

List of all members.

Public Member Functions

 BlockMatching (Core &core, std::string inputLeft, std::string inputRight, std::unique_ptr< unsigned char[]> &output)
 ~BlockMatching ()
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 the kernel arguments.
void launch ()
 Launch the algorithm.
void postpare ()
 Function that performs post-processing steps.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Obtains image height.

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

Obtains image width.

Returns:
image width in pixels.

Launch the algorithm.

Implements gcvl::opencl::Algorithm.

Function that performs post-processing steps.

Implements gcvl::opencl::Algorithm.

Function that performs pre-processing steps.

Implements gcvl::opencl::Algorithm.

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

Sets the aggregation window dimension.

Parameters:
valaggregation window dimension in pixels.

Function that sets the kernel arguments.

Implements gcvl::opencl::Algorithm.

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

Sets the maximum disparity.

Parameters:
valmaximum disparity in pixels.
void gcvl::opencl::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 file:
 All Classes Namespaces Files Functions Variables Defines