13 #ifndef mitkCLResultWriter_h
14 #define mitkCLResultWriter_h
100 std::size_t m_CurrentRow;
101 int m_CurrentElement;
102 std::string m_Separator;
103 std::ofstream m_Output;
104 std::vector<std::string> m_List;
105 std::string m_SubjectInformation;
106 bool m_UsedSubjectInformation;
107 bool m_UseSpecialDecimalPoint;
#define MITKCLUTILITIES_EXPORT
std::vector< std::pair< FeatureID, double > > FeatureListType
Writes classification feature results to a CSV-style output file.
void NewRow(std::string endName)
Finalize the current row and start a new one.
void AddColumn(std::string value)
Add a string column value to the current row.
void SetDecimalPoint(char decimal)
Set a custom decimal point character for numeric output.
FeatureResultWriter(std::string filePath, int mode)
Construct a result writer for the given file path.
void AddResult(std::string desc, int slice, mitk::AbstractGlobalImageFeature::FeatureListType stats, bool withHeader, bool withDescription)
Add a row of feature results to the output.
void AddSubjectInformation(std::string value)
Add subject-identifying information to the current row.
void AddColumn(double value)
Add a numeric column value to the current row.
void AddHeader(std::string desc, int slice, mitk::AbstractGlobalImageFeature::FeatureListType stats, bool withHeader, bool withDescription)
Add a header row describing the feature columns.
~FeatureResultWriter()
Destructor. Flushes and closes the output file.
Find image slices visible on a given plane.