From bff415ea4374a4ddb30fd2351ad3722db060ef1e Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Mon, 19 Sep 2016 16:22:30 +0200 Subject: [PATCH] Startup --- script/test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 script/test diff --git a/script/test b/script/test new file mode 100644 index 0000000..ac96c6b --- /dev/null +++ b/script/test @@ -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_sample() \ No newline at end of file