Community
cancel
Showing results for 
Search instead for 
Did you mean: 
atvan
Beginner
105 Views

how to use ippi to accomplish overlay function

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 Kudos
5 Replies
Naveen_G_Intel
Employee
105 Views

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

atvan
Beginner
105 Views

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

Naveen_G_Intel
Employee
105 Views

Hi,

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

Regards,

Naveen Gv

atvan
Beginner
105 Views

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

Ying_H_Intel
Employee
105 Views

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
Reply