Skip to content

Instantly share code, notes, and snippets.

View Kenny19920122's full-sized avatar

Kenny19920122

View GitHub Profile
@romainGuiet
romainGuiet / split_channels.ijm
Last active April 26, 2024 00:18
An imagej macro example to process a folder of images, split the channels and save them in an output directory
// ask user to select a folder
dir = getDirectory("Select A folder");
// get the list of files (& folders) in it
fileList = getFileList(dir);
// prepare a folder to output the images
output_dir = dir + File.separator + "output" + File.separator ;
File.makeDirectory(output_dir);
//activate batch mode