title: OpenCV Java inpaint image format requirement
body: <p>Been trying to get inpainting to work on Android,</p>
  
  <pre><code>int height = (int) viewMat.size().height;
  int width = (int) viewMat.size().width;
  
  Mat maskMat = new Mat();
  maskMat.create(viewMat.size(), CvType.CV_8U);
  maskMat.setTo(bColor);
  
  Point r1 = new Point(width/2-width/10, height/2-height/10);
  Point r2 = new Point(width/2+width/10, height/2+height/10);
  Scalar color = new Scalar(1);
  
  Core.rectangle(maskMat, r1, r2, color, Core.FILLED);
  
  outMat.create(viewMat.size(), CvType.CV_8UC3);
  
  viewMat.convertTo(outMat, CvType.CV_8UC3);
  
  Photo.inpaint(outMat, maskMat, outMat, 1, Photo.INPAINT_TELEA);
  </code></pre>
  
  <p>Was greeted with,</p>
  
  <pre><code>Caused by: CvException [org.opencv.core.CvException: /home/reports/ci/slave_desktop/50-SDK/opencv/modules/photo/src/inpaint.cpp:744: 
  error: (-210) Only 8-bit 1-channel and 3-channel input/output images are supported in function void cvInpaint(const CvArr*, const CvArr*, CvArr*, double, int)
  </code></pre>
  
  <p>in logcat.</p>
  
  <p>Been trying for hours creating Mats in various ways but to no valid. </p>
  
  <p>CV_8U = 8 bit per channel, 1 channel. Right?</p>
  
  <p>CV_8UC3 = 8 bit per channel, 3 channels. Right?</p>
  
  <p>So what am I missing? I'm totally stumped.</p>