19#ifndef rtkJosephBackProjectionImageFilter_h
20#define rtkJosephBackProjectionImageFilter_h
22#include "rtkConfiguration.h"
40template <
class TInput,
class TCoordinateType,
class TOutput = TInput>
54 return !(*
this != other);
59 const TCoordinateType itkNotUsed(weight),
60 const TInput * itkNotUsed(p),
61 const ptrdiff_t itkNotUsed(i))
const
74template <
class TInput,
class TOutput>
90 return !(*
this != other);
95 const TInput itkNotUsed(attenuationRay),
97 bool itkNotUsed(isEndRay))
const
110template <
class TInput,
class TCoordinateType,
class TOutput = TCoordinateType>
124 return !(*
this != other);
130 const double stepLengthInVoxel,
131 const double voxelSize,
132 const TCoordinateType weight)
const
134 output += rayValue * weight * voxelSize * stepLengthInVoxel;
158 class TInterpolationWeightMultiplication = Functor::InterpolationWeightMultiplicationBackProjection<
159 typename TInputImage::PixelType,
161 class TSplatWeightMultiplication =
162 Functor::SplatWeightMultiplication<typename TInputImage::PixelType, double, typename TOutputImage::PixelType>,
163 class TSumAlongRay = Functor::ValueAlongRay<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
189 TInterpolationWeightMultiplication &
194 const TInterpolationWeightMultiplication &
210 TSplatWeightMultiplication &
215 const TSplatWeightMultiplication &
254 itkGetMacro(InferiorClip,
double);
256 itkGetMacro(SuperiorClip,
double);
274 double stepLengthInVoxel,
287 double stepLengthInVoxel,
338#ifndef ITK_MANUAL_INSTANTIATION
339# include "rtkJosephBackProjectionImageFilter.hxx"
virtual void Modified() const
Traits for a pixel that define the dimension and component type.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
BackProjectionImageFilter()
bool operator==(const InterpolationWeightMultiplicationBackProjection &other) const
TOutput operator()(const double stepLengthInVoxel, const TCoordinateType weight, const TInput *p, const ptrdiff_t i) const
~InterpolationWeightMultiplicationBackProjection()=default
bool operator!=(const InterpolationWeightMultiplicationBackProjection &) const
InterpolationWeightMultiplicationBackProjection()=default
bool operator!=(const SplatWeightMultiplication &) const
void operator()(const TInput &rayValue, TOutput &output, const double stepLengthInVoxel, const double voxelSize, const TCoordinateType weight) const
bool operator==(const SplatWeightMultiplication &other) const
SplatWeightMultiplication()=default
~SplatWeightMultiplication()=default
const TOutput & operator()(const TInput &rayValue, const TInput attenuationRay, const VectorType &stepInMM, bool isEndRay) const
bool operator!=(const ValueAlongRay &) const
itk::Vector< double, 3 > VectorType
bool operator==(const ValueAlongRay &other) const
TSplatWeightMultiplication m_SplatWeightMultiplication
void BilinearSplatOnBorders(const InputPixelType &rayValue, double stepLengthInVoxel, double voxelSize, OutputPixelType *pxiyi, OutputPixelType *pxsyi, OutputPixelType *pxiys, OutputPixelType *pxsys, double x, double y, ptrdiff_t ox, ptrdiff_t oy, CoordinateType minx, CoordinateType miny, CoordinateType maxx, CoordinateType maxy)
OutputPixelType BilinearInterpolationOnBorders(double stepLengthInVoxel, const InputPixelType *pxiyi, const InputPixelType *pxsyi, const InputPixelType *pxiys, const InputPixelType *pxsys, double x, double y, ptrdiff_t ox, ptrdiff_t oy, double minx, double miny, double maxx, double maxy)
void SetSumAlongRay(const TSumAlongRay &_arg)
TSplatWeightMultiplication & GetSplatWeightMultiplication()
const TSplatWeightMultiplication & GetSplatWeightMultiplication() const
void SetSplatWeightMultiplication(const TSplatWeightMultiplication &_arg)
TInterpolationWeightMultiplication & GetInterpolationWeightMultiplication()
itk::SmartPointer< const Self > ConstPointer
typename GeometryType::Pointer GeometryPointer
TInterpolationWeightMultiplication m_InterpolationWeightMultiplication
typename TInputImage::PixelType InputPixelType
const TSumAlongRay & GetSumAlongRay() const
itk::SmartPointer< Self > Pointer
rtk::ThreeDCircularProjectionGeometry GeometryType
void VerifyInputInformation() const override
void BilinearSplat(const InputPixelType &rayValue, double stepLengthInVoxel, double voxelSize, OutputPixelType *pxiyi, OutputPixelType *pxsyi, OutputPixelType *pxiys, OutputPixelType *pxsys, double x, double y, ptrdiff_t ox, ptrdiff_t oy)
itk::Vector< CoordinateType, TInputImage::ImageDimension > VectorType
TSumAlongRay & GetSumAlongRay()
typename TOutputImage::RegionType OutputImageRegionType
typename TOutputImage::PixelType OutputPixelType
const TInterpolationWeightMultiplication & GetInterpolationWeightMultiplication() const
~JosephBackProjectionImageFilter() override=default
void GenerateData() override
JosephBackProjectionImageFilter()
JosephBackProjectionImageFilter Self
void SetInterpolationWeightMultiplication(const TInterpolationWeightMultiplication &_arg)
TSumAlongRay m_SumAlongRay
BackProjectionImageFilter< TInputImage, TOutputImage > Superclass
OutputPixelType BilinearInterpolation(double stepLengthInVoxel, const InputPixelType *pxiyi, const InputPixelType *pxsyi, const InputPixelType *pxiys, const InputPixelType *pxsys, double x, double y, ptrdiff_t ox, ptrdiff_t oy)
Projection geometry for a source and a 2-D flat panel.
itk::SmartPointer< Self > Pointer
#define itkSetMacro(name, type)