CvInvokeFilterSpeckles Method |
http://www.emgu.com
Filters off small noise blobs (speckles) in the disparity map.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void FilterSpeckles(
IInputOutputArray img,
double newVal,
int maxSpeckleSize,
double maxDiff,
IInputOutputArray buf = null
)
Public Shared Sub FilterSpeckles (
img As IInputOutputArray,
newVal As Double,
maxSpeckleSize As Integer,
maxDiff As Double,
Optional buf As IInputOutputArray = Nothing
)
public:
static void FilterSpeckles(
IInputOutputArray^ img,
double newVal,
int maxSpeckleSize,
double maxDiff,
IInputOutputArray^ buf = nullptr
)
static member FilterSpeckles :
img : IInputOutputArray *
newVal : float *
maxSpeckleSize : int *
maxDiff : float *
?buf : IInputOutputArray
(* Defaults:
let _buf = defaultArg buf null
*)
-> unit
Parameters
- img
- Type: Emgu.CVIInputOutputArray
The input 16-bit signed disparity image - newVal
- Type: SystemDouble
The disparity value used to paint-off the speckles - maxSpeckleSize
- Type: SystemInt32
The maximum speckle size to consider it a speckle. Larger blobs are not affected by the algorithm - maxDiff
- Type: SystemDouble
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 (Optional)
- Type: Emgu.CVIInputOutputArray
The optional temporary buffer to avoid memory allocation within the function.
See Also