Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

OpenCV and IPP

Deleted_U_Intel
Employee
693 Views
Hi, I'm trying to compile the example in the ippocv.pdf tutorial.

The thig is that I get a compilation error:
ipp1.cpp: In function `int main()':
ipp1.cpp:44: error: invalid conversion from `char*' to `const Ipp8u*'

The code of the line is:
// the pointer of our OpenCV data is our IPP image pointer
ippiCopy_8u_C3R( img->imageData, size.width * 3, ipprgb, size.width *
3, size );

I attach the code.

Any idea?

Thank you very much.
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
693 Views

Hi,

youneed to cast the pointer to (Ipp8u*) (cause imageData is of char* type):

ippiCopy_8u_C3R( (Ipp8u*)img->imageData, size.width * 3, ipprgb, size.width *
3, size );

Regards,
Vladimir

0 Kudos
Reply