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

Addition with overflow?

Deleted_U_Intel
Employee
297 Views
Hi all -

I'm writing a function that allows the user to shift the hue of an image. I convert the image into an HSV format, then use the AddC function. However, because the function automatically saturates pixel values in the case of overflow, the hue shift does not work correctly. Ideally, I need a function that does not saturate the pixel values, but wraps around in the case of addition overflow.

Is there some function that will not saturate overflow values? Or is there some other method to achieve the same result? I apologize if this is an elementary question.

Thanks,

Mike
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
297 Views
Hi Mike,
we do not have functions whichdo wrap around instead of saturation
Regards,
Vladimir
0 Kudos
Reply