I'm working on hand-recognition project using Matlab, I'm trying to find convexity defects to define the fingers roots, actually, I have got Convex-hull points ( Convex-contour ) as shown in figure below (blue line), but I don't know how to find convexity defects, convexity defects shown as yellow points in the next figure.