Instead of processing the data inside the image, copy data into a local AlignedBlock and do all the processing there, then copy back into the image data. Also keep a reference to the neighbors so that we don't recalc/copy this information during the various prediction processors.
Instead of processing the data inside the image, copy data into a local AlignedBlock and do all the processing there, then copy back into the image data. Also keep a reference to the neighbors so that we don't recalc/copy this information during the various prediction processors.