edu.stanford.rsl.konrad.io
Class ImagePlusDataSink

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

public class ImagePlusDataSink
extends BufferedProjectionSink

Class to model an ImagePlus projection source, i.e. stream projections from an instance of ImagePlus.

Author:
akmaier
See Also:
ImagePlus, Serialized Form

Constructor Summary
ImagePlusDataSink()
           
 
Method Summary
 void close()
           
 void configure()
          Configures the object before execution
 java.lang.String getBibtexCitation()
          Returns the citation in bibTex format
 java.lang.String getMedlineCitation()
          Returns the citation in Medline format
 java.lang.String getName()
           
 ij.ImagePlus getResult()
           
 void prepareForSerialization()
          Sets all data objects in the serialized object to null which do not implement the Serializable interface.
 void process(ij.process.ImageProcessor projection, int projectionNumber)
           
 void setConfiguration(Configuration config)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.rsl.konrad.pipeline.BufferedProjectionSink
adjustViewRange, getProjectionDataSinks, getProjectionVolume, isConfigured, setShowStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImagePlusDataSink

public ImagePlusDataSink()
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

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

prepareForSerialization

public void prepareForSerialization()
Description copied from interface: SafeSerializable
Sets all data objects in the serialized object to null which do not implement the Serializable interface. It can also be used to save space in the serialized form. Configuration parameters are preserved. Processing data is discarded.

Specified by:
prepareForSerialization in interface SafeSerializable
Overrides:
prepareForSerialization in class BufferedProjectionSink

close

public void close()
           throws java.lang.Exception
Throws:
java.lang.Exception

setConfiguration

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