- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have understood this function. The step parameter is always in bytes for 1u data.
Thanks.

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