Skip to content

Instantly share code, notes, and snippets.

View tinevez's full-sized avatar

Jean-Yves Tinevez tinevez

View GitHub Profile
@ctrueden
ctrueden / bio-formats.py
Last active January 1, 2023 08:26
Jython example script for working with the Bio-Formats API in Fiji.
# read in and display ImagePlus object(s)
from loci.plugins import BF
file = "/Users/curtis/data/tubhiswt4D.ome.tif"
imps = BF.openImagePlus(file)
for imp in imps:
imp.show()
# read in and display ImagePlus(es) with arguments
from loci.common import Region
from loci.plugins.in import ImporterOptions
@dvlden
dvlden / ffmpeg.md
Last active May 14, 2024 14:25
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@imagejan
imagejan / Run_TrackMate_Headless.groovy
Created September 19, 2017 07:39
Groovy script to start TrackMate without the UI wizard
#@ ImagePlus imp
#@ File (style = "directory", label = "Output folder") outputFolder
#@ String (label = "Output file name") filename
#@ double (label = "Spot radius", stepSize=0.1) radius
#@ double (label = "Quality threshold") threshold
#@ int (label = "Max frame gap") frameGap
#@ double (label = "Linking max distance") linkingMax
#@ double (label = "Gap-closing max distance") closingMax
import fiji.plugin.trackmate.Model
@aaristov
aaristov / zoom_movie_ImageJ_v2a.ijm
Last active October 30, 2023 04:26 — forked from ekatrukha/zoom_movie_ImageJ_v2.ijm
Improved ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI) now with logarithmic approach and dynamic scalebar
//ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI)
//v2 Eugene Katrukha katpyxa at gmail.com
//v2a Andrey Aristov: aaristov at pasteur.fr
requires("1.48h");
//check if there is rectangular selection
if(selectionType() ==0)
{
sTitle=getTitle();
sMovieTitle=sTitle+"_zoom_movie";
@ctrueden
ctrueden / scifio-metadata.groovy
Last active August 1, 2018 04:13
Read OME metadata using SCIFIO
#@ ImageJ ij
#@ File file
import io.scif.config.SCIFIOConfig;
import io.scif.config.SCIFIOConfig.ImgMode;
import io.scif.ome.OMEMetadata
// Open and display a file as a cell image.
config = new SCIFIOConfig().imgOpenerSetImgModes(ImgMode.CELL)
dataset = ij.scifio().datasetIO().open(file.getAbsolutePath(), config)