title: imshow img with values 0 1 with opencv
body: <p>I have a mat of this type</p>
  
  <pre><code>Mat port(M.size(),CV_8UC1);
  </code></pre>
  
  <p>and inside I have the 2 values: ​​0 and 1.</p>
  
  <p>If I try to do <code>imshow ( " p " , port) ;</code><br>
  img by a black .</p>
  
  <p>How can I distinguish all 0 and 1 with two different colors ?</p>
  
  <p>I tried and tried to use <code>line()</code> but you must already know the two closest points while I do not know what the values ​​1 distanced from each other .
  someone can help me ?
  It seems a trivial problem</p>