This commit is contained in:
gac-S_Changer
2018-06-14 17:33:20 +02:00
parent 086e8f347e
commit 70a11a6e39
25 changed files with 612 additions and 363 deletions

View File

@@ -0,0 +1,24 @@
###################################################################################################
# Example of using ImageJ functionalities through ijutils.
###################################################################################################
from ijutils import *
import java.awt.Color as Color
#Image Loading
ip = load_image("{images}/test2.png", title="Image")
#Puck Detection
aux = grayscale(ip, in_place=False)
aux.show()
plot(get_histogram(aux))
subtract_background(aux)
threshold(aux,0,50); aux.repaintWindow()
binary_fill_holes(aux); aux.repaintWindow()
(results,output_img)=analyse_particles(aux, 10000,50000,
fill_holes = False, exclude_edges = True,print_table=True,
output_image = "outlines", minCirc = 0.0, maxCirc = 1.0)
output_img.show()