cuckoo search, latin hypercube sampling
[imago.git] / linef.py
old mode 100755 (executable)
new mode 100644 (file)
index 37690cc..4e35781
--- a/linef.py
+++ b/linef.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 """Go image recognition lines-finding module"""
 
 import sys
 """Go image recognition lines-finding module"""
 
 import sys
@@ -45,11 +43,11 @@ def find_lines(image, show_all, do_something, verbose):
     if show_all:
         do_something(im_hough, "hough transform")
 
     if show_all:
         do_something(im_hough, "hough transform")
 
-    im_hough = filters.peaks(im_hough)
-    if show_all:
-        do_something(im_hough, "peak extraction")
+   # im_hough = filters.peaks(im_hough)
+   # if show_all:
+   #     do_something(im_hough, "peak extraction")
                
                
-    im_h2 = filters.high_pass(im_hough, 120)
+    im_h2 = filters.high_pass(im_hough, 96)
     if show_all:
         do_something(im_h2, "second high pass filters")
 
     if show_all:
         do_something(im_h2, "second high pass filters")
 
@@ -111,7 +109,7 @@ def find_lines(image, show_all, do_something, verbose):
     if show_all:
         do_something(image_g, "lines")
    
     if show_all:
         do_something(image_g, "lines")
    
-    return lines, lines_m[0][0], lines_m[1][0], bounds, hough1
+    return lines, lines_m[0][0], lines_m[1][0], bounds, hough1, im_h
 
 def combine(image1, image2):
     im_l1 = image1.load()
 
 def combine(image1, image2):
     im_l1 = image1.load()