Segmentation, high intesities areas

2 次查看(过去 30 天)
Deal all I am working on the attached image(named: orginal), and i want to segment the areas with high intensities. i want an image showing the areas of high intensities as illustrated in second attached image (named: image_with_matks). looking forward for any help thanks in advance

回答(2 个)

Image Analyst
Image Analyst 2017-11-27
It will walk you through a number of basic steps such as thresholding to find bright regions and measuring their area and brightness.

Sammit Jain
Sammit Jain 2017-11-27
Here, I think this should get you started, for some preliminary results:
%Read the image file
originalImg = imread('Orginal.jpg');
%Turn image into intensity form (double)
doubImg = im2double(originalImg);
%Extract high intensity areas
imshowpair(originalImg,doubImg.*(doubImg>0.8),montage);
Here's what I got with a trial high intensity of 0.8:
You can see that you're somewhere close to what you want.
Some things you can try after this: Morphological Closing, Opening, dilation and largest blob detection, to further refine your results.
Explanation: doubImg>0.8 gives a logical matrix (of 1's and 0's) of all the pixels that are above the threshold you supplied (0.8 in this case) Now, we just multiply this logical matrix with our original matrix to suppress the pixels that aren't required.
Cheers. Tell me if you need more help, but this should get you started.

Community Treasure Hunt

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

Start Hunting!

Translated by