jpview.transforms
Class DiffuseGainOp

java.lang.Object
  extended by jpview.transforms.DiffuseGainOp
All Implemented Interfaces:
PixelTransformOp

public class DiffuseGainOp
extends java.lang.Object
implements PixelTransformOp

The diffuse gain operator implements the diffuse gain tranformation outlined in this paper: http://www.hpl.hp.com/research/ptm/papers/ptm.pdf

Author:
clyon

Constructor Summary
DiffuseGainOp()
           
 
Method Summary
 void clearCache()
          Inherited method not implemented for this operator
 void computeDGainCoeffLRGB(LRGBPTM ptm)
          Computes the source information for the DGain transformation
 void forceUpdate()
          Inherited method not implemented for this operator
 void release()
          Releases all resources associated with this object
 void transformPixels(int[] pixels, PTM ptm)
          Runs the transform operator using the default mouse location (center)
 void transformPixels(int[] pixels, PTM ptm, int mouseX, int mouseY)
          Runs the transform operator using the given mouse location.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiffuseGainOp

public DiffuseGainOp()
Method Detail

release

public void release()
Releases all resources associated with this object

Specified by:
release in interface PixelTransformOp

transformPixels

public void transformPixels(int[] pixels,
                            PTM ptm,
                            int mouseX,
                            int mouseY)
Runs the transform operator using the given mouse location.

Specified by:
transformPixels in interface PixelTransformOp
Parameters:
pixels - the pixel buffer
ptm - the source ptm object
mouseX - x mouse offset
mouseY - y mouse offset

transformPixels

public void transformPixels(int[] pixels,
                            PTM ptm)
Runs the transform operator using the default mouse location (center)

Specified by:
transformPixels in interface PixelTransformOp
Parameters:
pixels - the pixel buffer
ptm - the source ptm

computeDGainCoeffLRGB

public void computeDGainCoeffLRGB(LRGBPTM ptm)
Computes the source information for the DGain transformation

Parameters:
ptm - The source PTM

forceUpdate

public void forceUpdate()
Inherited method not implemented for this operator

Specified by:
forceUpdate in interface PixelTransformOp

clearCache

public void clearCache()
Inherited method not implemented for this operator

Specified by:
clearCache in interface PixelTransformOp