Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkImageStatisticsContainer_h
14 #define mitkImageStatisticsContainer_h
18 #include <itkHistogram.h>
21 #include <boost/variant.hpp>
37 itkFactorylessNewMacro(
Self);
92 bool HasStatistic(
const std::string& name)
const;
99 template <
typename TType>
102 auto value = GetValueNonConverted(name);
103 return boost::get<TType>(value);
114 HistogramType::ConstPointer m_Histogram=
nullptr;
123 unsigned int GetNumberOfTimeSteps()
const;
154 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
157 itk::LightObject::Pointer InternalClone()
const override;
MITKIMAGESTATISTICS_EXPORT ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector GetAllStatisticNames(const ImageStatisticsContainer *container)
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
std::map< std::string, StatisticsVariantType > StatisticsMapType
TType GetValueConverted(const std::string &name) const
Converts the requested value to the defined type.
vnl_vector< int > IndexType
DataCollection - Class to facilitate loading/accessing structured data.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
Container class for storing a StatisticsObject for each timestep.
#define MITKIMAGESTATISTICS_EXPORT
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
Base of all data objects.
std::string StatisticsKeyType
Container class for storing the computed image statistics.
std::map< TimeStepType, ImageStatisticsObject > TimeStepMapType
itk::Statistics::Histogram< double > HistogramType
#define mitkClassMacro(className, SuperClassName)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
boost::variant< RealType, VoxelCountType, IndexType > StatisticsVariantType
std::vector< std::string > StatisticNameVector
unsigned long VoxelCountType