13 #ifndef MITKIMAGESTATISTICSCONTAINER 14 #define MITKIMAGESTATISTICSCONTAINER 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;
167 #endif // MITKIMAGESTATISTICSCONTAINER std::map< std::string, StatisticsVariantType > StatisticsMapType
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
Base of all data objects.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
DataCollection - Class to facilitate loading/accessing structured data.
TType GetValueConverted(const std::string &name) const
Converts the requested value to the defined type.
std::string StatisticsKeyType
#define MITKIMAGESTATISTICS_EXPORT
itk::Statistics::Histogram< double > HistogramType
#define mitkClassMacro(className, SuperClassName)
MITKIMAGESTATISTICS_EXPORT ImageStatisticsContainer::ImageStatisticsObject::StatisticNameVector GetAllStatisticNames(const ImageStatisticsContainer *container)
vnl_vector< int > IndexType
std::vcl_size_t TimeStepType
void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
boost::variant< RealType, VoxelCountType, IndexType > StatisticsVariantType
unsigned long VoxelCountType
Container class for storing the computed image statistics.
std::vector< std::string > StatisticNameVector
Container class for storing a StatisticsObject for each timestep.
std::map< TimeStepType, ImageStatisticsObject > TimeStepMapType