org.shapelogic.imageutil
Class PixelAreaHandler

java.lang.Object
  extended by org.shapelogic.imageutil.PixelAreaHandler
All Implemented Interfaces:
HasSLImage

public class PixelAreaHandler
extends java.lang.Object
implements HasSLImage

Run a PixelHanler in a given area using ImageJ.
This class was the beginning of SLImage, the image abstraction from ImageJ.

Author:
Sami Badawi

Field Summary
protected  SLImage _image
           
 
Constructor Summary
PixelAreaHandler(SLImage image)
           
PixelAreaHandler(java.lang.String dir, java.lang.String fileName, java.lang.String fileFormat)
          Currently this work with ImageJ images.
 
Method Summary
 void handleAllPixels(PixelHandler ph)
          Handle all the pixels in an image.
This should maybe be changed to work with ROI.
 void handlePixelArea(PixelHandler ph, int x, int y, int width, int height)
          Handle a pixel with a color and a coordinate.
 void handlePixelArea(PixelHandler ph, java.awt.Rectangle rectangle)
          Handle a pixel with a color and a coordinate.
 void setImage(SLImage image)
          Should only be implemented if the PixelHandler needs to know what image it is using.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_image

protected SLImage _image
Constructor Detail

PixelAreaHandler

public PixelAreaHandler(SLImage image)

PixelAreaHandler

public PixelAreaHandler(java.lang.String dir,
                        java.lang.String fileName,
                        java.lang.String fileFormat)
Currently this work with ImageJ images.

Method Detail

handlePixelArea

public void handlePixelArea(PixelHandler ph,
                            java.awt.Rectangle rectangle)
Handle a pixel with a color and a coordinate.


handlePixelArea

public void handlePixelArea(PixelHandler ph,
                            int x,
                            int y,
                            int width,
                            int height)
Handle a pixel with a color and a coordinate.


handleAllPixels

public void handleAllPixels(PixelHandler ph)
Handle all the pixels in an image.
This should maybe be changed to work with ROI.


setImage

public void setImage(SLImage image)
Description copied from interface: HasSLImage
Should only be implemented if the PixelHandler needs to know what image it is using.

Specified by:
setImage in interface HasSLImage


Copyright © 2008. All Rights Reserved.