18 #ifndef _MITK_CORRELATIONCALCULATOR_H
19 #define _MITK_CORRELATIONCALCULATOR_H
22 #include <itkObject.h>
24 #include <vnl/vnl_matrix.h>
55 itkFactorylessNewMacro(Self)
140 virtual
void Modified() const override;
145 template< typename TPixel,
unsigned int VImageDimension >
171 #include <mitkCorrelationCalculator.txx>
mitkClassMacroItkParent(CorrelationCalculator, itk::Object)
mitk::Image::Pointer m_TimeSeriesImage
void DoParcelCorrelation(ParcelMode mode=UseAverageTimeSeries)
Create a #parcel x #parcel correlation matrix.
static double CalculateCovariance(const std::vector< T > &one, const std::vector< T > &two)
Calculates the covariance of two vectors of data.
Class to calculate covariance and correlation.
virtual void Modified()
Marks average time series as invalid and calls superclass modified.
DataCollection - Class to facilitate loading/accessing structured data.
std::map< int, std::vector< double > > m_AverageTimeSeries
ParcelMode
The ParcelMode enum defines how to define the correlation between two parcels.
vnl_matrix< double > m_CorrelationMatrix
void ExtractAllAverageTimeSeries(itk::Image< TPixel, VImageDimension > *itkTimeSeriesImage)
std::map< int, std::vector< std::vector< T > > > m_ParcelTimeSeries
std::vector< double > ExtractAverageTimeSeriesOfParcel(int parcelValue)
Extracts the average time series from a roi defined by the parcellation image.
const vnl_matrix< double > * GetCorrelationMatrix() const
void ExtractCenterOfMassForParcels()
double GetParcelCorrelation(const int &parcelA, const int &parcelB, ParcelMode &mode) const
Image class for storing images.
mitk::Image::Pointer m_ParcellationImage
void DoWholeCorrelation()
Create a #voxel x #voxel correlation matrix.
std::map< int, mitk::Point3D > m_ParcelCenterOfMass
mitk::ConnectomicsNetwork::Pointer GetConnectomicsNetwork()
std::map< unsigned int, int > m_LabelOrderMap
const std::map< unsigned int, int > * GetLabelOrderMap() const
static double CalculatePearsonCorrelationCoefficient(const std::vector< T > &one, const std::vector< T > &two)
Calculate and return the pearson correlation coefficient for two vectors of data. ...