19#ifndef rtkSimplexSpectralProjectionsDecompositionImageFilter_h
20#define rtkSimplexSpectralProjectionsDecompositionImageFilter_h
42template <
typename DecomposedProjectionsType,
43 typename MeasuredProjectionsType,
72#ifndef ITK_FUTURE_LEGACY_REMOVE
89 template <
unsigned int VNumberOfMaterials>
93 DecomposedProjectionsType::ImageDimension> * DecomposedProjections);
94 typename DecomposedProjectionsType::ConstPointer
101 template <
unsigned int VNumberOfSpectralBins>
105 MeasuredProjectionsType::ImageDimension> * MeasuredProjections);
106 typename MeasuredProjectionsType::ConstPointer
113 typename DetectorResponseImageType::ConstPointer
119 typename MaterialAttenuationsImageType::ConstPointer
125#ifndef ITK_FUTURE_LEGACY_REMOVE
129 typename IncidentSpectrumImageType::ConstPointer
133 itkGetMacro(NumberOfIterations,
unsigned int);
137 itkGetMacro(NumberOfEnergies,
unsigned int);
140 itkGetMacro(NumberOfMaterials,
unsigned int);
143 itkGetMacro(OptimizeWithRestarts,
bool);
149 itkGetMacro(NumberOfSpectralBins,
unsigned int);
152 itkGetMacro(OutputInverseCramerRaoLowerBound,
bool);
155 itkGetMacro(OutputFischerMatrix,
bool);
158 itkGetMacro(LogTransformEachBin,
bool);
161 itkGetMacro(GuessInitialization,
bool);
212#ifndef ITK_FUTURE_LEGACY_REMOVE
214 typename FlattenVectorFilterType::Pointer m_FlattenFilter;
215 typename PermuteFilterType::Pointer m_PermuteFilter;
222#ifndef ITK_MANUAL_INSTANTIATION
223# include "rtkSimplexSpectralProjectionsDecompositionImageFilter.hxx"
SmartPointer< Self > Pointer
Base class for templated image classes.
SmartPointer< Self > Pointer
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Permutes the image axes according to a user specified order.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Implements transparent reference counting.
A templated class holding a M x N size Matrix.
Templated n-dimensional vector image class.
A templated class holding a n-Dimensional vector.
ProjectionsDecompositionNegativeLogLikelihood CostFunctionType
void DynamicThreadedGenerateData(const typename DecomposedProjectionsType::RegionType &outputRegionForThread) override
DetectorResponseImageType::ConstPointer GetDetectorResponse()
bool m_OptimizeWithRestarts
void SetInputFixedVectorLengthMeasuredProjections(const itk::Image< itk::Vector< MeasuredProjectionsDataType, VNumberOfSpectralBins >, MeasuredProjectionsType::ImageDimension > *MeasuredProjections)
bool m_OutputInverseCramerRaoLowerBound
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
MaterialAttenuationsImageType::ConstPointer GetMaterialAttenuations()
SimplexSpectralProjectionsDecompositionImageFilter Self
MeasuredProjectionsType::ConstPointer GetInputMeasuredProjections()
itk::VariableLengthVector< double > ThresholdsType
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
SimplexSpectralProjectionsDecompositionImageFilter()
itk::ImageSource< DecomposedProjectionsType >::Pointer m_CastDecomposedProjectionsPointer
void SetInputMeasuredProjections(const typename itk::ImageBase< MeasuredProjectionsType::ImageDimension > *MeasuredProjections)
unsigned int m_NumberOfEnergies
~SimplexSpectralProjectionsDecompositionImageFilter() override=default
vnl_matrix< double > MaterialAttenuationsType
MaterialAttenuationsType m_MaterialAttenuations
bool m_LogTransformEachBin
MeanAttenuationInBinType m_MeanAttenuationInBin
void SetInputDecomposedProjections(const typename itk::ImageBase< DecomposedProjectionsType::ImageDimension > *DecomposedProjections)
void VerifyInputInformation() const override
void GenerateOutputInformation() override
bool m_OutputFischerMatrix
DecomposedProjectionsType OutputImageType
ThresholdsType m_Thresholds
DetectorResponseType m_DetectorResponse
unsigned int m_NumberOfIterations
vnl_matrix< double > DetectorResponseType
typename MeasuredProjectionsType::PixelType::ValueType MeasuredProjectionsDataType
DecomposedProjectionsType::ConstPointer GetInputDecomposedProjections()
void BeforeThreadedGenerateData() override
void SetDetectorResponse(const DetectorResponseImageType *DetectorResponse)
typename DecomposedProjectionsType::PixelType::ValueType DecomposedProjectionsDataType
itk::ImageToImageFilter< DecomposedProjectionsType, DecomposedProjectionsType > Superclass
void SetInputFixedVectorLengthDecomposedProjections(const itk::Image< itk::Vector< DecomposedProjectionsDataType, VNumberOfMaterials >, DecomposedProjectionsType::ImageDimension > *DecomposedProjections)
itk::SmartPointer< Self > Pointer
itk::ImageSource< MeasuredProjectionsType >::Pointer m_CastMeasuredProjectionsPointer
bool m_GuessInitialization
itk::VariableSizeMatrix< double > MeanAttenuationInBinType
unsigned int m_NumberOfMaterials
unsigned int m_NumberOfSpectralBins
IncidentSpectrumImageType::ConstPointer GetInputIncidentSpectrum()
DecomposedProjectionsType InputImageType
void GenerateInputRequestedRegion() override
itk::SmartPointer< const Self > ConstPointer
void SetMaterialAttenuations(const MaterialAttenuationsImageType *MaterialAttenuations)
void SetInputIncidentSpectrum(const IncidentSpectrumImageType *IncidentSpectrum)
Re-writes a vector image as an image.
#define itkSetMacro(name, type)