sigus.parameterExtraction
Class ParameterExtractor_

java.lang.Object
  extended bysigus.parameterExtraction.ParameterExtractor_
All Implemented Interfaces:
ij.plugin.filter.PlugInFilter
Direct Known Subclasses:
ImageMomentsExtractor_

public abstract class ParameterExtractor_
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter

A parameter extractor takes an image ROI and produce a vector of real values representing some image features


Field Summary
(package private) static boolean BadSample
          True when features could not be properly extracted
 boolean draw
           
private  ij.ImagePlus imp
          An ImageJ image structure (features are extracted from this image)
static int MAX_PARS
          The number of features that will be extracted
 java.lang.String[] names
          The names of the features
(package private) static double[] pars
          The extracted features
 
Fields inherited from interface ij.plugin.filter.PlugInFilter
DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, ROI_REQUIRED, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
ParameterExtractor_()
           
 
Method Summary
 void classifySample(ij.ImagePlus imp)
          The parameter extraction must be based on a segmented image.
abstract  void drawParameters(ij.process.ImageProcessor ip, java.awt.Rectangle r)
           
abstract  void extract(ij.ImagePlus imp)
          Extract the parameters from the pointed by imp
 java.lang.String getName(int index)
          Get the name of one feature
 double[] getParameters()
          Get the parameters
abstract  void initializeNames()
           
 boolean isBadSample()
          Returns true if the image do not contain a ROI (indicating that the tracking phase did not succeeded)
 void run(ij.process.ImageProcessor ip)
           
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
(package private)  void showAbout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_PARS

public static int MAX_PARS
The number of features that will be extracted


pars

static double[] pars
The extracted features


BadSample

static boolean BadSample
True when features could not be properly extracted


names

public java.lang.String[] names
The names of the features


imp

private ij.ImagePlus imp
An ImageJ image structure (features are extracted from this image)


draw

public boolean draw
Constructor Detail

ParameterExtractor_

public ParameterExtractor_()
Method Detail

setup

public int setup(java.lang.String arg,
                 ij.ImagePlus imp)
Specified by:
setup in interface ij.plugin.filter.PlugInFilter

run

public void run(ij.process.ImageProcessor ip)
Specified by:
run in interface ij.plugin.filter.PlugInFilter

initializeNames

public abstract void initializeNames()

extract

public abstract void extract(ij.ImagePlus imp)
Extract the parameters from the pointed by imp


drawParameters

public abstract void drawParameters(ij.process.ImageProcessor ip,
                                    java.awt.Rectangle r)

getName

public java.lang.String getName(int index)
Get the name of one feature


getParameters

public double[] getParameters()
Get the parameters


isBadSample

public boolean isBadSample()
Returns true if the image do not contain a ROI (indicating that the tracking phase did not succeeded)


classifySample

public void classifySample(ij.ImagePlus imp)
The parameter extraction must be based on a segmented image. The method classifySample tries to detect if the segmentation and tracking phases worked well, verifying if there exist a ROI


showAbout

void showAbout()