Effacer les filtres
Effacer les filtres

How to plot line profile for a image

13 vues (au cours des 30 derniers jours)
shubham kumar gupta
shubham kumar gupta le 19 Mai 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

Réponse acceptée

Image Analyst
Image Analyst le 19 Mai 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, :);
To get the profile between any two points you can use improfile.

Plus de réponses (0)

Catégories

En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by