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

IPP 2022.0 - exception in ippiCrossCorrNorm_8u32f_C1R

JH_MS
Beginner
1,134 Views

Hi,

I'm using the IPP as DLLs in my Delphi application.
Version 2020.0.0 could be integrated years ago without any issue.

Trying to update to 2022.0.0 now throws in some cases (not all  - even with identic dimensions and stepsizes for image & template) an exception of class $C0000090 / Float_Invalid_Operation. This cannot be catched by the application itself and results in abborting the entrire application. I'd expect an error code to be returned instead of the raised exception.

System: Core i7-12700, OS: Win 11 Build 22631

vars used:
Img : PIpp8u;
ImgSize : IppiSize;
ImgStep : Integer;
Template : PIpp8u;
TemplateSize : IppiSize;
TemplateStep : Integer;
TemplateFOVNo : Integer;
Stat : Integer;
CCResult : PIpp32f;
CCSize : IppiSize;
TmpInt : Integer;


input values

ImgSize.Width := 1280;
ImgSize.Height:= 184;
ImgStep := 1280
TemplateSize.Width := 1214;
TemplateSize.Height:= 122;
TemplateStep := 1280;
CCSize.Width := ImgSize.Width - TemplateSize.Width + 1; //=67
CCSize.Height := ImgSize.Height - TemplateSize.Height + 1; //=63
Img, Template : not nil, valid, allocated by ippiMalloc_8u_C1
ippiROIValid := $00010000
ippiNormCoefficient := $00000200

code sequence:

Alg := Integer (ippiROIValid) or Integer (ippiNormCoefficient);

ippiCrossCorrNormGetBufferSize (ImgSize, TemplateSize, Alg, @CorrBufSize);
//--> CorrBufSize=4718528

CCResult := ippiMalloc_32f_C1 (CCSize.Width, CCSize.Height, @TmpInt);
CorrBuffer := ippMalloc (CorrBufSize)

Stat := ippiCrossCorrNorm_8u32f_C1R (Img, ImgStep, ImgSize, Template, TemplateStep, TemplateSize, CCResult, 4 * CCSize.Width, Alg, CorrBuffer);
//throws exception instead of returing error code.

0 Kudos
4 Replies
Aleksandra_K
Moderator
965 Views

Hi,

could you provide c/c++ code sample reproducing the issue?


Thanks,

Aleksandra


0 Kudos
Aleksandra_K
Moderator
915 Views

I tried to run the provided code sequence, but didn't get that exception. Some code example from you would enable me to check if there is an IPP issue. 


By the way, I noticed a few typos: .Width, .Height (instead of .width, .height), PIpp8u (instead of Ipp8u).  


Regards,

Aleksandra


0 Kudos
Aleksandra_K
Moderator
870 Views

Hi, do you have any updates regarding a reproducer? 


0 Kudos
Aleksandra_K
Moderator
787 Views

With no response from you, this issue will no longer be tracked by Intel. If you have further queries, please feel free to post them in the forum.


0 Kudos
Reply