1. A method for image processing, comprising: receiving, at an image processor, an input datacube from which an input image is derived; transforming, at the image processor, the input datacube into a residual datacube by projecting out one or more basis vectors from each spatial pixel in the input datacube, the residual datacube being used to derive a residual image; determining, at the image processor, a statistical parameter value for samples of each focal plane pixel in the residual image; identifying, at the image processor, anomalous focal plane pixels based upon a comparison of the determined statistical parameter value of each focal plane pixel in the residual image with the respective determined statistical parameter values of remaining focal plane pixels; comparing, at the image processor, residual values for each scanned sample of the identified anomalous focal plane pixels with values of corresponding scanned samples in the input datacube; determining, at the image processor, an estimation of at least one of a gain correction value and an offset correction value for the anomalous focal plane pixels based upon the comparing; and reconstructing, at the image processor, the input datacube based upon the estimation of at least one of the gain correction value and the offset correction value.