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

BUG at ippsDemo.exe - threshold func with 'Value' not demo work properly

Aleksandr_Murashko
259 Views
Hello!
Sorry, my english poor.
I hope, that I found BUG at ippsDemo programm. This error related for all Threshold function, that use Value argument, like Threshold_LTVal_16s.
This error occur because of Line 53 of file RunThresh.cpp has error string
m_bValue = func.Found("Value");
Variable 'm_bValue' is TRUE if ipp function name has 'Value' argument. But function name include 'Val' substring, don't 'Value'. So, Line 53 must be:
m_bValue = func.Found("Val");
Now, demonstration work properly.
Pictures 1, 2 demontration Threshol_LTVal_16s for arguments: level=-5, value=-20. Picture 1 - wrong demo, picture 2 - result of fix code demo.
Thank you.

Picture 1:
41526-first.png

Picture 2:
41527-second.png
0 Kudos
2 Replies
SergeyKostrov
Valued Contributor II
259 Views
This is how it looks like:

...

BOOL CRunThresh::Open(CFunc func)
{
if (!CippsRun::Open(func)) return FALSE;

m_bValue = func.Found("Value");

int type = func.SrcType();
value.Init((ppType)type);
type &= ~PP_CPLX;
level.Init((ppType)type);
return TRUE;
}
...

0 Kudos
Andrey_B_Intel
Employee
259 Views
Hi.
The problem was reproduced and fixed in IPP 7.0.6
0 Kudos
Reply