GECKO 1.0
Human-computer interface based on hand gesture recognition
void HandDetector::filterBlobs ( const cv::Mat &  src,
cv::Mat &  dst 
) [private]

Applies Gaussian Blur and thresholding to improve the final binary image.

Parameters:
srcInput image
dstBinary output image
{
//    cv::Mat kernel = cv::getStructuringElement( cv::MORPH_ELLIPSE, cv::Size( 5, 5) );
//    cv::morphologyEx( src, dst, cv::MORPH_CLOSE, kernel);

    cv::GaussianBlur(src, dst,cv::Size(0,0),5);
//    cv::adaptiveThreshold(dst, dst, 255, cv::ADAPTIVE_THRESH_GAUSSIAN_C, cv::THRESH_BINARY, 21, 5);

//    cv::threshold(dst, dst, 40, 255, CV_THRESH_BINARY | CV_THRESH_OTSU);


    int min=50;
    cv::inRange(dst,cv::Scalar(min,min,min) , cv::Scalar(255,255,255), dst);

}
 All Classes Functions Variables