GECKO 1.0
Human-computer interface based on hand gesture recognition
void HandDescriptor::plotConvexityDefects ( cv::Mat &  src,
cv::Mat &  dst,
bool  draw_points = true 
)

Plot convexity defects:

{
    if ( dst.empty() )
        dst = src.clone();

    if ( _hand_found )
    {
       for (int i = 0; i < _hand_convexity_defects.size(); i++)
       {
           const cv::Scalar orange = cv::Scalar(18, 153, 255);

           //-- Draw them
           if ( draw_points )
           {
                cv::circle( dst, _hand_convexity_defects[i].start, 5, orange);
                cv::circle( dst, _hand_convexity_defects[i].end, 5, orange);
                cv::circle( dst, _hand_convexity_defects[i].depth_point, 5, orange);
           }

           cv::line(dst, _hand_convexity_defects[i].start, _hand_convexity_defects[i].depth_point, orange);
           cv::line(dst, _hand_convexity_defects[i].depth_point, _hand_convexity_defects[i].end, orange);
        }

    }
}
 All Classes Functions Variables