<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ippiHistogramRange in VB code in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938802#M17474</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Did anybody use ippiHistogramRange_8u_C3R() functions in VB code with VB ipp wrapper?&lt;BR /&gt;I have a VB wrapper on IPP but I have a problem with correct creating of pointer to set of pointers in VB in histogramRange function&lt;BR /&gt;&lt;BR /&gt;I have hisdtogram values only in first channel, not in next 2 channels ... no error code as return value...&lt;BR /&gt;&lt;BR /&gt;My code looks like:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Dim destSize As IppiSize = New IppiSize(bmp.Width, bmp.Height)&lt;BR /&gt;&lt;BR /&gt;Dim levels((3 * 256)-1) As Int32&lt;BR /&gt;Dim plevels As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(levels, 0)&lt;BR /&gt;&lt;BR /&gt;Dim hist((3 * 256)-1) As Int32&lt;BR /&gt;Dim phist As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(hist, 0)&lt;BR /&gt;&lt;BR /&gt;Dim nLevels(2) As Int32&lt;BR /&gt;Dim pnLevels As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(nLevels, 0)&lt;BR /&gt;&lt;BR /&gt;'Creating levels values ...&lt;BR /&gt;For j = 0 To 2&lt;BR /&gt;Dim diff As Integer = 256&lt;BR /&gt;nLevels(j) = 256&lt;BR /&gt;For i = 0 To 256 - 1&lt;BR /&gt;levels(j * (256) + i) = i&lt;BR /&gt;Next i&lt;BR /&gt;Next j&lt;BR /&gt;&lt;BR /&gt;'Call histogram ipp method&lt;BR /&gt;Ippi.ippiHistogramRange_8u_C3R&lt;BR /&gt;(pSrc, srcdata.Stride, destSize, phist, plevels, pnLevels)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;after this I have in hist array only values from 0-255 ..&lt;BR /&gt;I tried it with (2, 255) array too but same result ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I tried this pointers too but without any correct result (inspered by thread "IPP with C# : RGB Image histogram : HELP!" )&lt;BR /&gt;Dim L(2) As IntPtr&lt;BR /&gt;L(0) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 0)&lt;BR /&gt;L(1) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 256)&lt;BR /&gt;L(2) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 256 * 2)&lt;BR /&gt;Dim pL As IntPtr = Marshal.UnsafeAddrOfPinnedArrayElement(L, 0)&lt;BR /&gt;&lt;BR /&gt;Dim Hi(2) As IntPtr&lt;BR /&gt;Hi(0) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 0)&lt;BR /&gt;Hi(1) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 256)&lt;BR /&gt;Hi(2) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 256 * 2)&lt;BR /&gt;Dim pHi As IntPtr = Marshal.UnsafeAddrOfPinnedArrayElement(Hi, 0)&lt;BR /&gt;&lt;BR /&gt;Ippi.ippiHistogramRange_8u_C3R&lt;BR /&gt;(pSrc, srcdata.Stride, destSize, pHi, pL, pnLevels)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;If any body have an idea if it is problem VB or my falut, it will be great.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Now it looks like taht I'M starting to rewrite it to c#&lt;BR /&gt;&lt;BR /&gt;Marek&lt;P&gt;Message Edited by zimanyi on &lt;SPAN class="date_text"&gt;03-26-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;05:49 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2006 21:43:02 GMT</pubDate>
    <dc:creator>zimanyi</dc:creator>
    <dc:date>2006-03-26T21:43:02Z</dc:date>
    <item>
      <title>ippiHistogramRange in VB code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938802#M17474</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Did anybody use ippiHistogramRange_8u_C3R() functions in VB code with VB ipp wrapper?&lt;BR /&gt;I have a VB wrapper on IPP but I have a problem with correct creating of pointer to set of pointers in VB in histogramRange function&lt;BR /&gt;&lt;BR /&gt;I have hisdtogram values only in first channel, not in next 2 channels ... no error code as return value...&lt;BR /&gt;&lt;BR /&gt;My code looks like:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Dim destSize As IppiSize = New IppiSize(bmp.Width, bmp.Height)&lt;BR /&gt;&lt;BR /&gt;Dim levels((3 * 256)-1) As Int32&lt;BR /&gt;Dim plevels As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(levels, 0)&lt;BR /&gt;&lt;BR /&gt;Dim hist((3 * 256)-1) As Int32&lt;BR /&gt;Dim phist As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(hist, 0)&lt;BR /&gt;&lt;BR /&gt;Dim nLevels(2) As Int32&lt;BR /&gt;Dim pnLevels As IntPtr =&lt;BR /&gt;Marshal.UnsafeAddrOfPinnedArrayElement(nLevels, 0)&lt;BR /&gt;&lt;BR /&gt;'Creating levels values ...&lt;BR /&gt;For j = 0 To 2&lt;BR /&gt;Dim diff As Integer = 256&lt;BR /&gt;nLevels(j) = 256&lt;BR /&gt;For i = 0 To 256 - 1&lt;BR /&gt;levels(j * (256) + i) = i&lt;BR /&gt;Next i&lt;BR /&gt;Next j&lt;BR /&gt;&lt;BR /&gt;'Call histogram ipp method&lt;BR /&gt;Ippi.ippiHistogramRange_8u_C3R&lt;BR /&gt;(pSrc, srcdata.Stride, destSize, phist, plevels, pnLevels)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;after this I have in hist array only values from 0-255 ..&lt;BR /&gt;I tried it with (2, 255) array too but same result ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I tried this pointers too but without any correct result (inspered by thread "IPP with C# : RGB Image histogram : HELP!" )&lt;BR /&gt;Dim L(2) As IntPtr&lt;BR /&gt;L(0) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 0)&lt;BR /&gt;L(1) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 256)&lt;BR /&gt;L(2) = Marshal.UnsafeAddrOfPinnedArrayElement(levels, 256 * 2)&lt;BR /&gt;Dim pL As IntPtr = Marshal.UnsafeAddrOfPinnedArrayElement(L, 0)&lt;BR /&gt;&lt;BR /&gt;Dim Hi(2) As IntPtr&lt;BR /&gt;Hi(0) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 0)&lt;BR /&gt;Hi(1) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 256)&lt;BR /&gt;Hi(2) = Marshal.UnsafeAddrOfPinnedArrayElement(hist, 256 * 2)&lt;BR /&gt;Dim pHi As IntPtr = Marshal.UnsafeAddrOfPinnedArrayElement(Hi, 0)&lt;BR /&gt;&lt;BR /&gt;Ippi.ippiHistogramRange_8u_C3R&lt;BR /&gt;(pSrc, srcdata.Stride, destSize, pHi, pL, pnLevels)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;If any body have an idea if it is problem VB or my falut, it will be great.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Now it looks like taht I'M starting to rewrite it to c#&lt;BR /&gt;&lt;BR /&gt;Marek&lt;P&gt;Message Edited by zimanyi on &lt;SPAN class="date_text"&gt;03-26-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;05:49 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2006 21:43:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938802#M17474</guid>
      <dc:creator>zimanyi</dc:creator>
      <dc:date>2006-03-26T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: ippiHistogramRange in VB code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938803#M17475</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Marek,&lt;/P&gt;
&lt;P&gt;thanks for informing us about that issue, we will fix it in the next release, IPP v5.1, which is coming soon.&lt;/P&gt;
&lt;P&gt;For your reference, I've attached corrected version of file in this post.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2006 03:35:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938803#M17475</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-04-03T03:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: ippiHistogramRange in VB code</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938804#M17476</link>
      <description>Excelent, Thanks Vladimir for replay.&lt;BR /&gt;Best regards&lt;BR /&gt;Marek</description>
      <pubDate>Wed, 05 Apr 2006 14:56:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiHistogramRange-in-VB-code/m-p/938804#M17476</guid>
      <dc:creator>zimanyi</dc:creator>
      <dc:date>2006-04-05T14:56:00Z</dc:date>
    </item>
  </channel>
</rss>

