How can I display the intensity of the pixel in matrix
5 views (last 30 days)
Show older comments
Hi, I am new to Matlab. I would like to display the intensity of 8 X 8 pixel jpeg and bitmap in matrix. Can someone help me. It is a color pic. Thanks.
1 Comment
Walter Roberson
on 27 Mar 2014
In this context, what is "intensity" ?
I am not clear as to whether the jpeg is intended to be different from the bitmap? If it is, then how do the two interact?
Answers (3)
Image Analyst
on 27 Mar 2014
See this snippet:
% Let them mouse around the current axes and see the values.
hPixelInfo = impixelinfo();
set(hPixelInfo, 'Unit', 'Normalized', 'Position', [.81 .89 .2 .1]);
Adjust the position as necessary to position your readout wherever you want it.
1 Comment
Image Analyst
on 27 Mar 2014
It gives x,y and either gray level or RGB values depending on whether the image is gray scale or color.
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!