="comment">// Special case: OpenCV doesn&#39;t have a bool type, so Mat_&lt;bool&gt; is CV_8U [0..255]</span></div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;  <span class="comment">// We need to force values to be in [0..1]</span></div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <span class="keywordflow">if</span> (std::is_same&lt;T, bool&gt;::value) {</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  