필터 지우기
필터 지우기

How to calculate the area of dark core of intensity distribution at Full width at half maximum?, which has ring like structure.

조회 수: 2 (최근 30일)
Hello sir,
I have to calculate the area of dark core of intensity distribution at Full width at half maximum, which has ring like structure.
Can anyone help in this reard
Thanking you sir

채택된 답변

Image Analyst
Image Analyst 2019년 2월 24일
Try this:
fileName = 'XYintensity.png';
grayImage = imread(fileName);
subplot(2, 1, 1);
imshow(grayImage);
axis('on', 'image');
drawnow;
threshold = mean([min(grayImage(:)), max(grayImage(:))])
mask = grayImage < threshold;
% Get rid of surround
mask = imclearborder(mask);
% Take biggest blob
mask = bwareafilt(mask, 1);
subplot(2, 1, 2);
imshow(mask);
axis('on', 'image');
% Get the area
area = bwarea(mask)
0000 Screenshot.png
  댓글 수: 5
Image Analyst
Image Analyst 2019년 2월 25일
I'm not sure what area you want but you can adjust the threshold from the "half maximum" intensity value you first requested to some other value (higher or lower) to control how much of the fuzzy donut hole it takes. Since it's not a step, but a sloped intensity, where you say the edge actually is, is a judgment call.
MOHD
MOHD 2019년 2월 26일
Sir, Thank you very much. I mean, how to find the dark core area at edge?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by