How to find intensity of selected region in an image?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Deepak Sivadas
 il 21 Nov 2018
  
    
    
    
    
    Risposto: Image Analyst
      
      
 il 21 Nov 2018
            Hi,
Pls help me in finding intensity of a specific region within a gray scale image.
Suppose I have two objects in an image. I am intersted in knowing the intensity of those two objects.
Also, is there a mechanism that shows the intensity values of the image when dragging cursor over the image?
Thanks,
Deepak Sivadas Menon
0 Commenti
Risposta accettata
  Image Analyst
      
      
 il 21 Nov 2018
        Yes.  Assuming you have a binary image mask with two regions in there, and a gray scale image "grayImage", do this:
props = regionprops(mask, grayImage, 'MeanIntensity');
allIntensities = [props.MeanIntensity]
To see the intensity as you mouse around over the image, right after you show it with imshow(), call impixelinfo.
imshow(grayImage);
hp = impixelinfo();
% To set location of the status bar
hp.Position = [0.2, 0.4, 0.03, 0.4]; % xLeft, yBottom, width, height, all normalized 0-1.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Image Processing Toolbox in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!