X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Sep 2006 12:12 PM by  anon
How to display pixels values
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Sep 2006 12:12 PM
    how to see the pixel values of an image in a whole. RDPIX gives the values when ever we move the cursor, but i want to get the whole values in a table form. tell me how to get it

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 Sep 2006 12:12 PM
    The routine for getting the full grid of pixel data from an IDL graphics window is TVRD. For example, let's say you have a 400 x 400 pixel IDL graphics window with an image loaded on it: img = tvrd(TRUE=1) will give you a 3 x 400 x 400 byte array, where: img[0,*,*] shows the red intensities of the 400 x 400 pixel grid img[1,*,*] shows the green intensities of the 400 x 400 pixel grid img[2,*,*] shows the blue intensities of the 400 x 400 pixel grid and img[*, 24, 300] shows you the RGB color triplet at the [24, 300] location on the IDL graphics window. James Jones
    You are not authorized to post a reply.