edu.berkeley.guir.papier_mache.barcode
Class EanDecoder

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.barcode.EanDecoder
All Implemented Interfaces:
BarcodeDecoder, ij.plugin.filter.PlugInFilter

public class EanDecoder
extends java.lang.Object
implements ij.plugin.filter.PlugInFilter, BarcodeDecoder


Nested Class Summary
 class EanDecoder.Ean
           
 class EanDecoder.EanBar
           
 
Field Summary
 
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
EanDecoder()
          Constructor for EanDecoder_.
 
Method Summary
 java.lang.String decode(java.awt.image.BufferedImage image)
          Takes an image, decodes it as a barcode (if there is one), and returns the barcode string.
 void run(ij.process.ImageProcessor ip)
           
 int setup(java.lang.String arg, ij.ImagePlus imp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EanDecoder

public EanDecoder()
Constructor for EanDecoder_.

Method Detail

setup

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

run

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

decode

public java.lang.String decode(java.awt.image.BufferedImage image)
Takes an image, decodes it as a barcode (if there is one), and returns the barcode string.

See Also:
read(File) to load an image from a file