1 | initial version |
A bit late... I don't know which error you get (please paste the error) but if the error was like as in:
assertion ... depth == CV_32F || depth == CV_64F in function pow
You need to make sure that the image was in CV_32F or CV_64F format. To do it you can do img8bits.convertTo(imgc, CV_32FC3)
for example (for 3-channel).
2 | No.2 Revision |
A bit late... I don't know which error you get (please paste the error) but if the error was is like as in:
assertion ... depth == CV_32F || depth == CV_64F in function pow
You need to make sure that the image was is in CV_32F or CV_64F format. To do it you can do img8bits.convertTo(imgc, CV_32FC3)
for example (for 3-channel).