Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkImageStatisticsContainer_h
14 #define mitkImageStatisticsContainer_h
18 #include <itkHistogram.h>
22 #include <boost/variant.hpp>
38 itkFactorylessNewMacro(
Self);
94 bool HasStatistic(
const std::string_view name)
const;
101 template <
typename TType>
104 auto value = GetValueNonConverted(name);
105 return boost::get<TType>(value);
116 HistogramType::ConstPointer m_Histogram=
nullptr;
119 using StatisticsMapType = std::map < std::string, StatisticsVariantType, std::less<>>;
121 StatisticsMapType m_Statistics;
162 bool IgnoresZeroVoxel()
const;
168 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
171 itk::LightObject::Pointer InternalClone()
const override;
173 using TimeStepMapType = std::map<TimeStepType, ImageStatisticsObject>;
174 using LabelMapType = std::map<LabelValueType, TimeStepMapType>;
176 LabelMapType m_LabelTimeStep2StatisticsMap;
std::vector< TimeStepType > TimeStepVectorType
vnl_vector< int > IndexType
ImageStatisticsObject::IndexType IndexType
MITKIMAGESTATISTICS_EXPORT ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector GetAllStatisticNames(const ImageStatisticsContainer *container)
unsigned long VoxelCountType
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
ImageStatisticsObject::VoxelCountType VoxelCountType
ImageStatisticsObject::RealType RealType
LabelSetImage::LabelValueType LabelValueType
Find image slices visible on a given plane.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
Container class for storing a StatisticsObject for each time step.
#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.
TType GetValueConverted(const std::string_view name) const
Converts the requested value to the defined type.
Container class for storing the computed image statistics.
static constexpr PixelType UNLABELED_VALUE
itk::Statistics::Histogram< double > HistogramType
ImageStatisticsObject::StatisticsVariantType StatisticsVariantType
#define mitkClassMacro(className, SuperClassName)
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
LabelSetImage::LabelValueVectorType LabelValueVectorType
boost::variant< RealType, VoxelCountType, IndexType > StatisticsVariantType
std::vector< std::string > StatisticNameVector
std::vector< LabelValueType > LabelValueVectorType
mitk::Label::PixelType LabelValueType