Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KimT
Beginner
346 Views

Get exception from ippiFilterGaussianBorder_8u_C1R function

hi,

when I used GaussianBorder function always get exception thrown at some image size.

image : 594x4082(h*w)

kernelSize:3

maxRoiSize:594x4082

compile_mode:debug_X64

IPP version:2020.2.254

exception information:

Exception thrown at 0x00007FF6B64765A0 in xxx.exe: 0xC0000005: Access violation reading location 0x000001CFAE3B6000.

 

0 Kudos
4 Replies
Gennady_F_Intel
Moderator
341 Views

Could you give us the example of the code which we could compile and execute on our end with the latest version of IPP?

 

KimT
Beginner
335 Views

I used IPP lib, as you can refer to the pseudo code below:

----------------------------------

unsigned char* src_head = 0, *dst_head = 0;
int flag,bufSize = 0,specSize = 0;
IppiSize IPPRoiSize = { 0, 0 };
unsigned int kernelSize = 3;
unsigned char* buffer = 0;
IppFilterGaussianSpec* pSpec = NULL;

IPPRoiSize.width = 4082;

IPPRoiSize.height = 594;

flag = ippiFilterGaussianGetBufferSize(IPPRoiSize, kernelSize, ipp8u, 1, &specSize, &bufSize);
pSpec = (IppFilterGaussianSpec*)malloc(specSize);
buffer = malloc(bufSize);

flag = ippiFilterGaussianInit(IPPRoiSize, kernelSize, 3.0f, ippBorderMirror, ipp8u, 1, pSpec, buffer);

src_head = head of src image;
dst_head = head of dst image;

flag = ippiFilterGaussianBorder_8u_C1R(src_head, 4082, dst_head, 4082, IPPRoiSize, 0, pSpec, buffer);

Gennady_F_Intel
Moderator
320 Views

I see no problem on my end.

AVX2 bases system. static linking, sequential.

here is the output:

>_stat_single.exe
========================================================================
version of IPP is: ippIP AVX2 (l9) 2020.0.2 (r0xbb6c2c1d) 2020.0.2.-1150538723
========================================================================
...ippiFilterGaussianGetBufferSize / status = ippStsNoErr: No errors
...ippiFilterGaussianInit / status = ippStsNoErr: No errors
#1...ippiSet_8u_C1R SRC... / status = ippStsNoErr: No errors
#2...ippiSet_8u_C1R DST... / status = ippStsNoErr: No errors
...ippiFilterGaussianBorder_8u_C1R / status = ippStsNoErr: No errors

Gennady_F_Intel
Moderator
288 Views

The issue is closing and we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Reply