Bossgaming099 / ctypes-opencv

Automatically exported from code.google.com/p/ctypes-opencv
0 stars 0 forks source link

function cvSmooth does not accept enought arguments #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use cvSmooth(src, dst, CV_Bilateral, param1, param2, param3, param4)
2. set param2 = 0
3. watch it fail

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
the cvSmooth function needs to accept 7 arguments. The ctype wrapper only
accepts 6. 

change the wrapper in cv.py for cvSmooth to read:

cvSmooth = cfunc('cvSmooth', _cvDLL, None,
    ('src', CvArr_r, 1), # const CvArr* src
    ('dst', CvArr_r, 1), # CvArr* dst
    ('smoothtype', c_int, 1, CV_GAUSSIAN), # int smoothtype
    ('param1', c_int, 1, 3), # int param1
    ('param2', c_int, 1, 0), # int param2
    ('param3', c_double, 1, 0), # double param3
    ('param4', c_double, 1, 0), # double param4
)

Original issue reported on code.google.com by SCColbert@gmail.com on 23 Mar 2009 at 4:32

GoogleCodeExporter commented 8 years ago
I can reproduce the bug. Thank you. Unfortunately, I am currently swarmed with 
work
in my university. I will patch your fix asap. Sorry for the delay.

Minh-Tri

Original comment by pmtri80@gmail.com on 25 Mar 2009 at 1:14

GoogleCodeExporter commented 8 years ago
Fixed. Thanks.

Original comment by pmtri80@gmail.com on 5 Apr 2009 at 6:54