Hello ! I am trying to merge two images by the following line of code :
mrg = cv2.merge((filteredImg, img, filteredImg))
When I try to run the script, I get the following error:
OpenCV Error: Assertion failed(mv[i].size == mv[0].size && mv[i].depth() == depth) in merge. (error -215)
How can I solve this problem ? Thanks in advance.