19 #ifndef itkImageNeighborhoodOffsets_h
20 #define itkImageNeighborhoodOffsets_h
27 namespace Experimental
31 template <
typename TImageNeighborhoodShape>
33 const TImageNeighborhoodShape& shape)
35 std::vector<Offset<TImageNeighborhoodShape::ImageDimension>> offsets(shape.GetNumberOfOffsets());
36 shape.FillOffsets(offsets.data());
43 template <
unsigned VImageDimension>
std::vector< Offset< VImageDimension > > GenerateRectangularImageNeighborhoodOffsets(const Size< VImageDimension > &radius)
std::vector< Offset< TImageNeighborhoodShape::ImageDimension > > GenerateImageNeighborhoodOffsets(const TImageNeighborhoodShape &shape)
Represent a n-dimensional size (bounds) of a n-dimensional image.