JIGL
v1.6

jigl.image.ops.levelOps
Class ClipNeg

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

public class ClipNeg
extends SimpleOperator

Clips all negative values in an image to zero. image is changed in all the methods of this class. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.


Constructor Summary
ClipNeg()
          Dummy Constructor
 
Method Summary
protected  Image apply(ColorImage image)
          Clips the range of image to zero in a Region of Interest.
protected  Image apply(ColorImage image, ROI roi)
          Clips the range of image to zero in a Region of Interest.
protected  Image apply(GrayImage image)
          Clips the range of image to zero.
protected  Image apply(GrayImage image, ROI roi)
          Clips the range of image to zero in a Region of Interest.
protected  Image apply(RealColorImage image)
          Clips the range of image to zero in a Region of Interest.
protected  Image apply(RealColorImage image, ROI roi)
          Clips the range of image to zero in a Region of Interest.
protected  Image apply(RealGrayImage image)
          Clips the range of image to zero.
protected  Image apply(RealGrayImage image, ROI roi)
          Clips the range of image to zero in a Region of Interest.
static void main(String[] argv)
          For commandline opertion.
 
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
 

Constructor Detail

ClipNeg

public ClipNeg()
Dummy Constructor

Method Detail

apply

protected Image apply(GrayImage image)
Clips the range of image to zero.

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

apply

protected Image apply(GrayImage image,
                      ROI roi)
Clips the range of image to zero in a Region of Interest.

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

apply

protected Image apply(RealGrayImage image)
Clips the range of image to zero.

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

apply

protected Image apply(RealGrayImage image,
                      ROI roi)
Clips the range of image to zero in a Region of Interest.

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

apply

protected Image apply(ColorImage image)
Clips the range of image to zero in a Region of Interest. This is done by clipping each plane separately.

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

apply

protected Image apply(ColorImage image,
                      ROI roi)
Clips the range of image to zero in a Region of Interest. This is done by clipping each plane separately.

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

apply

protected Image apply(RealColorImage image)
Clips the range of image to zero in a Region of Interest. This is done by clipping each plane separately.

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

apply

protected Image apply(RealColorImage image,
                      ROI roi)
Clips the range of image to zero in a Region of Interest. This is done by clipping each plane separately.

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

main

public static void main(String[] argv)
For commandline opertion. The syntax is "java ClipNeg input_filename output_filename".


JIGL
v1.6

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