Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

Copying a small image onto a big image

dwinfield
Beginner
115 Views
I need to copy a small image onto a certain part of the big image.
The ippiCopy function seems to only work for when the src and desthave the same ROI.
The sample code below does'nt work
What's a quick way of doing this ?
THANKS


IppStatus status;
const char* statusString;

Ipp8u *ippBack;
ippBack = new Ipp8u[320 * 240];
IppiSize ROIback;
ROIback.height = 240;
ROIback.width = 320;

Ipp8u *ippNeg;
ippNeg = new Ipp8u[18*36];
IppiSize ROIneg;
ROIneg.height = 36;
ROIneg.width = 18;

int ROIoffset;
ROIoffset = 150*320 + 160;

// ....
// Get image data for ippBack and ippNeg
// ....

status = ippiCopy_8u_C1R(ippNeg, ROIneg.width, ippBack+ROIoffset, ROIback.width, ROIneg);
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
115 Views
Please check IPP ROI concept article in IPP documentation.

Vladimir

Reply