edu.stanford.rsl.science.analysis
Class BinaryImageAnalysisTool
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
BinaryImageAnalysisTool
public BinaryImageAnalysisTool()
- Default constructor to instantiate the Model.
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 ImagePlussecond
- 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()