crop the image where higher intensity pixel

3 views (last 30 days)
I have an gray-scale image that contains the image having 2 white balls that are of higher intensity pixel i want to crop those area separately and automatically. but i need help how can i code it that area should be rectangularly cropped only of high intensity pixel areas... help me please

Answers (1)

Image Analyst
Image Analyst on 12 May 2014
I do exactly that, but with coins, in my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Try it out.
  2 Comments
Filza Ashraf
Filza Ashraf on 14 May 2014
sir but can you tell me how can i get only area with high intensity i mean of 255 when i implement you code on my image only one tumour area get cropped perfectly and other cropped areas are blurred can you check that for me as i have uploaded the image as well please
Image Analyst
Image Analyst on 14 May 2014
My code doesn't blur anything. You must have changed it. Where did you upload your image? Please attach it here, as well as my modified code that you used to blur the image.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!