Let say there is a 7x5 matrix (16-bit image) with the following values, and I want to copy every 3rd value into a new 3x2 matrix using IPP.
I tried the function ippiCopySubpix_16u_C1R
but it copies only the left corner of my origin matrix. Which possibility do I have? here is my test code:
Ipp16u x[7*5], y[3*2];
IppiSize roiOrig = {7,5}; IppiSize roiDst = {3,2};
auto * ptr = x; // fill the matrix
for (int i = 0; i < 7*5; i++)
{
*ptr++ = i;
}
ippiCopySubpix_16u_C1R(x, 7*2, y, 3*2, roiDst, 3, 3);
// result is [0 1 2 7 8 9]