I need a matlab code for automatic extraction of region of interest in an image .i dont require extracting ROI manually by creating mask or by cropping ..the code or algorithm should extract automatically without any manual intervention.
There is not a uniqe solution for ROI extraction. In fact, it is closely depend on the type and features of your images. Indeed, you need differe ROI extraction method for geographic image and medical images. You should search the papers that worked on the same images as yours.Most of the authors provide the readers with their codes.
Long story Marwa , this is my code I did it for a friend .
Assuming the ROI (interactive selection in matlab GUI ) you do not want then it is heavily subjective and you need to handpick the regions with some level of identification.