提交 ccdaf9d2 编写于 作者: A Alexander Alekhin

Merge remote-tracking branch 'upstream/3.4' into merge-3.4

......@@ -58,8 +58,8 @@ Ptr<TrackerContribFeature> TrackerContribFeature::create( const String& trackerF
{
if( trackerFeatureType.find( "FEATURE2D" ) == 0 )
{
size_t firstSep = trackerFeatureType.find_first_of( "." );
size_t secondSep = trackerFeatureType.find_last_of( "." );
size_t firstSep = trackerFeatureType.find_first_of('.');
size_t secondSep = trackerFeatureType.find_last_of('.');
String detector = trackerFeatureType.substr( firstSep, secondSep - firstSep );
String descriptor = trackerFeatureType.substr( secondSep, trackerFeatureType.length() - secondSep );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册