How can I display the intensity of the pixel in matrix

5 views (last 30 days)
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
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?

Sign in to comment.

Answers (3)

Image Analyst
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
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.

Sign in to comment.


Allan
Allan on 27 Mar 2014
This is an example of I found online for a 8 X 8 pixel: 5 176 193 168 168 170 167 165 6 176 158 172 162 177 168 151 5 167 172 232 158 61 145 214 33 179 169 174 5 5 135 178 8 104 180 178 172 197 188 169 63 5 102 101 160 142 133 139 51 47 63 5 180 191 165 5 49 53 43 5 184 170 168 74 Can you explain how can I retrieve this type of info from a pic? Thanks.

Allan
Allan on 27 Mar 2014
5 176 193 168 168 170 167 165;
6 176 158 172 162 177 168 151;
5 167 172 232 158 61 145 214;
33 179 169 174 5 5 135 178;
8 104 180 178 172 197 188 169;
63 5 102 101 160 142 133 139;
51 47 63 5 180 191 165 5;
49 53 43 5 184 170 168 74

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!