<?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 need help for sepia in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837878#M6103</link>
    <description>With the IPP you may do the following&lt;BR /&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;P class="sectionBody"&gt; // Convert RGB to gray&lt;BR /&gt; IppiSize roi;&lt;BR /&gt; roi.width = uiWidth;&lt;BR /&gt; roi.height = uiHeight;&lt;BR /&gt; status = ippiRGBToGray_8u_C3C1R((const Ipp8u*)uiInputImage, uiWidth*3, (Ipp8u*)pGrayImage, stepBytes, roi);&lt;/P&gt;&lt;P class="sectionBody"&gt; // Copy gray channels to color image&lt;BR /&gt; status = ippiDup_8u_C1C3R((const Ipp8u*)pGrayImage, stepBytes, (Ipp8u*)uiOutputImage, uiWidth*3, roi);&lt;/P&gt;&lt;P class="sectionBody"&gt; //Shift colors&lt;BR /&gt; const Ipp8u movColor[3] = { 162, 138, 101 };&lt;BR /&gt; status = ippiAddC_8u_C3IRSfs(movColor, (Ipp8u*)uiOutputImage, uiWidth*3, roi, 1);&lt;/P&gt;Actually, sepia is&lt;BR /&gt;&lt;BR /&gt;// Shift colors&lt;BR /&gt; unsigned int newR, newG, newB;&lt;BR /&gt;newR = (unsigned int)(R * 0.393 + G * 0.769 + B * 0.189); if (newR &amp;gt; 255) newR = 255;&lt;BR /&gt;newG = (unsigned int)(R * 0.349 + G * 0.686 + B * 0.168); if (newG &amp;gt; 255) newG = 255;&lt;BR /&gt;newB = (unsigned int)(R * 0.272 + G * 0.534 + B * 0.131); if (newB &amp;gt; 255) newB = 255;&lt;BR /&gt;&lt;/SPAN&gt;</description>
    <pubDate>Tue, 17 Aug 2010 07:55:05 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2010-08-17T07:55:05Z</dc:date>
    <item>
      <title>need help for sepia</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837876#M6101</link>
      <description>Hi everyone!&lt;DIV&gt;I don't know how to make sepia on a picture with opencv.I can't find any clue to make this.Could you help me?&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Aug 2010 09:18:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837876#M6101</guid>
      <dc:creator>tarifut</dc:creator>
      <dc:date>2010-08-16T09:18:59Z</dc:date>
    </item>
    <item>
      <title>need help for sepia</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837877#M6102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sepia on a picture is basically color conversion, Intel IPP has got several APIs for this type of operation, like Color models conversion, Gamma correction, Color twist, Color keying etc. I am sure you can use IPP for sepia on an image.&lt;/P&gt;&lt;P&gt;Sorry, I dont know how to do it using OpenCV, also this forum is intended for Intel IPP discussion, feel free to share your experience on using IPP for sepia.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 04:48:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837877#M6102</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2010-08-17T04:48:57Z</dc:date>
    </item>
    <item>
      <title>need help for sepia</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837878#M6103</link>
      <description>With the IPP you may do the following&lt;BR /&gt;&lt;SPAN style="font-size: x-small;"&gt;&lt;P class="sectionBody"&gt; // Convert RGB to gray&lt;BR /&gt; IppiSize roi;&lt;BR /&gt; roi.width = uiWidth;&lt;BR /&gt; roi.height = uiHeight;&lt;BR /&gt; status = ippiRGBToGray_8u_C3C1R((const Ipp8u*)uiInputImage, uiWidth*3, (Ipp8u*)pGrayImage, stepBytes, roi);&lt;/P&gt;&lt;P class="sectionBody"&gt; // Copy gray channels to color image&lt;BR /&gt; status = ippiDup_8u_C1C3R((const Ipp8u*)pGrayImage, stepBytes, (Ipp8u*)uiOutputImage, uiWidth*3, roi);&lt;/P&gt;&lt;P class="sectionBody"&gt; //Shift colors&lt;BR /&gt; const Ipp8u movColor[3] = { 162, 138, 101 };&lt;BR /&gt; status = ippiAddC_8u_C3IRSfs(movColor, (Ipp8u*)uiOutputImage, uiWidth*3, roi, 1);&lt;/P&gt;Actually, sepia is&lt;BR /&gt;&lt;BR /&gt;// Shift colors&lt;BR /&gt; unsigned int newR, newG, newB;&lt;BR /&gt;newR = (unsigned int)(R * 0.393 + G * 0.769 + B * 0.189); if (newR &amp;gt; 255) newR = 255;&lt;BR /&gt;newG = (unsigned int)(R * 0.349 + G * 0.686 + B * 0.168); if (newG &amp;gt; 255) newG = 255;&lt;BR /&gt;newB = (unsigned int)(R * 0.272 + G * 0.534 + B * 0.131); if (newB &amp;gt; 255) newB = 255;&lt;BR /&gt;&lt;/SPAN&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:55:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837878#M6103</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2010-08-17T07:55:05Z</dc:date>
    </item>
    <item>
      <title>need help for sepia</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837879#M6104</link>
      <description>Note, we also provide an example of sepia transform within Deferred Mode Image Processing (DMIP) sample.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Tue, 17 Aug 2010 11:28:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/need-help-for-sepia/m-p/837879#M6104</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2010-08-17T11:28:14Z</dc:date>
    </item>
  </channel>
</rss>

