- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I'm trying to use IPP with C# and I don't know how to do it right way. I'm trying to calculate integral image.
Below is my code.
[DllImport("ippcvv8-5.3.dll")]
public static extern IppStatus ippiIntegral_8u32s_C1R(byte* tab, int step, byte* tab2, int dstep,IppiSize roiSize, int val);
pSrc = new byte[20] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
pDst = new byte[30];
int step = 5;
roi = new IppiSize(5, 4);
fixed(byte* pSrc2=pSrc, pDst2 = pDst)
{
IppStatus st = ippiIntegral_8u32s_C1R(pSrc2, 5, pDst2, 24, roi, 1);
}
IppStatus shows no errors, but pDst looks like this:
(1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 2, 0)
Can you tell, what am I doing wrong ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Albert
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(...)
Regards,
Albert
Thank You very much.
Regards,
Tomek

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