18 #ifndef rtkAddMatrixAndDiagonalImageFilter_h 19 #define rtkAddMatrixAndDiagonalImageFilter_h 40 template <
class TDiagonal,
42 TDiagonal::PixelType::Dimension * TDiagonal::PixelType::Dimension>,
43 TDiagonal::ImageDimension>>
58 #ifdef itkOverrideGetNameOfClassMacro 66 static constexpr
unsigned int nChannels = TDiagonal::PixelType::Dimension;
69 using dataType =
typename TDiagonal::PixelType::ValueType;
73 SetInputDiagonal(
const TDiagonal * gradient);
75 SetInputMatrix(
const TMatrix * hessian);
83 GenerateInputRequestedRegion()
override;
87 DynamicThreadedGenerateData(
const typename TDiagonal::RegionType & outputRegionForThread)
override;
90 typename TDiagonal::ConstPointer
92 typename TMatrix::ConstPointer
99 #ifndef ITK_MANUAL_INSTANTIATION 100 # include "rtkAddMatrixAndDiagonalImageFilter.hxx" typename TDiagonal::PixelType::ValueType dataType
For each vector-valued pixel, adds a vector to the diagonal of a matrix.