Script execution
This commit is contained in:
@@ -6,18 +6,18 @@ from ijutils import *
|
||||
import java.awt.Color as Color
|
||||
|
||||
#Image Loading
|
||||
ip = load_image("{images}/test.png", title="Image")
|
||||
ip = load_image("{images}/test2.png", title="Image")
|
||||
|
||||
aux = ip.duplicate()
|
||||
aux.show()
|
||||
grayscale(aux)
|
||||
#gaussian_blur(aux); aux.repaintWindow()
|
||||
invert(aux); aux.repaintWindow()
|
||||
gaussian_blur(aux); aux.repaintWindow()
|
||||
|
||||
#invert(aux); aux.repaintWindow()
|
||||
#smooth(aux); aux.repaintWindow()
|
||||
#sharpen(aux); aux.repaintWindow()
|
||||
|
||||
|
||||
|
||||
#Histogram
|
||||
plot(get_histogram(aux))
|
||||
|
||||
@@ -25,9 +25,12 @@ plot(get_histogram(aux))
|
||||
|
||||
|
||||
auto_threshold(aux)
|
||||
invert(aux)
|
||||
binary_fill_holes(aux); aux.repaintWindow()
|
||||
#binary_fill_holes(aux)
|
||||
#aux.show()
|
||||
(results,output_img)=analyse_particles(aux, 100,5000,
|
||||
fill_holes = True, exclude_edges = True,print_table=True)
|
||||
(results,output_img)=analyse_particles(aux, 400,1000,
|
||||
fill_holes = False, exclude_edges = True,print_table=True,
|
||||
output_image = "outlines", minCirc = 0.0, maxCirc = 1.0)
|
||||
output_img.show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user