|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.io.FileProjectionSource
public abstract class FileProjectionSource
Class to model an abstract projection source which accesses the file system to stream the data.
Constructor Summary | |
---|---|
FileProjectionSource()
|
Method Summary | |
---|---|
void |
close()
|
long |
convertToUnsignedInt(byte[] values,
int index)
converts a byte sequence to integer |
int |
getCurrentProjectionNumber()
Returns the current projection number |
ij.process.ImageProcessor |
getNextProjection()
Returns the next projection. |
void |
getNextProjection(IndividualImagePipelineFilteringTool tool)
Writes the next projection into an IndividualImagePipelineFiltering tool, i.e. |
static FileProjectionSource[] |
getProjectionSources()
|
abstract void |
initStream(java.lang.String filename)
Initializes the file reading. |
boolean |
isShowProgress()
|
static FileProjectionSource |
openProjectionStream(java.lang.String filename)
|
void |
setShowProgress(boolean showProgress)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileProjectionSource()
Method Detail |
---|
public abstract void initStream(java.lang.String filename) throws java.io.IOException
filename
- the name of the file to read
java.io.IOException
- may happenpublic static FileProjectionSource[] getProjectionSources()
public static FileProjectionSource openProjectionStream(java.lang.String filename) throws java.io.IOException
java.io.IOException
public void getNextProjection(IndividualImagePipelineFilteringTool tool)
ProjectionSource
getNextProjection
in interface ProjectionSource
tool
- the tool to write topublic void setShowProgress(boolean showProgress)
public boolean isShowProgress()
public int getCurrentProjectionNumber()
ProjectionSource
getCurrentProjectionNumber
in interface ProjectionSource
ProjectionSource.getNextProjection()
,
ProjectionSource.getNextProjection(IndividualImagePipelineFilteringTool tool)
public ij.process.ImageProcessor getNextProjection()
ProjectionSource
getNextProjection
in interface ProjectionSource
ProjectionSource.getCurrentProjectionNumber()
,
ProjectionSource.getNextProjection(IndividualImagePipelineFilteringTool tool)
public void close() throws java.io.IOException
java.io.IOException
public long convertToUnsignedInt(byte[] values, int index)
values
- the byte arrayindex
- the index in 32bit integer metric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |