Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

Feature request ippiConvert_16u8u_C1RSfs

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

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

BMart1
New Contributor II
184 Views

Thanks, done.

Igor_A_Intel
Employee
184 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

BMart1
New Contributor II
184 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

Reply