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

masks

jpritts
Beginner
179 Views
Suppose I have an 3 channel 640x480 image. For masked operation on 3-channel images (e.g. ippiCopy_8u_C3R), what size does the mask need to be? From my experiments, it seems like it needs to be 1920x1440 for ippiCopy_8u_C3R to work. In other words there are 3 mask pixels corresponding to each pixel, one mask value for each color channel. My expectation would be that the mask is a 640x4801 channel image for a 640x480 3 channel image, one mask value for every RGB triple.
0 Kudos
1 Reply
Intel_C_Intel
Employee
179 Views

In IPP masked functions (eg ippiCopy_8u_C3MR) the mask should contain 1 byte for each image pixel. For 3 channel 640x480 mask should be 1 8u channel 640x480. Please check src, dst, mask image steps

Alexander

0 Kudos
Reply