- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have 2 images representing the same scene (that is rendered with different resolution) andI want to display them one after another (low resolution then high resolution). I use ippiResizeCenter() with an appropriate scaling factor (such that imagewill fill the viewport).
When I pass (width-1)/2.0 and (height-1)/2.0 as xCenter and yCenter (where width and height are the size of each image), I get a small shift between the two images. My question is what xCenter and yCenter should I providein this scenario, i.e. if I want the center of the source image to stay at the center of the destination image?
Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mark,
that's correct. In IPP image coordinates are starts from top-left corner of image, see IPPI Manual, p2-22, 23 - Regions of Interest in Intel IPP
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vladimir,
I also used ippiResizeSqrPixel and compared the results with ippiResizeCenter. After I provide the correct center parameter,ippiResizeCenter causes a small scaling change between the both images, while ippiResizeSqrPixel works perfect.
Another question is what is the difference between the two algorithms? What is the performance difference?
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vladimir,
Yet another question is what the difference between ippiResizeGetBufSize and ippiResizeSqrPixelGetBufSize, and why ippiResizeSqrPixelGetBufSize doesn't support IPPI_INTER_SUPER ?
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nikolay,
Still it is interesting why is theresome scaling change when I use ippiResizeCenter?
Regards,
Mark
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page