public abstract class FileProjectionSource extends java.lang.Object implements ProjectionSource
Constructor and Description |
---|
FileProjectionSource() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
convertToUnsignedInt(byte[] values,
int index)
converts a byte sequence to integer
|
int |
convertToUnsignedShort(byte[] values,
int index)
converts a byte sequence to integer
|
int |
getCurrentProjectionNumber()
Returns the current projection number
|
Grid2D |
getNextProjection()
Returns the next projection.
|
void |
getNextProjection(IndividualImagePipelineFilteringTool tool)
Writes the next projection into an IndividualImagePipelineFiltering tool, i.e.
|
static ProjectionSource[] |
getProjectionSources() |
boolean |
isShowProgress() |
static ProjectionSource |
openProjectionStream(java.lang.String filename) |
void |
setShowProgress(boolean showProgress) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initStream
public static ProjectionSource[] getProjectionSources()
public static ProjectionSource 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 Grid2D 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 metricpublic int convertToUnsignedShort(byte[] values, int index)
values
- the byte arrayindex
- the index in 32bit integer metric