X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jun 2009 07:21 AM by  anon
saving an image without background
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
17 Jun 2009 07:21 AM
    This time, I am trying save subset of an image which is  to select part of the image that shows only my study area using ROI in the scroll. Eventually, I saved it, however it appears that there is a background image (with black) also saved which I donot need it. I just only need to save part of my study area without any background. How can I fix that?  I tried to build and apply mask many times but it didnot work.  Basically, I am interested to save  composite band image that shows only part of my study area and open it in global mapper.   Regards Yohannes

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    17 Jun 2009 07:35 AM
    ENVI works with raster image files.  Rasters always must always be rectangular with a certain number of samples and lines (rows and columns) defining it.  If your area of interest is not rectangular or irregular shaped, all areas outside of the area of interest will be background set to whatever value you choose, but typically they are set to 0.  The best you can do is subset to the smallest bounds around your area of interest to exclude as much background as possible, but again, if your area is not rectangular, then you will still have some background. ArcGIS works in a similar way with rasters.  Rasters are still a certain number of samples and lines.  However, instead of assigning a background value to areas outside your area of interest, they assign a 'no data' value which can be made transparent.  The data are still rectangular but this area is not viewable. 
    You are not authorized to post a reply.