JIGL
v1.6

jigl.image.ops.morph
Class Close

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

public class Close
extends SimpleOperator

Close performs a close operation on an image. Supports BinaryImage.

A closing operation is a dilation operation followed by a erosion.


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

Close

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

Parameters:
ker - ImageKernel
x - center x value
y - center y value
Method Detail

apply

protected Image apply(BinaryImage image)
Performs a Close operation on image. image is not modified.

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

apply

protected Image apply(BinaryImage image,
                      ROI roi)
Performs a Close operation on image in a Region of Interest. image is not modified.

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

main

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