- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page