Skip to content

Commit

Permalink
COMP: remove unused type warning
Browse files Browse the repository at this point in the history
Fixes the warning

Modules/Remote/RTK/applications/rtkextractphasesignal/rtkextractphasesignal.cxx:52:63:
warning: typedef ‘using InputImageType = class itk::Image<double, 1>’
locally defined but not used [-Wunused-local-typedefs]
  • Loading branch information
Simon Rit committed Feb 23, 2022
1 parent 9a386c5 commit c4c8c53
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions applications/rtkextractphasesignal/rtkextractphasesignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,17 @@ main(int argc, char * argv[])
{
GGO(rtkextractphasesignal, args_info);

using InputPixelType = double;
using OutputPixelType = double;
using PixelType = double;
constexpr unsigned int Dimension = 1;

using InputImageType = itk::Image<InputPixelType, Dimension>;
using OutputImageType = itk::Image<OutputPixelType, Dimension>;
using ImageType = itk::Image<PixelType, Dimension>;

// Read
OutputImageType::Pointer signal;
signal = itk::ReadImage<OutputImageType>(args_info.input_arg);
ImageType::Pointer signal;
signal = itk::ReadImage<ImageType>(args_info.input_arg);

// Process phase signal if required
using PhaseFilter = rtk::ExtractPhaseImageFilter<OutputImageType>;
using PhaseFilter = rtk::ExtractPhaseImageFilter<ImageType>;
PhaseFilter::Pointer phase = PhaseFilter::New();
phase->SetInput(signal);
phase->SetMovingAverageSize(args_info.movavg_arg);
Expand Down

0 comments on commit c4c8c53

Please sign in to comment.