sigus.parameterExtraction
Class ImageMomentsExtractor_

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

public class ImageMomentsExtractor_
extends ParameterExtractor_

Extract features from an image ROI based on Image Moments calculated for each cell of grid imposed on the ROI


Field Summary
private  int ignoreMargin
           
private static int MAX_GLOBALS
           
private static int MAX_GRUPOS
           
private static int MAX_REG
           
 
Fields inherited from class sigus.parameterExtraction.ParameterExtractor_
BadSample, draw, MAX_PARS, names, pars
 
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
ImageMomentsExtractor_()
           
 
Method Summary
private  int calcRegion(int x, int y, java.awt.Rectangle r, double[] pars, double[] xsum, double[] ysum)
           
 void drawParameters(ij.process.ImageProcessor ip, java.awt.Rectangle r)
           
 void extract(ij.ImagePlus imp)
          Extract the parameters from the pointed by imp
 void initializeNames()
           
(package private)  void showAbout()
           
 
Methods inherited from class sigus.parameterExtraction.ParameterExtractor_
classifySample, getName, getParameters, isBadSample, run, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_REG

private static int MAX_REG

MAX_GLOBALS

private static int MAX_GLOBALS

MAX_GRUPOS

private static int MAX_GRUPOS

ignoreMargin

private int ignoreMargin
Constructor Detail

ImageMomentsExtractor_

public ImageMomentsExtractor_()
Method Detail

initializeNames

public void initializeNames()
Specified by:
initializeNames in class ParameterExtractor_

extract

public void extract(ij.ImagePlus imp)
Description copied from class: ParameterExtractor_
Extract the parameters from the pointed by imp

Specified by:
extract in class ParameterExtractor_

calcRegion

private int calcRegion(int x,
                       int y,
                       java.awt.Rectangle r,
                       double[] pars,
                       double[] xsum,
                       double[] ysum)

drawParameters

public void drawParameters(ij.process.ImageProcessor ip,
                           java.awt.Rectangle r)
Specified by:
drawParameters in class ParameterExtractor_

showAbout

void showAbout()
Overrides:
showAbout in class ParameterExtractor_