# Filter bright dots from the gradient of the image

I am wondering to how to filter bright dots from background noise. I have used gradient filter in mathematica but it doesnt help, is anyway I can plot Intensity versus background noise with threshold control or filter it better way.

-
 Do you want to filter out the "worm" too? – belisarius Jan 24 at 22:47 yes, it is dust – Jay Jan 24 at 22:53 What about a median filter? – s0rce Jan 25 at 5:53 Does MinFilter[img, 5] give something acceptable? – kguler Jan 25 at 8:50 If you had an image without any interesting dots (like a test picture), you might be able to find the differences between the two images... – cormullion Jan 25 at 10:11
Manipulate[