Skip to content

Instantly share code, notes, and snippets.

Johannes Schindelin dscho

Block or report user

Report or block dscho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:560796
import ij.IJ;
import ij.ImagePlus;
import ij.io.FileInfo;
import ij.io.OpenDialog;
import ij.plugin.PlugIn;
import ij.process.ByteProcessor;
View gist:890246
newImage("Untitled", "16-bit Ramp", 256, 256, 1);
run("Merge Channels...", "red=Untitled green=*None* blue=Untitled gray=*None* create");
View gist:1084529
http://fiji.sc/cgi-bin/gitweb.cgi?p=fiji.git;a=tree;f=src-plugins/Updater_Fix/fiji/updater;h=46f264238c64c98671410928a59bc6c46ab702b0;hb=28b8c7f37356276f46526c6e7b567fa8dbb4dc0f
View gist:1434511
java.lang.NullPointerException
at imagej.legacy.translate.LegacyUtils.dimensionsIJ1Compatible(LegacyUtils.java:121)
at imagej.legacy.plugin.LegacyPlugin.isLegacyCompatible(LegacyPlugin.java:306)
at imagej.legacy.plugin.LegacyPlugin.run(LegacyPlugin.java:106)
at imagej.ext.plugin.PluginModule.run(PluginModule.java:148)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:148)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:65)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
@dscho
dscho / gist:1854723
Created Feb 17, 2012
Initial .git/config for accelerated git-svn clones of ImageJ2's source code repository
View gist:1854723
# 1) git init
# 2) overwrite .git/config with this file
# 3) git fetch
# This step takes some time:
# 4) git svn fetch
# 5) git checkout -b master -t trunk
[core]
repositoryformatversion = 0
filemode = true
bare = false
View gist:2024565
diff --git a/ij/process/ColorProcessor.java b/ij/process/ColorProcessor.java
index a036cf4..f35f06c 100644
--- a/ij/process/ColorProcessor.java
+++ b/ij/process/ColorProcessor.java
@@ -303,17 +303,9 @@ public class ColorProcessor extends ImageProcessor {
}
public final float getf(int index) {
- int c = pixels[index];
- int r = (c&0xff0000)>>16;
View gist:2990484
// take a list and return a newArray(...) command
function join(list) {
result = "newArray(";
for (i = 0; i < list.length; i++) {
if (i > 0)
result = result + ", ";
result = result + list[i];
}
result = result + ")";
return result;
@dscho
dscho / gist:2998994
Created Jun 26, 2012
The Road to Fiji2
View gist:2998994
Always addressing a concrete need, Fiji started out as a very small
distribution of ImageJ with a modern Java Virtual Machine and a curated
selection of plugins which were used a lot in life sciences. One of the key
advantages was that Fiji came with an Updater that made deploying new versions
of ones' plugins very easy, both for users but in particular for developers.
This attracted a growing number of users and developers to the project, and
consequently a growing number of tools were added that catered not directly to
life sciences but more to working with ImageJ and Fiji. Additions included: the
script editor, a build system that compiles all of Fiji's source code from
scratch, a plugin to ease making helpful bug reports, and a powerful updater to
@dscho
dscho / gist:2999084
Created Jun 26, 2012
ImageJ2 scripting & plugin workshop
View gist:2999084
ImageJ2 has a powerful Scripting framework, based on Fiji's scripting support.
We will introduce the participants into the basic concepts of ImageJ2 necessary
to interact with data and plugins in ImageJ2. After a brief overview how to
write scripts, we will illustrate what ImageJ2 plugins look like and develop a
simple plugin that will run in ImageJ2, CellProfiler and KNIME. This will be a
hands-on workshop; we encourage participants to bring their own computers and
install ImageJ2 beforehand.
Keywords: ImageJ2, scripting, plugin development, workshop
View gist:3762927
[testng] "main" prio=10 tid=0x00007f8958008000 nid=0x6424 runnable [0x00007f8960288000]
[testng] java.lang.Thread.State: RUNNABLE
[testng] at java.util.zip.ZipFile.getEntry(Native Method)
[testng] at java.util.zip.ZipFile.getEntry(ZipFile.java:166)
[testng] - locked <0x0000000705e4d150> (a java.util.jar.JarFile)
[testng] at java.util.jar.JarFile.getEntry(JarFile.java:223)
[testng] at java.util.jar.JarFile.getJarEntry(JarFile.java:206)
[testng] at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:771)
[testng] at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:749)
[testng] at sun.misc.URLClassPath$1.next(URLClassPath.java:212)
You can’t perform that action at this time.