Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
6656 Discussions

how to replace zero values in an image with another arbitrary value

Kadir_Kirtac
Beginner
144 Views
Hello, I want to replace zero values in a 32f image with another floating point value. I tried to combineippiCompareC with ippiThreshold function but couldn't succeed. Is there any simple solution for this purpose?
0 Kudos
2 Replies
Ying_H_Intel
Employee
144 Views
Hi Kadir,

Could you clarify theexact problem when combine the ippiCompareC and ippiThreshold.

It was expected the functions like ippiThreshold_Val can set the pixel which meet some condition ( value=0.0f)to other floating point value.

IppStatus ippiThreshold_Val_(const Ipp* pSrc, int srcStep,
Ipp* pDst, int dstStep, IppiSize roiSize, Ipp threshold,
Ipp value, IppCmpOp ippCmpOp);

but could bebecause that zero values in floating point value is hard to defined?

Regards,
YingH.


Kadir_Kirtac
Beginner
144 Views
Sorry I have completely missed outippiThreshold_Val. I was just trying to use Threshold_LTVal, Threshold_GTValetc..

That will exactly solve the problem.
Best regards.
Reply