![]() |
Perception Tool Kit (PTK) API Guide
|
Data Structures | |
| struct | PTK_Alg_StereoPP_DisparityMerge_configParams |
| Stereo Post-Processing Disparity Merge algorithm - config Parameters. More... | |
| struct | PTK_Alg_StereoPP_DisparityMergeObj |
| Stereo algorithm - 1-D hole filling context. More... | |
Functions | |
| void | PTK_Alg_StereoPP_DisparityMergeSetParams (PTK_Alg_StereoPP_DisparityMerge_configParams *cfg, PTK_Alg_StereoPP_DisparityMergeObj *cntxt) |
| Initialize disparity merge parameters. More... | |
| int32_t | PTK_Alg_StereoPP_DisparityMergeConfig (PTK_Alg_StereoPP_DisparityMerge_configParams *cfg, PTK_Api_MemoryReq *memReq) |
| Computes the memory requirements based on the given algorithm configuration parameters. More... | |
| PTK_AlgHandle | PTK_Alg_StereoPP_DisparityMergeInit (PTK_Alg_StereoPP_DisparityMerge_configParams *cfg, const PTK_Api_MemoryRsp *memRsp) |
| Initializes the library based on the given algorithm configuration parameters and allocated memory blocks. More... | |
| int32_t | PTK_Alg_StereoPP_DisparityMergeGetMem (PTK_Alg_StereoPP_DisparityMergeObj *cntxt, uint8_t *memPtr) |
| Get memory size. More... | |
| void | PTK_Alg_StereoPP_mergeDisparity (PTK_Alg_StereoPP_DisparityMergeObj *cntxt, int16_t *disparityLowBuffer, int16_t *disparityHighBuffer, int16_t *outDisparityBuffer, int16_t lowBufferStride, int16_t highBufferStride) |
| Merge two disparity maps. More... | |
| void | PTK_Alg_StereoPP_upsampleDisparity (int16_t *lowDisparity, int16_t *upDisparity, int16_t loWidth, int16_t loStride, int16_t loHeight, int16_t hiWidth, int16_t hiStride, int16_t hiHeight, int8_t loDispOnlyFlag) |
| Upsample low-resolution disparity. More... | |
| void PTK_Alg_StereoPP_DisparityMergeSetParams | ( | PTK_Alg_StereoPP_DisparityMerge_configParams * | cfg, |
| PTK_Alg_StereoPP_DisparityMergeObj * | cntxt | ||
| ) |
Initialize disparity merge parameters.
| [in] | cfg | configuration parameters for disparity merge |
| [in] | cntxt | hole filling algorithm context |
| int32_t PTK_Alg_StereoPP_DisparityMergeConfig | ( | PTK_Alg_StereoPP_DisparityMerge_configParams * | cfg, |
| PTK_Api_MemoryReq * | memReq | ||
| ) |
Computes the memory requirements based on the given algorithm configuration parameters.
| [in] | cntxt | Algorithm configuration parameters. |
| [in] | memReq | Memory requirements as specified below
|
| PTK_AlgHandle PTK_Alg_StereoPP_DisparityMergeInit | ( | PTK_Alg_StereoPP_DisparityMerge_configParams * | cfg, |
| const PTK_Api_MemoryRsp * | memRsp | ||
| ) |
Initializes the library based on the given algorithm configuration parameters and allocated memory blocks.
| [in] | allParams | Algorithm configuration parameters. |
| [in] | memRsp | Memory blocks as specified below |
| int32_t PTK_Alg_StereoPP_DisparityMergeGetMem | ( | PTK_Alg_StereoPP_DisparityMergeObj * | cntxt, |
| uint8_t * | memPtr | ||
| ) |
Get memory size.
| [in,out] | cntxt | Algorithm handle. |
| [in] | memory | block pointer |
| void PTK_Alg_StereoPP_mergeDisparity | ( | PTK_Alg_StereoPP_DisparityMergeObj * | cntxt, |
| int16_t * | disparityLowBuffer, | ||
| int16_t * | disparityHighBuffer, | ||
| int16_t * | outDisparityBuffer, | ||
| int16_t | lowBufferStride, | ||
| int16_t | highBufferStride | ||
| ) |
Merge two disparity maps.
| [in] | cntxt | algorithm handle |
| [in] | disparityLowBuffer | input lower-resolution disparity buffer |
| [in] | disparityHighBuffer | input higher-resolution disparity buffer |
| [out] | outDisparityBuffer | output disparity buffer |
| [in] | lowBufferStride | stride of lower-resolution disparity buffer |
| [in] | highBufferStride | stride of higher-resolution disparity buffer |
| void PTK_Alg_StereoPP_upsampleDisparity | ( | int16_t * | lowDisparity, |
| int16_t * | upDisparity, | ||
| int16_t | loWidth, | ||
| int16_t | loStride, | ||
| int16_t | loHeight, | ||
| int16_t | hiWidth, | ||
| int16_t | hiStride, | ||
| int16_t | hiHeight, | ||
| int8_t | loDispOnlyFlag | ||
| ) |
Upsample low-resolution disparity.
| [in] | lowDisparity | low-disparity disparity map |
| [out] | upDisparity | upsampled disparity map |
| [in] | loWidth | low-resolution disparity width |
| [in] | loStride | low-resolution disparity stride |
| [in] | loHeight | low-resolution disparity height |
| [in] | hiWidth | upsampled disparity width |
| [in] | hiStride | upsampled disparity stride |
| [in] | hiHeight | upsampled disparity height |