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