From 157d483cc0fcfbb39ceb36b69b61762286956e8c Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Mon, 19 Sep 2016 16:23:14 +0200 Subject: [PATCH] Script execution --- script/test.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 script/test.py diff --git a/script/test.py b/script/test.py new file mode 100644 index 0000000..3c7835c --- /dev/null +++ b/script/test.py @@ -0,0 +1,17 @@ +from ijutils import * +import java.awt.Color as Color + + + +def detect_samples(ip): + aux = grayscale(ip, in_place=False) + invert(aux) + subtract_background(aux) + auto_threshold(aux) + binary_open(aux) + return analyse_particles(aux, 250,1000, + fill_holes = False, exclude_edges = True,print_table=True, + output_image = "outlines", minCirc = 0.9, maxCirc = 1.0) + +ip = load_array(img.getData().getMatrix()) +detect_samples(ip) \ No newline at end of file