Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

copy 8u array to 16s

ulterior
Beginner
673 Views
Hi, I would like to copy an array of 8u ( 0..255) image to a 16s image,
could anyone point me to a function to do this?

I tried ippsConvert_8s16s but it converts in -128,127 range instead of just copying the unsigned value to signed container

Regards
0 Kudos
1 Reply
ulterior
Beginner
673 Views
Found the answer myself

run this sequence

ippsConvert_8s16s
( (Ipp8s *)srcbuffer8u, dstbuffer16s, length );
ippsAndC_16u_I(0x00FF, (Ipp16u*)dstbuffer16s, length);

0 Kudos
Reply