edu.jhu.ece.iacl.jist.io
Class MipavFileVOI

java.lang.Object
  extended by FileVOI
      extended by edu.jhu.ece.iacl.jist.io.MipavFileVOI

public class MipavFileVOI
extends FileVOI

VOI reader/writer. This classes incorporates the ability to write/read VOIs in three formats (MIPAV *.voi, Nuages, and MIPAV *.Xml . The first is a simple text format in which the points of the VOIs are stored in text format. The VOIs can be also stored in a second format, also a text format, termed a Nauges. Nauges is a program that forms triangles (i.e., tesselates) from contours. Therefore, if one wishes to render a surface of a VOI, first save the VOI in Nauges format and supply the VOI file to the Nauges executable. MIPAV's lastest file format is based on XML and should be used in the future.

Note: A single VOI per file. However, a VOI can be formed from multiple contours.

Version:
0.1 Feb 24, 1998
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
VOI

Constructor Summary
MipavFileVOI(java.lang.String fName, java.lang.String fDir, ModelImage img)
          Instantiates a new mipav file voi.
 
Method Summary
static void fileToPatient(Vector3f pIn, Vector3f pOut, ModelStorageBase image, int orientation, boolean bFlip)
          File to patient.
static void fileToScanner(Vector3f kInput, Vector3f kOutput, ModelImage kImage)
          File to scanner.
 void writeXML(VOI voi, boolean saveAllContours)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MipavFileVOI

public MipavFileVOI(java.lang.String fName,
                    java.lang.String fDir,
                    ModelImage img)
             throws java.io.IOException
Instantiates a new mipav file voi.

Parameters:
fName - the f name
fDir - the f dir
img - the img
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
Method Detail

writeXML

public void writeXML(VOI voi,
                     boolean saveAllContours)
              throws java.io.IOException
Throws:
java.io.IOException

fileToScanner

public static final void fileToScanner(Vector3f kInput,
                                       Vector3f kOutput,
                                       ModelImage kImage)
File to scanner.

Parameters:
kInput - the k input
kOutput - the k output
kImage - the k image

fileToPatient

public static final void fileToPatient(Vector3f pIn,
                                       Vector3f pOut,
                                       ModelStorageBase image,
                                       int orientation,
                                       boolean bFlip)
File to patient.

Parameters:
pIn - the in
pOut - the out
image - the image
orientation - the orientation
bFlip - the b flip