Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

bug in IPPI_SMOOTH_EDGE

micromysore1
Beginner
278 Views
ppl,
i am trying to use interpolation in rotate or shear,
all work but for IPPI_SMOOTH_EDGE

has anyone else found similar problem with that kind of interpolation ..


example code .. :
----------------------------------
#define WIDTH 10
#define HEIGHT
IppiSize roi = {WIDTH, HEIGHT);
IppiRect rect = {0, 0, WIDTH, HEIGHT};
Ipp8u *img, *res_img;

img = ippsMalloc_8u(WIDTH*HEIGHT);
res_img = ippsMalloc_8u(WIDTH*HEIGHT);

ippiImageRamp_8u_C1R(img, roi.width, roi, 5, 1, ippAxsBoth);
ippiRotateCenter_8u_C1R(img, roi, roi.width, rect, res_img, roi.width, rect, 5.0, roi.width/2, roi.height/2, IPPI_INTER_CUBIC);

replace IPPI_INTER_CUBIC with IPPI_SMOOTH_EDGE, phew !! doesnt work as expected ..



-micromysore

Message Edited by micromysore on 04-13-2005 01:51 PM

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
278 Views
Hi,
you should use IPPI_SMOOTH_EDGE together with other types, for example, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE.
Regards,
Vladimir
0 Kudos
Reply