JIGL
v1.6

jigl.image.ops.levelOps
Class Clip

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

public class Clip
extends SimpleOperator

Performs a clip operation on an image to an arbitrary min/max. image is changed in all the methods of this class. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.


Field Summary
private  float float_max
          Maximum value of the clipping range.
private  float float_min
          Minimum value of the clipping range.
private  int int_max
          Maximum value of the clipping range.
private  int int_min
          Minimum value of the clipping range.
 
Constructor Summary
Clip(float min, float max)
          Initilizes clip for use with floats.
Clip(int min, int max)
          Initilizes Clip for use with integers.
 
Method Summary
protected  Image apply(ColorImage image)
          Clips the range of image to an arbitrary min/max.
protected  Image apply(ColorImage image, ROI roi)
          Clips the range of image to an arbitrary min/max in a Region of Interest.
protected  Image apply(GrayImage image)
          Clips the range of image to an arbitrary min/max.
protected  Image apply(GrayImage image, ROI roi)
          Clips the range of image to an arbitrary min/max in a Region of Interest.
protected  Image apply(RealColorImage image)
          Clips the range of this image to an arbitrary min/max in a Region of Interest.
protected  Image apply(RealColorImage image, ROI roi)
          Clips the range of this image to an arbitrary min/max in a Region of Interest.
protected  Image apply(RealGrayImage image)
          Clips the range of image to an arbitrary min/max.
protected  Image apply(RealGrayImage image, ROI roi)
          Clips the range of image to an arbitrary min/max 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
 

Field Detail

int_min

private int int_min
Minimum value of the clipping range. For GrayImage and ColorImage.


int_max

private int int_max
Maximum value of the clipping range. For GrayImage and ColorImage.


float_min

private float float_min
Minimum value of the clipping range. For RealGrayImage and RealColorImage.


float_max

private float float_max
Maximum value of the clipping range. For RealGrayImage and RealColorImage.

Constructor Detail

Clip

public Clip(int min,
            int max)
Initilizes Clip for use with integers.


Clip

public Clip(float min,
            float max)
Initilizes clip for use with floats.

Method Detail

apply

protected Image apply(GrayImage image)
Clips the range of image to an arbitrary min/max.

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 an arbitrary min/max 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 an arbitrary min/max.

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 an arbitrary min/max 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 an arbitrary min/max. This 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 an arbitrary min/max in a Region of Interest. This 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 this image to an arbitrary min/max 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 this image to an arbitrary min/max 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 Clip float_min float_max input_filename output_filename".


JIGL
v1.6

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