JIGL
v1.6

jigl.image.ops.morph
Class Erode

java.lang.Object
  |
  +--jigl.image.SimpleOperator
        |
        +--jigl.image.ops.morph.Erode
All Implemented Interfaces:
Operator

public class Erode
extends SimpleOperator

Erode performs an erode operation on an image. Supports BinaryImage.


Field Summary
private  int center_x
           
private  int center_y
           
private  ImageKernel kernel
           
 
Constructor Summary
Erode(ImageKernel ker, int x, int y)
          Initilizes Erode
 
Method Summary
protected  Image apply(BinaryImage image)
          Erodes a BinaryImage.
protected  Image apply(BinaryImage image, ROI roi)
          Erodes a BinaryImage in a Region of Interest.
static void main(String[] argv)
          For commandline option.
 
Methods inherited from class jigl.image.SimpleOperator
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

private ImageKernel kernel

center_x

private int center_x

center_y

private int center_y
Constructor Detail

Erode

public Erode(ImageKernel ker,
             int x,
             int y)
Initilizes Erode

Method Detail

apply

protected Image apply(BinaryImage image)
Erodes a BinaryImage. Returned image is a BinaryImage. image is not modified.

Overrides:
apply in class SimpleOperator
Parameters:
image - BinaryImage to erode.
Returns:
BinaryImage.

apply

protected Image apply(BinaryImage image,
                      ROI roi)
Erodes a BinaryImage in a Region of Interest. Returned image is a BinaryImage. image is not modified.

Overrides:
apply in class SimpleOperator
Parameters:
image - BinaryImage to erode.
roi - Region of Interest of image
Returns:
BinaryImage.

main

public static void main(String[] argv)
For commandline option. The syntax is "java Erode input_filename kernel_filename center_x center_y output_filename"


JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu