19#ifndef rtkMaximumIntensityProjectionImageFilter_h
20#define rtkMaximumIntensityProjectionImageFilter_h
36template <
class TInput,
class TOutput>
52 return !(*
this != other);
58 const TInput volumeValue,
61 auto tmp =
static_cast<TOutput
>(volumeValue);
76template <
class TInput,
class TOutput>
91 return !(*
this != other);
98 const TOutput & rayCastValue,
102 const PointType & itkNotUsed(nearestPoint),
103 const PointType & itkNotUsed(farthestPoint))
const
105 auto tmp =
static_cast<TOutput
>(input);
106 if (tmp < rayCastValue)
110 output = tmp * stepInMM.
GetNorm();
128template <
class TInputImage,
130 class TInterpolationWeightMultiplication = Functor::InterpolationWeightMultiplication<
131 typename TInputImage::PixelType,
133 class TProjectedValueAccumulation =
134 Functor::MaximumIntensityProjectedValueAccumulation<
typename TInputImage::PixelType,
135 typename TOutputImage::PixelType>,
137 Functor::MaximumIntensityAlongRay<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
141 TInterpolationWeightMultiplication,
142 TProjectedValueAccumulation,
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
MaximumIntensityAlongRay()=default
bool operator!=(const MaximumIntensityAlongRay &) const
void operator()(const ThreadIdType threadId, TOutput &mipValue, const TInput volumeValue, const VectorType &stepInMM)
bool operator==(const MaximumIntensityAlongRay &other) const
itk::Vector< double, 3 > VectorType
~MaximumIntensityAlongRay()=default
Function to calculate maximum intensity step along the ray projection.
itk::Vector< double, 3 > VectorType
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 MaximumIntensityProjectedValueAccumulation &) const
bool operator==(const MaximumIntensityProjectedValueAccumulation &other) const
itk::Point< double, 3 > PointType
JosephForwardProjectionImageFilter()
MaximumIntensityProjectionImageFilter Self
itk::SmartPointer< Self > Pointer
MaximumIntensityProjectionImageFilter()=default
~MaximumIntensityProjectionImageFilter() override=default
unsigned int ThreadIdType