How to calculate the area of dark core of intensity distribution at Full width at half maximum?, which has ring like structure.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    MOHD
 el 24 de Feb. de 2019
  
    
    
    
    
    Comentada: MOHD
 el 26 de Feb. de 2019
            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
Respuesta aceptada
  Image Analyst
      
      
 el 24 de Feb. de 2019
        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)

5 comentarios
  Image Analyst
      
      
 el 25 de Feb. de 2019
				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.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Image Processing Toolbox en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!