How to plot line profile for a image
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
shubham kumar gupta
il 19 Mag 2022
Risposto: Image Analyst
il 19 Mag 2022
I have a image like this and wanted to make a line profile for this image
This image is a maximum intensity projection of a 3d image in XZ direction
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1004705/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1004710/image.jpeg)
0 Commenti
Risposta accettata
Image Analyst
il 19 Mag 2022
Uh, okay, but what's the question? Is that an RGB image, or an indexed (pseudocolored) image?
To get an average vertical profile you can do
verticalProfile = mean(grayImage, 2);
horizontalProfile = mean(grayImage, 1);
To get a profile along any specific row or column you can do this
verticalProfile = grayImage(:, columnNumber);
horizontalProfile = grayImage(rowNumber, :);
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!