Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
BackgroundSubtracter Class Reference
Inheritance diagram for BackgroundSubtracter:
PlugInFilter

Public Member Functions

int setup (String arg, ImagePlus imp)
 
void run (ImageProcessor ip)
 
void showDialog ()
 
void subtractRGBBackround (ColorProcessor ip, int ballRadius)
 
void subtractBackround (ImageProcessor ip, int ballRadius)
 

Additional Inherited Members

- Data Fields inherited from PlugInFilter
int DOES_8G = 1
 
int DOES_8C = 2
 
int DOES_16 = 4
 
int DOES_32 = 8
 
int DOES_RGB = 16
 
int DOES_ALL = DOES_8G+DOES_8C+DOES_16+DOES_32+DOES_RGB
 
int DOES_STACKS = 32
 
int SUPPORTS_MASKING = 64
 
int NO_CHANGES = 128
 
int NO_UNDO = 256
 
int NO_IMAGE_REQUIRED = 512
 
int ROI_REQUIRED = 1024
 
int STACK_REQUIRED = 2048
 
int DONE = 4096
 

Detailed Description

Implements ImageJ's Subtract Background command. Based on the NIH Image Pascal version by Michael Castle and Janice Keller of the University of Michigan Mental Health Research Institute. Rolling ball algorithm inspired by Stanley Sternberg's article, "Biomedical Image Processing", IEEE Computer, January 1983.

Definition at line 15 of file BackgroundSubtracter.java.

Member Function Documentation

void run ( ImageProcessor  ip)
inline

Filters use this method to process the image. If the SUPPORTS_STACKS flag was set, it is called for each slice in a stack. ImageJ will lock the image before calling this method and unlock it when the filter is finished.

Implements PlugInFilter.

Definition at line 36 of file BackgroundSubtracter.java.

int setup ( String  arg,
ImagePlus  imp 
)
inline

This method is called once when the filter is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. 'imp' is the currently active image. This method should return a flag word that specifies the filters capabilities.

Implements PlugInFilter.

Definition at line 24 of file BackgroundSubtracter.java.

void subtractBackround ( ImageProcessor  ip,
int  ballRadius 
)
inline

Implements a rolling-ball algorithm for the removal of smooth continuous background from a two-dimensional gel image. It rolls the ball (actually a square patch on the top of a sphere) on a low-resolution (by a factor of 'shrinkfactor' times) copy of the original image in order to increase speed with little loss in accuracy. It uses interpolation and extrapolation to blow the shrunk image to full size.

Definition at line 81 of file BackgroundSubtracter.java.


The documentation for this class was generated from the following file: