trong><code>fn</code></strong>:<code>Union</code>[<code>Path</code>, <code>str</code>], <strong><code>div</code></strong>=<em><code>False</code></em>, <strong><code>convert_mode</code></strong>=<em><code>'L'</code></em>, <strong><code>after_open</code></strong>:<code>Callable</code>=<em><code>None</code></em>)</p>
</blockquote>
<p>Return <code>ImageSegment</code> object create from mask in file <code>fn</code>. If <code>div</code>, divides pixel values by 255.</p>

</div>

</div>

</div>
</div>

</div>
    