1 | initial version |
If at all possible, you should not be using an IplImage. That is part of the C API, and is discouraged as strongly as possible. I suggest re-writing whatever you have in C++ using Mat and the other C++ classes and functions, then accessing it as you have there. THIS TUTORIAL explains why it's a good idea, and how to use the Mat class.
If that is not possible, the cvarrToMat function can create a Mat out of an IplImage which can be accessed as normal.
If ALL of that doesn't work (IE, you're actually writing in C), then there is a C version of mulSpectrums that will work on the C arrays.