added c++ interface for cvPyrMeanShiftFiltering; added sample on meanshift segmentation

This commit is contained in:
Maria Dimashova
2010-07-28 16:41:12 +00:00
parent 69ef5efb4d
commit cba926a428
4 changed files with 83 additions and 1 deletions

View File

@@ -526,3 +526,14 @@ cvPyrMeanShiftFiltering( const CvArr* srcarr, CvArr* dstarr,
}
}
void cv::pyrMeanShiftFiltering( const Mat& src, Mat& dst,
double sp, double sr, int maxLevel,
TermCriteria termcrit )
{
if( src.empty() )
return;
dst.create( src.size(), src.type() );
CvMat _src = src, _dst = dst;
cvPyrMeanShiftFiltering( &_src, &_dst, sp, sr, maxLevel, termcrit );
}