Skip to content

Commit 9ce536e

Browse files
committed
STYLE: Deprecate RegionIterator aliases of ContourExtractor2DImageFilter
These nested type aliases are no longer used. Originally, they were just used internally, within the implementation of `ContourExtractor2DImageFilter`.
1 parent 1dfd76b commit 9ce536e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Modules/Filtering/Path/include/itkContourExtractor2DImageFilter.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ class ITK_TEMPLATE_EXPORT ContourExtractor2DImageFilter
148148
using RegionIndexRange = ImageRegionIndexRange<InputImageType::ImageDimension>;
149149
using RegionRange = ImageRegionRange<InputImageType>;
150150
using RegionConstRange = ImageRegionRange<const InputImageType>;
151-
using RegionIterator = ImageRegionIterator<InputImageType>;
152-
using RegionConstIterator = ImageRegionConstIterator<InputImageType>;
151+
152+
#ifndef ITK_FUTURE_LEGACY_REMOVE
153+
using RegionIterator ITK_FUTURE_DEPRECATED("Please use `itk::ImageRegionIterator<TImage>` directly!") =
154+
ImageRegionIterator<InputImageType>;
155+
using RegionConstIterator ITK_FUTURE_DEPRECATED("Please use `itk::ImageRegionConstIterator<TImage>` directly!") =
156+
ImageRegionConstIterator<InputImageType>;
157+
#endif
153158

154159
/** Control the orientation of the contours with reference to the image
155160
* gradient. (See class documentation.) */

0 commit comments

Comments
 (0)