ij.plugin
Class DicomDecoder

java.lang.Object
  extended by ij.plugin.DicomDecoder

 class DicomDecoder
extends java.lang.Object


Field Summary
(package private)  char[] buf10
           
(package private) static char[] buf8
           
(package private)  java.io.BufferedInputStream inputStream
           
(package private)  boolean inSequence
           
(package private)  double rescaleIntercept
           
(package private)  double rescaleSlope
           
(package private)  double windowCenter
           
(package private)  double windowWidth
           
 
Constructor Summary
DicomDecoder(java.lang.String directory, java.lang.String fileName)
           
 
Method Summary
(package private)  void addInfo(int tag, int value)
           
(package private)  void addInfo(int tag, java.lang.String value)
           
(package private)  boolean dicmFound()
           
(package private)  int getByte()
           
(package private)  java.lang.String getDicomInfo()
           
(package private)  ij.io.FileInfo getFileInfo()
           
(package private)  java.lang.String getHeaderInfo(int tag, java.lang.String value)
           
(package private)  int getInt()
           
(package private)  int getLength()
           
(package private)  byte[] getLut(int length)
           
(package private)  int getNextTag()
           
(package private)  int getShort()
           
(package private)  void getSpatialScale(ij.io.FileInfo fi, java.lang.String scale)
           
(package private)  java.lang.String getString(int length)
           
(package private)  java.lang.String i2hex(int i)
          Converts an int to an 8 byte hex string.
(package private)  double s2d(java.lang.String s)
           
(package private)  java.lang.String tag2hex(int tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windowCenter

double windowCenter

windowWidth

double windowWidth

rescaleIntercept

double rescaleIntercept

rescaleSlope

double rescaleSlope

inSequence

boolean inSequence

inputStream

java.io.BufferedInputStream inputStream

buf8

static char[] buf8

buf10

char[] buf10
Constructor Detail

DicomDecoder

public DicomDecoder(java.lang.String directory,
                    java.lang.String fileName)
Method Detail

getString

java.lang.String getString(int length)
                     throws java.io.IOException
Throws:
java.io.IOException

getByte

int getByte()
      throws java.io.IOException
Throws:
java.io.IOException

getShort

int getShort()
       throws java.io.IOException
Throws:
java.io.IOException

getInt

final int getInt()
          throws java.io.IOException
Throws:
java.io.IOException

getLut

byte[] getLut(int length)
        throws java.io.IOException
Throws:
java.io.IOException

getLength

int getLength()
        throws java.io.IOException
Throws:
java.io.IOException

getNextTag

int getNextTag()
         throws java.io.IOException
Throws:
java.io.IOException

getFileInfo

ij.io.FileInfo getFileInfo()
                     throws java.io.IOException
Throws:
java.io.IOException

getDicomInfo

java.lang.String getDicomInfo()

addInfo

void addInfo(int tag,
             java.lang.String value)
       throws java.io.IOException
Throws:
java.io.IOException

addInfo

void addInfo(int tag,
             int value)
       throws java.io.IOException
Throws:
java.io.IOException

getHeaderInfo

java.lang.String getHeaderInfo(int tag,
                               java.lang.String value)
                         throws java.io.IOException
Throws:
java.io.IOException

i2hex

java.lang.String i2hex(int i)
Converts an int to an 8 byte hex string.


tag2hex

java.lang.String tag2hex(int tag)

s2d

double s2d(java.lang.String s)

getSpatialScale

void getSpatialScale(ij.io.FileInfo fi,
                     java.lang.String scale)

dicmFound

boolean dicmFound()