getting ready for hough test

This commit is contained in:
John Cupitt 2014-09-15 14:55:08 +01:00
parent c4a3e9a1a0
commit c20c85b474
3 changed files with 11 additions and 6 deletions

8
TODO
View File

@ -1,13 +1,11 @@
- python:
- draw_circle() etc. should copy() the image before writing, and
return the copy
- maxpos?
accidental segvs are too easy otherwise :(
perhaps:
draw.c should declare arg as VIPS_ARGUMENT_REQUIRED_INPUT_OUTPUT
maybe?
v, x, y = im.max(x = True, y = True)
- could import like this:

View File

@ -358,5 +358,13 @@ class TestArithmetic(unittest.TestCase):
self.assertEqual(hist.height, 1)
self.assertEqual(hist.bands, 1)
def test_hough_circle(self):
im = Vips.Image.black(100, 100).draw_circle(100, 50, 50, 40)
hough = im.hough_circle(min_radius = 35, max_radius = 45)
if __name__ == '__main__':
unittest.main()

View File

@ -81,7 +81,6 @@ class Argument:
# MODIFY input images need to be copied before assigning them
if self.flags & Vips.ArgumentFlags.MODIFY:
print 'taking copy of MODIFY image arg'
value = value.copy()
logging.debug('assigning %s' % self.prop.value_type)