b6-1"><a href="#cb6-1" tabindex="-1"></a><span class="co"># Voxel coordinates to world coordinates (mm)</span></span>
<span id="cb6-2"><a href="#cb6-2" tabindex="-1"></a>voxel_coords <span class="ot">&lt;-</span> <span class="fu">c</span>(<span class="dv">30</span>, <span class="dv">30</span>, <span class="dv">20</span>)</span>
<span id="cb6-3"><a href="#cb6-3" tabindex="-1"></a>world_coords <span class="ot">&lt;-</span> <span class="fu">grid_to_coord</span>(img, <span class="fu">matrix</span>(voxel_coords,