| Because I am doing different pan sharpening algorithms, I think I got the equation backward previously. Now I am using r.mapcalc "histmatched= ( pan - pan_mean ) / pan_sd * colorband_sd + colorband_mean where pan=high res panchromatic band and colorband=lower resolution restricted frequency bands (e.g., red, green, blue) This gives me a sharpened image. But I don't seem much difference from matching by the more standard cumulative distribution function except perhaps the mean/stdev method is a bit faster (and maybe especially so for bands with many grey levels). Here is the new code. You can just drop this into the scripts directory for $GRASS_ADDON_BASE to test. |
i.pansharpen3
Description: Binary data
Here are links for comparing the results using the Landsat 7 images from the sc_08 demo data. I've zoomed in to shows the sharpened resolution and colors. The file names reference 3 different sharpening methods (brovey, IHS, and PCA), and 2 different histogram matching methods (CDF=cdf and mean/stdev=msd) Michael ____________________ C. Michael Barton Director, Center for Social Dynamics & Complexity Professor of Anthropology, School of Human Evolution & Social Change Arizona State University fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC) On Nov 21, 2013, at 1:20 PM, Michael Barton <[email protected]> wrote:
|
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
