Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

masks

jpritts
Beginner
73 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
73 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

Reply