Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Converting BYTE buffers to unsigned short

aphesa
初学者
1,028 次查看
Hi all,

a very typical application when reading image data from a harware interface is to convert the raw byte buffer into an array of unsigned short representing an image (i.e. address scaling).

What is the IPP function to do this? I have seen copying, bit downscaling, moving but not such an address scaling.

The function usually looks like
for (unsigned long index=0; index ushort_buf=(unsigned short)byte_buf;

Thank you.

Arnaud.
0 项奖励
3 回复数
Vladimir_Dudnik
1,028 次查看
Hi Arnaud,


I think you are looking for ippiConvert_8u16s function's family (we have variants for single channel or gray images, three channels and four channels images).

What kind of application do you develop? Is it something to do with raw video data from camera? What other functionality you is interested in for that application?

Regards,
Vladimir
0 项奖励
aphesa
初学者
1,028 次查看
Hi Vladimir,

yes, it seems to be the one, thank you.

I'm working on high speed data acquisition for production testing purposes. I will probably also need some FFT, statistical function, least square linear regression and box filters.

Best regards,
Arnaud.
0 项奖励
Chao_Y_Intel
主持人
1,028 次查看

>I will probably also need some FFT, statistical function, least square linear regression and box filters.

You may some the optimized functions in image and single processing domain.

Thanks,
Chao
0 项奖励
回复