Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

how to use ippi to accomplish overlay function

atvan
初学者
1,254 次查看

Please check the attached .bmp files. The src.bmp is 32 bits, logo1.bmp is 24 bits. Alpha values from 0 to 255. The CPU usage of the overlay function I created is very high because theoverlay imageis calculated by each pixel(and color).

Is there a way to use ippi to improve my overlay function performance?

Thanks,

ezcom

0 项奖励
5 回复数
Naveen_G_Intel
1,254 次查看

Hi,

I have checked Overlay function using Alpha Composition in ippi. I used ippidemo.exe to test this functionality for src.bmp and logo1.bmp images. CPU usage was less than 30% on Core 2 Duo machine.

Can you check the same using ippidemo?

Ippidemo.exe - This is a demo application in the IPP installation folder (\IPP\6.1.x.xxx\ia32\demo).

Thanks,

Naveen Gv

0 项奖励
atvan
初学者
1,254 次查看

Hey Naveen,

I'm able to run ippiDemo, but I can't find Alpha Composition. Could you let me know how you test the funtion?

Thanks,

ezcom

0 项奖励
Naveen_G_Intel
1,254 次查看

Hi,

After opening image from ippidemo, you will get Menu option Process, then click process by you can see following screen.

Regards,

Naveen Gv

0 项奖励
atvan
初学者
1,254 次查看

Please check the attached bmp files.ippIP Demo will calculate pixels ofentire range of src.bmp. But the function I need is that only to calculate pixels when logo pixels are not black.

If you look at the out.bmp, the onlychange from src.bmp is the logo text. Compare totheoutputI got from ippi demo, the entire range of picture is darker than src.bmp.

Regards,

ezcom

0 项奖励
Ying_H_Intel
主持人
1,254 次查看
Hello ezcom,

I noticed, you change both image src.bmp and log1.bmpto 3 channel 640x480, wichcause the alpha channel information with src.bmp was loss. You may try to convert the log.bmp to AC4 type, then call ippiAlphaCompC_8u_AC4R(.., Over). You will getyour expectedperformnance.

Regards,
Ying
0 项奖励
回复