        image: The associated image</span>

<span class="sd">    Returns:</span>
<span class="sd">        A mask built from the given segment and image</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">xmin</span><span class="p">,</span> <span class="n">ymin</span><span class="p">,</span> <span class="n">xmax</span><span class="p">,</span> <span class="n">ymax</span> <span class="o">=</span> <span class="n">segm</span>
    <span class="n">mask</span> <span class="o">=</span> <span cl