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 | |
| isMac12 () { | |
| hasSwVers=$(command -v sw_vers) | |
| if [ ! -z $hasSwVers ] | |
| then | |
| ver=$(sw_vers | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+') | |
| if [[ $ver =~ ^12\..* ]] | |
| then |
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 source | |
| #@ Dataset target | |
| /** | |
| * Pads/crops the source image such that its field of view matches that target image, | |
| * respecting the target image origin. | |
| * | |
| * Currently only supports pixel-length shifts, and ignores source origin. | |
| * | |
| * see: |
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
| #@File lut | |
| lut = ij.plugin.LutLoader.openLut( lut.getCanonicalPath() ); | |
| for( i in 0..<lut.getMapSize() ) | |
| { | |
| println( [lut.getRed( i ), lut.getGreen(i), lut.getBlue(i)].join(" ") ) | |
| } |
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 org.janelia.saalfeldlab.n5.metadata; | |
| import org.janelia.saalfeldlab.n5.DatasetAttributes; | |
| import org.janelia.saalfeldlab.n5.N5Reader; | |
| import org.janelia.saalfeldlab.n5.N5TreeNode; | |
| import java.io.IOException; | |
| import java.util.Map; | |
| import java.util.Optional; |
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 cosem; | |
| import java.io.IOException; | |
| import java.util.Arrays; | |
| import org.janelia.saalfeldlab.n5.DatasetAttributes; | |
| import org.janelia.saalfeldlab.n5.N5Reader; | |
| import org.janelia.saalfeldlab.n5.N5Writer; | |
| import org.janelia.saalfeldlab.n5.ij.N5Factory; | |
| import org.janelia.saalfeldlab.n5.imglib2.N5Utils; |
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 img | |
| /** | |
| * Voronoi diagram / "Natural interpolation"with imglib2-KDTree | |
| * see | |
| * https://forum.image.sc/t/natural-neighbor-interpolation-in-3d/51243 | |
| * | |
| * John Bogovic | |
| */ | |
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 net.imglib2.*; | |
| import bdv.util.*; | |
| import org.janelia.saalfeldlab.n5.zarr.*; | |
| import org.janelia.saalfeldlab.n5.imglib2.*; | |
| /* | |
| * A groovy script for Fiji that reads a zarr volume and displays it using BigDataViewer | |
| * | |
| * John Bogovic | |
| */ |
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 demos; | |
| import java.io.IOException; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import org.janelia.saalfeldlab.n5.GzipCompression; | |
| import org.janelia.saalfeldlab.n5.N5FSReader; | |
| import org.janelia.saalfeldlab.n5.N5FSWriter; | |
| import org.janelia.saalfeldlab.n5.N5Reader; |
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.Dimension; | |
| import java.awt.Font; | |
| import javax.swing.JFrame; | |
| import javax.swing.JLabel; | |
| import javax.swing.JPanel; | |
| String arrow = "→ "; | |
| String ts = " "; | |
| String times = "✕"; |
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 org.janelia.saalfeldlab.n5.N5Reader; | |
| import org.janelia.saalfeldlab.n5.N5TreeNode; | |
| import org.janelia.saalfeldlab.n5.imglib2.N5Utils; | |
| import org.janelia.saalfeldlab.n5.metadata.*; | |
| import org.janelia.saalfeldlab.n5.s3.N5AmazonS3Reader; | |
| import net.imglib2.util.Intervals; | |
| import com.amazonaws.services.s3.*; | |
| import com.amazonaws.regions.Regions; | |
| import com.amazonaws.auth.profile.ProfileCredentialsProvider; |