JIGL
v1.6

jigl.image.ops.levelOps
Class Log

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

public class Log
extends SimpleOperator

Performs the Log function on each pixel in this image. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.

Please note this class will always return a RealGrayImage or RealColorImage.


Constructor Summary
Log()
          Dummy Constructor
 
Method Summary
protected  Image apply(ColorImage image)
          Performs the Log function on a ColorImage.
protected  Image apply(ColorImage image, ROI roi)
          Performs the Log function on a ColorImage in a Region of Interest.
protected  Image apply(GrayImage image)
          Performs the Log function on a GrayImage.
protected  Image apply(GrayImage image, ROI roi)
          Performs the Log function on a GrayImage in a Region of Interest.
protected  Image apply(RealColorImage image)
          Performs the Log function on image.
protected  Image apply(RealColorImage image, ROI roi)
          Performs the Log function on image in a Region of Interest.
protected  Image apply(RealGrayImage image)
          Performs the Log function on image.
protected  Image apply(RealGrayImage image, ROI roi)
          Performs the Log function on image 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

Log

public Log()
Dummy Constructor

Method Detail

apply

protected Image apply(GrayImage image)
Performs the Log function on a GrayImage. Returned image is a RealGrayImage. image is not modified.

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

apply

protected Image apply(RealGrayImage image)
Performs the Log function on image. image is changed.

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

apply

protected Image apply(GrayImage image,
                      ROI roi)
Performs the Log function on a GrayImage in a Region of Interest. Returned image is a RealGrayImage. image is not modified.

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

apply

protected Image apply(RealGrayImage image,
                      ROI roi)
Performs the Log function on image in a Region of Interest.

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

apply

protected Image apply(ColorImage image)
Performs the Log function on a ColorImage. image is assumed to be in RGB colorspace. Each color is conveted to HSV, and the Exp function is applied to the value (V). The modified HSV value is converted back to RGB. Returned Image is a RealColorImage. image is not modified.

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

apply

protected Image apply(ColorImage image,
                      ROI roi)
Performs the Log function on a ColorImage in a Region of Interest. image is assumed to be in RGB colorspace. Each color value is conveted to HSV, and the Exp function is applied to the value (V). The modified HSV value is converted back to RGB. Returned Image is a RealColorImage. image is not modified.

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

apply

protected Image apply(RealColorImage image)
Performs the Log function on image. image is assumed to be in RGB colorspace. Each color value is conveted to HSV, and the Exp function is applied to the value (V). The modified HSV value is converted back to RGB.

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

apply

protected Image apply(RealColorImage image,
                      ROI roi)
Performs the Log function on image in a Region of Interest. image is assumed to be in RGB colorspace. Each color value is conveted to HSV, and the Exp function is applied to the value (V). The modified HSV value is converted back to RGB.

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

main

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


JIGL
v1.6

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