<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; recent 3.4 ( <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/57fae4a6a1e5c06799f549db43922684ba028af4/hovercard" href="https://github.com/opencv/opencv/commit/57fae4a6a1e5c06799f549db43922684ba028af4"><tt>57fae4a</tt></a> )</li>
<li>Operating System / Platform =&gt; TinkerBoard (Armv7), Debian stretch</li>
<li>Compiler =&gt; GCC 6.3.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Two tests fail in <code class="notranslate">OCL_ImgProc/CvtColor8u.mRGBA2RGBA</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false)
/home/linaro/opencv-fork/modules/imgproc/test/ocl/test_color.cpp:89: Failure
Expected: (TestUtils::checkNorm2(dst_roi, udst_roi)) &lt;= (threshold), actual: 1 vs 0.001
Size: [15 x 21]
[  FAILED  ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false) (14 ms)
[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true)
/home/linaro/opencv-fork/modules/imgproc/test/ocl/test_color.cpp:89: Failure
Expected: (TestUtils::checkNorm2(dst_roi, udst_roi)) &lt;= (threshold), actual: 1 vs 0.001
Size: [15 x 21]
[  FAILED  ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true) (2 ms)"><pre class="notranslate"><code class="notranslate">[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false)
/home/linaro/opencv-fork/modules/imgproc/test/ocl/test_color.cpp:89: Failure
Expected: (TestUtils::checkNorm2(dst_roi, udst_roi)) &lt;= (threshold), actual: 1 vs 0.001
Size: [15 x 21]
[  FAILED  ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false) (14 ms)
[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true)
/home/linaro/opencv-fork/modules/imgproc/test/ocl/test_color.cpp:89: Failure
Expected: (TestUtils::checkNorm2(dst_roi, udst_roi)) &lt;= (threshold), actual: 1 vs 0.001
Size: [15 x 21]
[  FAILED  ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true) (2 ms)
</code></pre></div>
<p dir="auto">Full log is available <a href="https://gist.github.com/tomoaki0705/b4663f05cfdcb8be1369c7f58c715841">here</a><br>
This seems to be a rounding error, since there is a float operation in the color conversion code.<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/opencv/opencv/blob/57fae4a6a1e5c06799f549db43922684ba028af4/modules/imgproc/src/color_rgb.simd.hpp#L1040-L1044">opencv/modules/imgproc/src/color_rgb.simd.hpp</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 1040 to 1044
      in
      <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/57fae4a6a1e5c06799f549db43922684ba028af4">57fae4a</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L1040" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1040"></td>
          <td id="LC1040" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> v_float32 fd00, fd01, fd10, fd11; </td>
        </tr>

        <tr class="border-0">
          <td id="L1041" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1041"></td>
          <td id="LC1041" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> fd00 = fs00/fa00; </td>
        </tr>

        <tr class="border-0">
          <td id="L1042" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1042"></td>
          <td id="LC1042" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> fd01 = fs01/fa01; </td>
        </tr>

        <tr class="border-0">
          <td id="L1043" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1043"></td>
          <td id="LC1043" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> fd10 = fs10/fa10; </td>
        </tr>

        <tr class="border-0">
          <td id="L1044" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1044"></td>
          <td id="LC1044" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> fd11 = fs11/fa11; </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">If I disable the NEON feature, the test passes</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false)
[       OK ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0 (260 ms)
[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true)
[       OK ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1 (3 ms)"><pre class="notranslate"><code class="notranslate">[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0, where GetParam() = (CV_8U, false)
[       OK ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/0 (260 ms)
[ RUN      ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1, where GetParam() = (CV_8U, true)
[       OK ] OCL_ImgProc/CvtColor8u.mRGBA2RGBA/1 (3 ms)
</code></pre></div>
<p dir="auto">I believe it's close enough to loosen the <code class="notranslate">eps</code>.<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/opencv/opencv/blob/57fae4a6a1e5c06799f549db43922684ba028af4/modules/imgproc/test/ocl/test_color.cpp#L297-L304">opencv/modules/imgproc/test/ocl/test_color.cpp</a>
    </p>
    <p class="mb-0 color-fg-muted">
        Lines 297 to 304
      in
      <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/57fae4a6a1e5c06799f549db43922684ba028af4">57fae4a</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L297" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="297"></td>
          <td id="LC297" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">ifdef</span> HAVE_IPP </td>
        </tr>

        <tr class="border-0">
          <td id="L298" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="298"></td>
          <td id="LC298" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">IPP_EPS</span> depth &lt;= CV_32S ? <span class="pl-c1">1</span> : <span class="pl-c1">1e-3</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L299" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="299"></td>
          <td id="LC299" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">else</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L300" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="300"></td>
          <td id="LC300" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">IPP_EPS</span> <span class="pl-c1">1e-3</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L301" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="301"></td>
          <td id="LC301" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">endif</span> </td>
        </tr>

        <tr class="border-0">
          <td id="L302" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="302"></td>
          <td id="LC302" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line">  </td>
        </tr>

        <tr class="border-0">
          <td id="L303" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="303"></td>
          <td id="LC303" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">OCL_TEST_P</span>(CvtColor8u, RGBA2mRGBA) { <span class="pl-c1">performTest</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">CVTCODE</span>(RGBA2mRGBA), IPP_EPS); } </td>
        </tr>

        <tr class="border-0">
          <td id="L304" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="304"></td>
          <td id="LC304" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">OCL_TEST_P</span>(CvtColor8u, <span class="pl-smi">mRGBA2RGBA</span>) { <span class="pl-c1">performTest</span>(<span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">CVTCODE</span>(<span class="pl-smi">mRGBA2RGBA</span>)); } </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">One thing I'm not sure is how it behaves on <code class="notranslate">aarch64</code>.<br>
At this moment, I don't have access to any of my Arm 64bit boards.<br>
Let's just keep it for 32bit for now.</p>
<p dir="auto">I'll send a patch later</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto"><code class="notranslate">./opencv_test_imgproc  --gtest_filter=*OCL*mRGBA2RGBA*</code></p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; latest</li>
<li>Operating System / Platform =&gt; Android</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Video I/O file capture doesn't work on Android currently.<br>
Add a backend for this to the videoio module using the Android Media NDK</p>
<p dir="auto">I have a PR prepared for this.</p>
<hr>
<p dir="auto">duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="340620050" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/11952" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/11952/hovercard" href="https://github.com/opencv/opencv/issues/11952">#11952</a></p>