This file contains hidden or 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
| #@Dataset(label="Image to transform") img | |
| #@Double(label="scale") scaling_factor | |
| #@UIService ui | |
| import net.imglib2.*; | |
| import net.imglib2.realtransform.*; | |
| import net.imglib2.view.*; | |
| import net.imglib2.interpolation.*; | |
| import net.imglib2.interpolation.randomaccess.*; |
This file contains hidden or 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
| #@Dataset(label="Image to transform") img | |
| #@String(label="affine transform string") affineString | |
| #@UIService ui | |
| import net.imglib2.realtransform.*; | |
| import net.imglib2.view.*; | |
| import net.imglib2.interpolation.*; | |
| import net.imglib2.interpolation.randomaccess.NLinearInterpolatorFactory; | |
| nd = 3 |
This file contains hidden or 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
| import java.awt.Color; | |
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.awt.geom.AffineTransform; | |
| import java.awt.geom.Area; | |
| import java.awt.image.BufferedImage; | |
| import java.awt.image.DataBufferByte; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.Collections; |
This file contains hidden or 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
| // @UIService ui | |
| // @ImageDisplayService disp | |
| // @DatasetService data | |
| // @LogService log | |
| import java.util.ArrayList; | |
| import net.imagej.axis.Axes | |
| import net.imglib2.view.Views; |
This file contains hidden or 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
| import java.awt.Color; | |
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.awt.geom.AffineTransform; | |
| import java.awt.geom.Area; | |
| import java.awt.image.BufferedImage; | |
| import java.awt.image.DataBufferByte; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.Collections; |
This file contains hidden or 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
| import ij.IJ; | |
| import ij.ImagePlus; | |
| import java.util.ArrayList; | |
| import ini.trakem2.Project; | |
| import ini.trakem2.tree.ProjectThing; | |
| import ini.trakem2.display.Display; | |
| import ini.trakem2.display.AreaList; |
This file contains hidden or 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
| package mipavProject; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import gov.nih.mipav.model.file.FileIO; | |
| import gov.nih.mipav.model.file.FileNIFTI; | |
| import gov.nih.mipav.model.file.FileUtility; | |
| import gov.nih.mipav.model.file.FileWriteOptions; | |
| import gov.nih.mipav.model.structures.ModelImage; |
This file contains hidden or 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/bash | |
| # See | |
| # https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html#Shell-Parameter-Expansion | |
| # ${parameter:-word} substitutes word if parameter is unset | |
| echo '${parameter:-word}' | |
| dog="dog" | |
| echo "${dog:-"cow"}" # Prints "dog" | |
| echo "${cow:-"cow"}" # Prints "cow" | |
| echo "${cow}" # Prints nothing (cow is unset) |
This file contains hidden or 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
| package process; | |
| import java.util.Arrays; | |
| import org.janelia.utility.parse.ParseUtils; | |
| import com.beust.jcommander.JCommander; | |
| import com.beust.jcommander.Parameter; | |
| import bdv.util.Bdv; |
This file contains hidden or 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
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| import ij.IJ; | |
| import ij.ImageJ; | |
| import ij.ImagePlus; | |
| public class SpaceToContinueExample implements KeyListener { | |
| final ImageJ ij; |