Noise removal in medical segmented image Can anyone suggest methods for removing the noise (indicated inside the red square) from every where in the following image, while keeping the white lines?
One solution I have found is as follows:


Thresholded on grayscale value.
Remove objects on the basis of size.
Some more morphological operations.