org.dcm4che2.image
Class ByteLookupTable

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

public class ByteLookupTable
extends LookupTable


Field Summary
 
Fields inherited from class org.dcm4che2.image.LookupTable
andmask, inBits, LINEAR, off, ormask, outBits, preserve, SIGMOID, signbit
 
Constructor Summary
ByteLookupTable(int inBits, boolean signed, int off, int outBits, byte[] data)
           
ByteLookupTable(int inBits, boolean signed, int off, int outBits, byte[] 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)
           
 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

ByteLookupTable

public ByteLookupTable(int inBits,
                       boolean signed,
                       int off,
                       int outBits,
                       byte[] data)

ByteLookupTable

public ByteLookupTable(int inBits,
                       boolean signed,
                       int off,
                       int outBits,
                       byte[] 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

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.