필터 지우기
필터 지우기

How to plot line profile for a image

조회 수: 13 (최근 30일)
shubham kumar gupta
shubham kumar gupta 2022년 5월 19일
답변: Image Analyst 2022년 5월 19일
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에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by