help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image display with pixel indices and values?


From: Alasdair McAndrew
Subject: Image display with pixel indices and values?
Date: Wed, 31 Dec 2014 01:04:51 +1100

If I read in an image and display it with "imshow", then the window frame includes indices which are updated in real time, for example: "[118.2, 151.9]"  There are two problems here: (a) the indices are not integers (which they should be: giving the indices of the pixel in the image matrix), and (b) the pixel intensity is not displayed.

Is there some way of obtaining a display like "[118,151] = 198" (for grayscale images), or "[118, 151] = (127,35,210)" for RGB images?

Note that "axis" doesn't seem to help: the command "imshow(im),axis image" still gives fractional values in the frame.  Autoscale makes no difference, either.

Thanks,
Alasdair

--
http://www.facebook.com/alasdair.mcandrew https://plus.google.com/+AlasdairMcAndrew/posts https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108 https://twitter.com/amca01 http://numbersandshapes.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]