- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
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);
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check IPP ROI concept article in IPP documentation.
Vladimir
Vladimir

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page