<?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 De-interlacing issue using IPP in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814183#M4147</link>
    <description>So the answer to the question of how the fields are mapped in memory seems to be that the fields are interleaved with the first line/row being from the first field (even) and the second line/row from the second field (odd) and so on. The fields are stored as top-down although it probably makes no real difference for this algorithm if they were flipped as in bottom-up. &lt;BR /&gt;&lt;BR /&gt;Your sampled resolution of 820x566 seems uncommon to me - where does it stem from?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chao:&lt;BR /&gt;&lt;BR /&gt;I can only echo the sentiment that the deinterlacing functionality needs update of the documentation. This thread only highlights the issue. &lt;BR /&gt;&lt;BR /&gt;What is the "filter" applied for line 1? I assume that the same will apply to the last (odd) line being filtered?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
- Jay</description>
    <pubDate>Fri, 08 Oct 2010 08:44:20 GMT</pubDate>
    <dc:creator>j_miles</dc:creator>
    <dc:date>2010-10-08T08:44:20Z</dc:date>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814179#M4143</link>
      <description>Hello&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I need to deinterlace a PAL captured video content that is in the following form:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;1 (odd) line field 1&lt;/DIV&gt;&lt;DIV&gt;2 (even) line filed 2&lt;/DIV&gt;&lt;DIV&gt;3 (odd) line field 1&lt;/DIV&gt;&lt;DIV&gt;4 (even) line field 2&lt;/DIV&gt;&lt;DIV&gt;....&lt;/DIV&gt;&lt;DIV&gt;565 (odd) line field 1&lt;/DIV&gt;&lt;DIV&gt;566 (even) line field 2&lt;/DIV&gt;&lt;DIV&gt;---------- this is one video frame (820 width and 566 height)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and so on&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Which deinterlacing function do you recommend me to use for best video results?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tried to use "ippiDeinterlaceFilterCAVT_8u_C1R" but the syntax and documentation does not say exactly how the input image is represented in memory. Do I need to provide a pointer to a frame that is in the form describer above (odd and even lines are weaved) or shoud the input image be represented in memory in the form of first the odd lines and then the even lines. Also I do not understand what is the effect of the threshold parameter in the generation of the output image.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Tank you in advance.&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Sep 2010 10:27:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814179#M4143</guid>
      <dc:creator>bo1ka</dc:creator>
      <dc:date>2010-09-30T10:27:25Z</dc:date>
    </item>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814180#M4144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thereis an example to show usage of ippiDeinterlaceFilterCAVT_8u_C1R.&lt;/P&gt;&lt;P&gt;Download &lt;A href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples/"&gt;&lt;SPAN style="text-decoration: underline;"&gt;IPP sample code&lt;/SPAN&gt;&lt;/A&gt; and refer to folder : &lt;B&gt;-&lt;/B&gt;&lt;B&gt;\ipp-samples\audio-video-codecs\codec\color_space_converter&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2010 09:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814180#M4144</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2010-10-01T09:15:02Z</dc:date>
    </item>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814181#M4145</link>
      <description>Hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have already seen those examples, the thing is that they are not intuitive. I was hoping for o more simple and direct answer on this forum. I have used a lot of IPP functions in my code, which are welldocumentedand explained with examples directly in the documentation files (ippiman.pdf or ippsman.pdf) but for some unknown reason this is not valid for the deinterlacing functions.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ForippiDeinterlaceFilterCAVT_8u_C1R the documentation states that it performs deinterlacing on a two-filed image. But how are the two fileds maped in the memory, as this function takes a pSrc pointer to the sorce image without explaining the memory sequence for the two fields.&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Oct 2010 06:15:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814181#M4145</guid>
      <dc:creator>bo1ka</dc:creator>
      <dc:date>2010-10-04T06:15:09Z</dc:date>
    </item>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814182#M4146</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is the comment from the owner on the function: In ippiDeinterlaceFilterCAVT function, for the even line, it copys data from source to the destination, For odd line, it use the filter defined as bellow: &lt;/P&gt;&lt;P&gt;line 0: copy src to dst &lt;/P&gt;&lt;P&gt;line 1: filter...&lt;/P&gt;&lt;P&gt;line 2: copy src to dst&lt;/P&gt;&lt;P&gt;line 3: the line 3 value is computed by: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int edge2 = EDGE(s1&lt;I&gt;, s3&lt;I&gt;, s5&lt;I&gt;);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;int value = INTERP(s0&lt;I&gt;, s2&lt;I&gt;, s4&lt;I&gt;, s6&lt;I&gt;);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;if (ABS(edge2) &amp;lt; thresh) {&lt;/P&gt;&lt;P&gt;value = IPP_MIN(value, IPP_MAX(s2&lt;I&gt;, s4&lt;I&gt;));&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;value = IPP_MAX(value, IPP_MIN(s2&lt;I&gt;, s4&lt;I&gt;));&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;dst&lt;I&gt;= value;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;,where: &lt;/P&gt;&lt;P&gt;s0 is a pointer to the line 0 of src, S1 is line 1 of src, s2 line 2 of src, etc.&lt;/P&gt;&lt;P&gt;#define ABS(x) ((x) &amp;lt; 0 ? -(x) : (x))&lt;/P&gt;&lt;P&gt;#define EDGE(a, b, c) (int)(- 4*a + 8*b - 4*c);&lt;/P&gt;&lt;P&gt;#define INTERP(a, b, c, d) (int)((a + 7*b + 7*c + d + edge2 + 8) &amp;gt;&amp;gt; 4)&lt;/P&gt;&lt;P&gt;line 4: copy src to dst&lt;/P&gt;&lt;P&gt;line 5: filter like line 3.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao &lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 03:30:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814182#M4146</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-10-08T03:30:38Z</dc:date>
    </item>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814183#M4147</link>
      <description>So the answer to the question of how the fields are mapped in memory seems to be that the fields are interleaved with the first line/row being from the first field (even) and the second line/row from the second field (odd) and so on. The fields are stored as top-down although it probably makes no real difference for this algorithm if they were flipped as in bottom-up. &lt;BR /&gt;&lt;BR /&gt;Your sampled resolution of 820x566 seems uncommon to me - where does it stem from?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chao:&lt;BR /&gt;&lt;BR /&gt;I can only echo the sentiment that the deinterlacing functionality needs update of the documentation. This thread only highlights the issue. &lt;BR /&gt;&lt;BR /&gt;What is the "filter" applied for line 1? I assume that the same will apply to the last (odd) line being filtered?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
- Jay</description>
      <pubDate>Fri, 08 Oct 2010 08:44:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814183#M4147</guid>
      <dc:creator>j_miles</dc:creator>
      <dc:date>2010-10-08T08:44:20Z</dc:date>
    </item>
    <item>
      <title>De-interlacing issue using IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814184#M4148</link>
      <description>Thank you all for the clarifications. As a response to the previous post, the resulting resolution is related mainly to the sampling that I make and also on other preprocessing (filtering) that I do. In the mean time I have managed to have a working IPP deinterlacer,using the only function that has no knowledge on the field type (&lt;I&gt;ippiDeinterlaceFilterTriangle_8u_C1R()&lt;/I&gt;) for which I concluded that the fields were interleaved (after serveral hours of trial end error tests). My written deinterlacer (which performs intra-field directional interpolation) was much worse than the one I used from IPP.Do you think that the other deinterlacing functions would give much better results? And related to them, if the fields are interleaved as it is said in the previous post, then how come some of the IPP deinterlacing fuctions have a parameter called&lt;I&gt;fieldNum&lt;/I&gt;? I would redescribe my problem again.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;1. I have 820 samples / line.&lt;/DIV&gt;&lt;DIV&gt;2. I have 566 lines.&lt;/DIV&gt;&lt;DIV&gt;3. I identify the field type and pile up the lines in the following form:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;line 0: o o o o o o o . . . o o o (820 o's)&lt;/DIV&gt;&lt;DIV&gt;line 2: e e e e e e e . . . e e e (820 e's)&lt;/DIV&gt;&lt;DIV&gt;line 3: o o o o o o o . . . o o o (820 o's)&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;.&lt;/DIV&gt;&lt;DIV&gt;line 565: o o o o o o . . . o o o (820 o's)&lt;/DIV&gt;&lt;DIV&gt;line 566: e e e e e e . . . e e e (820 e's)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;where: "o" means "&lt;I&gt;odd&lt;/I&gt;" and "e" means "&lt;I&gt;even&lt;/I&gt;"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Applying "&lt;I&gt;ippiDeinterlaceFilterTriangle_8u_C1R&lt;/I&gt;"was simple:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;roiSize.width = 820;&lt;/DIV&gt;&lt;DIV&gt;roiSize.height = 566;&lt;/DIV&gt;&lt;DIV&gt;ippsZero_8u(pDst,roiSize.width *roiSize.height);&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;ippiDeinterlaceFilterTriangle_8u_C1R(pSrc,roiSize.width, pDst,roiSize.width, roiSize, 128,IPP_LOWER | &lt;SPAN style="white-space: pre;"&gt;						&lt;/SPAN&gt;  IPP_UPPER | IPP_CENTER);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;where pSrc was a pointer to the start od the interleaved imaged buffer andpDst was a pointer to a buffer of the same size as the input image buffer.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Now how can Iadapt to this scenario and apply "&lt;I&gt;ippiDeinterlaceMedianThreshold_8u_C1R&lt;/I&gt;"or "&lt;I&gt;ippiDeinterlaceMotionAdaptive_8u_C1&lt;/I&gt;"? (if these to give better results)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;And as a last remark, to optimize my code, do i need to reset the destination image buffer to zero all the time before I call the deinterlacing function.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Thank you all for your time. I appreciate it a lot.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:16:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/De-interlacing-issue-using-IPP/m-p/814184#M4148</guid>
      <dc:creator>bo1ka</dc:creator>
      <dc:date>2010-10-08T13:16:52Z</dc:date>
    </item>
  </channel>
</rss>

