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

how to convert 32bit image to 8bit image with ipp?

crazyazreal
Beginner
369 Views

how to convert 32bit image to 8bit image use ipp?

i can't found any function about this in ippcc.h,who can tell me can i do this with ipp?

thank you!

0 Kudos
4 Replies
Vladimir_Dudnik
Employee
369 Views

Hello,

ippcc.h file contains declarations of color convertion primitives. I'd recommend you to start from reading manual, especially when you work with such wide SDK as IPP.

Please take a look on special data type convertion functions from image processing domains, for example

IPPAPI ( IppStatus, ippiConvert_8u32s_C1R,
(const Ipp8u* pSrc, int srcStep, Ipp32s* pDst, int dstStep,
IppiSize roiSize ))
IPPAPI ( IppStatus, ippiConvert_32s8u_C1R,
( const Ipp32s* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
IppiSize roiSize ))

Regards,
Vladimir

0 Kudos
crazyazreal
Beginner
369 Views

oh!!thank you!in my ipp version this function is in ippi.h, thank you very much!!

0 Kudos
crazyazreal
Beginner
369 Views

hello,after convert the 32bit image to 8bit image use ippiConvert_32s8u_C1R(),where can i get the palette,i want to save the 8bit image to file.

thank you!

0 Kudos
Vladimir_Dudnik
Employee
369 Views

Hello,

IPP function only converts data type and does not append any image header to that.

You can construct unified gray palette easely in your code, right?

Regards,
Vladimir

0 Kudos
Reply