| java.lang.Object javax.media.jai.Interpolation com.sun.media.jai.util.InterpAverage
InterpAverage | public class InterpAverage extends Interpolation (Code) | | An Interpolation class which performs simple averaging of
all pixels within a specified neighborhood. It is used by the
"SubsampleAverage" operation implementations.
since: JAI 1.1.2 |
Constructor Summary | |
public | InterpAverage(int blockX, int blockY) Creates an InterpAverage instance having the supplied
dimensions. |
Method Summary | |
public int | interpolateH(int[] samples, int xfrac) Returns the average of all elements in samples ;
xfrac is ignored. | public float | interpolateH(float[] samples, float xfrac) Returns the average of all elements in samples ;
xfrac is ignored. | public double | interpolateH(double[] samples, float xfrac) Returns the average of all elements in samples ;
xfrac is ignored. |
InterpAverage | public InterpAverage(int blockX, int blockY)(Code) | | Creates an InterpAverage instance having the supplied
dimensions. The left and top padding are
(blockX - 1)/2 and
(blockY - 1)/2 , respectively. The
subsampleBitsH and subsampleBitsV instance
variables are set to 32.
Parameters: blockX - The width of the interpolation block. Parameters: blockY - The height of the interpolation block. throws: IllegalArgumentException - if either parameter is non-positive. |
interpolateH | public int interpolateH(int[] samples, int xfrac)(Code) | | Returns the average of all elements in samples ;
xfrac is ignored.
|
interpolateH | public float interpolateH(float[] samples, float xfrac)(Code) | | Returns the average of all elements in samples ;
xfrac is ignored.
|
interpolateH | public double interpolateH(double[] samples, float xfrac)(Code) | | Returns the average of all elements in samples ;
xfrac is ignored.
|
Methods inherited from javax.media.jai.Interpolation | public int getBottomPadding()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public static synchronized Interpolation getInstance(int type)(Code)(Java Doc) public int getLeftPadding()(Code)(Java Doc) public int getRightPadding()(Code)(Java Doc) public int getSubsampleBitsH()(Code)(Java Doc) public int getSubsampleBitsV()(Code)(Java Doc) public int getTopPadding()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public int interpolate(int[][] samples, int xfrac, int yfrac)(Code)(Java Doc) public int interpolate(int s00, int s01, int s10, int s11, int xfrac, int yfrac)(Code)(Java Doc) public int interpolate(int s__, int s_0, int s_1, int s_2, int s0_, int s00, int s01, int s02, int s1_, int s10, int s11, int s12, int s2_, int s20, int s21, int s22, int xfrac, int yfrac)(Code)(Java Doc) public float interpolate(float[][] samples, float xfrac, float yfrac)(Code)(Java Doc) public float interpolate(float s00, float s01, float s10, float s11, float xfrac, float yfrac)(Code)(Java Doc) public float interpolate(float s__, float s_0, float s_1, float s_2, float s0_, float s00, float s01, float s02, float s1_, float s10, float s11, float s12, float s2_, float s20, float s21, float s22, float xfrac, float yfrac)(Code)(Java Doc) public double interpolate(double[][] samples, float xfrac, float yfrac)(Code)(Java Doc) public double interpolate(double s00, double s01, double s10, double s11, float xfrac, float yfrac)(Code)(Java Doc) public double interpolate(double s__, double s_0, double s_1, double s_2, double s0_, double s00, double s01, double s02, double s1_, double s10, double s11, double s12, double s2_, double s20, double s21, double s22, float xfrac, float yfrac)(Code)(Java Doc) abstract public int interpolateH(int[] samples, int xfrac)(Code)(Java Doc) public int interpolateH(int s0, int s1, int xfrac)(Code)(Java Doc) public int interpolateH(int s_, int s0, int s1, int s2, int xfrac)(Code)(Java Doc) abstract public float interpolateH(float[] samples, float xfrac)(Code)(Java Doc) public float interpolateH(float s0, float s1, float xfrac)(Code)(Java Doc) public float interpolateH(float s_, float s0, float s1, float s2, float xfrac)(Code)(Java Doc) abstract public double interpolateH(double[] samples, float xfrac)(Code)(Java Doc) public double interpolateH(double s0, double s1, float xfrac)(Code)(Java Doc) public double interpolateH(double s_, double s0, double s1, double s2, float xfrac)(Code)(Java Doc) public int interpolateV(int[] samples, int yfrac)(Code)(Java Doc) public int interpolateV(int s0, int s1, int yfrac)(Code)(Java Doc) public int interpolateV(int s_, int s0, int s1, int s2, int yfrac)(Code)(Java Doc) public float interpolateV(float[] samples, float yfrac)(Code)(Java Doc) public float interpolateV(float s0, float s1, float yfrac)(Code)(Java Doc) public float interpolateV(float s_, float s0, float s1, float s2, float yfrac)(Code)(Java Doc) public double interpolateV(double[] samples, float yfrac)(Code)(Java Doc) public double interpolateV(double s0, double s1, float yfrac)(Code)(Java Doc) public double interpolateV(double s_, double s0, double s1, double s2, float yfrac)(Code)(Java Doc) public boolean isSeparable()(Code)(Java Doc)
|
|
|