Draw a contour in emgucv 3.1
<p>I want too draw a contour in EmguCV 3.1.0.2504 but I get error: "OpenCV: i&lt;0 .Children could not be evaluated."</p>

<pre><code>IInputArrayOfArrays biggestCnt = GetBiggestCountour(BinaryImage);
Image&lt;Gray, byte&gt; justCountor = new Image&lt;Gray, byte&gt;(384, 284, new Gray(255));
CvInvoke.DrawContours(justCountor, biggestCnt, -1, new MCvScalar(255, 0, 0));
</code></pre>

<p><a href="https://i.stack.imgur.com/dKCc0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dKCc0.png" alt="enter image description here"></a></p>