19#ifndef rtkJosephForwardProjectionImageFilter_h
20#define rtkJosephForwardProjectionImageFilter_h
22#include "rtkConfiguration.h"
42template <
class TInput,
class TCoordinateType,
class TOutput = TInput>
56 return !(*
this != other);
61 const double itkNotUsed(stepLengthInVoxel),
62 const TCoordinateType weight,
64 const ptrdiff_t i)
const
77template <
class TInput,
class TOutput>
93 return !(*
this != other);
99 const TInput volumeValue,
102 sumValue +=
static_cast<TOutput
>(volumeValue);
113template <
class TInput,
class TOutput>
130 return !(*
this != other);
135 const TInput & input,
137 const TOutput & rayCastValue,
141 const PointType & itkNotUsed(nearestPoint),
142 const PointType & itkNotUsed(farthestPoint))
const
144 output = input + rayCastValue * stepInMM.
GetNorm();
166template <
class TInputImage,
168 class TInterpolationWeightMultiplication = Functor::InterpolationWeightMultiplication<
169 typename TInputImage::PixelType,
171 class TProjectedValueAccumulation =
172 Functor::ProjectedValueAccumulation<typename TInputImage::PixelType, typename TOutputImage::PixelType>,
173 class TSumAlongRay = Functor::SumAlongRay<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
200 TInterpolationWeightMultiplication &
205 const TInterpolationWeightMultiplication &
222 TProjectedValueAccumulation &
227 const TProjectedValueAccumulation &
272 typename TClipImageType::ConstPointer
287 typename TClipImageType::ConstPointer
296 itkGetMacro(InferiorClip,
double);
298 itkGetMacro(SuperiorClip,
double);
319 double stepLengthInVoxel,
331 double stepLengthInVoxel,
356#ifndef ITK_MANUAL_INSTANTIATION
357# include "rtkJosephForwardProjectionImageFilter.hxx"
virtual void SetInput(const InputImageType *input)
Templated n-dimensional image class.
SmartPointer< Self > Pointer
virtual void Modified() const
Traits for a pixel that define the dimension and component type.
A templated class holding a geometric point in n-Dimensional space.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
RealValueType GetNorm() const
ForwardProjectionImageFilter()
TOutput operator()(const ThreadIdType threadId, const double stepLengthInVoxel, const TCoordinateType weight, const TInput *p, const ptrdiff_t i) const
bool operator!=(const InterpolationWeightMultiplication &) const
bool operator==(const InterpolationWeightMultiplication &other) const
InterpolationWeightMultiplication()=default
~InterpolationWeightMultiplication()=default
itk::Vector< double, 3 > VectorType
bool operator!=(const ProjectedValueAccumulation &) const
void operator()(const ThreadIdType threadId, const TInput &input, TOutput &output, const TOutput &rayCastValue, const VectorType &stepInMM, const PointType &source, const VectorType &sourceToPixel, const PointType &nearestPoint, const PointType &farthestPoint) const
bool operator==(const ProjectedValueAccumulation &other) const
ProjectedValueAccumulation()=default
~ProjectedValueAccumulation()=default
itk::Point< double, 3 > PointType
void operator()(const ThreadIdType threadId, TOutput &sumValue, const TInput volumeValue, const VectorType &stepInMM)
bool operator==(const SumAlongRay &other) const
itk::Vector< double, 3 > VectorType
bool operator!=(const SumAlongRay &) const
TSumAlongRay & GetSumAlongRay()
JosephForwardProjectionImageFilter Self
JosephForwardProjectionImageFilter()
TSumAlongRay m_SumAlongRay
OutputPixelType BilinearInterpolationOnBorders(ThreadIdType threadId, 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)
itk::Vector< CoordinateType, TInputImage::ImageDimension > VectorType
TInterpolationWeightMultiplication m_InterpolationWeightMultiplication
void GenerateInputRequestedRegion() override
ForwardProjectionImageFilter< TInputImage, TOutputImage > Superclass
itk::SmartPointer< const Self > ConstPointer
void SetInferiorClipImage(const TClipImageType *inferiorClipImage)
TClipImageType::ConstPointer GetSuperiorClipImage()
void SetSumAlongRay(const TSumAlongRay &_arg)
TClipImageType::ConstPointer GetInferiorClipImage()
typename TInputImage::PixelType InputPixelType
typename TClipImageType::Pointer TClipImagePointer
OutputPixelType BilinearInterpolation(ThreadIdType threadId, double stepLengthInVoxel, const InputPixelType *pxiyi, const InputPixelType *pxsyi, const InputPixelType *pxiys, const InputPixelType *pxsys, double x, double y, ptrdiff_t ox, ptrdiff_t oy)
itk::SmartPointer< Self > Pointer
TProjectedValueAccumulation & GetProjectedValueAccumulation()
void SetProjectedValueAccumulation(const TProjectedValueAccumulation &_arg)
TProjectedValueAccumulation m_ProjectedValueAccumulation
void SetSuperiorClipImage(const TClipImageType *superiorClipImage)
void SetInterpolationWeightMultiplication(const TInterpolationWeightMultiplication &_arg)
const TInterpolationWeightMultiplication & GetInterpolationWeightMultiplication() const
const TProjectedValueAccumulation & GetProjectedValueAccumulation() const
void VerifyInputInformation() const override
typename TOutputImage::RegionType OutputImageRegionType
itk::Image< double, TOutputImage::ImageDimension > TClipImageType
~JosephForwardProjectionImageFilter() override=default
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
typename TOutputImage::PixelType OutputPixelType
TInterpolationWeightMultiplication & GetInterpolationWeightMultiplication()
const TSumAlongRay & GetSumAlongRay() const
unsigned int ThreadIdType
#define itkSetMacro(name, type)