// this file show section ocdes with general purpose // all codes are under my personal preference, please read carefully and adopt for your use. // A. Initialize ImageJ // B. Bacth process setup // C. parameter input // D. simple print summary // --------- A. Initialize ImageJ ---------------- // this code section sets image foreground as white, and background for black. // it is mostly for fluorescence images. Users should use their preference to set it up. // this is normally at the begining of the code. run("Colors...", "foreground=white background=black selection=yellow"); run("Options...", "iterations=1 count=1 black"); run("Set Measurements...", "area mean standard modal min centroid center perimeter bounding fit shape feret's integrated median skewness kurtosis area_fraction stack redirect=None decimal=5"); // ------------ end A Initialize ImageJ ------------ // ----------- B. Bacth process setup ---------------- // this code provide general set up for bacth process on a signle folder rawdir=getDirectory("User Choose Raw Data Folder"); resultdir=getDirectory("User Choose Result Data Folder"); list=getFileList(rawdir); for(f=0;f