This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: curtis@sirius ~/code/ImageJ/imglib (master) | |
find . -exec sed -i '' -e 's/^M//' {} \; | |
sed: .: in-place editing only works for regular files | |
sed: ./.git: in-place editing only works for regular files | |
sed: ./.git/hooks: in-place editing only works for regular files | |
sed: ./.git/info: in-place editing only works for regular files | |
sed: ./.git/logs: in-place editing only works for regular files | |
sed: ./.git/logs/refs: in-place editing only works for regular files | |
sed: ./.git/logs/refs/heads: in-place editing only works for regular files | |
sed: ./.git/logs/refs/remotes: in-place editing only works for regular files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ImageJ ij | |
// -- Functions -- | |
registerAndCreatePlugin = { pluginClass, pluginType -> | |
info = new org.scijava.plugin.PluginInfo(pluginClass, pluginType) | |
ij.plugin().addPlugin(info) | |
ij.plugin().createInstance(info) | |
} | |
registerService = { serviceClass -> | |
service = registerAndCreatePlugin(serviceClass, org.scijava.service.Service.class) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# TODO: Why doesn't this work | |
trap "exit" INT | |
die() { | |
echo "$1" 2>&1 | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>ij-env-test</groupId> | |
<artifactId>charting-extension</artifactId> | |
<packaging>pom</packaging> | |
<version>1</version> | |
<name>Charting Plugin</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ ImageJ ij | |
#@ File[] imageFiles | |
#@ File(style = "save") outFile | |
#@ boolean showStack | |
import java.util.Arrays | |
import net.imglib2.FinalInterval | |
import net.imglib2.type.numeric.integer.UnsignedByteType | |
import net.imglib2.util.Intervals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ Long(value = 3000) size | |
import java.util.function.BiConsumer | |
import net.imglib2.img.display.imagej.ImageJFunctions | |
import net.imglib2.position.FunctionRandomAccessible | |
import net.imglib2.type.numeric.integer.UnsignedByteType | |
import net.imglib2.view.Views | |
// Define a function in 2-space. | |
ndim = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ DatasetIOService dio | |
#@ File imageFile | |
#@ long x | |
#@ long y | |
#@ long width | |
#@ long height | |
#@output Dataset dataset | |
from io.scif.config import SCIFIOConfig | |
from io.scif.img import ImageRegion, Range |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@dependency(group="org.boofcv", module="boofcv-core", version="0.33") | |
#@dependency(group="org.boofcv", module="boofcv-swing", version="0.32") | |
#@both ImagePlus imp | |
#@output ImagePlus (label="Watersheds") watersheds | |
#@output ImagePlus (label="Regions") regions | |
#@output ImagePlus (label="Seeds") seeds | |
import boofcv.alg.filter.binary.BinaryImageOps | |
import boofcv.alg.filter.binary.ThresholdImageOps |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.