X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 11 Sep 2013 09:10 AM by  anon
Applying same stretch (histogram) to several images
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
11 Sep 2013 09:10 AM
    Hello all, I am trying to create a time-series visualization which shows the progression of a wildfire over the course of ~2 weeks. I started with 3 MODIS single-band rasters (bands 1, 2 and 7) for each day and produced a 7-2-1 composite for each day. I am now trying to display these composites as a comic strip or animation so the growth of the burn scar as the fire progressed can be visualized. My issue is getting these images to have a consistent stretch so that they can be compared accurately and effectively. The range of values for each band do not vary greatly from day to day, except that some days have heavy cloud coverage and/or saturated areas that cause the minimum value to be very far away from the rest of the data. Ideally, I would like to apply a stretch to an image (call it image X) that does not have any extraneous values (no cloud coverage or saturation) and then use that stretch for the other images. More specifically, I wish have the values of the other images that fall within image X's range to be displayed the same way as image X, and the values that fall outside of that range be "grouped together" and displayed all the same color (white, perhaps). What is the best way to do this in ENVI 5.0? I would like to keep the original values, but for display purposes wish to "cut off" these unwanted values. Is there a way to do this in IDL so I can iterate through all of the composites (or a batch process mode in ENVI)? Thanks for your time.

    Deleted User



    New Member


    Posts:
    New Member


    --
    11 Sep 2013 03:55 PM
    You may need to use ENVI Classic and try the histogram matching tool: Using ENVI Classic > Interactive Displays > Using Interactive Stretching > Stretch Types

    Deleted User



    New Member


    Posts:
    New Member


    --
    12 Sep 2013 11:49 AM
    Update: *I'm using ENVI 5.0/IDL 8.2.2* At first when I tried the "Stretch Data" tool on an image that was a composite of three bands, and chose one band as a spectral subset, the tool did not work for me. I went back to my original band files and used them as inputs, one at a time, and the stretch tool worked. I've written a simple code in IDL that will use this tool to stretch each band (iterating through each day), and eventually stack them into a 721 composite tiff image. I am running into issues with the code now, so I am going to move this post over to the IDL forum. Thanks
    You are not authorized to post a reply.