X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Jan 2013 10:32 AM by  anon
batch image stretching in idl
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 Jan 2013 10:32 AM
    Hi, I have a large number of images that are data type 2 and need to be data type 1. I have done this for individual images in ENVI by doing 'Basic Tools' > 'Stretch Data' > select image and then enter the Min and Max as 0.0% and 100.0% and change the data type from 'Integer' to 'Byte'. I am wondering if there is a function or way to do this as a batch script in IDL? Thank you.

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Jan 2013 12:15 PM
    Take a look at the BYTSCL() function : http://www.exelisvis.com/docs/BYTSCL.html This function allows you scale the values in the way you describe into a range of 0-255. You can also specify the min and max values that you want to scale by, and other options. -Josh Exelis VIS
    You are not authorized to post a reply.