The Algoritharium project at the University of North Carolina Wilmington provides students in a CS1 course in Java an environment where they can focus on algorithms. The package allows students to easily implement image processing algorithms.
This project was supported in part by the National Science Foundation under grant CPATH EAE: texnh - Evaluation, Adoption and Extension, award number 0722313. For more information please contact Jack Tompkins (tompkinsj@uncw.edu) or Sridhar Narayan (narayans@uncw.edu).
See:
A quick tutorial -using Algoritharium
libraries
| Algoritharium API | |
|---|---|
| API | |
| Algoritharium Package | ||
|---|---|---|
| algoritharium.jar | -compiled with JDK 1.6, latest update: January 24, 2012 | -MAC compatibility tips |
Notes:
My program runs out of memory, but my system should have more than enough. What's going on? The java heap is the area of RAM reserved for use by the Java virtual machine. The default java heap is determined as follows
-Xms
command-line option.-Xmx command-line option.Specifically ask for more (assuming your system has enough) with the following command:
% java -Xmx300m -Xms300m -jar algoritharium.jar
In this case, we are asking for 300 MB of memory (note no space between the switch and size and correct units are none for bytes, k for kilobytes, m for megabytes, M for megabytes, or g for gigabytes.) The -Xmx sets the maximum heap size, the -Xms flag sets the initial heap size. The operating system determines whether physical ram or paging will be used to achieve the requested memory.
File/Properties -Java Build Path edit JRE System Library, Java Execution Environment pull down menu select
import
algoritharium.ImageViewer;
public class
MyImageAlgorithms {
public static void
main(String[] args) {
new ImageViewer();
}
}
| free hit counter |