Skip to content

Instantly share code, notes, and snippets.

@PMLLancao
PMLLancao / gist:cae9339705dc49e73227f7629cf45dca
Created April 13, 2018 23:07
MACRO ROI background subtraction for a batch IMAGEJ
Dear GitHub community
I was wondering if someone can help me to improve a Macro that I found here https://imagej.nih.gov/ij/macros/SubractMeasuredBackground.txt
I do not know how to write proper macros so I am trying to adapt it.
I would like to do a background subtraction from an ROI to every single image of a folder, but I would like to have the" waitforuser" command in this macro because every image has different element on it, and I will have to choose every time a different spot in the image to draw a ROI.
Furthermore, I would like to save these processed images in another folder as Tiff or as the original file from Zeiss .LSM.
So far the macro runs and opens and processed only the first image.
/ This macro subtracts the mean gray level calculated
@PMLLancao
PMLLancao / FRET MAP
Created December 9, 2016 19:48
Calculation for FRET Maps.
macro "Ratiometric FRET" {
path = getDirectory("Choose a Directory");
list = getFileList(path);
length = list.length;
File.makeDirectory(path + "Imaging/");
//FRET map creation