DGtalTools  0.9.4
curvatureBC

Estimatates curvature using a binomial convolver.

Usage: curvatureBC [options] –input <fileName>

Allowed options are :

-h [ --help ] display this message
-i [ --input ] arg input FreemanChain file name
-s [ --GridStep ] arg (=1) Grid step

Example:

We consider as input shape the freeman chain of the DGtal/examples/sample directory. The contour can be displayed with displayContours :

$ displayContours -i $DGtal/examples/samples/contourS.fc -o contourS.png --drawPointOfIndex 0

The curvature can be computed as follows:

$ curvatureBC -i $DGtal/examples/samples/contourS.fc > curvatureBC.dat
$ gnuplot
gnuplot> plot 'curvatureBC.dat' w lines title "curvature with Binomial Convolution estimator"

You should obtain such a result:

contour curvature
resCurvatureBCcontour.png
resCurvatureBCcurvature.png
CCW oriented (index 0=blue pt)resulting curvature
See also
curvatureBC.cpp