Plotting Image intensity from Matrix
    8 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Amit Chakraborty
 le 10 Juil 2022
  
    
    
    
    
    Commenté : Amit Chakraborty
 le 12 Juil 2022
            Greetings to all ! I have a 3D matrix which represnts a Sheep_Logan Phantom. Is there any way to plot the intensity ogf the image matrix both in horizontal and vertical direction? I can do the same things with saving an image but I want it from the matrix that I have attached. 
0 commentaires
Réponse acceptée
  Image Analyst
      
      
 le 11 Juil 2022
        Do you want the profile along some certain row or columns, like
rowProfile = squeeze(image3d(rowNumber, :, sliceNumber));
columnProfile = squeeze(image3d(:, colNumber, sliceNumber));
 or do you want the average profile across the entire plane?  Or the max projection?  Have you seen slice?
5 commentaires
  Image Analyst
      
      
 le 12 Juil 2022
				I would first get the entire plane as a 2-D image and then use max for the direction you want.  For example
image2d = randi(255, 5, 4)
verticalMaxProjection = max(image2d, [], 2)
horizontalMaxProjection = max(image2d, [], 1)
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
			
	Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


