Package gov.nih.mipav.model.file
Class RawImageInfo
- java.lang.Object
-
- gov.nih.mipav.model.file.RawImageInfo
-
public class RawImageInfo extends java.lang.Object
Class designed to hold pre-loaded information for opening RAW images. This is used when running scripts (either through GUI or command line)... two specific constructors meant for commandline/gui scripts- Author:
- linkb
-
-
Constructor Summary
Constructors Constructor Description RawImageInfo(int type, int[] dims, float[] res, int[] units, int offset, boolean bigEndian)
Constructor used when running scripts from the GUIRawImageInfo(java.lang.String consoleString)
Constructor used when running from command line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataType()
DOCUMENT ME!boolean
getEndianess()
DOCUMENT ME!int[]
getExtents()
DOCUMENT ME!int
getOffset()
DOCUMENT ME!float[]
getResolutions()
DOCUMENT ME!int[]
getUnitsOfMeasure()
DOCUMENT ME!
-
-
-
Constructor Detail
-
RawImageInfo
public RawImageInfo(java.lang.String consoleString)
Constructor used when running from command line. Parses the command line's string into the correct variables
-
RawImageInfo
public RawImageInfo(int type, int[] dims, float[] res, int[] units, int offset, boolean bigEndian)
Constructor used when running scripts from the GUI- Parameters:
type
- image typedims
- image extentsres
- image resolutionsunits
- image unitsoffset
- image offsetbigEndian
- image's big endian order
-
-
Method Detail
-
getDataType
public int getDataType()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getEndianess
public boolean getEndianess()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getExtents
public int[] getExtents()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getOffset
public int getOffset()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getResolutions
public float[] getResolutions()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getUnitsOfMeasure
public int[] getUnitsOfMeasure()
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
-