7 #include "PlusConfigure.h" 22 outFile <<
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" << std::endl;
28 outFile <<
" <AlgorithmOptions SegmentationThreshold=\"" << patternRecognition.
GetFidSegmentation()->
GetThresholdImagePercent() <<
"\" ImportSegResultsFromFile=\"" << trueFidFileName.c_str() <<
"\" />" << std::endl;
33 outFile <<
" <Statistics>" << std::endl;
34 outFile <<
" <Segmentation MeanFoundFiducialsCount=\"" << meanFid;
35 if (meanFidCandidate>=0)
37 outFile <<
"\" MeanFiducialCandidateCount=\"" << meanFidCandidate;
39 outFile <<
"\" />" << std::endl;
40 outFile <<
" </Statistics>" << std::endl;
51 LOG_DEBUG(
"Writing test case " << inputTestcaseName.c_str() <<
" frame " << currentFrameIndex);
55 outFile <<
" <Input ImageSeqFileName=\"" << inputImageSequenceFileName.c_str() <<
"\" ImageSeqFrameIndex=\"" << currentFrameIndex <<
"\" />" << std::endl;
57 outFile <<
" <Output SegmentationSuccess=\"" << algoSuccessful <<
"\"";
63 outFile <<
" SegmentationQualityInIntensityScore=\"" << segResults.
GetIntensity()<<
"\""<< std::endl;
67 outFile <<
" SegmentationPoints=\"";
82 LOG_ERROR(
"Point "<<pt<<
" has only "<<segResults.
GetFoundDotsCoordinateValue()[pt].size()<<
" components, while at least 2 is required");
89 outFile <<
" />" << std::endl;
93 outFile <<
" <FiducialPointCandidates>"<<std::endl;
100 outFile <<
" </FiducialPointCandidates>"<<std::endl;
double GetIntensity() const
static void WriteSegmentationResultsFooter(std::ostream &outFile)
PlusFidSegmentation * GetFidSegmentation()
static void WriteSegmentationResultsParameters(std::ostream &outFile, PlusFidPatternRecognition &patternRcognitionObject, const std::string &trueFidFileName)
static void WriteSegmentationResults(std::ostream &outFile, PlusPatternRecognitionResult &segResults, const std::string &inputTestcaseName, int currentFrameIndex, const std::string &inputImageSequenceFileName)
const std::vector< PlusFidDot > & GetCandidateFidValues() const
static const char * TEST_CASE_ELEMENT_NAME
std::vector< std::vector< double > > & GetFoundDotsCoordinateValue()
double GetThresholdImagePercent()
static const char * TEST_RESULTS_ELEMENT_NAME
static const char * ID_ATTRIBUTE_NAME
double GetNumDots() const
static void WriteSegmentationResultsStats(std::ostream &outFile, double meanFid, double meanFidCandidate=-1)
static void WriteSegmentationResultsHeader(std::ostream &outFile)