X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 26 Jul 2016 07:49 PM by  anon
Convert Bit Depth of Raster Image
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
26 Jul 2016 07:49 PM
    Hi, I would like to know if there is a simple way of converting the bit depth of an image in ENVI. I am used to using ArcGIS products, but we have recently received ENVI 5.3 and are still getting used to this product, so it may be a case of different terminology between the programs or they way I'm looking at it but help would be appreciated. We need to convert 100's of images (TIFF format) from 16-bit to 8-bit and it is a slow process. I'm hoping we can take advantage of ENVI's 64-bit operating environment to perhaps speed this up. However, there appears to be a distinct lack of options and control over the output from the File>Save As.. command, at least as opposed to what I'm used to with Arc products. I've seen the article on 'WRITE_TIFF' using IDL directly, and am hoping to avoid this as it may introduce human error when applying it to 100's of datasets. Is there a simple way to do this task and is the ENVI 64-bit program likely to be any faster than ArcGIS's current 32-bit environment so much so that it would be worth the effort? Many thanks, Gerard

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Jul 2016 02:18 PM
    If the purpose is to read a 16-bit TIFF and then write an 8-bit TIFF back out, then the processor won't have much effect on the speed. This is file i/o processing that would mostly be affected by the disk speed and possibly RAM. For example, a solid state drive may perform better than a standard drive. You also will need to program in IDL regardless of what routine you use (ENVI or IDL). IDL/ ENVI programming is how ENVI performs 'batch' processing of multiple files. I would try using http://www.harrisgeospatial.com/docs/... but using a linear stretch with a min/max of 0-255. Then write a foreach loop to process each file.
    You are not authorized to post a reply.