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
|