18#ifndef rtkWeidingerForwardModelImageFilter_h
19#define rtkWeidingerForwardModelImageFilter_h
25# include <itkCudaImage.h>
41template <
class TDecomposedProjections,
42 class TMeasuredProjections,
43 class TIncidentSpectrum,
64 static constexpr unsigned int nBins = TMeasuredProjections::PixelType::Dimension;
65 static constexpr unsigned int nMaterials = TDecomposedProjections::PixelType::Dimension;
68 using dataType =
typename TDecomposedProjections::PixelType::ValueType;
77 using TOutputImage2 = itk::CudaImage<TPixelOutput2, TDecomposedProjections::ImageDimension>;
95#ifndef ITK_FUTURE_LEGACY_REMOVE
97 SetInputMaterialProjections(
const TDecomposedProjections * decomposedProjections);
99 SetInputPhotonCounts(
const TMeasuredProjections * measuredProjections);
101 SetInputSpectrum(
const TIncidentSpectrum * incidentSpectrum);
139 typename TDecomposedProjections::ConstPointer
141 typename TMeasuredProjections::ConstPointer
143 typename TIncidentSpectrum::ConstPointer
145#ifndef ITK_FUTURE_LEGACY_REMOVE
146 typename TDecomposedProjections::ConstPointer
147 GetInputMaterialProjections();
148 typename TMeasuredProjections::ConstPointer
149 GetInputPhotonCounts();
150 typename TIncidentSpectrum::ConstPointer
153 typename TProjections::ConstPointer
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "rtkWeidingerForwardModelImageFilter.hxx"
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
DataObject::Pointer DataObjectPointer
DataObject::DataObjectIdentifierType DataObjectIdentifierType
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
TDecomposedProjections::ConstPointer GetInputDecomposedProjections()
virtual void SetMaterialAttenuations(const MaterialAttenuationsType &matAtt)
MaterialAttenuationsType m_MaterialAttenuations
static constexpr unsigned int nMaterials
void SetInputMeasuredProjections(const TMeasuredProjections *measuredProjections)
TOutputImage1 * GetOutput1()
void SetInputIncidentSpectrum(const TIncidentSpectrum *incidentSpectrum)
void SetInputProjectionsOfOnes(const TProjections *projectionsOfOnes)
void DynamicThreadedGenerateData(const typename TOutputImage1::RegionType &outputRegionForThread) override
WeidingerForwardModelImageFilter Self
itk::Vector< dataType, nMaterials *nMaterials > TPixelOutput2
typename TOutputImage::PixelType::ValueType dataType
TIncidentSpectrum::ConstPointer GetInputIncidentSpectrum()
~WeidingerForwardModelImageFilter() override=default
void VerifyInputInformation() const override
Verifies that the input images occupy the same physical space and the each index is at the same physi...
void SetInputDecomposedProjections(const TDecomposedProjections *decomposedProjections)
itk::ProcessObject::DataObjectPointer MakeOutput(itk::ProcessObject::DataObjectPointerArraySizeType idx) override
itk::ImageToImageFilter< TOutputImage, TOutputImage > Superclass
itk::SmartPointer< Self > Pointer
itk::ProcessObject::DataObjectPointer MakeOutput(const itk::ProcessObject::DataObjectIdentifierType &) override
virtual void SetBinnedDetectorResponse(const BinnedDetectorResponseType &detResp)
static constexpr unsigned int nBins
void GenerateInputRequestedRegion() override
TOutputImage TOutputImage1
TOutputImage2 * GetOutput2()
vnl_matrix< dataType > BinnedDetectorResponseType
itk::SizeValueType m_NumberOfProjectionsInIncidentSpectrum
itk::Image< TPixelOutput2, TOutputImage::ImageDimension > TOutputImage2
TMeasuredProjections::ConstPointer GetInputMeasuredProjections()
WeidingerForwardModelImageFilter()
TProjections::ConstPointer GetInputProjectionsOfOnes()
BinnedDetectorResponseType m_BinnedDetectorResponse
vnl_matrix< dataType > MaterialAttenuationsType
unsigned long SizeValueType