liuhuang31 / BM3D-Denoise

Using BM3D to denoise
BSD 3-Clause "New" or "Revised" License
211 stars 53 forks source link

cv2.error #1

Closed wulei878 closed 7 years ago

wulei878 commented 7 years ago

hi, I came across this error: "cv2.error: /Users/travis/build/skvark/opencv-python/opencv/modules/core/src/dxt.cpp:4154: error: (-213) Odd-size DCT's are not implemented in function apply", could you please help?

liuhuang31 commented 7 years ago

hi,because it is a long time from me to upload the code.Are you changed the code in some ways?The problem maybe you image isn't a grayscale image?Or you need a 1 channel image float img for dct,note that dct needs float values in the [0..1] range.

serendipitYang commented 2 years ago

I encountered the exactly same issue here, my image is definitely gray, but shaped 192168. Moreover, if I ran a shaped 256256, it worked fine.