getting ready for hough test
This commit is contained in:
parent
c4a3e9a1a0
commit
c20c85b474
8
TODO
8
TODO
@ -1,13 +1,11 @@
|
|||||||
|
|
||||||
- python:
|
- python:
|
||||||
|
|
||||||
- draw_circle() etc. should copy() the image before writing, and
|
- maxpos?
|
||||||
return the copy
|
|
||||||
|
|
||||||
accidental segvs are too easy otherwise :(
|
perhaps:
|
||||||
|
|
||||||
draw.c should declare arg as VIPS_ARGUMENT_REQUIRED_INPUT_OUTPUT
|
v, x, y = im.max(x = True, y = True)
|
||||||
maybe?
|
|
||||||
|
|
||||||
- could import like this:
|
- could import like this:
|
||||||
|
|
||||||
|
@ -358,5 +358,13 @@ class TestArithmetic(unittest.TestCase):
|
|||||||
self.assertEqual(hist.height, 1)
|
self.assertEqual(hist.height, 1)
|
||||||
self.assertEqual(hist.bands, 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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -81,7 +81,6 @@ class Argument:
|
|||||||
|
|
||||||
# MODIFY input images need to be copied before assigning them
|
# MODIFY input images need to be copied before assigning them
|
||||||
if self.flags & Vips.ArgumentFlags.MODIFY:
|
if self.flags & Vips.ArgumentFlags.MODIFY:
|
||||||
print 'taking copy of MODIFY image arg'
|
|
||||||
value = value.copy()
|
value = value.copy()
|
||||||
|
|
||||||
logging.debug('assigning %s' % self.prop.value_type)
|
logging.debug('assigning %s' % self.prop.value_type)
|
||||||
|
Loading…
Reference in New Issue
Block a user