Link Copied
Hi Chao,
for IPP it still image Copy operation. You can consider your output array as an image. So, in you case it should be call to(in case of Ipp8u single channel image)ippiCopy_8u_C1R(src + 4*10 + 2, 10, dst, 4, roi), where
src is pointer to your input image
4*10+2 moves pointer to the beginning of your ROI,
10 is input image step (number of bytes between adjacent image rows),
dst is pointer to your output array,
4 is output image step,
roi is IppiSize roi = {2,4} - size of your ROI
Regards,
Vladimir
Chao,
Physically, processor see memory as 1D array of bytes. Your programmayconsider data as a 2D or 3D array or even more complicated waybut this is logical level.
Basically, what I'm saying - there is nodifference in memory layout between
[1 2 3 4]
[5 6 7 8]
and
[1 2 3 4 5 6 7 8]
and so you can use ippiCopy function (which is faster for big enough arrays).
Regards,
Vladimir
For more complete information about compiler optimizations, see our Optimization Notice.