- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
1 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite