X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 Dec 2007 12:35 PM by  anon
envi_stats_doit w/ mask
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:25
New Member


--
13 Dec 2007 12:35 PM
    I have a multiband image file and a mask file for the multiband image. I am trying to use the mask with envi_stats_doit function (with m_id and m_pos)to get the basics (min, max, mean, std). I use the following command: envi_doit, 'envi_stats_doit', comp_flag=1, fid=fid, dmin = min, $ dmax = max, std = stddev, mean = mean, dims=dims, pos=pos, $ m_id = m_id, m_pos=mpos I get stats out, but the mask was not applied - my min values are 0 with above command. The 0s should be masked. Using the Envi command Basic Tools->Statistics->Compute Statistics and applying the same mask, I get the right answer with all the min values > 0

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    13 Dec 2007 12:35 PM
    This might be a typo: m_id = m_id The keyword should be 'm_fid' and then you can pass it the FID of the mask, whatever it is called.
    You are not authorized to post a reply.