19#ifndef rtkSpectralForwardModelImageFilter_h
20#define rtkSpectralForwardModelImageFilter_h
44template <
typename DecomposedProjectionsType,
45 typename MeasuredProjectionsType,
72#ifndef ITK_FUTURE_LEGACY_REMOVE
88#ifndef ITK_FUTURE_LEGACY_REMOVE
92 typename IncidentSpectrumImageType::ConstPointer
99 template <
unsigned int VNumberOfMaterials>
103 DecomposedProjectionsType::ImageDimension> * DecomposedProjections);
104 typename DecomposedProjectionsType::ConstPointer
111 template <
unsigned int VNumberOfSpectralBins>
115 MeasuredProjectionsType::ImageDimension> * MeasuredProjections);
116 typename MeasuredProjectionsType::ConstPointer
122 typename DetectorResponseImageType::ConstPointer
128 typename MaterialAttenuationsImageType::ConstPointer
131 typename DecomposedProjectionsType::ConstPointer
134 typename MeasuredProjectionsType::ConstPointer
141 itkGetMacro(NumberOfSpectralBins,
unsigned int);
144 itkGetMacro(NumberOfMaterials,
unsigned int);
147 itkGetMacro(NumberOfEnergies,
unsigned int);
150 itkGetMacro(ComputeVariances,
bool);
153 itkGetMacro(ComputeCramerRaoLowerBound,
bool);
203#ifndef ITK_FUTURE_LEGACY_REMOVE
205 typename FlattenVectorFilterType::Pointer m_FlattenFilter;
206 typename PermuteFilterType::Pointer m_PermuteFilter;
211template <
typename OutputElementType,
typename DetectorResponseImageType,
typename ThresholdsType>
212vnl_matrix<OutputElementType>
214 const ThresholdsType & thresholds,
215 unsigned int numberOfEnergies);
220#ifndef ITK_MANUAL_INSTANTIATION
221# include "rtkSpectralForwardModelImageFilter.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.
Base class for filters that take an image as input and overwrite that image as the output.
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.
Templated n-dimensional vector image class.
A templated class holding a n-Dimensional vector.
IncidentSpectrumImageType::ConstPointer GetInputIncidentSpectrum()
void VerifyInputInformation() const override
itk::ImageToImageFilter< MeasuredProjectionsType, MeasuredProjectionsType > Superclass
itk::DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
SpectralForwardModelImageFilter Self
MeasuredProjectionsType::ConstPointer GetInputMeasuredProjections()
unsigned int m_NumberOfMaterials
DecomposedProjectionsType::ConstPointer GetInputDecomposedProjections()
~SpectralForwardModelImageFilter() override=default
void SetInputIncidentSpectrum(const IncidentSpectrumImageType *IncidentSpectrum)
DecomposedProjectionsType::ConstPointer GetOutputCramerRaoLowerBound()
void SetInputDecomposedProjections(const typename itk::ImageBase< DecomposedProjectionsType::ImageDimension > *DecomposedProjections)
itk::ImageSource< DecomposedProjectionsType >::Pointer m_CastDecomposedProjectionsPointer
itk::SmartPointer< const Self > ConstPointer
DetectorResponseImageType::ConstPointer GetDetectorResponse()
void SetInputMeasuredProjections(const typename itk::ImageBase< MeasuredProjectionsType::ImageDimension > *MeasuredProjections)
void SetInputFixedVectorLengthDecomposedProjections(const itk::Image< itk::Vector< DecomposedProjectionsDataType, VNumberOfMaterials >, DecomposedProjectionsType::ImageDimension > *DecomposedProjections)
MeasuredProjectionsType InputImageType
itk::ImageSource< MeasuredProjectionsType >::Pointer m_CastMeasuredProjectionsPointer
vnl_matrix< double > DetectorResponseType
MeasuredProjectionsType OutputImageType
DetectorResponseType m_DetectorResponse
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
unsigned int m_NumberOfIterations
unsigned int m_NumberOfSpectralBins
typename MeasuredProjectionsType::PixelType::ValueType MeasuredProjectionsDataType
vnl_matrix< double > MaterialAttenuationsType
void SetMaterialAttenuations(const MaterialAttenuationsImageType *MaterialAttenuations)
ThresholdsType m_Thresholds
itk::VariableLengthVector< double > ThresholdsType
MaterialAttenuationsType m_MaterialAttenuations
void GenerateOutputInformation() override
void SetDetectorResponse(const DetectorResponseImageType *DetectorResponse)
void GenerateInputRequestedRegion() override
unsigned int m_NumberOfEnergies
void SetInputFixedVectorLengthMeasuredProjections(const itk::Image< itk::Vector< MeasuredProjectionsDataType, VNumberOfSpectralBins >, MeasuredProjectionsType::ImageDimension > *MeasuredProjections)
typename DecomposedProjectionsType::PixelType::ValueType DecomposedProjectionsDataType
SpectralForwardModelImageFilter()
bool m_OptimizeWithRestarts
void DynamicThreadedGenerateData(const typename OutputImageType::RegionType &outputRegionForThread) override
bool m_ComputeCramerRaoLowerBound
void BeforeThreadedGenerateData() override
itk::SmartPointer< Self > Pointer
MeasuredProjectionsType::ConstPointer GetOutputVariances()
MaterialAttenuationsImageType::ConstPointer GetMaterialAttenuations()
Re-writes a vector image as an image.
vnl_matrix< OutputElementType > SpectralBinDetectorResponse(const DetectorResponseImageType *drm, const ThresholdsType &thresholds, unsigned int numberOfEnergies)
#define itkSetMacro(name, type)