本文整理汇总了C++中FeatureVectorPtr::ImageFileName方法的典型用法代码示例。如果您正苦于以下问题:C++ FeatureVectorPtr::ImageFileName方法的具体用法?C++ FeatureVectorPtr::ImageFileName怎么用?C++ FeatureVectorPtr::ImageFileName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FeatureVectorPtr
的用法示例。
在下文中一共展示了FeatureVectorPtr::ImageFileName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ValidateThatBothListsHaveSameEntries
void GradeClassification::ValidateThatBothListsHaveSameEntries (FeatureVectorList& groundTruth,
FeatureVectorList& examplesToGrade,
bool& theyAreTheSame
)
{
theyAreTheSame = true; // We will assume that they are the same to start with.
int missingExamplesToGrade = 0;
int missingGroundTruthExamples = 0;
groundTruth.SortByRootName ();
examplesToGrade.SortByRootName ();
*report << endl << endl << endl
<< "Missing Examples To Grade" << endl
<< "=========================" << endl;
ImageFeaturesList::iterator idx;
for (idx = groundTruth.begin (); idx != groundTruth.end (); idx++)
{
FeatureVectorPtr groundTruthExample = *idx;
KKStr rootName = osGetRootName (groundTruthExample->ImageFileName ());
FeatureVectorPtr exampleToGrade = examplesToGrade.LookUpByRootName (rootName);
if (!exampleToGrade)
{
theyAreTheSame = false;
*report << rootName << "\t" << "*** MISSING ***" << "\t" << groundTruthExample->ImageFileName () << endl;
missingExamplesToGrade++;
}
}
if (missingExamplesToGrade == 0)
{
*report << " *** None ***" << endl;
}
*report << endl << endl << endl
<< "Missing Ground Truth Examples" << endl
<< "=============================" << endl;
for (idx = examplesToGrade.begin (); idx != examplesToGrade.end (); idx++)
{
FeatureVectorPtr exampleToGrade = *idx;
KKStr rootName = osGetRootName (exampleToGrade->ImageFileName ());
FeatureVectorPtr groundTruthExample = groundTruth.LookUpByRootName (rootName);
if (!groundTruthExample)
{
theyAreTheSame = false;
*report << rootName << "\t" << "*** MISSING ***" << "\t" << exampleToGrade->ImageFileName () << "\t" << endl;
missingGroundTruthExamples++;
}
}
if (missingGroundTruthExamples == 0)
{
*report << " *** None ***" << endl;
}
} /* ValidateThatBothListsHaveSameEntries */