Ask Your Question
1

denoise_TVL1 doens't work in python3 but works in C++. cv2.denoise_TVL1(img,dst,0.01,1). dst is zeros. Please help!

asked 2018-02-18 13:32:46 -0600

ayushgarg gravatar image

dst = np.zeros(img.shape) cv2.denoise_TVL1(img,dst,0.01,1) print(dst.dtype)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-21 02:43:19 -0600

berak gravatar image

updated 2018-02-21 06:37:06 -0600

that's a bug in the wrapping code, please raise an issue on the bugtracker

it should be OutputArray resulthere: https://github.com/opencv/opencv/blob...

(and the python version should return the result, not take it as a reference. (no need to preallocate it))

((unfortunately, impossible to fix before opencv4.0 , due to ABI requirements))

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-02-18 13:32:46 -0600

Seen: 308 times

Last updated: Feb 21 '18

Related questions