volume
Class Equalize
java.lang.Object
|
+--volume.Equalize
- public class Equalize
- extends java.lang.Object
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.
Method Summary |
static int |
getDefaultWindowSize()
|
static float[] |
sliding(float[] image,
int width,
float center,
int windowSize,
boolean doShowProgress)
Perform sliding window averaging on image. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Equalize
public Equalize()
getDefaultWindowSize
public static int getDefaultWindowSize()
sliding
public static float[] sliding(float[] image,
int width,
float center,
int windowSize,
boolean doShowProgress)
- Perform sliding window averaging on image. Does NOT modify image.
center will be the average value of the equalized image.
Implements:
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.
- Parameters:
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.- Returns:
- a float[] with the equalized version of image.
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.