JIGL
v1.6

jigl.image.ops.morph
Class GErode

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

public class GErode
extends SimpleOperator

GErode performs an erode operation on an image. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.


Field Summary
private  int center_x
           
private  int center_y
           
private  ImageKernel kernel
           
 
Constructor Summary
GErode(ImageKernel ker, int x, int y)
          Initilizes Erode
 
Method Summary
protected  Image apply(ColorImage image)
          Erodes a ColorImage.
protected  Image apply(ColorImage image, ROI roi)
          Erodes a ColorImage in a Region of Interest.
protected  Image apply(GrayImage image)
          Erodes a GrayImage.
protected  Image apply(GrayImage image, ROI roi)
          Erodes a GrayImage in a Region of Interest.
protected  Image apply(RealColorImage image)
          Erodes a RealColorImage in a Region of Interest.
protected  Image apply(RealColorImage image, ROI roi)
          Erodes a RealColorImage in a Region of Interest.
protected  Image apply(RealGrayImage image)
          Erodes a RealGrayImage.
protected  Image apply(RealGrayImage image, ROI roi)
          Erodes a RealGrayImage 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
 
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

GErode

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

Method Detail

apply

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

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

apply

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

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

apply

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

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

apply

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

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

apply

protected Image apply(ColorImage image)
Erodes a ColorImage. This is done to each GrayImage plane separately. Returned image is a ColorImage. image is not modified.

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

apply

protected Image apply(ColorImage image,
                      ROI roi)
Erodes a ColorImage in a Region of Interest. This is done to each GrayImage plane separately. Returned image is a ColorImage. image is not modified.

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

apply

protected Image apply(RealColorImage image)
Erodes a RealColorImage in a Region of Interest. This is done to each RealGrayImage plane separately. Returned image is a RealColorImage. image is not modified.

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

apply

protected Image apply(RealColorImage image,
                      ROI roi)
Erodes a RealColorImage in a Region of Interest. This is done to each RealGrayImage plane separately. Returned image is a RealColorImage. image is not modified.

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

main

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