From 591c8995f3d659ec402c1a460576d7681a1853ed Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Fri, 16 Sep 2016 11:21:39 +0200 Subject: [PATCH] Closedown --- script/imgtest.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/script/imgtest.py b/script/imgtest.py index 9880b09..639fe92 100644 --- a/script/imgtest.py +++ b/script/imgtest.py @@ -10,26 +10,6 @@ from ch.psi.pshell.imaging.Overlays import * import ch.psi.pshell.imaging.Pen as Pen - -def detect_pucks(ip): - aux = grayscale(ip, in_place=False) - threshold(aux,0,50) - binary_fill_holes(aux) - return analyse_particles(aux, 10000,50000, - fill_holes = False, exclude_edges = True,print_table=True, - output_image = "outlines", minCirc = 0.0, maxCirc = 1.0) - -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.5, maxCirc = 1.0) - - class MyFilter(Filter): def process(self, image, data): ip = load_image(image)