I have two rasters of identical cell size and extent (basically before and after images). I would like to calculate the covariance in a 3x3 moving window and output the results to a new raster.
Is there a way to accomplish this in ArcGIS Desktop 9.3?
I can't think of a clever way to do this with the raster calculator. The only thing that I can come up with is to convert the rasters to floating point (.flt) files and then code something up in VBA to retrieve the desired pixels, calculate the covariance and write the value to a new raster using a PixelBlock.
Any ideas?!