X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Aug 2014 07:06 AM by  anon
Convert from 16 bit pixel depth to 8 bit pixel depth
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Aug 2014 07:06 AM
    Hi, I'm new to Envi and don't have much experience in image processing. I have a 16 bit image that has 3 bands and a maximum DN of 1362, 1451 and 2114 in the 3 bands. These values seem very low to me given that the maximum possible value would be 65536 in a 16 bit image. I'm having some problems with this image, one of which is its size on disk. Would it make sense to convert the image to 8 bit and somehow scale down the DNs in the three bands to a representative value in the 0-255 range? If so, how would I accomplish that in Envi? Thanks Hanlie

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    21 Aug 2014 08:28 AM
    Many sensors collect data in 11 or 12-bits but the data are stored as 16-bit integers. So it is no uncommon to have 16-bit unsigned integer data ranging from 0-2048, or 4096 or similar values. If you convert the data to 8-bit (byte data), then you will lose a lot of the dynamic range of the original pixel values. It is ok to do this but it depends on what your goal is. If you plan on using the data for target detection, change analysis, or any type of spectral analysis, you might want to keep the original data range. If it is a spatial analysis or for publication type images (jpeg), then perhaps it is useful to do. I would use the 'Stretch Data' tool in ENVI to convert the data to byte, which will linearly stretch the original values into a range of 0-255.
    You are not authorized to post a reply.