edu.stanford.rsl.konrad.io
Class SEQProjectionSource
java.lang.Object
edu.stanford.rsl.konrad.io.FileProjectionSource
edu.stanford.rsl.konrad.io.SEQProjectionSource
- All Implemented Interfaces:
- ProjectionSource
public class SEQProjectionSource
- extends FileProjectionSource
Class to stream Varian's SEQ Format. Created with a lot of help from Jared Starman.
- Author:
- akmaier
Method Summary |
byte[] |
convertInt2Bytes(int value)
|
byte[] |
convertInt2UnShort(int value)
|
ij.io.FileInfo |
getHeaderInfo(java.lang.String filename)
Reads the header information from the file into a fileinfo object |
ij.process.ImageProcessor |
getNextProjection()
Returns the next projection. |
void |
initStream(java.lang.String filename)
Initializes the file reading. |
void |
saveViva(ij.ImagePlus imp,
java.lang.String path)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEQProjectionSource
public SEQProjectionSource()
initStream
public void initStream(java.lang.String filename)
throws java.io.IOException
- Description copied from class:
FileProjectionSource
- Initializes the file reading.
- Specified by:
initStream
in class FileProjectionSource
- Parameters:
filename
- the name of the file to read
- Throws:
java.io.IOException
- may happen
getHeaderInfo
public ij.io.FileInfo getHeaderInfo(java.lang.String filename)
throws java.io.IOException
- Reads the header information from the file into a fileinfo object
- Parameters:
filename
- the filename
- Returns:
- the FileInfo
- Throws:
java.io.IOException
getNextProjection
public ij.process.ImageProcessor getNextProjection()
- Description copied from interface:
ProjectionSource
- Returns the next projection. Note that this call may be out of sync with getCurrentProjectionNumber()
- Specified by:
getNextProjection
in interface ProjectionSource
- Overrides:
getNextProjection
in class FileProjectionSource
- Returns:
- the projection
- See Also:
ProjectionSource.getCurrentProjectionNumber()
,
ProjectionSource.getNextProjection(IndividualImagePipelineFilteringTool tool)
saveViva
public void saveViva(ij.ImagePlus imp,
java.lang.String path)
convertInt2Bytes
public byte[] convertInt2Bytes(int value)
convertInt2UnShort
public byte[] convertInt2UnShort(int value)