Commit 488a527d authored by rhaase's avatar rhaase

initial version

parents
open("C:/structure/teaching/lecture_applied_bioimage_analysis_2020/01_Intro_BioImage_Analysis/examples/kitchen_with_mandarines.tif");
open("C:/structure/teaching/lecture_applied_bioimage_analysis_2020/01_Intro_BioImage_Analysis/examples/kitchen_without_mandarines.tif");
// show the difference between both images
imageCalculator("Difference create", "kitchen_with_mandarines.tif","kitchen_without_mandarines.tif");
selectWindow("Result of kitchen_with_mandarines.tif");
// segment the mandarines
setAutoThreshold("RenyiEntropy dark");
setOption("BlackBackground", true);
run("Convert to Mask");
run("Dilate");
run("Dilate");
run("Fill Holes");
run("Erode");
run("Erode");
run("Erode");
// count the mandarines
run("Analyze Particles...", "summarize add");
selectWindow("kitchen_with_mandarines.tif");
//roiManager("Show None");
roiManager("Show All");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment