Plugin containing methods to equalize imageas and volumes.
It is mainly useful to correct vignetting, i.e. anisotropic nonlinear illumination differences over the retinal image.
Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
public static float sliding(float image,
Perform sliding window averaging on image. Does NOT modify image.
center will be the average value of the equalized image.
I(x) = I(x) + m - Iavg(x, w)
where Iavg(x,w) is the average intensity around x, and w the window size.
Hoover, Goldbaum, IEEE TMI 22,8, pp 955, 2003.
Can process masked images, where non-valid pixels have been set to NaN.
image - a float with the image vector.
width - the width of image in pixels.
center - a float value relative to which all pixels are equalized.
windowSize - the size of the sliding windows in pixels.