Closedown

This commit is contained in:
gac-S_Changer
2017-06-23 14:54:45 +02:00
parent 6b62017f34
commit b085789df2
3 changed files with 30 additions and 15 deletions

View File

@@ -9,8 +9,9 @@ line = load_image("{images}/line.png", title="Line")
line.getProcessor().setBackgroundValue(0.0)
#renderer = show_panel(line.bufferedImage)
ip = get_image()
#ip = get_image()
ip = average_frames(5)
ip =grayscale(ip)
smooth(ip)
#bandpass_filter(ip, 30, 1000)
@@ -32,7 +33,7 @@ for m in AutoThresholder.getMethods():
renderer = show_panel(aux.bufferedImage)
time.sleep(1.0)
"""
#binary_fill_holes(ip, dark_background=True)
binary_dilate(ip, dark_background=False)
#binary_fill_holes(ip, dark_background=False)
#binary_open(ip, dark_background=Tr)
@@ -45,13 +46,16 @@ renderer = show_panel(ip.bufferedImage)
line = sub_image(line, 89, 89, 1024, 1024)
ip = sub_image(ip, 89, 89, 1024, 1024)
line = sub_image(line, 325, 325, 512, 512)
ip = sub_image(ip, 325, 325, 512, 512)
#op = op_fft(ip, line, "correlate")
renderer = show_panel(ip.bufferedImage)
#renderer = show_panel(op.bufferedImage)
#line.show()
"""
vals = []
for i in range (180):
l = line.duplicate()
@@ -64,8 +68,8 @@ for i in range (180):
#renderer = show_panel(op.bufferedImage)
#time.sleep(0.001)
plot(vals)
"""
#image_fft(ip)