|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che2.iod.module.lut.RescaleLut
public class RescaleLut
This class handles the sequences for a rescale slope and intercept LUT. See C.11.1 for information about the rescale intercept design.
Constructor Summary | |
---|---|
RescaleLut(float slope,
float intercept,
java.lang.String type)
Create a LUT on the given slope and intercept |
Method Summary | |
---|---|
float |
getIntercept()
|
float |
getSlope()
|
java.lang.String |
getType()
|
float |
lookup(float value)
Perform a rescale slope/intercept lookup |
int |
lookup(int value)
Perform a rescale slope/intercept lookup |
void |
setIntercept(float intercept)
|
void |
setSlope(float slope)
|
void |
setType(java.lang.String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RescaleLut(float slope, float intercept, java.lang.String type)
Method Detail |
---|
public float lookup(float value)
lookup
in interface ILut
public int lookup(int value)
lookup
in interface ILut
value
- to convert to float, use the float lookup
public float getIntercept()
public void setIntercept(float intercept)
public float getSlope()
public void setSlope(float slope)
public java.lang.String getType()
public void setType(java.lang.String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |