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

How to use ippiSet_8u_C4CR on a single channel ?

udi
Beginner
335 Views
Hi,

Doesn't this method supposed to have a coi parameter?

How do I set only the alpha channel without a coi parameter ?

Thanks,

Udi Raz
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
335 Views

Udi,

I'm again refer you to IPP documentation, ippiman.pdf file, chapter 4 Image Data Exchange and Initialization Functions, article Set. Please see functions description:

When a channel of interest is selected, that is only one channel of a multi-channel image must be set (see

Case 7), the pDst pointer points to the start of ROI buffer in the required channel. If alpha channel is present in the source image data, the alpha components may be either skipped, or set to a value, depending on the chosen ippiSet function flavor.

It means that you should set pDst pointer to the channel of interest in your multi-channel data and function will care about stepping between channels.

Regards,
Vladimir

0 Kudos
Reply