19#ifndef rtkJosephForwardAttenuatedProjectionImageFilter_h
20#define rtkJosephForwardAttenuatedProjectionImageFilter_h
22#include "rtkConfiguration.h"
42template <
class TInput,
class TCoordinateType,
class TOutput = TInput>
66 return !(*
this != other);
71 const double stepLengthInVoxel,
72 const TCoordinateType weight,
76 const double w = weight * stepLengthInVoxel;
118template <
class TInput,
class TOutput>
135 return !(*
this != other);
153 m_Ex1[threadId] = ex2;
155 sumValue += wf * volumeValue;
187template <
class TInput,
class TOutput>
205 return !(*
this != other);
210 const TInput & input,
212 const TOutput & rayCastValue,
216 const PointType & itkNotUsed(nearestPoint),
217 const PointType & itkNotUsed(farthestPoint))
219 output = input + rayCastValue;
260 typename TInputImage::PixelType,
262 class TProjectedValueAccumulation =
269 TInterpolationWeightMultiplication,
270 TProjectedValueAccumulation,
280 TInterpolationWeightMultiplication,
281 TProjectedValueAccumulation,
318#ifndef ITK_MANUAL_INSTANTIATION
319# include "rtkJosephForwardAttenuatedProjectionImageFilter.hxx"
Traits for a pixel that define the dimension and component type.
A templated class holding a geometric point in n-Dimensional space.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
RealValueType GetNorm() const
Function to compute the attenuation correction on the projection.
TInput * m_AttenuationPixel
void SetAttenuationPixelVector(TInput *attenuationPixelVector)
void SetAttenuationRayVector(TInput *attenuationRayVector)
TInput * m_AttenuationRay
itk::Vector< double, 3 > VectorType
ComputeAttenuationCorrection()=default
bool operator!=(const ComputeAttenuationCorrection &) const
~ComputeAttenuationCorrection()=default
void operator()(const ThreadIdType threadId, TOutput &sumValue, const TInput volumeValue, const VectorType &stepInMM)
bool operator==(const ComputeAttenuationCorrection &other) const
Function to multiply the interpolation weights with the projected volume values and attenuation map.
bool operator!=(const InterpolationWeightMultiplicationAttenuated &) const
std::ptrdiff_t m_AttenuationMinusEmissionMapsPtrDiff
TOutput * GetAttenuationPixel()
void SetAttenuationMinusEmissionMapsPtrDiff(std::ptrdiff_t pd)
TInput m_Ex1[itk::ITK_MAX_THREADS]
~InterpolationWeightMultiplicationAttenuated()=default
TOutput * GetAttenuationRay()
TInput m_AttenuationPixel[itk::ITK_MAX_THREADS]
bool operator==(const InterpolationWeightMultiplicationAttenuated &other) const
InterpolationWeightMultiplicationAttenuated()
TInput m_AttenuationRay[itk::ITK_MAX_THREADS]
TOutput operator()(const ThreadIdType threadId, const double stepLengthInVoxel, const TCoordinateType weight, const TInput *p, const ptrdiff_t i)
Function to accumulate the ray casting on the projection.
bool operator!=(const ProjectedValueAccumulationAttenuated &) const
~ProjectedValueAccumulationAttenuated()=default
void operator()(const ThreadIdType threadId, const TInput &input, TOutput &output, const TOutput &rayCastValue, const VectorType &, const PointType &source, const VectorType &sourceToPixel, const PointType &nearestPoint, const PointType &farthestPoint)
itk::Point< double, 3 > PointType
void SetAttenuationVector(TInput *attenuationVector)
itk::Vector< double, 3 > VectorType
ProjectedValueAccumulationAttenuated()=default
bool operator==(const ProjectedValueAccumulationAttenuated &other) const
itk::Vector< CoordinateType, TInputImage::ImageDimension > VectorType
void BeforeThreadedGenerateData() override
JosephForwardAttenuatedProjectionImageFilter Self
typename TOutputImage::RegionType OutputImageRegionType
typename TInputImage::PixelType InputPixelType
typename TOutputImage::PixelType OutputPixelType
static constexpr unsigned int InputImageDimension
JosephForwardAttenuatedProjectionImageFilter()
void GenerateInputRequestedRegion() override
void VerifyInputInformation() const override
~JosephForwardAttenuatedProjectionImageFilter() override=default
JosephForwardProjectionImageFilter< TInputImage, TOutputImage, TInterpolationWeightMultiplication, TProjectedValueAccumulation, TSumAlongRay > Superclass
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
JosephForwardProjectionImageFilter()
constexpr vcl_size_t ITK_MAX_THREADS
unsigned int ThreadIdType