org.dcm4che2.image
Class ShortLookupTable

java.lang.Object
  extended by org.dcm4che2.image.LookupTable
      extended by org.dcm4che2.image.ShortLookupTable

public class ShortLookupTable
extends LookupTable


Field Summary
 
Fields inherited from class org.dcm4che2.image.LookupTable
andmask, inBits, LINEAR, off, ormask, outBits, preserve, SIGMOID, signbit
 
Constructor Summary
ShortLookupTable(int inBits, boolean signed, int off, int outBits, short[] data)
           
ShortLookupTable(int inBits, boolean signed, int off, int outBits, short[] data, boolean preserve)
           
 
Method Summary
protected  LookupTable combine(LookupTable other, int outBits, boolean inverse, short[] pval2out)
           
protected  LookupTable combine(LookupTable vlut, LookupTable plut, int outBits, boolean inverse, short[] pval2out)
           
protected  LookupTable inverse()
           
 int length()
           
 byte[] lookup(byte[] src, int srcPos, byte[] dst, int dstPos, int length, int channels, int skip)
           
 int[] lookup(byte[] src, int srcPos, int[] dst, int dstPos, int length, int alpha)
           
 short[] lookup(byte[] src, int srcPos, short[] dst, int dstPos, int length)
           
 int lookup(int in)
           
 byte[] lookup(short[] src, int srcPos, byte[] dst, int dstPos, int length)
           
 int[] lookup(short[] src, int srcPos, int[] dst, int dstPos, int length, int alpha)
           
 short[] lookup(short[] src, int srcPos, short[] dst, int dstPos, int length)
           
 byte lookupByte(int in)
           
 short lookupShort(int in)
           
protected  LookupTable scale(int outBits, boolean inverse, short[] pval2out)
           
 
Methods inherited from class org.dcm4che2.image.LookupTable
createLut, createLut, createLut, createLut, createLut, createLut, createLut, createLut, createLut, createLutForImage, createLutForImage, createLutForImageWithPR, createLutFromVOISequence, createLutFromVOISequence, createLutFromWL, createLutFromWL, getIntPixelValue, getMinMaxPixelPadding, getOffset, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, toIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortLookupTable

public ShortLookupTable(int inBits,
                        boolean signed,
                        int off,
                        int outBits,
                        short[] data)

ShortLookupTable

public ShortLookupTable(int inBits,
                        boolean signed,
                        int off,
                        int outBits,
                        short[] data,
                        boolean preserve)
Method Detail

length

public final int length()
Specified by:
length in class LookupTable

lookupByte

public final byte lookupByte(int in)
Specified by:
lookupByte in class LookupTable

lookupShort

public final short lookupShort(int in)
Specified by:
lookupShort in class LookupTable

lookup

public final int lookup(int in)
Specified by:
lookup in class LookupTable

lookup

public final byte[] lookup(byte[] src,
                           int srcPos,
                           byte[] dst,
                           int dstPos,
                           int length,
                           int channels,
                           int skip)
Specified by:
lookup in class LookupTable

lookup

public final short[] lookup(byte[] src,
                            int srcPos,
                            short[] dst,
                            int dstPos,
                            int length)
Specified by:
lookup in class LookupTable

lookup

public final int[] lookup(byte[] src,
                          int srcPos,
                          int[] dst,
                          int dstPos,
                          int length,
                          int alpha)
Specified by:
lookup in class LookupTable

lookup

public final byte[] lookup(short[] src,
                           int srcPos,
                           byte[] dst,
                           int dstPos,
                           int length)
Specified by:
lookup in class LookupTable

lookup

public final short[] lookup(short[] src,
                            int srcPos,
                            short[] dst,
                            int dstPos,
                            int length)
Specified by:
lookup in class LookupTable

lookup

public final int[] lookup(short[] src,
                          int srcPos,
                          int[] dst,
                          int dstPos,
                          int length,
                          int alpha)
Specified by:
lookup in class LookupTable

inverse

protected LookupTable inverse()

scale

protected LookupTable scale(int outBits,
                            boolean inverse,
                            short[] pval2out)
Specified by:
scale in class LookupTable

combine

protected LookupTable combine(LookupTable other,
                              int outBits,
                              boolean inverse,
                              short[] pval2out)
Specified by:
combine in class LookupTable

combine

protected LookupTable combine(LookupTable vlut,
                              LookupTable plut,
                              int outBits,
                              boolean inverse,
                              short[] pval2out)
Specified by:
combine in class LookupTable


Copyright © 2011 dcm4che. All Rights Reserved.