|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.reconstruction.voi.VolumeOfInterest
edu.stanford.rsl.konrad.reconstruction.voi.PolygonBasedVolumeOfInterest
public class PolygonBasedVolumeOfInterest
VOI based on a polygon definition which is identical for each slice. The VOI is than formed as a stack of identical polygons. Note that this method is sub-optimal for clipping as either the VOI has to be pre-computed for the whole volume or clipped against a polygon in each call of contains().
Constructor Summary | |
---|---|
PolygonBasedVolumeOfInterest()
|
|
PolygonBasedVolumeOfInterest(java.lang.String maxVOIFileName)
|
Method Summary | |
---|---|
boolean |
contains(double x,
double y,
double z)
Tests whether a given coordinate in world coordinates is within the VOI. |
boolean |
getSuccess()
is true if the reading was successful. |
void |
prepareForSerialization()
Sets all data objects in the serialized object to null which do not implement the Serializable interface. |
void |
readConfigFile(java.lang.String filename)
Reads the configuration from the file denoted by filename |
Methods inherited from class edu.stanford.rsl.konrad.reconstruction.voi.VolumeOfInterest |
---|
getVolumes, openAsVolume |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonBasedVolumeOfInterest()
public PolygonBasedVolumeOfInterest(java.lang.String maxVOIFileName) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean contains(double x, double y, double z)
VolumeOfInterest
contains
in class VolumeOfInterest
x
- world coordinate xy
- world coordinate yz
- world coordinate z
public void readConfigFile(java.lang.String filename) throws java.io.IOException
ConfigFileParser
readConfigFile
in interface ConfigFileParser
filename
- the file name
java.io.IOException
- may happen during readingpublic boolean getSuccess()
ConfigFileParser
getSuccess
in interface ConfigFileParser
public void prepareForSerialization()
SafeSerializable
prepareForSerialization
in interface SafeSerializable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |