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

Feature request ippiConvert_16u8u_C1RSfs

BMart1
New Contributor II
371 Views
0 Kudos
4 Replies
Gennady_F_Intel
Moderator
371 Views

could you submit this feature request to the intel online service center

0 Kudos
BMart1
New Contributor II
371 Views

Thanks, done.

0 Kudos
Igor_A_Intel
Employee
371 Views

Hi Bruno,

you can use a workaround which is more flexible:

IPPAPI(IppStatus, ippiScaleC_16u8u_C1R , ( const Ipp16u* pSrc, int srcStep, Ipp64f mVal, Ipp64f aVal, Ipp8u*  pDst, int dstStep, IppiSize roiSize, IppHintAlgorithm hint ))
This function scales pixel values of the source image ROI and converts them to the destination data type according to the following formula:

dst = saturate_to_dstType(src * mVal + aVal) 

regards, Igor

0 Kudos
BMart1
New Contributor II
371 Views

Hi Igor,

Thanks for the suggestion. ippiScaleC_16u8u_C1R does work. The results are not exactly the same because it uses floats, which probably also makes it slower. I ended up writing the functions with intrinsics.

Bruno

0 Kudos
Reply