How to plot grey level variation along horizontal cross-section of any image according to position of the mouse?
조회 수: 2 (최근 30일)
이전 댓글 표시
How to plot grey level variation along horizontal cross-section of any image according to position of the mouse?
댓글 수: 0
채택된 답변
Dishant Arora
2014년 12월 5일
I = imread('cameraman.tif');
[row , column] = size(I);
imshow(I)
[x , ~] = ginput(1);
plot(1:column , I(x , :))
추가 답변 (1개)
Image Analyst
2014년 12월 5일
There is a function specifically built for that. It's called improfile(). It can handle profiles at any angle, though if you know that you want exactly a perfect row or column, the code Dishant gave is the way to go.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!