Package com.xinapse.multisliceimage.roi
Class ROIStreamTokenizer
java.lang.Object
java.io.StreamTokenizer
com.xinapse.multisliceimage.roi.ROIStreamTokenizer
An ROIStreamTokenizer used to parse ROIs from an input stream. The ROIs can either be
Xinapse-type ROIs, or dispim-type ROIs. Xinapse-style ROIs can be read using this
Tokenizer in two modes:
- Normal mode.
- Clinical trials mode.
Begin Checksum NNNNNNNN End Checksumwhere
NNNNNNNN
is the value of the checksum.
In normal mode, the checksum, if found, is ignored.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The token written to show the ROI annotation.static final String
The token written to show the ROI area.static final String
The token written to show the ROI colour.static final String
The token written to show the ROI intensity "deviation" in "standard deviation".static final String
The token written to show the ROI length (for linear ROIs).static final String
The token written to show the ROI maximum intensity.static final String
The token written to show the ROI mean intensity.static final String
The token written to show the ROI intensity median.static final String
The token written to show the ROI minimum intensity.static final String
The token written to show the image slice.static final String
The token written to show the ROI intensity "standard" in "standard deviation". -
Method Summary
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
-
Field Details
-
SLICETOKEN
The token written to show the image slice.- See Also:
-
ANNOTATIONTOKEN
The token written to show the ROI annotation.- See Also:
-
COLOURTOKEN
The token written to show the ROI colour.- See Also:
-
AREATOKEN
The token written to show the ROI area.- See Also:
-
MEANTOKEN
The token written to show the ROI mean intensity.- See Also:
-
STDTOKEN
The token written to show the ROI intensity "standard" in "standard deviation".- See Also:
-
DEVTOKEN
The token written to show the ROI intensity "deviation" in "standard deviation".- See Also:
-
MEDIANTOKEN
The token written to show the ROI intensity median.- See Also:
-
MINTOKEN
The token written to show the ROI minimum intensity.- See Also:
-
MAXTOKEN
The token written to show the ROI maximum intensity.- See Also:
-
LENGTHTOKEN
The token written to show the ROI length (for linear ROIs).- See Also:
-
-
Method Details
-
main
Runs the self-test for the ROIStreamTokenizer class.- Parameters:
args
- are ignored.
-