Skip to content

Instantly share code, notes, and snippets.

@mutterer
mutterer / JACoP_Fluorogram.ijm
Created September 24, 2015 07:27
Pretty fluorogram for JACoP
/*
* Making a pretty fluorogram
* Olivier Burri, BioImaging & Optics Platform, EPFL
*/
run("Fluorescent Cells (400K)");
image = getTitle();
run("Split Channels");
@mutterer
mutterer / drawCirclesAndQuadrants.ijm
Created June 24, 2016 14:36 — forked from lacan/drawCirclesAndQuadrants.ijm
Draws fractions of concentric circles
/*
* 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
@mutterer
mutterer / zoom_movie_ImageJ_v2.ijm
Created March 17, 2017 13:59 — forked from ekatrukha/zoom_movie_ImageJ_v2.ijm
ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI)
//ImageJ macro making a movie (stack) of zooming on selected rectangle (ROI)
//Eugene Katrukha katpyxa at gmail.com
requires("1.48h");
//check if there is rectangular selection
if(selectionType() ==0)
{
sTitle=getTitle();
sMovieTitle=sTitle+"_zoom_movie";
setBatchMode(true);
@mutterer
mutterer / sketch_aug31b.pde
Created February 28, 2020 20:14 — forked from spoike/sketch_aug31b.pde
Processing Sketch - Flames!
/**
* Flames. Generates some flames by using gradients (with basic
* spline math) and Perlin noise (for generating the flame
* height).
*/
/** Flame outer color */
color startCol = color(100, 0, 210);
/** Flame inner color */
color endCol = color(200, 150, 255);
@mutterer
mutterer / curvature_radius.bsh
Created September 10, 2020 12:13 — forked from lacan/curvature_radius.bsh
Curvature radius simple calculation for ImageJ/fiji #Fiji #Beanshell #Curvature #ImageJ
/*
* Simple script that takes a selection and computes the curvature radius for the whole perimeter of the shape.
*
* By Olivier Burri,
* BioImaging and Optics Platform, BIOP
* Ecole Polytechnique Fédérale de Lausanne (EPFL)
* Last update: May 2017
*
*
*/
@mutterer
mutterer / straighten_animation_v1(20210115).ijm
Created January 15, 2021 15:57 — forked from ekatrukha/straighten_animation_v2(20210128).ijm
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.15 Eugene Katrukha / katpyxa at gmail dot com
if (nImages<1)
{
exit("This macro needs an input image. Open something");
}
if(selectionType()!=6)
@mutterer
mutterer / Image_to_Tool_Icon_24.ijm
Created January 19, 2021 18:02 — forked from lannybroo/Image_to_Tool_Icon_24.ijm
A version of the ImageJ Image to Tool Icon macro that works with 24x24 images
// This macro converts a 24x24 8-bit image to a tool macro icon
// string. Ideally, the image should have no more than 16 colors.
// Includes a few examples.
macro "Convert Image to Tool Icon 24..." {
requires("1.53c"); // for the extended hex feature
if (bitDepth==24) // convert RGB to 16-color 8-bit
run("8-bit Color", "number=16");
if (bitDepth!=8 || getWidth>24 || getHeight>24)
exit("This macro requires an 8-bit 24x24 image");
@mutterer
mutterer / Data_To_Midi.groovy
Created August 25, 2022 11:59 — forked from lacan/Data_To_Midi.groovy
[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