Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Avisos
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Feature request ippiConvert_16u8u_C1RSfs

BMart1
Nuevo Colaborador II
753 Vistas
0 kudos
4 Respuestas
Gennady_F_Intel
Moderador
753 Vistas

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

BMart1
Nuevo Colaborador II
753 Vistas

Thanks, done.

Igor_A_Intel
Empleados
753 Vistas

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
Nuevo Colaborador II
753 Vistas

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

Responder