Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 mitkImageStatisticsContainerManager_h
13 #define mitkImageStatisticsContainerManager_h
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
mitkGenericIDRelationRule.h
mitk::STATS_GENERATION_STATUS_VALUE_BASE_DATA_FAILED
static const std::string STATS_GENERATION_STATUS_VALUE_BASE_DATA_FAILED
Definition: mitkImageStatisticsContainerManager.h:32
mitk::STATS_GENERATION_STATUS_VALUE_WORK_IN_PROGRESS
static const std::string STATS_GENERATION_STATUS_VALUE_WORK_IN_PROGRESS
Definition: mitkImageStatisticsContainerManager.h:30
mitkDataStorage.h
mitk::STATS_HISTOGRAM_BIN_PROPERTY_NAME
static const std::string STATS_HISTOGRAM_BIN_PROPERTY_NAME
Definition: mitkImageStatisticsContainerManager.h:27
itk::SmartPointer< Self >
mitk::STATS_GENERATION_STATUS_PROPERTY_NAME
static const std::string STATS_GENERATION_STATUS_PROPERTY_NAME
Definition: mitkImageStatisticsContainerManager.h:29
mitk::STATS_IGNORE_ZERO_VOXEL_PROPERTY_NAME
static const std::string STATS_IGNORE_ZERO_VOXEL_PROPERTY_NAME
Definition: mitkImageStatisticsContainerManager.h:28
mitkNodePredicateBase.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MITKIMAGESTATISTICS_EXPORT
#define MITKIMAGESTATISTICS_EXPORT
Definition: MitkImageStatisticsExports.h:15
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitkPropertyRelations.h
mitk::ImageStatisticsContainerManager
Returns the StatisticsContainer that was computed on given input (image/mask/planar figure) and is ad...
Definition: mitkImageStatisticsContainerManager.h:37
mitk::STATS_GENERATION_STATUS_VALUE_PENDING
static const std::string STATS_GENERATION_STATUS_VALUE_PENDING
Definition: mitkImageStatisticsContainerManager.h:31
mitkBaseData.h
MitkImageStatisticsExports.h
mitkImageStatisticsContainer.h