public class WindowCenterAndWidth extends Object
A class of static methods to perform window operations on images.
Constructor and Description |
---|
WindowCenterAndWidth() |
Modifier and Type | Method and Description |
---|---|
protected static void |
applyPaddingValueRangeToLUT(byte[] lut,
int pad,
int padRangeLimit,
int mask) |
static BufferedImage |
applyVOILUT(BufferedImage src,
double center,
double width,
double identityCenter,
double identityWidth,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int padRangeLimit,
int numberOfEntries,
int firstValueMapped,
int bitsPerEntry,
short[] grayTable,
int entryMin,
int entryMax,
int topOfEntryRange) |
static BufferedImage |
applyWindowCenterAndWidthLinear(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad) |
static BufferedImage |
applyWindowCenterAndWidthLinear(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int padRangeLimit) |
static BufferedImage |
applyWindowCenterAndWidthLinear(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int padRangeLimit,
boolean useExactCalculationInsteadOfDICOMStandardMethod) |
static BufferedImage |
applyWindowCenterAndWidthLinearToColorImage(BufferedImage src,
double center,
double width) |
static BufferedImage |
applyWindowCenterAndWidthLogistic(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad) |
static BufferedImage |
applyWindowCenterAndWidthLogistic(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int padRangeLimit) |
static BufferedImage |
applyWindowCenterAndWidthWithPaletteColor(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int padRangeLimit,
int largestGray,
int bitsPerEntry,
int numberOfEntries,
short[] redTable,
short[] greenTable,
short[] blueTable) |
static BufferedImage |
applyWindowCenterAndWidthWithPaletteColor(BufferedImage src,
double center,
double width,
boolean signed,
boolean inverted,
double useSlope,
double useIntercept,
boolean usePad,
int pad,
int largestGray,
int bitsPerEntry,
int numberOfEntries,
short[] redTable,
short[] greenTable,
short[] blueTable) |
protected static void applyPaddingValueRangeToLUT(byte[] lut, int pad, int padRangeLimit, int mask)
lut
- pad
- padRangeLimit
- mask
- public static final BufferedImage applyVOILUT(BufferedImage src, double center, double width, double identityCenter, double identityWidth, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int padRangeLimit, int numberOfEntries, int firstValueMapped, int bitsPerEntry, short[] grayTable, int entryMin, int entryMax, int topOfEntryRange)
src
- center
- width
- identityCenter
- identityWidth
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- padRangeLimit
- numberOfEntries
- bitsPerEntry
- grayTable
- entryMin
- entryMax
- topOfEntryRange
- public static final BufferedImage applyWindowCenterAndWidthLinear(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- public static final BufferedImage applyWindowCenterAndWidthLinear(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int padRangeLimit)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- padRangeLimit
- public static final BufferedImage applyWindowCenterAndWidthLinear(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int padRangeLimit, boolean useExactCalculationInsteadOfDICOMStandardMethod)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- padRangeLimit
- useExactCalculationInsteadOfDICOMStandardMethod
- public static final BufferedImage applyWindowCenterAndWidthLinearToColorImage(BufferedImage src, double center, double width)
src
- center
- width
- public static final BufferedImage applyWindowCenterAndWidthLogistic(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- public static final BufferedImage applyWindowCenterAndWidthLogistic(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int padRangeLimit)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- padRangeLimit
- public static final BufferedImage applyWindowCenterAndWidthWithPaletteColor(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int padRangeLimit, int largestGray, int bitsPerEntry, int numberOfEntries, short[] redTable, short[] greenTable, short[] blueTable)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- padRangeLimit
- largestGray
- bitsPerEntry
- numberOfEntries
- redTable
- greenTable
- blueTable
- public static final BufferedImage applyWindowCenterAndWidthWithPaletteColor(BufferedImage src, double center, double width, boolean signed, boolean inverted, double useSlope, double useIntercept, boolean usePad, int pad, int largestGray, int bitsPerEntry, int numberOfEntries, short[] redTable, short[] greenTable, short[] blueTable)
src
- center
- width
- signed
- inverted
- useSlope
- useIntercept
- usePad
- pad
- largestGray
- bitsPerEntry
- numberOfEntries
- redTable
- greenTable
- blueTable
-