edu.stanford.rsl.konrad.io
Class IndividualFilesProjectionDataSink

java.lang.Object
  extended by edu.stanford.rsl.konrad.pipeline.BufferedProjectionSink
      extended by edu.stanford.rsl.konrad.io.IndividualFilesProjectionDataSink
All Implemented Interfaces:
Citeable, GUIConfigurable, SafeSerializable, ProjectionSink, java.io.Serializable

public class IndividualFilesProjectionDataSink
extends BufferedProjectionSink

Class to model a directory as projection data sink. The sink creates a new file for each projection in the configured raw format.

Author:
akmaier
See Also:
Serialized Form

Field Summary
static java.lang.String Float32Bit
           
static java.lang.String SignedShort
           
static java.lang.String UnsignedShort
           
 
Constructor Summary
IndividualFilesProjectionDataSink()
           
 
Method Summary
 void close()
           
 void configure()
          Configures the object before execution
 java.lang.String getBibtexCitation()
          Returns the citation in bibTex format
 java.lang.String getDirectory()
           
 java.lang.String getFormat()
           
 int getHeight()
           
 java.lang.String getMedlineCitation()
          Returns the citation in Medline format
 java.lang.String getName()
           
 java.lang.String getPrefix()
           
 ij.ImagePlus getResult()
           
 int getWidth()
           
 boolean isLittleEndian()
           
 void process(ij.process.ImageProcessor projection, int projectionNumber)
           
 void setConfiguration(Configuration config)
           
 void setDirectory(java.lang.String directory)
           
 void setFormat(java.lang.String format)
           
 void setHeight(int height)
           
 void setLittleEndian(boolean littleEndian)
           
 void setPrefix(java.lang.String prefix)
           
 void setWidth(int width)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.rsl.konrad.pipeline.BufferedProjectionSink
adjustViewRange, getProjectionDataSinks, getProjectionVolume, isConfigured, prepareForSerialization, setShowStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UnsignedShort

public static final java.lang.String UnsignedShort
See Also:
Constant Field Values

SignedShort

public static final java.lang.String SignedShort
See Also:
Constant Field Values

Float32Bit

public static final java.lang.String Float32Bit
See Also:
Constant Field Values
Constructor Detail

IndividualFilesProjectionDataSink

public IndividualFilesProjectionDataSink()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ProjectionSink
Specified by:
getName in class BufferedProjectionSink

getResult

public ij.ImagePlus getResult()
Overrides:
getResult in class BufferedProjectionSink

process

public void process(ij.process.ImageProcessor projection,
                    int projectionNumber)
             throws java.lang.Exception
Specified by:
process in interface ProjectionSink
Specified by:
process in class BufferedProjectionSink
Throws:
java.lang.Exception

setConfiguration

public void setConfiguration(Configuration config)
Specified by:
setConfiguration in class BufferedProjectionSink

toString

public java.lang.String toString()
Overrides:
toString in class BufferedProjectionSink

configure

public void configure()
               throws java.lang.Exception
Description copied from interface: GUIConfigurable
Configures the object before execution

Throws:
java.lang.Exception - may happen

getBibtexCitation

public java.lang.String getBibtexCitation()
Description copied from interface: Citeable
Returns the citation in bibTex format

Returns:
citation as String

getMedlineCitation

public java.lang.String getMedlineCitation()
Description copied from interface: Citeable
Returns the citation in Medline format

Returns:
citation as String

close

public void close()

getDirectory

public java.lang.String getDirectory()
Returns:
the directory

setDirectory

public void setDirectory(java.lang.String directory)
Parameters:
directory - the directory to set

getPrefix

public java.lang.String getPrefix()
Returns:
the prefix

setPrefix

public void setPrefix(java.lang.String prefix)
Parameters:
prefix - the prefix to set

getFormat

public java.lang.String getFormat()
Returns:
the format

setFormat

public void setFormat(java.lang.String format)
Parameters:
format - the format to set

getWidth

public int getWidth()
Returns:
the width

setWidth

public void setWidth(int width)
Parameters:
width - the width to set

getHeight

public int getHeight()
Returns:
the height

setHeight

public void setHeight(int height)
Parameters:
height - the height to set

isLittleEndian

public boolean isLittleEndian()
Returns:
the littleEndian

setLittleEndian

public void setLittleEndian(boolean littleEndian)
Parameters:
littleEndian - the littleEndian to set