|
GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
|
#include <cudablockmatching.h>
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. | |
| BlockMatching::BlockMatching | ( | Core & | core, |
| std::string | inputLeft, | ||
| std::string | inputRight, | ||
| std::unique_ptr< unsigned char[]> & | output | ||
| ) |
Class constructor.
| core | OpenCL core instance in which the user wants to run the Block Matching algorithm. |
| inputLeft | path to the left input image. |
| inputRight | path to the right input image. |
| output | pointer to the Block Matching resulting disparity map. |
Class destructor.
| unsigned int gcvl::cuda::BlockMatching::getHeight | ( | ) | [inline] |
Obtains image height.
| unsigned int gcvl::cuda::BlockMatching::getWidth | ( | ) | [inline] |
Obtains image width.
| 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.
| val | aggregation 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.
| val | maximum disparity in pixels. |
| void gcvl::cuda::BlockMatching::setNormalize | ( | const bool | val | ) | [inline] |
Activates or deactivates disparity map normalization.
| val | normalization usage. |