This file contains 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 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 |
This file contains 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
/* | |
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)); | |
} |
This file contains 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
// 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"); |
This file contains 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
// 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) |
This file contains 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
// 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; |
This file contains 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
/* | |
* 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 |