Skip to content

Instantly share code, notes, and snippets.

View zktuong's full-sized avatar

Zewen Kelvin Tuong zktuong

View GitHub Profile
@eeelinn
eeelinn / Batch Counting IHC.ijm
Last active September 30, 2017 18:50
ImageJ macro that semi-automatically counts multiple DAB positively stained nuclei samples from IHC experiments in a batch. Influenced by: https://gist.github.com/zktuong/2b281aed13a089abb1de2b03a177754d
//Title: Batch Counting IHC
//Ver. 1 ORS_20170828
//Author: Erikka Linn
//NOTE: Before counting, please go to Analyze>>Set Scale and set the scale for image in pixels/um. Check "global" to maintain the same scale for all the images.
input = getDirectory("Input directory"); //Folder with images you want counted
output = getDirectory("Output directory"); //Folder where you want to save the new data (saves image of positive and total cells each)
keyword = "5HT"; //Keyword in the file names that you want (in case there are other photos in the folder)
suffix = ".tif"; //Works with tiff images