public class LookupTableFactory extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
inverse |
private LookupTable |
modalityLUT |
private LookupTable |
presentationLUT |
private float |
rescaleIntercept |
private float |
rescaleSlope |
private StoredValue |
storedValue |
private LookupTable |
voiLUT |
private String |
voiLUTFunction |
private float |
windowCenter |
private float |
windowWidth |
Constructor and Description |
---|
LookupTableFactory(StoredValue storedValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
autoWindowing(Attributes img,
Raster raster) |
private int[] |
calcMinMax(StoredValue storedValue,
ComponentSampleModel sm,
byte[] data) |
private int[] |
calcMinMax(StoredValue storedValue,
ComponentSampleModel sm,
short[] data) |
private LookupTable |
combineModalityVOILUT(int outBits) |
LookupTable |
createLUT(int outBits) |
private LookupTable |
createLUT(StoredValue inBits,
Attributes attrs) |
private LookupTable |
createLUT(StoredValue inBits,
int[] desc,
byte[] data,
boolean bigEndian) |
(package private) static byte[] |
halfLength(byte[] data,
int hilo) |
private static int |
log2(int value) |
private int[] |
resetOffset(int[] desc) |
void |
setModalityLUT(Attributes attrs) |
void |
setPresentationLUT(Attributes attrs) |
void |
setVOI(Attributes img,
int windowIndex,
int voiLUTIndex,
boolean preferWindow) |
void |
setWindowCenter(float windowCenter) |
void |
setWindowWidth(float windowWidth) |
private final StoredValue storedValue
private float rescaleSlope
private float rescaleIntercept
private LookupTable modalityLUT
private float windowCenter
private float windowWidth
private String voiLUTFunction
private LookupTable voiLUT
private LookupTable presentationLUT
private boolean inverse
public LookupTableFactory(StoredValue storedValue)
public void setModalityLUT(Attributes attrs)
public void setPresentationLUT(Attributes attrs)
private int[] resetOffset(int[] desc)
public void setWindowCenter(float windowCenter)
public void setWindowWidth(float windowWidth)
public void setVOI(Attributes img, int windowIndex, int voiLUTIndex, boolean preferWindow)
private LookupTable createLUT(StoredValue inBits, Attributes attrs)
private LookupTable createLUT(StoredValue inBits, int[] desc, byte[] data, boolean bigEndian)
static byte[] halfLength(byte[] data, int hilo)
public LookupTable createLUT(int outBits)
private static int log2(int value)
private LookupTable combineModalityVOILUT(int outBits)
public boolean autoWindowing(Attributes img, Raster raster)
private int[] calcMinMax(StoredValue storedValue, ComponentSampleModel sm, byte[] data)
private int[] calcMinMax(StoredValue storedValue, ComponentSampleModel sm, short[] data)
Copyright © 2017 dcm4che.org. All rights reserved.