ass="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Create a binary mask (e.g., values &gt; 0)</span></span></span>
<span class="r-in"><span><span class="va">mask_data</span> <span class="op">&lt;-</span> <span class="va">vol_data</span> <span class="op">&gt;</span> <span class="fl">0</span></span></span>
<span class="r-in"><span><span class="va">mask_vol</span> <span class="op">&lt;-</span> <span class="fu"><a href="LogicalNeuroVol-class.html">LogicalNeuroVol</a></span><span class="