X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 27 Oct 2010 08:50 PM by  anon
12-bit 8-bit image comparison.
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
27 Oct 2010 08:50 PM
    The image of the right is a histogram of a NITF file loaded with a 1 band image (using 12-bit jpeg2000 compression, or C8) The image of the left is a histogram of the JPEG file that was saved from the loaded NITF file (using ENVI of course) I was wondering what kind of algorithm does ENVI apply to the 12-bit image to properly reduce it to 8-bit? Obviously it is more than just division by 16. Thoughts? I would like to be able to use this technique.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    01 Nov 2010 10:02 AM
    If you saved the NITF to jpg, then you must have saved it from a display window. When you save an image from the display window, you are saving the image just how it looks in that display window which is a streched, byte-scaled image. ENVI has a setting in the Preferences that determines what sort of stretch is applied to data when it is displayed. The default is a 2% linear stretch. So, your resulting jpg is likely the result of a 2% linear stretch, byte-scaled from 0-255. If you save the file from the main menu via File ->Save File as, the image will not stretched or byte-scaled, so the values would not change.

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Nov 2010 11:55 AM
    Invaluable information; many thanks! now to research this percent linear stretch algorithm.....
    You are not authorized to post a reply.