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.

Change pixel value (PutPixel)

hcostelha
初学者
531 次查看
Hi,

What is the easiest way to set a pixel value in a 8u_C1 image? I have a loop that needs to set pixels to a value as it goes.

IPL had a PutPixel, but IPP has nothing of that kind.

Thanks in advanced.

Hugo
0 项奖励
1 回复
Vladimir_Dudnik
531 次查看

Hi,

in IPP it is very easy because you have direct access to image data. So all you need is to calculate pixel address, for 8u_C1 images it is something like this:

let i - is column #
and j is row #

pixel_value = pSrc[ j*imageStep + i ];

Regards,
Vladimir

0 项奖励
回复