JIGL
v1.6

jigl.image.ops.morph
Class Dilate

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

public class Dilate
extends SimpleOperator

Dilate performs a dilate operation on an image. Supports BinaryImage.


Field Summary
private  int center_x
           
private  int center_y
           
private  ImageKernel kernel
           
 
Constructor Summary
Dilate(ImageKernel ker, int x, int y)
          Initilizes Dilate
 
Method Summary
protected  Image apply(BinaryImage image)
          Dilates a BinaryImage.
protected  Image apply(BinaryImage image, ROI roi)
          Dilates 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

Dilate

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

Parameters:
ker - structuring element.
x - x coordinate of center of element.
y - y coordinate of center of element.
Method Detail

apply

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

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

apply

protected Image apply(BinaryImage image,
                      ROI roi)
Dilates 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 dilate.
roi - Region of Interest of image.
Returns:
BinaryImage.

main

public static void main(String[] argv)
For commandline option. The syntax is "java Dilate 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