Package: imagej
Version: 1.41n-1
Severity: important
ImageJ does not run external java plugins, but it does run its internal
operations like
"smooth" and "sharpen".
Reproduce:
-run ImageJ
-"file->open" and open an image
-"plugins->compile and run" and select a plugin
The problem does not appear in the ImageJ downloaded from the ImageJ
website.
For easy testing I have a attached a simple plugin that should invert
the colors of the image.
Debian Unstable
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages imagej depends on:
ii gij 4:4.3.2-2 The GNU Java bytecode
interpreter
ii gij-4.1 [java2-runtime] 4.1.1-20 The GNU Java bytecode
interpreter
ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment
using GIJ
ii sun-java6-jre [java2-runtime] 6-10-2 Sun Java(TM) Runtime
Environment (
imagej recommends no packages.
Versions of packages imagej suggests:
pn java2-compiler <none> (no description available)
-- no debconf information
import ij.ImagePlus;
import ij.plugin.filter.PlugInFilter;
import ij.process.ImageProcessor;
public class MyFirstPlugin implements PlugInFilter {
public void run(ImageProcessor ip) {
int w = ip.getWidth();
int h = ip.getHeight();
for (int u = 0; u < w; u++) {
for (int v = 0; v < h; v++) {
int p = ip.getPixel(u,v);
ip.putPixel(u,v,255-p);
}
}
}
public int setup(String arg, ImagePlus im) {
return DOES_ALL;
}
}