Functions
contrib/oxl/osl/internals/osl_reorder_chain.cxx File Reference
#include "osl_reorder_chain.h"
#include <vcl_vector.h>
#include <vnl/vnl_math.h>
#include <osl/osl_edgel_chain.h>
#include <osl/osl_OrthogRegress.h>

Go to the source code of this file.

Functions

void osl_reorder_chain (osl_edgel_chain *dc)
 Takes a DigitalCurve that is assumed to form a closed loop and finds the largest corner in the chain.

Detailed Description

Author:
fsm

Definition in file osl_reorder_chain.cxx.


Function Documentation

void osl_reorder_chain ( osl_edgel_chain dc)

Takes a DigitalCurve that is assumed to form a closed loop and finds the largest corner in the chain.

This point is then used as the starting point for the chain and the rest of the points are reordered. Doing this improves the segmentation for osl_edgel_chains composed of many straight lines.

Definition at line 22 of file osl_reorder_chain.cxx.