Skip to content

Commit

Permalink
COMP: Fix undeclared identifier error
Browse files Browse the repository at this point in the history
Fix undeclared identifier error.

Fixes:
```
In file included from
/Users/builder/externalModules/Filtering/FFT/test/itkComplexToComplex1DFFTImageFilterTest.cxx:27:
/Users/builder/externalModules/Filtering/FFT/include/itkComplexToComplex1DFFTImageFilter.h:84:48:
error: use of undeclared identifier 'ImageDimension'
  itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
                                               ^
```

and
```
In file included from
/Users/builder/externalModules/Filtering/FFT/test/itkFFT1DImageFilterTest.cxx:25:
/Users/builder/externalModules/Filtering/FFT/include/itkForward1DFFTImageFilter.h:67:48:
error: use of undeclared identifier 'ImageDimension'
  itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
                                               ^
```

and
```
In file included from
/Users/builder/externalModules/Filtering/FFT/test/itkInverse1DFFTImageFilterTest.cxx:26:
/Users/builder/externalModules/Filtering/FFT/include/itkInverse1DFFTImageFilter.h:68:48:
error: use of undeclared identifier 'ImageDimension'
  itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
                                               ^
```

reported for example at:
https://open.cdash.org/viewBuildError.php?buildid=7505348
  • Loading branch information
jhlegarreta authored and dzenanz committed Oct 11, 2021
1 parent 809f149 commit 94dfea4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ITK_TEMPLATE_EXPORT ComplexToComplex1DFFTImageFilter : public ImageToImage
itkGetMacro(Direction, unsigned int);

/** Set the direction in which the filter is to be applied. */
itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);

/** Get the greatest supported prime factor. */
virtual SizeValueType
Expand Down
2 changes: 1 addition & 1 deletion Modules/Filtering/FFT/include/itkForward1DFFTImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ITK_TEMPLATE_EXPORT Forward1DFFTImageFilter : public ImageToImageFilter<TI
itkGetMacro(Direction, unsigned int);

/** Set the direction in which the filter is to be applied. */
itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);

/** Get the greatest supported prime factor. */
virtual SizeValueType
Expand Down
2 changes: 1 addition & 1 deletion Modules/Filtering/FFT/include/itkInverse1DFFTImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ITK_TEMPLATE_EXPORT Inverse1DFFTImageFilter : public ImageToImageFilter<TI
itkGetMacro(Direction, unsigned int);

/** Set the direction in which the filter is to be applied. */
itkSetClampMacro(Direction, unsigned int, 0, ImageDimension - 1);
itkSetClampMacro(Direction, unsigned int, 0, InputImageType::ImageDimension - 1);

/** Get the greatest supported prime factor. */
virtual SizeValueType
Expand Down

0 comments on commit 94dfea4

Please sign in to comment.