
import matplotlib.pyplot as plt

from bubblekicker import BubbleKicker

# setup the image handling object
import os
print(os.listdir("./"))

my_image = BubbleKicker('Bubble_test_053.bmp', channel='red')

# edge detect
my_image.edge_detect_image(3, threshold=[None, None])

fig, ax = plt.subplots()
ax.imshow(my_image.current_image, cmap=plt.cm.gray)
ax.set_title("edges detected")

# Dilate
my_image.dilate_image()

fig, ax = plt.subplots()
ax.imshow(my_image.current_image, cmap=plt.cm.gray)
ax.set_title("dilated image")


#...

plt.show()
@@ -44,16 +44,29 @@
 lekicker
+.bubblekicker
  import 
@@ -177,44 +177,111 @@
 er('
-Bubble_test_053.bmp', channel='red')
+drafts/0325097m_0305.tif', channel='red')%0A%0A%0A#%0Amy_image.perform_pipeline_opencv(%5B100, 150%5D, 3, 3, 1, 1)%0A
 %0A%0A# 
@@ -292,16 +292,17 @@
  detect%0A
+#
 my_image
@@ -314,16 +314,18 @@
 _detect_
+sk
 image(3,
@@ -349,17 +349,64 @@
  None%5D)%0A
-%0A
+my_image.plot()%0Amy_image.what_have_i_done()%0A%0A%0A# 
 fig, ax 
@@ -414,32 +414,34 @@
  plt.subplots()%0A
+# 
 ax.imshow(my_ima
@@ -468,32 +468,34 @@
 ap=plt.cm.gray)%0A
+# 
 ax.set_title(%22ed
@@ -509,17 +509,20 @@
 ected%22)%0A
-%0A
+#%0A# 
 # Dilate
@@ -522,16 +522,18 @@
  Dilate%0A
+# 
 my_image
@@ -544,16 +544,18 @@
 ate_
+sk
 image()%0A
 %0Afig
@@ -550,17 +550,20 @@
 image()%0A
-%0A
+#%0A# 
 fig, ax 
@@ -579,16 +579,18 @@
 plots()%0A
+# 
 ax.imsho
@@ -633,16 +633,18 @@
 m.gray)%0A
+# 
 ax.set_t

check the functioning of the pipelin function