Ask Your Question

Revision history [back]

This case is not an easy one. It depends on the application and the effects of the noise. The easiest thing you can do to correct the image is to use the [median filter]. (http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=medianblur#medianblur) After that you can also [erode the image and then dilate it].(http://docs.opencv.org/doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.html).

If you need to go beyond this level, then you need to extract the features and recognize the outlier (and of course, make them off).

This is the result: image description

This case is not an easy one. It depends on the application and the effects of the noise. The easiest thing you can do to correct the image is to use the [median filter]. (http://docs.opencv.org/modules/imgproc/doc/filtering.html?highlight=medianblur#medianblur) median filter After that you can also [erode erode the image and then dilate it].(http://docs.opencv.org/doc/tutorials/imgproc/erosion_dilatation/erosion_dilatation.html).it

If you need to go beyond this level, then you need to extract the features and recognize the outlier (and of course, make them off).

This is the result: image description