- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I'd like to extend an image in order to filter it. IPP already have three functions that may do this (ippiConstCopyBorder, ReplicateBorder,WrapBorder). The problem is that, those function seem to not accept Ipp32f image but only (8u,16s,32) so how can I do to extend my Ipp32f image ?
Thank you for your help,
Jaonary
I'd like to extend an image in order to filter it. IPP already have three functions that may do this (ippiConstCopyBorder, ReplicateBorder,WrapBorder). The problem is that, those function seem to not accept Ipp32f image but only (8u,16s,32) so how can I do to extend my Ipp32f image ?
Thank you for your help,
Jaonary
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you use 32s functions as an workaround? They expect to be working for 32f image.
Regards,
Chao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Here is the code of what I'm trying to do :
Jaonary
Here is the code of what I'm trying to do :
Ipp32f* image0,*image1,*res;
int p_step0,p_step1;
int w0 = 10;
int w1 = 12;
int h0 = 10;
int h1 = 10;
image0 = ippiMalloc_32f_C1(w0,h0,&p_step0);
image1 = ippiMalloc_32f_C1(w1,h1,&p_step1);
for(int i=0;i=0.5;
IppiSize size0 = {w0,h0};
IppiSize size1 = {w1,h1};
IppStatus stat;
stat = ippiCopyConstBorder_32s_C1R(image0,p_step0,size0,
image1,p_step1,size1,
0,1,0);
With this code I get a compilation error. In fact, the function
ippiCopyConstBorder_32s_C1R
exptects an Ipp32s* as input. If I do a static cast like this :
ippiCopyConstBorder_32s_C1R( (Ipp32s*)image0,p_step0,size0,
(Ipp32s*)image1,p_step1,size1,
0,1,0);
The compilation goes well but the resul is wrong : the first row is correct but the others are not set correctly. So it seems that if we want to handle Ipp32f datas with 32s functions there's something more to do. But I just can't figure it out.
Jaonary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you probably meant h1 = 12 (instead of 10)?
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