Obtaining pixel value from image in GUI

Hi,
I would like to obtain a pixel value from any image using a GUI. i have made a few research. and this is all i get,
example:
----------
load flujet;
image (X);
colormap (jet);
--------------
I would like to read the pixel value just like the given example. Please help!
Sha

답변 (3개)

Arthur
Arthur 2012년 10월 18일

0 개 추천

You could use imtool for that if you have the image processing toolbox.
manoj saini
manoj saini 2012년 10월 18일

0 개 추천

plz type X(capital X) on command window...........all pixel value will be on front you
Image Analyst
Image Analyst 2012년 10월 18일
편집: Image Analyst 2012년 10월 18일

0 개 추천

You can call impixelinfo(), if you have the Image Processing Toolbox. This will put up a label in your figure that gives you the x,y (column, row) coordinates and the intensity value(s) of the image. Alternatively you can use ginput(1) to get a coordinate and use
grayPixelValue = imageArray(row, column);
to get the gray level in a gray scale image, or
rgbPixelValue = imageArray(row, column, :);
rgbPixelValue = impixel(imageArray, row, column); % Alternative way.
to get the red, green, and blue intensity values in an RGB image.

댓글 수: 5

sha
sha 2012년 10월 19일
I'm sorry, i guess i did not elaborate more. what i mean is that i needed to find the intensity of the image using the colormap command and place it in Gui.
Thanks for the answer guys! Pls help me again!
Image Analyst
Image Analyst 2012년 10월 19일
The colormap command does not give you the intensity of the image.
sha
sha 2012년 10월 24일
I think i get mixed up. Colormap does shows the contrast of the image. and i would like to do so on my picture. Please advice me in any ways..
Thanks.
Image Analyst
Image Analyst 2012년 10월 24일
I don't know what that means. What do you consider to be the difference between "image" and "picture". To me, they're basically synonyms. Increasing the contrast on a picture or an image is the same thing.
sha
sha 2012년 10월 24일
Basically, i wanted my image to be like this:
using the colormap command. Any ideas?

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

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

질문:

sha
2012년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by