<?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 linear and nearest neighbor interpolation  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/linear-and-nearest-neighbor-interpolation/m-p/1020501#M23518</link>
    <description>&lt;P&gt;function output = calculateBlackLevel(blStruct, AG, ET)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; blLut = zeros(length(blStruct), size(blStruct{1}.black_level,2));&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; etLut = zeros(length(blStruct), 1);&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; for k = 1 : length(blStruct)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bl = blStruct{k};&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if length(bl.analog_gain) == 1&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = bl.black_level;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif AG &amp;gt; max(bl.analog_gain) || AG &amp;lt; min(bl.analog_gain)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = interp1(bl.analog_gain, bl.black_level, AG, 'nearest', 'extrap');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = interp1(bl.analog_gain, bl.black_level, AG);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etLut(k) = bl.exposure_time;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; end&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; if length(etLut) == 1&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = blLut;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; elseif ET &amp;gt; max(etLut) || ET &amp;lt; min(etLut)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = interp1(etLut, blLut, ET, 'nearest', 'extrap');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = interp1(etLut, blLut, ET);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; end&lt;BR /&gt;
	end&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;here is the matlab code i'm trying to convert, my question is. does ipp have any sort of interpolation functions?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 May 2015 16:59:15 GMT</pubDate>
    <dc:creator>Gilad_D_Intel</dc:creator>
    <dc:date>2015-05-30T16:59:15Z</dc:date>
    <item>
      <title>linear and nearest neighbor interpolation</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/linear-and-nearest-neighbor-interpolation/m-p/1020501#M23518</link>
      <description>&lt;P&gt;function output = calculateBlackLevel(blStruct, AG, ET)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; blLut = zeros(length(blStruct), size(blStruct{1}.black_level,2));&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; etLut = zeros(length(blStruct), 1);&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; for k = 1 : length(blStruct)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bl = blStruct{k};&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if length(bl.analog_gain) == 1&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = bl.black_level;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elseif AG &amp;gt; max(bl.analog_gain) || AG &amp;lt; min(bl.analog_gain)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = interp1(bl.analog_gain, bl.black_level, AG, 'nearest', 'extrap');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; blLut(k, :) = interp1(bl.analog_gain, bl.black_level, AG);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; etLut(k) = bl.exposure_time;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; end&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; if length(etLut) == 1&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = blLut;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; elseif ET &amp;gt; max(etLut) || ET &amp;lt; min(etLut)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = interp1(etLut, blLut, ET, 'nearest', 'extrap');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; else&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output = interp1(etLut, blLut, ET);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; end&lt;BR /&gt;
	end&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;here is the matlab code i'm trying to convert, my question is. does ipp have any sort of interpolation functions?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2015 16:59:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/linear-and-nearest-neighbor-interpolation/m-p/1020501#M23518</guid>
      <dc:creator>Gilad_D_Intel</dc:creator>
      <dc:date>2015-05-30T16:59:15Z</dc:date>
    </item>
  </channel>
</rss>

