Perception Tool Kit (PTK) API Guide
PTK Stereo Disparity Hole Filling Postprocess

Introduction

Data Structures

struct  PTK_Alg_StereoPP_HoleFilling_configParams
 Stereo Post-Processing 1-D Hole Filling algorithm - config Parameters. More...
 
struct  PTK_Alg_StereoPP_HoleFillingObj
 Stereo algorithm - 1-D hole filling context. More...
 

Functions

void PTK_Alg_StereoPP_HoleFillingSetParams (PTK_Alg_StereoPP_HoleFilling_configParams *cfg, PTK_Alg_StereoPP_HoleFillingObj *cntxt)
 Initialize hole filling parameters. More...
 
int32_t PTK_Alg_StereoPP_HoleFillingConfig (PTK_Alg_StereoPP_HoleFilling_configParams *cfg, PTK_Api_MemoryReq *memReq)
 Computes the memory requirements based on the given algorithm configuration parameters. More...
 
PTK_AlgHandle PTK_Alg_StereoPP_HoleFillingInit (PTK_Alg_StereoPP_HoleFilling_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_HoleFillingGetMem (PTK_Alg_StereoPP_HoleFillingObj *cntxt, uint8_t *memPtr)
 Get memory size. More...
 
void PTK_Alg_StereoPP_runHoleFilling (PTK_Alg_StereoPP_HoleFillingObj *cntxt, int16_t *disparityBuffer, int16_t stride)
 Run 1-D horizontal hole filling. More...
 

Function Documentation

◆ PTK_Alg_StereoPP_HoleFillingSetParams()

void PTK_Alg_StereoPP_HoleFillingSetParams ( PTK_Alg_StereoPP_HoleFilling_configParams cfg,
PTK_Alg_StereoPP_HoleFillingObj cntxt 
)

Initialize hole filling parameters.

Parameters
[in]cfgconfiguration parameters for hole filling
[in]cntxthole filling algorithm context
Returns

◆ PTK_Alg_StereoPP_HoleFillingConfig()

int32_t PTK_Alg_StereoPP_HoleFillingConfig ( PTK_Alg_StereoPP_HoleFilling_configParams cfg,
PTK_Api_MemoryReq memReq 
)

Computes the memory requirements based on the given algorithm configuration parameters.

Parameters
[in]cntxtAlgorithm configuration parameters.
[in]memReqMemory requirements as specified below
  • entry [0]: Memory for internal context. Best allocated from the fastest memory.
  • entry [1]: Memory for internal point cloud. Best allocated from the fastest memory.
  • entry [2]: Memory for the output buffer. The output buffer is allocated by the Application so this entry is just to communicate the output buffer size. No need to pass the memory to the library in the init call PTK_Alg_SfmOgmapInit().
Returns
  • PTK_ALG_RET_SUCCESS, if successful
  • < error code, otherwise

◆ PTK_Alg_StereoPP_HoleFillingInit()

PTK_AlgHandle PTK_Alg_StereoPP_HoleFillingInit ( PTK_Alg_StereoPP_HoleFilling_configParams cfg,
const PTK_Api_MemoryRsp memRsp 
)

Initializes the library based on the given algorithm configuration parameters and allocated memory blocks.

Parameters
[in]allParamsAlgorithm configuration parameters.
[in]memRspMemory blocks as specified below
Returns
  • valid handle, if successful
  • NULL, otherwise

◆ PTK_Alg_StereoPP_HoleFillingGetMem()

int32_t PTK_Alg_StereoPP_HoleFillingGetMem ( PTK_Alg_StereoPP_HoleFillingObj cntxt,
uint8_t *  memPtr 
)

Get memory size.

Parameters
[in,out]cntxtAlgorithm handle.
[in]memoryblock pointer
Returns
  • required memory size

◆ PTK_Alg_StereoPP_runHoleFilling()

void PTK_Alg_StereoPP_runHoleFilling ( PTK_Alg_StereoPP_HoleFillingObj cntxt,
int16_t *  disparityBuffer,
int16_t  stride 
)

Run 1-D horizontal hole filling.

Parameters
[in]cntxtalgorithm handle
[in,out]disparityBufferdisparity buffer
[in]stridestride of disparity buffer
Returns