jaitools.jiffle.runtime
Interface JiffleIndirectRuntime

All Superinterfaces:
JiffleRuntime
All Known Implementing Classes:
AbstractIndirectRuntime

public interface JiffleIndirectRuntime
extends JiffleRuntime

Defines methods implemented by runtime classes adopting the indirect evaluation model. In this model, there is only a single destination image and the evaluate(int, int) method passes values back to the caller rather than writing them to the destination image directly.

Since:
1.1
Version:
$Id: JiffleIndirectRuntime.java 1512 2011-03-07 02:21:45Z michael.bedward $
Author:
Michael Bedward

Method Summary
 double evaluate(int x, int y)
          Evaluates the script for the given image location.
 double readFromImage(String srcImageName, int x, int y, int band)
          Gets a value from a source image as a double.
 void setDestinationImage(String imageName)
          Specifies the variable in the Jiffle script which refers to the destination image.
 void setSourceImage(String imageName, RenderedImage image)
          Associates a variable name in the Jiffle script with a source image.
 
Methods inherited from interface jaitools.jiffle.runtime.JiffleRuntime
getVar, setBounds
 

Method Detail

setDestinationImage

void setDestinationImage(String imageName)
Specifies the variable in the Jiffle script which refers to the destination image.

Parameters:
imageName - variable name as used in the Jiffle script

setSourceImage

void setSourceImage(String imageName,
                    RenderedImage image)
Associates a variable name in the Jiffle script with a source image.

Parameters:
imageName - image name as used in the Jiffle script
image - writable image

evaluate

double evaluate(int x,
                int y)
Evaluates the script for the given image location.

Parameters:
x - destination X ordinate
y - destination Y ordinate
Returns:
the result

readFromImage

double readFromImage(String srcImageName,
                     int x,
                     int y,
                     int band)
Gets a value from a source image as a double.

Parameters:
srcImageName - the source image
x - source X ordinate
y - source Y ordinate
band - source band
Returns:
image value


Copyright © 2009-2011. All Rights Reserved.