Medical Imaging Interaction Toolkit  2022.04.99-b878213f
Medical Imaging Interaction Toolkit
mitkImageStatisticsContainerManager.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 #ifndef QmitkImageStatisticsContainerManager_H__INCLUDED
13 #define QmitkImageStatisticsContainerManager_H__INCLUDED
14 
16 
17 #include <mitkDataStorage.h>
19 #include <mitkBaseData.h>
20 #include <mitkNodePredicateBase.h>
22 #include <mitkPropertyRelations.h>
23 
24 namespace mitk
25 {
26 
27  static const std::string STATS_HISTOGRAM_BIN_PROPERTY_NAME = "MITK.statistic.histogram_bins";
28  static const std::string STATS_IGNORE_ZERO_VOXEL_PROPERTY_NAME = "MITK.statistic.ignore_zero_voxel";
29  static const std::string STATS_GENERATION_STATUS_PROPERTY_NAME = "MITK.statistic.generation.status";
30  static const std::string STATS_GENERATION_STATUS_VALUE_WORK_IN_PROGRESS = "workInProgress";
31  static const std::string STATS_GENERATION_STATUS_VALUE_PENDING = "pending";
32  static const std::string STATS_GENERATION_STATUS_VALUE_BASE_DATA_FAILED = "failed";
33 
38  {
39  public:
55  static mitk::ImageStatisticsContainer::Pointer GetImageStatistics(const mitk::DataStorage* dataStorage, const mitk::BaseData* image, const mitk::BaseData* mask=nullptr, bool ignoreZeroVoxel = false, unsigned int histogramNBins = 100, bool onlyIfUpToDate = true, bool noWIP = true);
56  static mitk::DataNode::Pointer GetImageStatisticsNode(const mitk::DataStorage* dataStorage, const mitk::BaseData* image, const mitk::BaseData* mask = nullptr, bool ignoreZeroVoxel = false, unsigned int histogramNBins = 100, bool onlyIfUpToDate = true, bool noWIP = true);
57 
60  static mitk::NodePredicateBase::ConstPointer GetStatisticsPredicateForSources(const mitk::BaseData* image, const mitk::BaseData* mask = nullptr);
61  };
62 }
63 #endif
static const std::string STATS_GENERATION_STATUS_VALUE_PENDING
Data management class that handles &#39;was created by&#39; relations.
Returns the StatisticsContainer that was computed on given input (image/mask/planar figure) and is ad...
Base of all data objects.
Definition: mitkBaseData.h:42
static const std::string STATS_GENERATION_STATUS_PROPERTY_NAME
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIMAGESTATISTICS_EXPORT
static const std::string STATS_GENERATION_STATUS_VALUE_WORK_IN_PROGRESS
static const std::string STATS_IGNORE_ZERO_VOXEL_PROPERTY_NAME
static const std::string STATS_HISTOGRAM_BIN_PROPERTY_NAME
static const std::string STATS_GENERATION_STATUS_VALUE_BASE_DATA_FAILED