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

AlphaComp with external gray-scale image

Petric__Sinisa
Principiante
1.076 Visualizações

I'm converting my project that used old IPL to IPP. IPL had a possibility to perform blending using external gray-scale image as alpha channel (patchMask):

iplAlphaComposite(patchImage, srcImage, srcImage, IPL_COMPOSITE_PLUS, patchMask, 0, 0, false, false);

This function is useful for image editing (clone brush), as gray-scale patchMask image contains brush tip.

It is very simple to change brush tip and perform the same operation with different brush tip.

In IPP, AlphaComp function accepts only images with alpha channels. Any workaround to blend two images using external gray-scale image?

 

0 Kudos
1 Solução
Chao_Y_Intel
Moderador
1.076 Visualizações

Hi, 

I attached the legacy IPL to IPP sample code,  which shows how to covert the AlphaComposite function to IPP. 

Thanks,
Chao

 

Ver solução na publicação original

4 Respostas
Chao_Y_Intel
Moderador
1.077 Visualizações

Hi, 

I attached the legacy IPL to IPP sample code,  which shows how to covert the AlphaComposite function to IPP. 

Thanks,
Chao

 

Petric__Sinisa
Principiante
1.076 Visualizações

Hi,

Thanks for a code. This will do the job.

 

BMart1
Novo colaborador II
1.076 Visualizações

How can I compile iplalpha.c?  Where's own.h?

Chao_Y_Intel
Moderador
1.076 Visualizações

Hi,

This is a part of legacy IPP sample code. You can download old IPP 6.0 samples, to get the full code. They are very old, and not part of the current product now.

Thanks,
Chao

Responder