How to see the image pixel info , even though i move my mouse point cursor over the image using command [x,y]=ginput(1).
조회 수: 15 (최근 30일)
이전 댓글 표시
here my programme is i=imread(anyimage); figure,imshow(i); [x,y]=ginput(1); pixelinfo
How to see the pixel info data even though i move the cursor on imgae?
댓글 수: 0
답변 (2개)
Walter Roberson
2013년 1월 2일
Use the datacursor tool . You can activate that from the figure toolbar, or you can activate it inside a program by using datacursormode()
댓글 수: 0
Image Analyst
2013년 1월 2일
If you have the Image Processing Toolbox, use impixelinfo(). See the help for an example.
% Let them mouse around and see the values.
hPixelInfo = impixelinfo();
set(hPixelInfo, 'Unit', 'Normalized', 'Position', [.81 .89 .2 .1]);
Use the Position property to place the status label anywhere you want. I haven't tested it while ginput() is being called but it works all other times so I imagine it would still work then.
댓글 수: 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!