|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.plugin.filter.BackgroundSubtracter
public class BackgroundSubtracter
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.
Field Summary |
---|
Fields inherited from interface ij.plugin.filter.PlugInFilter |
---|
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Constructor Summary | |
---|---|
BackgroundSubtracter()
|
Method Summary | |
---|---|
(package private) void |
extrapolateBackground(ImageProcessor background,
RollingBall ball)
Uses linear extrapolation to find pixel values on the top, left, right, and bottom edges of the background. |
(package private) void |
extrapolateBackground16(ImageProcessor background,
RollingBall ball)
This is a 16-bit version of the extrapolateBackground() method. |
(package private) void |
interpolateBackground(ImageProcessor background,
RollingBall ball)
Uses bilinear interpolation to find the points in the full-scale background given the points from the shrunken image background. |
(package private) void |
interpolateBackground16(ImageProcessor background,
RollingBall ball)
This is a 16-bit version of the interpolateBackground(0 method. |
(package private) ImageProcessor |
rollBall(RollingBall ball,
ImageProcessor image,
ImageProcessor smallImage)
'Rolls' a filtering object over a (shrunken) image in order to find the image's smooth continuous background. |
(package private) ImageProcessor |
rollBall16(RollingBall ball,
ImageProcessor image,
ImageProcessor smallImage)
This is a 16-bit version of the rollBall() method. |
void |
run(ImageProcessor ip)
Filters use this method to process the image. |
int |
setup(java.lang.String arg,
ImagePlus imp)
This method is called once when the filter is loaded. |
void |
showDialog()
|
(package private) ImageProcessor |
shrinkImage(ImageProcessor ip,
int shrinkfactor)
Creates a lower resolution image for ball-rolling. |
void |
subtractBackround(ImageProcessor ip,
int ballRadius)
Implements a rolling-ball algorithm for the removal of smooth continuous background from a two-dimensional gel image. |
void |
subtractRGBBackround(ColorProcessor ip,
int ballRadius)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackgroundSubtracter()
Method Detail |
---|
public int setup(java.lang.String arg, ImagePlus imp)
PlugInFilter
For Plugin-filters specifying the FINAL_PROCESSING flag, the setup method will be called again, this time with arg = "final" after all other processing is done.
setup
in interface PlugInFilter
public void run(ImageProcessor ip)
PlugInFilter
null
.
run
in interface PlugInFilter
public void showDialog()
public void subtractRGBBackround(ColorProcessor ip, int ballRadius)
public void subtractBackround(ImageProcessor ip, int ballRadius)
ImageProcessor rollBall(RollingBall ball, ImageProcessor image, ImageProcessor smallImage)
ImageProcessor shrinkImage(ImageProcessor ip, int shrinkfactor)
void interpolateBackground(ImageProcessor background, RollingBall ball)
void extrapolateBackground(ImageProcessor background, RollingBall ball)
ImageProcessor rollBall16(RollingBall ball, ImageProcessor image, ImageProcessor smallImage)
void interpolateBackground16(ImageProcessor background, RollingBall ball)
void extrapolateBackground16(ImageProcessor background, RollingBall ball)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |