edu.stanford.rsl.science.analysis
Class BinaryImageAnalysisTool

java.lang.Object
  extended by edu.stanford.rsl.science.analysis.BinaryImageAnalysisTool
All Implemented Interfaces:
NamedParallelizableRunnable, ParallelizableRunnable, java.lang.Cloneable, java.lang.Runnable
Direct Known Subclasses:
AnalyzeAutomaticExposureControlTool, AnalyzeAutomaticExposureThresholdTool, AnalyzeRowWeightingTool, EstimateRampFilterTool

public abstract class BinaryImageAnalysisTool
extends java.lang.Object
implements NamedParallelizableRunnable, java.lang.Cloneable

Abstract class which describes any analysis which can be applied to compare two ImageProcessors of same dimension. The analysis can be parallelized using the BinaryImageAnalyzer if it is supposed to be applied to a stack of ImageProcessors, i.e., an ImagePlus.

Author:
Andreas Maier

Constructor Summary
BinaryImageAnalysisTool()
          Default constructor to instantiate the Model.
 
Method Summary
abstract  BinaryImageAnalysisTool clone()
           
 java.lang.Object getAnalysisResult()
           
 ij.process.ImageProcessor getFirstImageProcessor()
           
 java.lang.String getProcessName()
           
 ij.process.ImageProcessor getSecondImageProcessor()
           
abstract  java.lang.String getToolName()
           
abstract  java.lang.String interpretResult()
          This method is used to interpret the computed Result as String.
abstract  void prepareImages(ij.ImagePlus first, ij.ImagePlus second)
          This method is used to prepare the both image stacks to be processed as required by the analysis tool.
 void setFirstImageProcessor(ij.process.ImageProcessor firstImageProcessor)
           
 void setLatch(java.util.concurrent.CountDownLatch latch)
           
 void setSecondImageProcessor(ij.process.ImageProcessor secondImageProcessor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

BinaryImageAnalysisTool

public BinaryImageAnalysisTool()
Default constructor to instantiate the Model.

Method Detail

clone

public abstract BinaryImageAnalysisTool clone()
Overrides:
clone in class java.lang.Object

setLatch

public void setLatch(java.util.concurrent.CountDownLatch latch)
Specified by:
setLatch in interface ParallelizableRunnable

getFirstImageProcessor

public ij.process.ImageProcessor getFirstImageProcessor()

setFirstImageProcessor

public void setFirstImageProcessor(ij.process.ImageProcessor firstImageProcessor)

getSecondImageProcessor

public ij.process.ImageProcessor getSecondImageProcessor()

setSecondImageProcessor

public void setSecondImageProcessor(ij.process.ImageProcessor secondImageProcessor)

interpretResult

public abstract java.lang.String interpretResult()
This method is used to interpret the computed Result as String.

Returns:
a String representation of the result;

prepareImages

public abstract void prepareImages(ij.ImagePlus first,
                                   ij.ImagePlus second)
This method is used to prepare the both image stacks to be processed as required by the analysis tool.

Parameters:
first - the first ImagePlus
second - the second ImagePlus

getToolName

public abstract java.lang.String getToolName()

getProcessName

public java.lang.String getProcessName()
Specified by:
getProcessName in interface NamedParallelizableRunnable

getAnalysisResult

public java.lang.Object getAnalysisResult()