<p dir="auto">I am getting the same errors as I can see in old threads of discussions. But I don't see any solution. why is it still not resolved ?</p>
<p dir="auto">LINK 2019 unresolved external symbol "double __cdecl cvGetPropVsync_W32(char const *)" (?cvGetPropVsync_W32@@YANPEBD@Z) referenced in function cvGetWindowProperty etc</p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 2.4.13.2</li>
<li>Operating System / Platform =&gt; Ubuntu 14.04 64-bit</li>
<li>Compiler =&gt; g++ (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">When resize CV_16UC3 image of a constant color with INTER_LINEAR, the resized image had shuffled channel values.</p>
<p dir="auto">original image with size 8x4<br>
[10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000]</p>
<p dir="auto">resized image with size 16x8<br>
[10000, 20000, 30000, <strong>10000, 30000, 10000,</strong> 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000;<br>
10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 10000, 20000, 30000, 10000, 30000, 10000, 20000, 30000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000, 10000, 20000, 30000]</p>
<p dir="auto">Notice how the bolded pixel is not [10000, 20000, 30000], as it should have been.</p>
<p dir="auto">Resize does not have this problem when interpolation is set to INTER_NEAREST. Or when image type is CV_8UC3, or CV_16UC4.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int main(int argc, char** argv) {
  int width = 8;
  int height = 4;
  constexpr int kBlueVal = 30000, kGreenVal = 20000, kRedVal = 10000;
  cv::Vec&lt;uint16_t, 3&gt;* multi_channel_row_ptr;
  cv::Mat image(height, width, CV_16UC3);
  for (int row = 0; row &lt; height; ++row) {
    multi_channel_row_ptr = image.ptr&lt;cv::Vec&lt;uint16_t, 3&gt; &gt;(row);
    for (int col = 0; col &lt; width; ++col) {
      multi_channel_row_ptr[col] = cv::Vec&lt;uint16_t, 3&gt;(kRedVal, kGreenVal, kBlueVal);
    }   
  }
  cv::Mat big_image(2*height, 2*width, image.type());
  std::cout &lt;&lt; image &lt;&lt; std::endl;
  cv::resize(image, big_image, big_image.size(), 0, 0, cv::INTER_LINEAR);
  std::cout &lt;&lt; big_image &lt;&lt; std::endl;
  cv::imshow(&quot;image&quot;, image);
  cv::imshow(&quot;big_image&quot;, big_image);
  cv::waitKey(0);

  return 0;
}"><pre class="notranslate"><code class="notranslate">int main(int argc, char** argv) {
  int width = 8;
  int height = 4;
  constexpr int kBlueVal = 30000, kGreenVal = 20000, kRedVal = 10000;
  cv::Vec&lt;uint16_t, 3&gt;* multi_channel_row_ptr;
  cv::Mat image(height, width, CV_16UC3);
  for (int row = 0; row &lt; height; ++row) {
    multi_channel_row_ptr = image.ptr&lt;cv::Vec&lt;uint16_t, 3&gt; &gt;(row);
    for (int col = 0; col &lt; width; ++col) {
      multi_channel_row_ptr[col] = cv::Vec&lt;uint16_t, 3&gt;(kRedVal, kGreenVal, kBlueVal);
    }   
  }
  cv::Mat big_image(2*height, 2*width, image.type());
  std::cout &lt;&lt; image &lt;&lt; std::endl;
  cv::resize(image, big_image, big_image.size(), 0, 0, cv::INTER_LINEAR);
  std::cout &lt;&lt; big_image &lt;&lt; std::endl;
  cv::imshow("image", image);
  cv::imshow("big_image", big_image);
  cv::waitKey(0);

  return 0;
}
</code></pre></div>