Skip to content

Commit

Permalink
STYLE: Rename template parameters according to ITK style
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit authored and SimonRit committed Dec 4, 2023
1 parent 38df5e8 commit deb0f0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions include/rtkLaplacianImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ namespace rtk
* \ingroup RTK IntensityImageFilters
*/

template <typename OutputImageType, typename GradientImageType>
class ITK_TEMPLATE_EXPORT LaplacianImageFilter : public itk::ImageToImageFilter<OutputImageType, OutputImageType>
template <typename TOutputImage, typename TGradientImage>
class ITK_TEMPLATE_EXPORT LaplacianImageFilter : public itk::ImageToImageFilter<TOutputImage, TOutputImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(LaplacianImageFilter);

/** Standard class type alias. */
using Self = LaplacianImageFilter;
using Superclass = itk::ImageToImageFilter<OutputImageType, OutputImageType>;
using Superclass = itk::ImageToImageFilter<TOutputImage, TOutputImage>;
using Pointer = itk::SmartPointer<Self>;
using OutputImagePointer = typename OutputImageType::Pointer;
using GradientFilterType = rtk::ForwardDifferenceGradientImageFilter<OutputImageType,
typename OutputImageType::ValueType,
typename OutputImageType::ValueType,
GradientImageType>;
using DivergenceFilterType = rtk::BackwardDifferenceDivergenceImageFilter<GradientImageType, OutputImageType>;
using OutputImagePointer = typename TOutputImage::Pointer;
using GradientFilterType = rtk::ForwardDifferenceGradientImageFilter<TOutputImage,
typename TOutputImage::ValueType,
typename TOutputImage::ValueType,
TGradientImage>;
using DivergenceFilterType = rtk::BackwardDifferenceDivergenceImageFilter<TGradientImage, TOutputImage>;

/** Method for creation through the object factory. */
itkNewMacro(Self);
Expand Down
12 changes: 6 additions & 6 deletions include/rtkLaplacianImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
namespace rtk
{

template <typename OutputImageType, typename GradientImageType>
LaplacianImageFilter<OutputImageType, GradientImageType>::LaplacianImageFilter()
template <typename TOutputImage, typename TGradientImage>
LaplacianImageFilter<TOutputImage, TGradientImage>::LaplacianImageFilter()
{
// Create the filters
m_Gradient = GradientFilterType::New();
Expand All @@ -37,9 +37,9 @@ LaplacianImageFilter<OutputImageType, GradientImageType>::LaplacianImageFilter()
m_Gradient->ReleaseDataFlagOn();
}

template <typename OutputImageType, typename GradientImageType>
template <typename TOutputImage, typename TGradientImage>
void
LaplacianImageFilter<OutputImageType, GradientImageType>::GenerateOutputInformation()
LaplacianImageFilter<TOutputImage, TGradientImage>::GenerateOutputInformation()
{
Superclass::GenerateOutputInformation();

Expand All @@ -53,9 +53,9 @@ LaplacianImageFilter<OutputImageType, GradientImageType>::GenerateOutputInformat
this->GetOutput()->CopyInformation(m_Divergence->GetOutput());
}

template <typename OutputImageType, typename GradientImageType>
template <typename TOutputImage, typename TGradientImage>
void
LaplacianImageFilter<OutputImageType, GradientImageType>::GenerateData()
LaplacianImageFilter<TOutputImage, TGradientImage>::GenerateData()
{
// Update the last filter
m_Divergence->Update();
Expand Down

0 comments on commit deb0f0c

Please sign in to comment.