필터 지우기
필터 지우기

How can I find maxima and minima points of intensity plot of one row of an image?

조회 수: 1 (최근 30일)
I want to plot intensity of single row of an MRI image, for that firstly I wrote -
i=dicomread('mri_7.dcm');
imshow(i)
improfile
from this I got intensity plot of any row or column. Now I want to find maximum and minimum values of that plot.So,please help me to get solution of this obstacle.
Thank you

채택된 답변

Image Analyst
Image Analyst 2013년 12월 6일
Don't use i (the imaginary variable) as an image name or loop counter.
Try this:
oneRow = grayImage(myRow, :);
% Find the min and max
[minGL, indexOfMin] = min(oneRow)
[maxGL, indexOfMax] = max(oneRow)
See my demo, test.m, attached below in blue, which will generate the following figure.
  댓글 수: 2
Samidha
Samidha 2013년 12월 8일
thank you very much for your reply.. I get max nd min value in numerical form, I don't find profile plot which i want. I write- grayImage=dicomread('mri_7.dcm'); oneRow = grayImage(111, :); % Find the min and max [minGL, indexOfMin] = min(oneRow) [maxGL, indexOfMax] = max(oneRow)
minGL =
0
indexOfMin =
1
maxGL =
105
indexOfMax =
97
Samidha
Samidha 2013년 12월 10일
Hey I got output..I am sorry for last last comment. thank you v much

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

sixwwwwww
sixwwwwww 2013년 12월 6일
편집: sixwwwwww 2013년 12월 6일
you can use
max(i) % to find maximum value in a row/column vector
and
min(i) % to find minimum value in a row/column vector
sharing image to give specific solution will be further helpful

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by