re sample into 3 pieces to</span>
<span class='co'>## get better display performance and use the</span>
<span class='co'>## watershed algorithm to detect ring borders:</span>
<span class='no'>t2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='ring_detect.html'>ring_detect</a></span>(<span class='kw'>ring.data</span> <span class='kw'>=</span> <span class='no'>t1</span>, <span class='kw'>seg</span> <span class='kw'>=</span> <span class='fl'>3</span>, <span class='kw'>method</span> <span class='