Getting data from an image with rainbow scale
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I have a colorful image which represents a data set with rainbow scale. I want to pick a point on the image and to learn the value of there. How can I do that ?
You can find an example which is close to my image.
Thanks

댓글 수: 2
답변 (2개)
KALYAN ACHARJYA
2020년 12월 29일
편집: KALYAN ACHARJYA
2020년 12월 29일
Please follow the following steps:
- Load the images (imread function)
- imshow(image_data)
- improfile function
- 2 click (without mouse movemnet ) on the image (any point)
Code:
image_data=imread('image file name');
imshow(image_data)
data_val=improfile
Result: Check in command window or data_val as per the above snippet
Image Analyst
2020년 12월 30일
After you display the image, call impixelinfo:
hp = impixelinfo
As you mouse around, the value will show up in a status line somewhere on the figure. You can resize and position that status line by setting the Position Property if you want.
hp.Units = 'normalized';
hp.Position = [0.5, 0.97, 0.2, 0.1]; % [x, y, width, height]
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!