How to plot intensity profile of a 3D image
    9 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Amit Chakraborty
 am 8 Jul. 2022
  
    
    
    
    
    Beantwortet: Image Analyst
      
      
 am 9 Jul. 2022
            Greetings to all !
I have a 3D image matrix which is sheep logan phantom. And I want to plot the intensity profile of the along Vertical direction and horizontal direction separately? But I am confused how to do it ! Can anyone help me ?
Thanks in ADVANCE!
2 Kommentare
  Image Analyst
      
      
 am 8 Jul. 2022
				What do you mean by profile?  Do you mean projection (to get a 2-D image)?  If so, mean, sum, or max projection?  Or do you mean just along a certain line (to get a 1-D profile)?  If so, how are you defining the line through the 3-D volume?
Akzeptierte Antwort
  Image Analyst
      
      
 am 9 Jul. 2022
        You can do
rgbImage = imread('peppers.png');
subplot(2, 1, 1);
imshow(rgbImage);
axis('on', 'image')
xline(205, 'Color', 'r', 'LineWidth', 2);
column205 = rgbImage(:, 205,:);
subplot(2, 1, 2);
plot(column205(:, 1), 'r-', 'LineWidth', 2);
hold on;
plot(column205(:, 2), 'g-', 'LineWidth', 2);
plot(column205(:, 3), 'b-', 'LineWidth', 2);
grid on;
legend('Red', 'Green', 'Blue');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



