Skip to content

Instantly share code, notes, and snippets.

@romainGuiet
romainGuiet / RUN_mulitpleParam_Cellpose.groovy
Created March 16, 2022 13:48
A groovy script to batch test param for cellpose
#@File file_path
IJ.run("Close All", "");
// the folder containing the lif
dir = file_path.getParent()
// a subfolder to save images
output_dir = new File( dir ,"outputRom1PC")
output_dir.mkdir()
@NicoKiaru
NicoKiaru / FijiMultiSeriesExporter.groovy
Last active May 11, 2022 14:10
Takes a bioformats compatible file and batch exports individual series, optionally Z Projected and rescaled #BIOP #Fiji #BigDataViewer
// You need to activate https://biop.epfl.ch/Fiji-Bdv-Playground/ for this script to function
// It takes a file and batch exports individual series, optionally Z Projected and rescaled
// Deals pretty correctly with Big dataset + saves multiresolution OME-TIFFs file, keeping the positional metadata
// Nicolas Chiaruttini, BIOP, EPFL, 2022
#@File(label="Dataset") image_file
#@boolean(label="Show advanced opening parameters") advanced
#@String(label="Give a name to your dataset") dataset_name
#@String( label = "Select a subset of channels (0 based, comma separated). Leave blank for all", value="") range_channels
#@String( label = "Selected slices (0 based, comma separated). Leave blank for all", required = false ) range_slices
@pcmoritz
pcmoritz / gist:4b0e1be7f2dfcc4e51e2ace50426f67d
Created May 20, 2018 19:04
Powerpoint create slides for animations while retaining slide numbers
Option Explicit
Sub AddElements()
Dim shp As Shape
Dim i As Integer, n As Integer
n = ActivePresentation.Slides.Count
For i = 1 To n
Dim s As Slide
Set s = ActivePresentation.Slides(i)