title: fillPoly not working as expected
body: <p>I am trying to create a face mask filled with white from points. I am getting dotted outline of the face instead</p>
  
  <p>here is the code</p>
  
  <pre><code>public Mat getFaceMask(Mat image){
  
          Mat faceMask =  Mat.zeros(image.size(), image.type());
  
          List&lt;MatOfPoint&gt; faceConvexHull = new ArrayList&lt;&gt;();
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(197, 154)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(190, 197)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(182, 217)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(170, 234)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(155, 251)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(138, 264)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(121, 268)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(104, 265)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(88, 253)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(73, 238)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(61, 221)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(51, 202)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(46, 181)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(42, 159)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(41, 137)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(49, 116)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(73,  95)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(164,  95)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(190, 115)));
          faceConvexHull.add(new MatOfPoint(new org.opencv.core.Point(197, 133)));
  
          fillPoly(faceMask, faceConvexHull, new Scalar(255, 255, 255));
  
          return faceMask;
      }
  </code></pre>
  
  <p>this is the effect i want</p>
  
  <p><img src="https://i.stack.imgur.com/Amy7G.png" alt=""></p>
  
  <p>this is what I am getting</p>
  
  <p><img src="https://i.stack.imgur.com/bgiUv.png" alt=""></p>