org.shapelogic.imageprocessing
Class ColorReplacer

java.lang.Object
  extended by org.shapelogic.imageprocessing.ColorReplacer
All Implemented Interfaces:
ij.gui.DialogListener, ij.plugin.filter.ExtendedPlugInFilter, ij.plugin.filter.PlugInFilter
Direct Known Subclasses:
ColorReplacer_

public class ColorReplacer
extends java.lang.Object
implements ij.plugin.filter.ExtendedPlugInFilter, ij.gui.DialogListener

ColorReplacer replaces one color with another.
This is for comparison of how the direct ImageJ way compares to the ImageOperation working on SLImage.

Author:
Sami Badawi

Field Summary
protected static int _bStatic
           
protected  IColorDistance _colorDistance
           
protected static int _gStatic
           
protected static int _rStatic
           
protected  boolean _toMask
           
protected static boolean _toMaskStatic
           
protected static int BACKGROUND_MASK
           
protected static int FOREGROUND_MASK
           
 
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter
KEEP_PREVIEW
 
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
ColorReplacer()
           
 
Method Summary
 boolean dialogItemChanged(ij.gui.GenericDialog gd, java.awt.AWTEvent e)
           
 void run(ij.process.ImageProcessor imageProcessor)
           
 void setNPasses(int arg0)
           
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
 int showDialog(ij.ImagePlus imp, java.lang.String command, ij.plugin.filter.PlugInFilterRunner pfr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_toMaskStatic

protected static boolean _toMaskStatic

FOREGROUND_MASK

protected static int FOREGROUND_MASK

BACKGROUND_MASK

protected static int BACKGROUND_MASK

_rStatic

protected static int _rStatic

_gStatic

protected static int _gStatic

_bStatic

protected static int _bStatic

_colorDistance

protected IColorDistance _colorDistance

_toMask

protected boolean _toMask
Constructor Detail

ColorReplacer

public ColorReplacer()
Method Detail

showDialog

public int showDialog(ij.ImagePlus imp,
                      java.lang.String command,
                      ij.plugin.filter.PlugInFilterRunner pfr)
Specified by:
showDialog in interface ij.plugin.filter.ExtendedPlugInFilter

setNPasses

public void setNPasses(int arg0)
Specified by:
setNPasses in interface ij.plugin.filter.ExtendedPlugInFilter

setup

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

dialogItemChanged

public boolean dialogItemChanged(ij.gui.GenericDialog gd,
                                 java.awt.AWTEvent e)
Specified by:
dialogItemChanged in interface ij.gui.DialogListener

run

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


Copyright © 2008. All Rights Reserved.