您的位置:首页 > 运维架构

filterSpeckles函数的应用

2016-05-18 17:39 2396 查看
Filters off small noise blobs (speckles) in the disparity map

//用于过滤不同块的小斑点,可以在深度图中应用

C++: void filterSpeckles(InputOutputArray img, double newVal, int maxSpeckleSize, double maxDiff, InputOutputArray buf=noArray() )

Python: cv2.filterSpeckles(img, newVal, maxSpeckleSize, maxDiff[, buf]) → None

Parameters:

**img** – The input 16-bit signed disparity image
//输入的16位的视差图或者深度图

**maxSpeckleSize** – The maximum speckle size to consider it a speckle. Larger blobs are not affected by the algorithm
//斑点块的大小

**maxDiff** – Maximum difference between neighbor disparity pixels to put them into the same blob. Note that since StereoBM, StereoSGBM and may be other algorithms return a fixed-point disparity map, where disparity values are multiplied by 16, this scale factor should be taken into account when specifying this parameter value.
//

**buf** – The optional temporary buffer to avoid memory allocation within the function.
//


应用:见大疆guidance 视觉追踪demo

https://github.com/dji-sdk/Guidance-SDK/blob/master/doc/Guides/Visual_Tracking_tutorial/visual_Tracking_tutorial_cn.md
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  opencv