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
链接已复制
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
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
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
