speckle filtering added

This commit is contained in:
Anatoly Baksheev
2010-07-29 08:50:19 +00:00
parent 63fed0f831
commit 9ac1741555
3 changed files with 166 additions and 1 deletions

View File

@@ -413,6 +413,12 @@ namespace cv
GpuMat out;
};
}
//! Speckle filtering - filters small connected components on diparity image.
//! It sets pixel (x,y) to newVal if it coresponds to small CC with size < maxSpeckleSize.
//! Threshold for border between CC is diffThreshold;
void filterSpeckles( Mat& img, uchar newVal, int maxSpeckleSize, uchar diffThreshold, Mat& buf);
}
#include "opencv2/gpu/matrix_operations.hpp"