TYCamport3  3
TYImageProc.h
Go to the documentation of this file.
1 
6 #ifndef TY_IMAGE_PROC_H_
7 #define TY_IMAGE_PROC_H_
8 
9 
10 #include "TYApi.h"
11 #include "TYCoordinateMapper.h"
12 #include "TyIsp.h"
13 
16 TY_CAPI TYImageProcesAcceEnable(bool en);
17 
26 TY_CAPI TYUndistortImage (const TY_CAMERA_CALIB_INFO *srcCalibInfo
27  , const TY_IMAGE_DATA *srcImage
28  , const TY_CAMERA_INTRINSIC *cameraNewIntrinsic
29  , TY_IMAGE_DATA *dstImage
30  );
31 
32 
33 // -----------------------------------------------------------
35  int max_speckle_size; // blob size smaller than this will be removed
36  int max_speckle_diff; // Maximum difference between neighbor disparity pixels
37 };
38 
40 #define DepthSpeckleFilterParameters_Initializer {150, 64}
41 
48 TY_CAPI TYDepthSpeckleFilter (TY_IMAGE_DATA* depthImage
49  , const DepthSpeckleFilterParameters* param
50  );
51 
52 
53 // -----------------------------------------------------------
55  float sigma_s;
56  float sigma_r;
58  float outlier_rate;
59 };
60 
62 #define DepthEnhenceParameters_Initializer {10, 20, 10, 0.1f}
63 
74 TY_CAPI TYDepthEnhenceFilter (const TY_IMAGE_DATA* depthImages
75  , int imageNum
76  , TY_IMAGE_DATA *guide
77  , TY_IMAGE_DATA *output
78  , const DepthEnhenceParameters* param
79  );
80 
81 
82 #endif
TY_CAPI TYImageProcesAcceEnable(bool en)
Image processing acceleration switch.
float sigma_s
filter param on space
Definition: TYImageProc.h:55
default parameter value definition
Definition: TYImageProc.h:34
float sigma_r
filter param on range
Definition: TYImageProc.h:56
Coordinate Conversion API.
int outlier_win_sz
outlier filter windows ize
Definition: TYImageProc.h:57
TY_CAPI TYDepthSpeckleFilter(TY_IMAGE_DATA *depthImage, const DepthSpeckleFilterParameters *param)
Remove speckles on depth image.
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.
TYApi.h includes camera control and data receiving interface, which supports configuration for image ...
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.
default parameter value definition
Definition: TYImageProc.h:54