ctor of 2</span></span>
<span id="cb10-2"><a href="#cb10-2" tabindex="-1"></a>img_down <span class="ot">&lt;-</span> <span class="fu">downsample</span>(img, <span class="fu">c</span>(<span class="dv">2</span>, <span class="dv">2</span>, <span class="dv">2</span>))</span>
<span id="cb10-3"><a href="#cb10-3" tabindex="-1"></a><span class="fu">cat</span>(<span class="st">&quot;Original dimensions:&quot;</span>, <span class="fu">dim</span>(img), <span class="st">&quot;</span><span class="sc">\n</span><span clas