Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
3 Views

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

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
Highlighted
Valued Contributor II
3 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
Highlighted
Employee
3 Views

Hi.
The problem was reproduced and fixed in IPP 7.0.6
0 Kudos