MATLAB: How to Remove Minor background details from the image

background removalImage Processing Toolboximage segmentation

For the object extraction i need to enhance the image contrast, which not only enhance foreground object but also the minor background details of gray image.
How to remove the background as i need the background clear in order to detect the edges of salient object?

Best Answer

It's hard to say without seeing the image. Perhaps thresholding? Perhaps something else first? But after all the processing steps are done, the last step in segmentation is always thresholding. You do whatever you need to do to get to a point where you can say "this is foreground" and "this is background" and that is thresholding.
Related Question