Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Petric__Sinisa
Beginner
82 Views

AlphaComp with external gray-scale image

Jump to solution

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 Solution
Chao_Y_Intel
Employee
82 Views

Hi, 

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

Thanks,
Chao

 

View solution in original post

4 Replies
Chao_Y_Intel
Employee
83 Views

Hi, 

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

Thanks,
Chao

 

View solution in original post

Petric__Sinisa
Beginner
82 Views

Hi,

Thanks for a code. This will do the job.

 

BMart1
New Contributor II
82 Views

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

Chao_Y_Intel
Employee
82 Views

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

Reply