g</dt>
<dd><p>nifti object or array</p></dd>


<dt>value</dt>
<dd><p>Value to check against.  If zero, then 
<code>replace_outside_surface</code> will include any dimension that has 
fewer than <code>threshold</code> zeroes. May be a vector of values, matched with 
<code><a href="https://rdrr.io/r/base/match.html" class="external-link">match</a></code></p></dd>


<dt>threshold</dt>
<dd><p>Include dimension if fewer than <code>threshold</code> voxels
are in the slice</p></dd>


<dt>replace_value</dt>
<dd><p>