| javax.media.jai.ImageFunction
All known Subclasses: ca.forklabs.media.jai.mock.MockImageFunction,
ImageFunction | public interface ImageFunction (Code) | | ImageFunction is a common interface for vector-valued functions which
are to be evaluated at positions in the X-Y coordinate system. At
each position the value of such a function may contain one or more
elements each of which may be complex.
|
Method Summary | |
void | getElements(float startX, float startY, float deltaX, float deltaY, int countX, int countY, int element, float[] real, float[] imag) Returns all values of a given element for a specified set of
coordinates. | void | getElements(double startX, double startY, double deltaX, double deltaY, int countX, int countY, int element, double[] real, double[] imag) Returns all values of a given element for a specified set of
coordinates. | int | getNumElements() Returns the number of elements per value at each position. | boolean | isComplex() Returns whether or not each value's elements are complex. |
getElements | void getElements(float startX, float startY, float deltaX, float deltaY, int countX, int countY, int element, float[] real, float[] imag)(Code) | | Returns all values of a given element for a specified set of
coordinates. An ArrayIndexOutOfBoundsException may be thrown if
the length of the supplied array(s) is insufficient.
Parameters: startX - The X coordinate of the upper left location to evaluate. Parameters: startY - The Y coordinate of the upper left location to evaluate. Parameters: deltaX - The horizontal increment. Parameters: deltaY - The vertical increment. Parameters: countX - The number of points in the horizontal direction. Parameters: countY - The number of points in the vertical direction. Parameters: real - A pre-allocated float array of length at least countX*countYin which the real parts of all elements will be returned. Parameters: imag - A pre-allocated float array of length at least countX*countYin which the imaginary parts of all elements will be returned; may benull for real data, i.e., when isComplex() returns false. throws: ArrayIndexOutOfBoundsException - if the length of the suppliedarray(s) is insufficient. |
getElements | void getElements(double startX, double startY, double deltaX, double deltaY, int countX, int countY, int element, double[] real, double[] imag)(Code) | | Returns all values of a given element for a specified set of
coordinates. An ArrayIndexOutOfBoundsException may be thrown if
the length of the supplied array(s) is insufficient.
Parameters: startX - The X coordinate of the upper left location to evaluate. Parameters: startY - The Y coordinate of the upper left location to evaluate. Parameters: deltaX - The horizontal increment. Parameters: deltaY - The vertical increment. Parameters: countX - The number of points in the horizontal direction. Parameters: countY - The number of points in the vertical direction. Parameters: real - A pre-allocated double array of length at leastcountX*countY in which the real parts of all elements will be returned. Parameters: imag - A pre-allocated double array of length at leastcountX*countY in which the imaginary parts of all elements will bereturned; may be null for real data, i.e., whenisComplex() returns false. throws: ArrayIndexOutOfBoundsException - if the length of the suppliedarray(s) is insufficient. |
getNumElements | int getNumElements()(Code) | | Returns the number of elements per value at each position.
|
isComplex | boolean isComplex()(Code) | | Returns whether or not each value's elements are complex.
|
|
|