How to plot line profile for a image

4 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2022-5-19
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by