X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Feb 2008 03:47 PM by  anon
accessing individual bands from a layerstack in IDL
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Feb 2008 03:47 PM
    Hi, I have a layerstack created in ENVI. It contains about 5 bands. In an IDL script, i am able to create a layerstack, but i am not able to figure out how to access individual bands from a layerstack in an IDL code. I'm assuming its relatively simple, but am not able to figure it out. Any ideas ? Raghu

    Deleted User



    New Member


    Posts:
    New Member


    --
    21 Feb 2008 03:47 PM
    Raghu: I assume you already have imported your image stack into IDL. By default, I would expect the variable that holds this image stack to be "band sequential". That is, I would expect that the dimensions shown by the IDL command: HELP, myImageStack would show dimensions [imageWidth, imageHeight, nBands]. Is that correct? If so, this is the way to address individual images within the stack: myImage0 = myImageStack[*,*,0] myImage1 = myImageStack[*,*,1] ; ... etc. James Jones
    You are not authorized to post a reply.