ippResize(..) used to zoom into an image. Not good enough though.

ippResize(..) used to zoom into an image. Not good enough though.

Hi guys,

I have an image. I want to slowly zoom into that image.

I have used ippiResize(...) to slowly enlarge the image while keeping the dstROIsize constant thus giving the impression of zooming into the image. There is one problem though.

When I'm zooming in, the anchor point is at (0,0) which is the top left of the image.

So everytime i zoom in, it feels like a diagonal zoom towards point (0,0).

what I want is to zoom the image towards the center of the image.

Is there a way to do that? tnx.

Below is my ipp code:

status = ippiResize_8u_C4R((Ipp8u*)in,
inStride * 4,
outStride * 4,
1.0f / ( m_fBGSize + m_fZoomBG ),
1.0f / ( m_fBGSize + m_fZoomBG ),

in = input buffer
sizeInput = { width, height } of image
rectInput = { 0, 0, width, height }
out = output buffer
m_fBGSize = 0.8
m_fZoomBG starts at 0 and slowly increases to -0.3

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi again guys,

I'm feeling rather stupid rite now.

There is an ippiResize(..) function. And if I had scrolled down one page more, I would have seen that there is another function called ippiResizeCenter, which does exactly what I want.

So my problem is solved. :)

Good, thanks for updating. How do you find performance of ippiResize function? What is your target OS and HW arch?


Hi Vladimir,

Our target pcs are intel P3 with winXP.

I personally have a pentium D at 3Ghz and 1G Ram. The performance is excellent. :)

Thank you, you will be also impressed with performance of our new micro-architecture, Intel Core 2 Duo or Core 2 Quad, that's definetely makes difference.


Leave a Comment

Please sign in to add a comment. Not a member? Join today