<?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 Re: ippiRGBToGray_8u_C3C1R in Delphi in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868367#M8562</link>
    <description>Great!! Thank you very much for your help! Yes, this is the exact solution which I was looking for. It works very good. Thanks again cultzero!</description>
    <pubDate>Wed, 25 Apr 2007 09:44:09 GMT</pubDate>
    <dc:creator>hadipardis</dc:creator>
    <dc:date>2007-04-25T09:44:09Z</dc:date>
    <item>
      <title>ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868362#M8557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to convert a color image inside a standard TImage to a gray scale image. To do so, I wrote the following code in Delphi:&lt;/P&gt;
&lt;P&gt;var&lt;BR /&gt;pSrc,PDst: PIpp8u;&lt;BR /&gt;DIB,FDIB,P: PIpp8u;&lt;BR /&gt;ScanLine:integer;&lt;BR /&gt;RoiSize:IppiSize;&lt;BR /&gt;begin&lt;BR /&gt;image1.Picture.LoadFromFile('test.bmp');&lt;BR /&gt;image1.Picture.Bitmap.PixelFormat:=pf24bit;&lt;/P&gt;&lt;PRE&gt;DIB := Image1.Picture.Bitmap.ScanLine[Image1.Picture.Bitmap.Height-1];&lt;BR /&gt;pSrc:=DIB;&lt;/PRE&gt;&lt;PRE&gt;FDIB := PIpp8u(Image1.Picture.Bitmap.ScanLine[Image1.Picture.Height-1]);&lt;BR /&gt;P := PIpp8u(Image1.Picture.Bitmap.ScanLine[Image1.Picture.Height-2]);&lt;BR /&gt;ScanLine := Integer(P) - Integer(FDIB);&lt;/PRE&gt;&lt;PRE&gt;RoiSize.width := Image1.Picture.Bitmap.Width;&lt;BR /&gt;RoiSize.height := Image1.Picture.Bitmap.Height;&lt;/PRE&gt;&lt;PRE&gt;PDst:=pSrc;&lt;/PRE&gt;&lt;PRE&gt;ippiRGBToGray_8u_C3C1R(pSrc,ScanLine,PDst,scanLine,RoiSize);&lt;/PRE&gt;&lt;PRE&gt;Image1.Refresh;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;end;&lt;/PRE&gt;&lt;PRE&gt;But it doesnt' work correctly. Could you please tell me the wrong? Thanks , &lt;A href="mailto:hadi.hadizadeh@gmail.com"&gt;hadi.hadizadeh@gmail.com&lt;/A&gt; &lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Apr 2007 11:52:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868362#M8557</guid>
      <dc:creator>hadipardis</dc:creator>
      <dc:date>2007-04-18T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868363#M8558</link>
      <description>&lt;P&gt;I think my problem relates to the second scanline (for pDst) and also the pixel format of the output image in the following code:&lt;/P&gt;
&lt;P&gt;ippiRGBToGray_8u_C3C1R(pSrc,ScanLine,PDst,scanLine,RoiSize);&lt;/P&gt;&lt;PRE&gt;In other words, How can I display the resulted gray image? Thx&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Apr 2007 11:21:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868363#M8558</guid>
      <dc:creator>hadipardis</dc:creator>
      <dc:date>2007-04-19T11:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868364#M8559</link>
      <description>&lt;P&gt;Please take a look on IPP Delphi sample, which demostrate the basic for work with IPP on images under Delphi environment&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2007 16:08:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868364#M8559</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-04-19T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868365#M8560</link>
      <description>Thank you for your reply. But I wrote the above code based on that Delphi sample. Unfortuately, I couldn't solve the problem. In fact, my question is that having a color image (3 channels) and by using ippiRGBToGray_8u_C3C1R the output image will have only one channel. Now, how can I display this output image by using a standard TImage componet directly without using any additional code (like canvas operations)? Do you have any idea to do so?</description>
      <pubDate>Mon, 23 Apr 2007 07:53:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868365#M8560</guid>
      <dc:creator>hadipardis</dc:creator>
      <dc:date>2007-04-23T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868366#M8561</link>
      <description>Hi,&lt;STRONG&gt;hadipardis. I think you should use ippiDup_8u_C1C3R function. Before that you must allocate 1-chanell 8u image using ippiMalloc. Then in the &lt;/STRONG&gt;ippiRGBToGray_8u_C3C1R you must put allocated 1-chanell 8u image as destination. And after That do &lt;BR /&gt;&lt;STRONG&gt;ippiDup_8u_C1C3R putting your Delphi's Tbitmap scanline as destination image. Allocated image works as temporary buffer. It will work. I've faced this problem. Hope it will help you a little.&lt;/STRONG&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Apr 2007 17:28:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868366#M8561</guid>
      <dc:creator>cultzero</dc:creator>
      <dc:date>2007-04-24T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: ippiRGBToGray_8u_C3C1R in Delphi</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868367#M8562</link>
      <description>Great!! Thank you very much for your help! Yes, this is the exact solution which I was looking for. It works very good. Thanks again cultzero!</description>
      <pubDate>Wed, 25 Apr 2007 09:44:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiRGBToGray-8u-C3C1R-in-Delphi/m-p/868367#M8562</guid>
      <dc:creator>hadipardis</dc:creator>
      <dc:date>2007-04-25T09:44:09Z</dc:date>
    </item>
  </channel>
</rss>

