I need to do an image processing in python. i want to use wavelet transform as the filterbank. Can anyone suggest me which one library should i use? I had pywavelet installed, but i don't know how to combine it with opencv. If i use wavedec2 command, it raise ValueError("Expected 2D input data.")
Can anyone help me?
Answer of Navaneeth is correct but with two correction:
1- Opencv read and save the images as BGR not RGB so you should do
cv2.COLOR_BGR2GRAY
to be exact.2- Maximum level of
_multilevel.py
is 7 not 10, so you should do :w2d("test1.png",'db1',7)
Hope this helps