ssified as the <span style="color:#ff3333ff;"><strong>outer</strong></span> side, then the contour is an <span style="color:#ff3333ff;"><strong>outer</strong></span> contour.</li>
<li>If the left-top side of the segment is classified as the <span style="color:#1a8effff;"><strong>inner</strong></span> side, then the contour is an <span style="color:#1a8effff;"><strong>inner</strong></span> contour.</li>
</ul>
<p>This method ensures each contour is correctly classified based on its orientation in 2D space.</p