-1"></a>cube <span class="ot">&lt;-</span> <span class="fu">cuboid_roi</span>(<span class="fu">space</span>(img), <span class="fu">c</span>(<span class="dv">30</span>, <span class="dv">30</span>, <span class="dv">20</span>), <span class="at">surround =</span> <span class="dv">3</span>)</span>
<span id="cb4-8"><a href="#cb4-8" tabindex="-1"></a><span class="fu">cat</span>(<span class="st">&quot;Cuboid ROI contains&quot;</span>, <span class="fu">length</span>(cube), <span class="st">&quot;voxels</span><span c