Addition with overflow?

Addition with overflow?

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Mike,

we do not have functions whichdo wrap around instead of saturation

Regards,
Vladimir

Leave a Comment

Please sign in to add a comment. Not a member? Join today