TYCamport3
3
|
Go to the source code of this file.
Classes | |
struct | DepthSpeckleFilterParameters |
default parameter value definition More... | |
struct | DepthEnhenceParameters |
default parameter value definition More... | |
Macros | |
#define | DepthSpeckleFilterParameters_Initializer {150, 64} |
#define | DepthEnhenceParameters_Initializer {10, 20, 10, 0.1f} |
Functions | |
TY_CAPI | TYImageProcesAcceEnable (bool en) |
Image processing acceleration switch. More... | |
TY_CAPI | TYUndistortImage (const TY_CAMERA_CALIB_INFO *srcCalibInfo, const TY_IMAGE_DATA *srcImage, const TY_CAMERA_INTRINSIC *cameraNewIntrinsic, TY_IMAGE_DATA *dstImage) |
Do image undistortion, only support TY_PIXEL_FORMAT_MONO ,TY_PIXEL_FORMAT_RGB,TY_PIXEL_FORMAT_BGR. More... | |
TY_CAPI | TYDepthSpeckleFilter (TY_IMAGE_DATA *depthImage, const DepthSpeckleFilterParameters *param) |
Remove speckles on depth image. More... | |
TY_CAPI | TYDepthEnhenceFilter (const TY_IMAGE_DATA *depthImages, int imageNum, TY_IMAGE_DATA *guide, TY_IMAGE_DATA *output, const DepthEnhenceParameters *param) |
Remove speckles on depth image. More... | |
Image post-process API
Definition in file TYImageProc.h.
TY_CAPI TYDepthEnhenceFilter | ( | const TY_IMAGE_DATA * | depthImages, |
int | imageNum, | ||
TY_IMAGE_DATA * | guide, | ||
TY_IMAGE_DATA * | output, | ||
const DepthEnhenceParameters * | param | ||
) |
Remove speckles on depth image.
[in] | depthImage | Pointer to depth image array. |
[in] | imageNum | Depth image array size. |
[in,out] | guide | Guide image. |
[out] | output | Output depth image. |
[in] | param | Algorithm parameters. |
TY_STATUS_OK | Succeed. |
TY_STATUS_NULL_POINTER | Any depthImage, param, output or output->buffer is NULL. |
TY_STATUS_INVALID_PARAMETER | imageNum >= 5 or imageNum <= 0, or any image invalid |
TY_STATUS_OUT_OF_MEMORY | Output image not suitable. |
TY_CAPI TYDepthSpeckleFilter | ( | TY_IMAGE_DATA * | depthImage, |
const DepthSpeckleFilterParameters * | param | ||
) |
Remove speckles on depth image.
[in,out] | depthImage | Depth image to be processed. |
[in] | param | Algorithm parameters. |
TY_STATUS_OK | Succeed. |
TY_STATUS_NULL_POINTER | Any depth, param or depth->buffer is NULL. |
TY_STATUS_INVALID_PARAMETER | param->max_speckle_size <= 0 or param->max_speckle_diff <= 0 |
TY_CAPI TYImageProcesAcceEnable | ( | bool | en | ) |
Image processing acceleration switch.
[in] | en | Enable image process acceleration switch |
TY_CAPI TYUndistortImage | ( | const TY_CAMERA_CALIB_INFO * | srcCalibInfo, |
const TY_IMAGE_DATA * | srcImage, | ||
const TY_CAMERA_INTRINSIC * | cameraNewIntrinsic, | ||
TY_IMAGE_DATA * | dstImage | ||
) |
Do image undistortion, only support TY_PIXEL_FORMAT_MONO ,TY_PIXEL_FORMAT_RGB,TY_PIXEL_FORMAT_BGR.
[in] | srcCalibInfo | Image calibration data. |
[in] | srcImage | Source image. |
[in] | cameraNewIntrinsic | Expected new image intrinsic, will use srcCalibInfo for new image intrinsic if set to NULL. |
[out] | dstImage | Output image. |
TY_STATUS_OK | Succeed. |
TY_STATUS_NULL_POINTER | Any srcCalibInfo, srcImage, dstImage, srcImage->buffer, dstImage->buffer is NULL. |
TY_STATUS_INVALID_PARAMETER | Invalid srcImage->width, srcImage->height, dstImage->width, dstImage->height or unsupported pixel format. |