Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

copy 8u array to 16s

ulterior
Beginner
160 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
160 Views
Found the answer myself

run this sequence

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

Reply