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; |
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 | |
if [ "$#" -ne 1 ]; then | |
echo "Give the path to a fiji folders as an argument" | |
exit 1 | |
fi | |
fijidir="$1" | |
mkdir -p tmpbuilddir |
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 | |
# bogo - like bogosort, but for everything | |
VERBOSE="" | |
while getopts "v" OPT | |
do | |
case $OPT in | |
v) # verbose | |
VERBOSE="1" | |
shift |
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.util.function.BiConsumer; | |
import net.imglib2.FinalInterval; | |
import net.imglib2.Interval; | |
import net.imglib2.Localizable; | |
import net.imglib2.RandomAccessibleInterval; | |
import net.imglib2.img.Img; | |
import net.imglib2.loops.LoopBuilder; | |
import net.imglib2.position.FunctionRandomAccessible; | |
import net.imglib2.type.numeric.RealType; | |
import net.imglib2.type.numeric.real.DoubleType; |