Hi James,
Minor point of interest:
I was looking at the code you pointed to and I see something I don't quite
understand. Do you see where the variable: float t; is used?
Did the author mean to write:
for (int i=0; i<one; i++) {
t = (float)i;
f = (t/onef);
Just curious. The implementation gets clearer and more meaningful the
more I look at it. It's like fog clearing in the morning....
Ken
private static float[] dataHelper(int subsampleBits) {
int one = 1 << subsampleBits;
int arrayLength = one * 4;
float tableValues[] = new float[arrayLength];
float f;
float onef = (float)one;
float t;
int count = 0;
for (int i=0; i<one; i++) {
t = (float)i;
f = (i/onef);
tableValues[count++] = bicubic(f + 1.0F);
tableValues[count++] = bicubic(f);
tableValues[count++] = bicubic(f-1.0F);
tableValues[count++] = bicubic(f-2.0F);
}
return tableValues;
}
James Cheng wrote:
On 2007/05/05 09:50 AM, Ken Warner wrote:
I'm looking for a nuts and bolts recipe for bicubic interpolation.
http://download.java.net/media/jai/javadoc/1.1.3/jai-apidocs/javax/media/jai/InterpolationBicubic.html
https://jai-core.dev.java.net/source/browse/jai-core/src/share/classes/javax/media/jai/InterpolationBicubic.java?rev=1.1&view=log
HTH,
-James
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".