Closedown
This commit is contained in:
@@ -5,23 +5,28 @@
|
||||
from ijutils import *
|
||||
import java.awt.Color as Color
|
||||
|
||||
ip2 = load_image("images/img2.png", title="Image2")
|
||||
ip2 = load_image(cam2.getImage(), title="Image2")
|
||||
|
||||
|
||||
|
||||
show_panel(ip2.getBufferedImage(), "Original")
|
||||
|
||||
#Particle Analysis
|
||||
#Particle Analysis
|
||||
ip = grayscale(ip2, in_place = False)
|
||||
|
||||
|
||||
show_panel(ip.getBufferedImage(), "GS")
|
||||
auto_threshold(ip, dark_background=True)
|
||||
binary_op(ip, "fill_holes")
|
||||
|
||||
|
||||
|
||||
pn=show_panel(ip.getBufferedImage(), "Binarization")
|
||||
pn.setZoom(0.25)
|
||||
#binary_fill_holes(ip)
|
||||
#binary_fill_holes(ip)
|
||||
#ip.show()
|
||||
(results,output_img)=analyse_particles(ip, 1000,20000000, print_table=True)
|
||||
#output_img.show()
|
||||
#output_img.show()
|
||||
|
||||
pn=show_panel(output_img.getBufferedImage(), "Particle Analysis")
|
||||
pn.setZoom(0.25)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user