edu.stanford.rsl.science.analysis
Class AnalyzeAutomaticExposureControlTool

java.lang.Object
  extended by edu.stanford.rsl.science.analysis.BinaryImageAnalysisTool
      extended by edu.stanford.rsl.science.analysis.AnalyzeAutomaticExposureControlTool
All Implemented Interfaces:
NamedParallelizableRunnable, ParallelizableRunnable, java.lang.Cloneable, java.lang.Runnable

public class AnalyzeAutomaticExposureControlTool
extends BinaryImageAnalysisTool

Estimates the effect of the automatic exposure control (AEC) on the image given an input image and a corrected image. Returns the slope and the intercept of the linear correction. A detailed description of regression methods can be found here: &at;book{Maier09-SOC, number={29}, author={Andreas Maier}, keywords={Speech Recognition; Speech of Children; Cleft Lip and Palate; Automatic Assessment}, url={http://peaks.informatik.uni-erlangen.de/maier.pdf}, edition={1}, isbn={978-3-8325-2144-8}, publisher={Logos}, volume={29}, title={{Speech of Children with Cleft Lip and Palate: Automatic Assessment}}, year={2009}, }

Author:
Andreas Maier

Constructor Summary
AnalyzeAutomaticExposureControlTool()
           
 
Method Summary
 BinaryImageAnalysisTool clone()
           
 java.lang.String getToolName()
           
 java.lang.String interpretResult()
          This method is used to interpret the computed Result as String.
static java.lang.String interpretResult(java.lang.Object analysisResult)
           
 void prepareImages(ij.ImagePlus first, ij.ImagePlus second)
          Nothing to be prepared.
 void run()
          This method actually estimates the correction which is based on linear regression.
static void writeAECInfoToFile(java.lang.Object[] result, java.lang.String filename)
          Writes the estimated parameters into a text file
 
Methods inherited from class edu.stanford.rsl.science.analysis.BinaryImageAnalysisTool
getAnalysisResult, getFirstImageProcessor, getProcessName, getSecondImageProcessor, setFirstImageProcessor, setLatch, setSecondImageProcessor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzeAutomaticExposureControlTool

public AnalyzeAutomaticExposureControlTool()
Method Detail

run

public void run()
This method actually estimates the correction which is based on linear regression.


interpretResult

public java.lang.String interpretResult()
Description copied from class: BinaryImageAnalysisTool
This method is used to interpret the computed Result as String.

Specified by:
interpretResult in class BinaryImageAnalysisTool
Returns:
a String representation of the result;

interpretResult

public static java.lang.String interpretResult(java.lang.Object analysisResult)

clone

public BinaryImageAnalysisTool clone()
Specified by:
clone in class BinaryImageAnalysisTool

writeAECInfoToFile

public static void writeAECInfoToFile(java.lang.Object[] result,
                                      java.lang.String filename)
                               throws java.io.IOException
Writes the estimated parameters into a text file

Parameters:
result - the set of parameters
filename - the file to store them
Throws:
java.io.IOException - may happen.

prepareImages

public void prepareImages(ij.ImagePlus first,
                          ij.ImagePlus second)
Nothing to be prepared. Hence nothing is performed.

Specified by:
prepareImages in class BinaryImageAnalysisTool
Parameters:
first - the first ImagePlus
second - the second ImagePlus

getToolName

public java.lang.String getToolName()
Specified by:
getToolName in class BinaryImageAnalysisTool