|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FileVOI edu.jhu.ece.iacl.jist.io.MipavFileVOI
public class MipavFileVOI
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.
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 |
---|
public MipavFileVOI(java.lang.String fName, java.lang.String fDir, ModelImage img) throws java.io.IOException
fName
- the f namefDir
- the f dirimg
- the img
java.io.IOException
- Signals that an I/O exception has occurred.Method Detail |
---|
public void writeXML(VOI voi, boolean saveAllContours) throws java.io.IOException
java.io.IOException
public static final void fileToScanner(Vector3f kInput, Vector3f kOutput, ModelImage kImage)
kInput
- the k inputkOutput
- the k outputkImage
- the k imagepublic static final void fileToPatient(Vector3f pIn, Vector3f pOut, ModelStorageBase image, int orientation, boolean bFlip)
pIn
- the inpOut
- the outimage
- the imageorientation
- the orientationbFlip
- the b flip
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |