- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
you should use IPPI_SMOOTH_EDGE together with other types, for example, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE.
Regards,
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