- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.
This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.
This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.
This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.
If the signed data includes negative values, centered at zero, then the question arises whether you want to convert the signed range of -2**15 to 2**15 - 1 to the unsigned range of 0 to 2**16 - 1. In that case, you want to add 0x80000000 to the signed value to produce the unsigned value. That would retain the full range of magnitude.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page