annotool.extract
Interface FeatureExtractor


public interface FeatureExtractor

FeatureExtractor finds features and saves them to a two dimensional array


Method Summary
 float[][] calcFeatures(java.util.ArrayList data, int imageType, annotool.ImgDimension dim)
          Get features based on data, imageType, and dim.
 float[][] calcFeatures(DataInput problem)
          Get features based on raw image stored in problem.
 boolean is3DExtractor()
          Returns whether or not the algorithm is able to extract from a 3D image stack.
 void setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
          Sets algorithm parameters from para
 

Method Detail

setParameters

void setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
Sets algorithm parameters from para

Parameters:
para - Each element of para holds a parameter’s name for its key and a parameter’s value for its value. The parameters should be the same as those in the algorithms.xml file.

calcFeatures

float[][] calcFeatures(DataInput problem)
                       throws java.lang.Exception
Get features based on raw image stored in problem.

Parameters:
problem - Image to be processed
Returns:
Array of features
Throws:
java.lang.Exception - Optional, generic exception to be thrown

calcFeatures

float[][] calcFeatures(java.util.ArrayList data,
                       int imageType,
                       annotool.ImgDimension dim)
                       throws java.lang.Exception
Get features based on data, imageType, and dim.

ArrayList of array can accommodate FloatProcessor and IntProcessor 09/02/2011

Parameters:
data - Data taken from the image
imageType - Type of the image
dim - Dimenstions of the image
Returns:
Array of features
Throws:
java.lang.Exception - Optional, generic exception to be thrown

is3DExtractor

boolean is3DExtractor()
Returns whether or not the algorithm is able to extract from a 3D image stack.

Returns:
True if the algorithm is a 3D extractor, False if not