org.dcm4che2.iod.module.lut
Class RescaleLut

java.lang.Object
  extended by org.dcm4che2.iod.module.lut.RescaleLut
All Implemented Interfaces:
ILut

public class RescaleLut
extends java.lang.Object
implements ILut

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

RescaleLut

public RescaleLut(float slope,
                  float intercept,
                  java.lang.String type)
Create a LUT on the given slope and intercept

Method Detail

lookup

public float lookup(float value)
Perform a rescale slope/intercept lookup

Specified by:
lookup in interface ILut
Returns:
looked up value.

lookup

public int lookup(int value)
Perform a rescale slope/intercept lookup

Specified by:
lookup in interface ILut
Parameters:
value - to convert to float, use the float lookup
Returns:
the int cast response from the float lookup.

getIntercept

public float getIntercept()

setIntercept

public void setIntercept(float intercept)

getSlope

public float getSlope()

setSlope

public void setSlope(float slope)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)


Copyright © 2011 dcm4che. All Rights Reserved.