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

How to use ippiBinToGray_1u8u_C1R?

sun_c_
Beginner
302 Views

Is there any example of  ippiBinToGray?I have difficult to understand this function.

For example, 

I have a 4x4 1 bit data,

Ipp8u a[2]; a[0]=204;a[1]=15;

1100

1100

0000

1111

Ipp8u b[16];

Ipp8u c[4];

ippiBinToGray_1u8u_C1R ( const Ipp8u* pSrc, int srcStep, int srcBitOffset, Ipp8u*  pDst, int dstStep, IppiSize roiSize, Ipp8u  loVal, Ipp8u  hiVal )

1. How to set srcStep srcBitOffset dstStep roiSize to get the 16 1bit data to b[16]?

2.How to set srcStep srcBitOffset dstStep roiSize to get the 4 underline 1bit data to c[4]?

Thanks for your help.

0 Kudos
1 Reply
sun_c_
Beginner
302 Views

I have understood this function. The step parameter is always in bytes for 1u data.

Thanks.

0 Kudos
Reply