These Java applets for viewing 2D+ images of cuneiform tablets and for
rendering Unicode cuneiform text may be of interest to some:
<http://users.adelphia.net/~deansnyder/iclay.html>
At least Java 1.4.2 and Safari 1.2.3 are required for viewing on Mac OS X.
These proof-of-concept technology demonstrations are just a peek at some
of the exciting results emerging from the research and development
efforts of the Digital Hammurabi Project and the Initiative for Cuneiform
Encoding.
I was able to get an 8-fold increase in drawing speed by doing the
following optimizations (taken from the source comments):
// I sped the image filtering up 8-fold by doing the following:
// (Speeds come from running on my 17 inch Mac laptop, 1gb RAM, Mac OS X
10.3.6, nVidia GeForce4 MX w/ 64mb RAM)
// Stage 1 = 4 fps: used getRGB() & setRGB() with no direct access to
pixel buffers
// Stage 2 = 16 fps: switched to direct pixel buffers, but still using
Java RescaleOp() for setting brightness
// Stage 3 = 21 fps: replaced Java RescaleOp() with my
CalculateBrightness() method
// Stage 4 = 33 fps: switched BufferedImage from int to byte array, thus
eliminating all the bit shifting to get at RGB components;
// inlined almost all code that was in other functions -
CalculateShading(), etc., plus all 24 Math.min & Math.max calls;
// now checking for background pixels and doing no processing on them.
But even with all of this, the frame rates are much higher on a 2.4 ghz
Windows XP machine. (I haven't profiled it yet but I would guess that it
is 3X times.)
Respectfully,
Dean A. Snyder
Assistant Research Scholar
Manager, Digital Hammurabi Project
Computer Science Department
Whiting School of Engineering
218C New Engineering Building
3400 North Charles Street
Johns Hopkins University
Baltimore, Maryland, USA 21218
office: 410 516-6850
cell: 717 817-4897
www.jhu.edu/digitalhammurabi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden