Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkCLResultXMLWriter.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkCLResultXMLWriter_h
14 #define mitkCLResultXMLWriter_h
15 
16 #include <MitkCLUtilitiesExports.h>
17 
18 #include <mitkImage.h>
20 
21 namespace mitk
22 {
23  namespace cl
24  {
32  {
33  public:
34  CLResultXMLWriter() = default;
35  ~CLResultXMLWriter() = default;
36 
41  void SetImage(const Image* image);
42 
47  void SetMask(const Image* mask);
48 
54 
59  void SetMethodName(const std::string& name);
60 
65  void SetMethodVersion(const std::string& version);
66 
71  void SetOrganisation(const std::string& orga);
72 
77  void SetPipelineUID(const std::string& pipelineUID);
78 
83  void SetCLIArgs(const std::map<std::string, us::Any>& args);
84 
89  void write(const std::string& filePath) const;
90 
95  void write(std::ostream& stream) const;
96 
97  private:
98  CLResultXMLWriter(const CLResultXMLWriter&) = delete;
99  CLResultXMLWriter& operator = (const CLResultXMLWriter&) = delete;
100 
101  Image::ConstPointer m_Image;
102  Image::ConstPointer m_Mask;
104  std::string m_MethodName = "unknown";
105  std::string m_MethodVersion = "unknown";
106  std::string m_Organisation = "unknown";
107  std::string m_PipelineUID = "unknown";
108  std::map<std::string, us::Any> m_CLIArgs;
109  };
110  }
111 }
112 
113 #endif
#define MITKCLUTILITIES_EXPORT
std::vector< std::pair< FeatureID, double > > FeatureListType
Image class for storing multi-dimensional medical image data.
Definition: mitkImage.h:76
Writes classification feature results to an XML file.
void write(const std::string &filePath) const
Write the XML output to a file.
void SetMethodName(const std::string &name)
Set the name of the analysis method.
void SetOrganisation(const std::string &orga)
Set the organisation performing the analysis.
void write(std::ostream &stream) const
Write the XML output to a stream.
void SetMask(const Image *mask)
Set the mask image used for feature computation.
void SetCLIArgs(const std::map< std::string, us::Any > &args)
Set the command-line arguments used for the analysis.
void SetPipelineUID(const std::string &pipelineUID)
Set the unique identifier of the analysis pipeline.
void SetFeatures(const mitk::AbstractGlobalImageFeature::FeatureListType &features)
Set the computed feature list to be written.
void SetImage(const Image *image)
Set the intensity image whose features were computed.
void SetMethodVersion(const std::string &version)
Set the version of the analysis method.
Find image slices visible on a given plane.