19#ifndef rtkJosephBackAttenuatedProjectionImageFilter_h
20#define rtkJosephBackAttenuatedProjectionImageFilter_h
22#include "rtkConfiguration.h"
38template <
class TInput,
class TCoordinateType,
class TOutput = TInput>
54 return !(*
this != other);
58 operator()(
const double stepLengthInVoxel,
const TCoordinateType weight,
const TInput * p,
const ptrdiff_t i)
60 const double w = weight * stepLengthInVoxel;
89template <
class TInput,
class TOutput>
107 return !(*
this != other);
118 TInput ex2 = exp(-attenuationRay * stepInMM.
GetNorm());
131 return wf * rayValue;
153template <
class TInput,
class TCoordinateType,
class TOutput = TCoordinateType>
168 return !(*
this != other);
174 const double stepLengthInVoxel,
175 const double itkNotUsed(voxelSize),
176 const TCoordinateType weight)
const
178 output += rayValue * weight * stepLengthInVoxel;
200 class TInterpolationWeightMultiplication = Functor::InterpolationWeightMultiplicationAttenuatedBackProjection<
201 typename TInputImage::PixelType,
203 class TSplatWeightMultiplication = Functor::
204 SplatWeightMultiplicationAttenuated<typename TInputImage::PixelType, double, typename TOutputImage::PixelType>,
205 class TSumAlongRay = Functor::ComputeAttenuationCorrectionBackProjection<
typename TInputImage::PixelType,
206 typename TOutputImage::PixelType>>
210 TInterpolationWeightMultiplication,
211 TSplatWeightMultiplication,
221 TInterpolationWeightMultiplication,
222 TSplatWeightMultiplication,
264#ifndef ITK_MANUAL_INSTANTIATION
265# include "rtkJosephBackAttenuatedProjectionImageFilter.hxx"
Traits for a pixel that define the dimension and component type.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
RealValueType GetNorm() const
~ComputeAttenuationCorrectionBackProjection()=default
bool operator!=(const ComputeAttenuationCorrectionBackProjection &) const
TInput * m_AttenuationPixel
bool operator==(const ComputeAttenuationCorrectionBackProjection &other) const
itk::Vector< double, 3 > VectorType
TOutput operator()(const TInput rayValue, const TInput attenuationRay, const VectorType &stepInMM, bool &isNewRay)
void SetAttenuationPixel(TInput *attenuationPixel)
ComputeAttenuationCorrectionBackProjection()
bool operator!=(const InterpolationWeightMultiplicationAttenuatedBackProjection &) const
TInput m_AttenuationPixel
~InterpolationWeightMultiplicationAttenuatedBackProjection()=default
bool operator==(const InterpolationWeightMultiplicationAttenuatedBackProjection &other) const
void SetAttenuationMinusEmissionMapsPtrDiff(std::ptrdiff_t pd)
TOutput operator()(const double stepLengthInVoxel, const TCoordinateType weight, const TInput *p, const ptrdiff_t i)
std::ptrdiff_t m_AttenuationMinusEmissionMapsPtrDiff
TOutput * GetAttenuationPixel()
InterpolationWeightMultiplicationAttenuatedBackProjection()
void operator()(const TInput &rayValue, TOutput &output, const double stepLengthInVoxel, const double voxelSize, const TCoordinateType weight) const
~SplatWeightMultiplicationAttenuated()=default
SplatWeightMultiplicationAttenuated()=default
bool operator==(const SplatWeightMultiplicationAttenuated &other) const
bool operator!=(const SplatWeightMultiplicationAttenuated &) const
JosephBackAttenuatedProjectionImageFilter()
static constexpr unsigned int InputImageDimension
typename TInputImage::PixelType InputPixelType
JosephBackAttenuatedProjectionImageFilter Self
JosephBackProjectionImageFilter< TInputImage, TOutputImage, TInterpolationWeightMultiplication, TSplatWeightMultiplication, TSumAlongRay > Superclass
typename TOutputImage::PixelType OutputPixelType
void VerifyInputInformation() const override
itk::SmartPointer< const Self > ConstPointer
itk::Vector< CoordinateType, TInputImage::ImageDimension > VectorType
itk::SmartPointer< Self > Pointer
typename TOutputImage::RegionType OutputImageRegionType
rtk::ThreeDCircularProjectionGeometry GeometryType
~JosephBackAttenuatedProjectionImageFilter() override=default
void GenerateData() override
typename GeometryType::Pointer GeometryPointer
void GenerateInputRequestedRegion() override
JosephBackProjectionImageFilter()
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< Self > Pointer