X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Mar 2014 04:14 PM by  anon
DN values
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:19
New Member


--
25 Mar 2014 04:14 PM
    Hello all, I'm looking for a quick way to find the percentage of the maximum and minimum values contained in an image. for example, if it was an 8bit image I would be looking for the percentage of pixels that contained a DN value of 0 and 255. Eventually I'd like to turn this into an IDL script to perform this on a large number of images. These images will contain 3 bands (RGB). Can ENVI do this and if so how might I go about it? Thanks in advance

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    26 Mar 2014 09:43 AM
    I would probably use the Compute Statistics to find my minimum and maximum values and Band threshold to ROI to find the number of pixels of a certain value. ENVI 5.1 has programmatic access to both the Statistics calculation (ENVI_STATS_DOIT) and new ROI tools (ENVIROI) that includes thresholding (roi.AddThreshold). .
    You are not authorized to post a reply.