- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have an image given in 12 bit packed format (16 bit gray values but only 12 bits in use). Now I need to unpack it to 16 bit (padded with 4 zero bits). Is there any ipp function that does this job?
Best regards
Steffen
- Tags:
- Development Tools
- General Support
- Intel® Integrated Performance Primitives
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steffen,
We support Scale functionalities to convert 8u to 16u, 16s, 32s, 32f, 64f and vice versa. Please raise your new function request for 12bit to 16bit through our online service center at: https://supporttickets.intel.com/?lang=en-US
Best Regards,
Ruqiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IPP has ippiLShiftC, if that's useful. Apple vImage has vImageConvert_12UTo16U
Regards,
Adriaan van Os
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IPP will support Unpack 12 bit image into 16 bit in the future release.
Thanks,
Ruqiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ruqiu, do you know what version this will be in? Or perhaps the function signature? I am very interested in this feature so more information would be especially useful. I am trying to quickly translate image data represented like this:
"Each two pixels are ‘packed; into 3 data bytes as follows: the first data byte will contain the 8 most significant bits of the first pixel, while the 4 least significant bits of the second data byte, will contain the 4 least significant bits of the first pixel. The most significant 4 bits of the second data byte will contain the least significant 4 bits of the second pixel, while the third data byte will contain the most significant 8 bits of the second pixel."
into a "normal" 16 bit image where each 2 bytes represents one pixel value.
a normal cpp for-loop is too slow and i'm trying to avoid in-lining assembly code.
On your release notes page, i see the following:
2020
System Requirements Bug Fix Log Installation Guide
Update 3
What's New in Intel® IPP 2020 Update 3
- Extended optimization for Intel® IPP CRC functions on 10th Generation Intel® Core™ processor family.
- Improved performance for Intel® IPP Cryptography RSA single-buffer functions on 10th Generation Intel® Core™ processor family.
- Added conversion of 12 bit images to 16 bits and vice versa.
Is this what you're referring to? if so, what is the method signature? i cannot seem to find anything in the documentation.
Thanks!
-Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
It is about new functions in ippcc.h:
IPPAPI(IppStatus, ippiUnpack_12u16u_C1R,(Ipp8u* pSrc, int srcStep, Ipp16u* pDst, int dstStep, IppiSize roiSize))
IPPAPI(IppStatus, ippiPack_16u12u_C1R, (Ipp16u* pSrc, int srcStep, Ipp8u* pDst, int dstStep, IppiSize roiSize))
Andrey
IPP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Audrey,
Thanks for your reply, but i do not see this function signatures in any of the IPP documentation online. Where is the documentation for these methods? Are they included in v2020 Update 3?
Thanks,
-Brian
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page