Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ulterior
Beginner
73 Views

copy 8u array to 16s

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
73 Views

Found the answer myself

run this sequence

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

Reply