Skip to content

Instantly share code, notes, and snippets.

@lacan
lacan / drawCirclesAndQuadrants.ijm
Last active November 21, 2021 16:23
Draws fractions of concentric circles #ImageJ #Macro #Fiji
/*
* By Olivier Burri, BioImaging & Optics Platform EPFL
* June 2016
* Provided as-is from a request on the ImageJ Forum
* http://forum.imagej.net/t/dividing-circle-into-8-equal-areas/1995
*/
var count = 0; // Variable to know which circle we are working on
// If you install this macro, it will be mapped to the F2 Key
@davidblitz
davidblitz / 10PRINT 'tunnel-rosette'.pde
Last active September 30, 2017 19:04 — forked from mutterer/10PRINT 'rosette'.pde
// 10PRINT tunnel-rosette Processing 3 code, thanks to @shiffman and @jmutterer!
// 10PRINT rosette Processing 3 code
// thanks to @shiffman and @jmutterer!
static float r=30;
static float s=10;
int i, j;
static int maxI = 60;
static int maxJ = 25;
@ekatrukha
ekatrukha / straighten_animation_v2(20210128).ijm
Last active January 28, 2021 16:41
ImageJ macro for illustration of "Straighten" ROI function
// Providing an image and polyline, macro illustrates
// (creates a stack with animation)
// "Straighten" ROI function of ImageJ
// 2021.01.28 Eugene Katrukha / katpyxa at gmail dot com
if (nImages<1)
{
exit("This macro needs an input image. Open something");
}
if(selectionType()!=6)
@lannybroo
lannybroo / Image_to_Tool_Icon_24.ijm
Last active September 19, 2024 12:12
A version of the ImageJ Image to Tool Icon macro that works with 24x24 images
// This macro converts a 24x24 8-bit or 24-bit image to a tool
// macro icon string. Includes a few examples.
macro "Convert Image to Tool Icon 24..." {
requires("1.53c"); // for the extended hex feature
if (!(bitDepth==8 || bitDepth==24) || getWidth>24 || getHeight>24)
exit("This macro requires an 8-bit 24x24 image");
Dialog.create("Image 2 Tool");
Dialog.addString("Tool name", "myTool");
@kwolbachia
kwolbachia / gammaLUT.ijm
Last active April 15, 2021 18:27
imageJ Fiji Gamma LUTs macro
/*
15/04/21 K Terretaz @kWolbachia
visual gamma correction applied on active LUT or all channel LUTs, no modification of pixels data
VERY much inspired by https://github.com/ndefrancesco/macro-frenzy/blob/master/color/gammify_LUT.ijm for its simplicity
and https://imagej.nih.gov/ij/macros/Gamma_LUT.txt for non linear LUTs compatibility
*/
macro "gammaLUT on all channels" {
setGammaLUTAllch(getNumber("gamma",0.7));
}
@lacan
lacan / Data_To_Midi.groovy
Created August 24, 2022 09:23
[Data to MIDI sound] Use results from a Results table as notes to form a melody #midi #imagej
#@ File saveLocation (label="Location of MIDI save file")
/**
* Testing Spots to Sound using MIDI
* Each hit is given a unique note based on some metric and intensity is related to volume
*
* = AUTHOR INFORMATION =
* Code written by Olivier Burri, EPFL - SV - PTECH - BIOP
* for Samuel Vernon, McCabe Lab
* 2022.08.23