diff --git a/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/Code.cxx b/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/Code.cxx index b1f2c9dd2..fb5df521f 100644 --- a/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/Code.cxx +++ b/src/Core/Common/ApplyAFilterOnlyToASpecifiedRegionOfAnImage/Code.cxx @@ -31,8 +31,7 @@ main() ImageType::SizeType smallSize; smallSize.Fill(10); - ImageType::IndexType index; - index.Fill(0); + ImageType::IndexType index{}; ImageType::RegionType region(index, smallSize); diff --git a/src/Core/Common/ConvertArrayToImage/Code.cxx b/src/Core/Common/ConvertArrayToImage/Code.cxx index edd988028..ec3f31313 100644 --- a/src/Core/Common/ConvertArrayToImage/Code.cxx +++ b/src/Core/Common/ConvertArrayToImage/Code.cxx @@ -35,8 +35,7 @@ main() size[1] = 200; // size along Y size[2] = 200; // size along Z - ImportFilterType::IndexType start; - start.Fill(0); + ImportFilterType::IndexType start{}; ImportFilterType::RegionType region; region.SetIndex(start); diff --git a/src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx b/src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx index 4f4eb034e..731a3d03a 100644 --- a/src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx +++ b/src/Core/Common/CreateAnotherInstanceOfAFilter/Code.cxx @@ -24,8 +24,7 @@ void CreateImage(typename TImage::Pointer image) { using ImageType = TImage; - typename ImageType::IndexType start; - start.Fill(0); + typename ImageType::IndexType start{}; typename ImageType::SizeType size; size.Fill(2); @@ -55,8 +54,7 @@ main() filter2->SetInput(image); filter2->Update(); - itk::Index index; - index.Fill(0); + itk::Index index{}; std::cout << filter2->GetOutput()->GetPixel(index) << std::endl; diff --git a/src/Core/Common/CreateVectorImage/Code.cxx b/src/Core/Common/CreateVectorImage/Code.cxx index c87b4b33e..c15d32b3e 100644 --- a/src/Core/Common/CreateVectorImage/Code.cxx +++ b/src/Core/Common/CreateVectorImage/Code.cxx @@ -23,8 +23,7 @@ main() // Create an image using ImageType = itk::VectorImage; - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(2); diff --git a/src/Core/Common/CropImageBySpecifyingRegion/Code.cxx b/src/Core/Common/CropImageBySpecifyingRegion/Code.cxx index da8854653..897c573b9 100644 --- a/src/Core/Common/CropImageBySpecifyingRegion/Code.cxx +++ b/src/Core/Common/CropImageBySpecifyingRegion/Code.cxx @@ -25,8 +25,7 @@ main() { using ImageType = itk::Image; - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Core/Common/ImageRegionOverlap/Code.cxx b/src/Core/Common/ImageRegionOverlap/Code.cxx index 412cc49d3..4adf3cff6 100644 --- a/src/Core/Common/ImageRegionOverlap/Code.cxx +++ b/src/Core/Common/ImageRegionOverlap/Code.cxx @@ -88,19 +88,15 @@ main(int argc, char * argv[]) regionC.Crop(regionB); regionC.PadByRadius(10); - RGBPixelType pix_black; - pix_black.Fill(0); + RGBPixelType pix_black{}; - RGBPixelType pix_red; - pix_red.Fill(0); + RGBPixelType pix_red{}; pix_red[0] = 255; - RGBPixelType pix_green; - pix_green.Fill(0); + RGBPixelType pix_green{}; pix_green[1] = 255; - RGBPixelType pix_blue; - pix_blue.Fill(0); + RGBPixelType pix_blue{}; pix_blue[2] = 255; // A black canvas diff --git a/src/Core/Common/ImportPixelBufferIntoAnImage/Code.cxx b/src/Core/Common/ImportPixelBufferIntoAnImage/Code.cxx index 281886c6d..12daf39a1 100644 --- a/src/Core/Common/ImportPixelBufferIntoAnImage/Code.cxx +++ b/src/Core/Common/ImportPixelBufferIntoAnImage/Code.cxx @@ -48,8 +48,7 @@ main(int argc, char * argv[]) size[0] = 200; // size along X size[1] = 200; // size along Y - ImportFilterType::IndexType start; - start.Fill(0); + ImportFilterType::IndexType start{}; ImportFilterType::RegionType region; region.SetIndex(start); diff --git a/src/Core/Common/IsPixelInsideRegion/Code.cxx b/src/Core/Common/IsPixelInsideRegion/Code.cxx index b757f665f..2865f62b4 100644 --- a/src/Core/Common/IsPixelInsideRegion/Code.cxx +++ b/src/Core/Common/IsPixelInsideRegion/Code.cxx @@ -32,8 +32,7 @@ main() SizeType size; size.Fill(3); - IndexType start; - start.Fill(0); + IndexType start{}; RegionType region(start, size); diff --git a/src/Core/Common/IterateImageStartingAtSeed/Code.cxx b/src/Core/Common/IterateImageStartingAtSeed/Code.cxx index f18e07396..c342cf741 100644 --- a/src/Core/Common/IterateImageStartingAtSeed/Code.cxx +++ b/src/Core/Common/IterateImageStartingAtSeed/Code.cxx @@ -59,8 +59,7 @@ main(int /*argc*/, char * /*argv*/[]) void CreateImage(ImageType::Pointer image) { - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Core/Common/IterateLineThroughImage/Code.cxx b/src/Core/Common/IterateLineThroughImage/Code.cxx index 6ad592b55..4ec3ece3d 100644 --- a/src/Core/Common/IterateLineThroughImage/Code.cxx +++ b/src/Core/Common/IterateLineThroughImage/Code.cxx @@ -91,8 +91,7 @@ CreateImage(ImageType::Pointer image) ImageType::SizeType regionSize; regionSize.Fill(100); - ImageType::IndexType regionIndex; - regionIndex.Fill(0); + ImageType::IndexType regionIndex{}; ImageType::RegionType region; region.SetSize(regionSize); diff --git a/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/Code.cxx b/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/Code.cxx index cb43785b1..918c8ac77 100644 --- a/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/Code.cxx +++ b/src/Core/Common/IterateLineThroughImageWithoutWriteAccess/Code.cxx @@ -53,8 +53,7 @@ CreateImage(ImageType::Pointer image) ImageType::SizeType regionSize; regionSize.Fill(3); - ImageType::IndexType regionIndex; - regionIndex.Fill(0); + ImageType::IndexType regionIndex{}; ImageType::RegionType region; region.SetSize(regionSize); diff --git a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/Code.cxx b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/Code.cxx index cca171ab9..59d3c0352 100644 --- a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/Code.cxx +++ b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIterator/Code.cxx @@ -38,8 +38,7 @@ main() auto image = ImageType::New(); - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/Code.cxx b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/Code.cxx index 8778f304d..1f21f424f 100644 --- a/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/Code.cxx +++ b/src/Core/Common/IterateOverARegionWithAShapedNeighborhoodIteratorManual/Code.cxx @@ -85,8 +85,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Core/Common/IterateOverSpecificRegion/Code.cxx b/src/Core/Common/IterateOverSpecificRegion/Code.cxx index 3d01df333..6ebeacfb2 100644 --- a/src/Core/Common/IterateOverSpecificRegion/Code.cxx +++ b/src/Core/Common/IterateOverSpecificRegion/Code.cxx @@ -32,8 +32,7 @@ main() ImageType::SizeType exclusionRegionSize; exclusionRegionSize.Fill(2); - ImageType::IndexType exclusionRegionIndex; - exclusionRegionIndex.Fill(0); + ImageType::IndexType exclusionRegionIndex{}; ImageType::RegionType exclusionRegion(exclusionRegionIndex, exclusionRegionSize); @@ -62,8 +61,7 @@ CreateImage(ImageType::Pointer image) ImageType::SizeType regionSize; regionSize.Fill(3); - ImageType::IndexType regionIndex; - regionIndex.Fill(0); + ImageType::IndexType regionIndex{}; ImageType::RegionType region(regionIndex, regionSize); diff --git a/src/Core/Common/NeighborhoodIteratorOnVectorImage/Code.cxx b/src/Core/Common/NeighborhoodIteratorOnVectorImage/Code.cxx index 004213c39..57dcd28d2 100644 --- a/src/Core/Common/NeighborhoodIteratorOnVectorImage/Code.cxx +++ b/src/Core/Common/NeighborhoodIteratorOnVectorImage/Code.cxx @@ -26,8 +26,7 @@ main() // Create an image auto image = VectorImageType::New(); - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(10); diff --git a/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/Code.cxx b/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/Code.cxx index e6f1fcb69..b25fc59b7 100644 --- a/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/Code.cxx +++ b/src/Core/Common/RandomSelectPixelFromRegionWithoutReplacee/Code.cxx @@ -27,8 +27,7 @@ main() ImageType::SizeType regionSize; regionSize.Fill(3); - ImageType::IndexType regionIndex; - regionIndex.Fill(0); + ImageType::IndexType regionIndex{}; ImageType::RegionType region(regionIndex, regionSize); diff --git a/src/Core/Common/SetPixelValueInOneImage/Code.cxx b/src/Core/Common/SetPixelValueInOneImage/Code.cxx index f49228798..2c29b6f71 100644 --- a/src/Core/Common/SetPixelValueInOneImage/Code.cxx +++ b/src/Core/Common/SetPixelValueInOneImage/Code.cxx @@ -36,8 +36,7 @@ main(int argc, char * argv[]) ImageType::RegionType region; - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; region.SetIndex(start); diff --git a/src/Core/Common/StoreNonPixelDataInImage/Code.cxx b/src/Core/Common/StoreNonPixelDataInImage/Code.cxx index e4246048c..92c1f8f2b 100644 --- a/src/Core/Common/StoreNonPixelDataInImage/Code.cxx +++ b/src/Core/Common/StoreNonPixelDataInImage/Code.cxx @@ -76,8 +76,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Core/Common/WatchAFilter/Code.cxx b/src/Core/Common/WatchAFilter/Code.cxx index 88fa7c364..164415102 100644 --- a/src/Core/Common/WatchAFilter/Code.cxx +++ b/src/Core/Common/WatchAFilter/Code.cxx @@ -29,8 +29,7 @@ CreateImage(typename TImage::Pointer image) // Create an image with 2 connected components typename ImageType::RegionType region; - typename ImageType::IndexType start; - start.Fill(0); + typename ImageType::IndexType start{}; typename ImageType::SizeType size; size.Fill(100); diff --git a/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/Code.cxx b/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/Code.cxx index db924cabb..ba0f1d945 100644 --- a/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/Code.cxx +++ b/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/Code.cxx @@ -62,8 +62,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/Code.cxx b/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/Code.cxx index 65bdd3334..43c7397c5 100644 --- a/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/Code.cxx +++ b/src/Core/ImageAdaptors/ExtractChannelOfImageWithMultipleComponents/Code.cxx @@ -30,8 +30,7 @@ main() auto image = VectorImageType::New(); CreateImage(image); - itk::Index<2> index; - index.Fill(0); + itk::Index<2> index{}; std::cout << image->GetPixel(index) << std::endl; @@ -50,8 +49,7 @@ main() void CreateImage(VectorImageType::Pointer image) { - VectorImageType::IndexType start; - start.Fill(0); + VectorImageType::IndexType start{}; VectorImageType::SizeType size; size.Fill(2); diff --git a/src/Core/ImageAdaptors/PresentImageAfterOperation/Code.cxx b/src/Core/ImageAdaptors/PresentImageAfterOperation/Code.cxx index 050c0a65e..70f66555d 100644 --- a/src/Core/ImageAdaptors/PresentImageAfterOperation/Code.cxx +++ b/src/Core/ImageAdaptors/PresentImageAfterOperation/Code.cxx @@ -57,8 +57,7 @@ main() auto image = VectorImageType::New(); CreateImage(image); - itk::Index<2> index; - index.Fill(0); + itk::Index<2> index{}; std::cout << image->GetPixel(index) << std::endl; @@ -79,8 +78,7 @@ main() void CreateImage(VectorImageType::Pointer image) { - VectorImageType::IndexType start; - start.Fill(0); + VectorImageType::IndexType start{}; VectorImageType::SizeType size; size.Fill(2); diff --git a/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/Code.cxx b/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/Code.cxx index 2d2890111..ef27646a4 100644 --- a/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/Code.cxx +++ b/src/Core/ImageAdaptors/ProcessNthComponentOfVectorImage/Code.cxx @@ -49,8 +49,7 @@ main() void CreateImage(VectorImageType::Pointer image) { - VectorImageType::IndexType start; - start.Fill(0); + VectorImageType::IndexType start{}; VectorImageType::SizeType size; size.Fill(2); diff --git a/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/Code.cxx b/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/Code.cxx index da2aeb99c..559b87b4b 100644 --- a/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/Code.cxx +++ b/src/Core/ImageAdaptors/ViewComponentVectorImageAsScaleImage/Code.cxx @@ -49,8 +49,7 @@ main() void CreateImage(VectorImageType::Pointer image) { - VectorImageType::IndexType start; - start.Fill(0); + VectorImageType::IndexType start{}; VectorImageType::SizeType size; size.Fill(2); diff --git a/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/Code.cxx b/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/Code.cxx index 45e599849..e37b0e0e1 100644 --- a/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/Code.cxx +++ b/src/Core/ImageFunction/ComputeMedianOfImageAtPixel/Code.cxx @@ -45,8 +45,7 @@ main() void CreateImage(UnsignedCharImageType::Pointer image) { - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/Code.cxx b/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/Code.cxx index b7454e1b8..184c180a2 100644 --- a/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/Code.cxx +++ b/src/Core/ImageFunction/MultiplyKernelWithAnImageAtLocation/Code.cxx @@ -74,8 +74,7 @@ void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image with 2 connected components - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(100); diff --git a/src/Core/Transform/TranslateAVectorImage/Code.cxx b/src/Core/Transform/TranslateAVectorImage/Code.cxx index 63f42e421..6e540150f 100644 --- a/src/Core/Transform/TranslateAVectorImage/Code.cxx +++ b/src/Core/Transform/TranslateAVectorImage/Code.cxx @@ -29,8 +29,7 @@ main() using VectorImageType = itk::Image; auto image = VectorImageType::New(); - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(10); diff --git a/src/Developer/ImageFilterMultipleOutputsDifferentType.hxx b/src/Developer/ImageFilterMultipleOutputsDifferentType.hxx index 77125d2e2..b40ff0430 100644 --- a/src/Developer/ImageFilterMultipleOutputsDifferentType.hxx +++ b/src/Developer/ImageFilterMultipleOutputsDifferentType.hxx @@ -24,8 +24,7 @@ template void ImageFilterMultipleOutputsDifferentType::GenerateData() { - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(20); diff --git a/src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.cxx b/src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.cxx index 3bf519c2e..2a731b977 100644 --- a/src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.cxx +++ b/src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.cxx @@ -62,8 +62,7 @@ void CreateImage(ImageType::Pointer image) { // Create an image - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/Convolution/ConvolveImageWithKernel/Code.cxx b/src/Filtering/Convolution/ConvolveImageWithKernel/Code.cxx index ecf5b384c..0fc0ab299 100644 --- a/src/Filtering/Convolution/ConvolveImageWithKernel/Code.cxx +++ b/src/Filtering/Convolution/ConvolveImageWithKernel/Code.cxx @@ -77,8 +77,7 @@ main(int argc, char * argv[]) void CreateKernel(ImageType::Pointer kernel, unsigned int width) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(width); diff --git a/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/Code.cxx b/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/Code.cxx index 217cc90d3..23109453d 100644 --- a/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/Code.cxx +++ b/src/Filtering/Convolution/NormalizedCorrelationOfMaskedImage/Code.cxx @@ -126,8 +126,7 @@ main() void CreateMask(MaskType * const mask) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); @@ -161,8 +160,7 @@ CreateMask(MaskType * const mask) void CreateImage(ImageType * const image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); @@ -177,8 +175,7 @@ CreateImage(ImageType * const image) void CreateImageOfSquare(ImageType * const image, const itk::Index<2> & cornerOfSquare) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); diff --git a/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/Code.cxx b/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/Code.cxx index af4f1fd39..be82e3268 100644 --- a/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/Code.cxx +++ b/src/Filtering/Convolution/NormalizedCorrelationUsingFFT/Code.cxx @@ -101,8 +101,7 @@ main() void CreateImage(ImageType::Pointer image, const itk::Index<2> & cornerOfSquare) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); diff --git a/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/Code.cxx b/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/Code.cxx index 0244efb03..1b3646eaf 100644 --- a/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/Code.cxx +++ b/src/Filtering/Convolution/NormalizedCorrelationUsingFFTWithMaskImages/Code.cxx @@ -108,8 +108,7 @@ main() void CreateImage(ImageType::Pointer image, const itk::Index<2> & cornerOfSquare) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); @@ -140,8 +139,7 @@ CreateImage(ImageType::Pointer image, const itk::Index<2> & cornerOfSquare) void CreateMask(MaskType * const mask) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(51); diff --git a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/Code.cxx b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/Code.cxx index 1fd373d7c..a88542946 100644 --- a/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/Code.cxx +++ b/src/Filtering/DistanceMap/ApproxDistanceMapOfBinary/Code.cxx @@ -73,8 +73,7 @@ void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/Code.cxx b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/Code.cxx index 4af123873..3a947ea95 100644 --- a/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/Code.cxx +++ b/src/Filtering/DistanceMap/MaurerDistanceMapOfBinary/Code.cxx @@ -71,8 +71,7 @@ void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/Code.cxx b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/Code.cxx index f6bb64483..a5c2ad4db 100644 --- a/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/Code.cxx +++ b/src/Filtering/DistanceMap/SignedDistanceMapOfBinary/Code.cxx @@ -71,8 +71,7 @@ void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/Code.cxx b/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/Code.cxx index 16bb95151..5d6c9b9c0 100644 --- a/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/Code.cxx +++ b/src/Filtering/FastMarching/CreateDistanceMapFromSeeds/Code.cxx @@ -72,8 +72,7 @@ main(int argc, char * argv[]) FloatImageType::OffsetType offset0 = { { 28, 35 } }; - FloatImageType::IndexType index; - index.Fill(0); + FloatImageType::IndexType index{}; index += offset0; AliveImage->SetPixel(index, 1.0); diff --git a/src/Filtering/ImageCompare/AbsValueOfTwoImages/Code.cxx b/src/Filtering/ImageCompare/AbsValueOfTwoImages/Code.cxx index a94159a6c..01cc191dd 100644 --- a/src/Filtering/ImageCompare/AbsValueOfTwoImages/Code.cxx +++ b/src/Filtering/ImageCompare/AbsValueOfTwoImages/Code.cxx @@ -51,8 +51,7 @@ main() void CreateImage1(UnsignedCharImageType::Pointer image) { - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(10); @@ -79,8 +78,7 @@ void CreateImage2(UnsignedCharImageType::Pointer image) { // Create an image with 2 connected components - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(10); diff --git a/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/Code.cxx b/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/Code.cxx index 8b27a8df1..14eb76d66 100644 --- a/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/Code.cxx +++ b/src/Filtering/ImageCompare/CombineTwoImagesWithCheckerBoardPattern/Code.cxx @@ -35,8 +35,7 @@ main(int argc, char * argv[]) using PixelType = unsigned char; using ImageType = itk::Image; - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/Code.cxx b/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/Code.cxx index e31a4512c..e7055b51c 100644 --- a/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/Code.cxx +++ b/src/Filtering/ImageCompare/SquaredDifferenceOfTwoImages/Code.cxx @@ -50,8 +50,7 @@ main() void CreateImage1(UnsignedCharImageType::Pointer image) { - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(10); @@ -78,8 +77,7 @@ void CreateImage2(UnsignedCharImageType::Pointer image) { // Create an image with 2 connected components - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(10); diff --git a/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/Code.cxx b/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/Code.cxx index 8822da886..b3084a89c 100644 --- a/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/Code.cxx +++ b/src/Filtering/ImageCompose/ComposeVectorFromThreeScalarImages/Code.cxx @@ -39,8 +39,7 @@ main() composeFilter->SetInput3(image); composeFilter->Update(); - itk::Index<2> index; - index.Fill(0); + itk::Index<2> index{}; std::cout << image->GetPixel(index) << std::endl; @@ -52,8 +51,7 @@ main() void CreateImage(ScalarImageType::Pointer image) { - ScalarImageType::IndexType start; - start.Fill(0); + ScalarImageType::IndexType start{}; ScalarImageType::SizeType size; size.Fill(2); diff --git a/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/Code.cxx b/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/Code.cxx index 9d25241dc..503a13f59 100644 --- a/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/Code.cxx +++ b/src/Filtering/ImageCompose/CreateVectorImageFromScalarImages/Code.cxx @@ -55,8 +55,7 @@ main() void CreateImage(ScalarImageType::Pointer image) { - ScalarImageType::IndexType start; - start.Fill(0); + ScalarImageType::IndexType start{}; ScalarImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageCompose/JoinImages/Code.cxx b/src/Filtering/ImageCompose/JoinImages/Code.cxx index bf04800a7..2a1490d5e 100644 --- a/src/Filtering/ImageCompose/JoinImages/Code.cxx +++ b/src/Filtering/ImageCompose/JoinImages/Code.cxx @@ -55,8 +55,7 @@ void CreateImage(ImageType::Pointer image, unsigned char value) { // Create an image - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/Code.cxx b/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/Code.cxx index a555cb388..b97cd9c87 100644 --- a/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/Code.cxx +++ b/src/Filtering/ImageFeature/ApplyAFilterOnlyToASpecifiedImageRegion/Code.cxx @@ -27,8 +27,7 @@ main() itk::Size<2> smallSize; smallSize.Fill(10); - itk::Index<2> index; - index.Fill(0); + itk::Index<2> index{}; itk::ImageRegion<2> region(index, smallSize); diff --git a/src/Filtering/ImageFeature/ExtractContoursFromImage/Code.cxx b/src/Filtering/ImageFeature/ExtractContoursFromImage/Code.cxx index 2c45e1e7c..bdd667422 100644 --- a/src/Filtering/ImageFeature/ExtractContoursFromImage/Code.cxx +++ b/src/Filtering/ImageFeature/ExtractContoursFromImage/Code.cxx @@ -48,8 +48,7 @@ int main() void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/Code.cxx b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/Code.cxx index d1aa860d6..e3b3c924f 100644 --- a/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/Code.cxx +++ b/src/Filtering/ImageFeature/FindZeroCrossingsInSignedImage/Code.cxx @@ -67,8 +67,7 @@ main(int argc, char * argv[]) void CreateImage(ImageType::Pointer image) { - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/Code.cxx b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/Code.cxx index 34594a659..30bc47129 100644 --- a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/Code.cxx +++ b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixel/Code.cxx @@ -56,8 +56,7 @@ main() void CreateImage(FloatImageType::Pointer image) { - FloatImageType::IndexType start; - start.Fill(0); + FloatImageType::IndexType start{}; FloatImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/Code.cxx b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/Code.cxx index 19641efa4..da502b288 100644 --- a/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/Code.cxx +++ b/src/Filtering/ImageFilterBase/ApplyKernelToEveryPixelInNonZeroImage/Code.cxx @@ -110,8 +110,7 @@ CreateHalfMask(UnsignedCharImageType::Pointer image, UnsignedCharImageType::Poin void CreateImage(UnsignedCharImageType::Pointer image) { - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/ImageFilterBase/ComputeLocalNoise/Code.cxx b/src/Filtering/ImageFilterBase/ComputeLocalNoise/Code.cxx index 7645411f3..09178d50e 100644 --- a/src/Filtering/ImageFilterBase/ComputeLocalNoise/Code.cxx +++ b/src/Filtering/ImageFilterBase/ComputeLocalNoise/Code.cxx @@ -45,8 +45,7 @@ void CreateImage(ImageType::Pointer image) { // Create an image that is mostly constant but has some different kinds of objects. - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/Code.cxx b/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/Code.cxx index 77736a348..14a33df42 100644 --- a/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/Code.cxx +++ b/src/Filtering/ImageFilterBase/CustomOperationToCorrespondingPixelsInTwoImages/Code.cxx @@ -76,8 +76,7 @@ main() filter->SetInput2(image2); filter->Update(); - itk::Index<2> pixelIndex; - pixelIndex.Fill(0); + itk::Index<2> pixelIndex{}; ImageType::PixelType input1PixelValue = image1->GetPixel(pixelIndex); ImageType::PixelType input2PixelValue = image2->GetPixel(pixelIndex); @@ -93,8 +92,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/Code.cxx b/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/Code.cxx index 054280998..996692544 100644 --- a/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/Code.cxx +++ b/src/Filtering/ImageFilterBase/PredefinedOperationToCorrespondingPixelsInTwoImages/Code.cxx @@ -42,8 +42,7 @@ main() filter->SetInput2(image2); filter->Update(); - itk::Index<2> pixelIndex; - pixelIndex.Fill(0); + itk::Index<2> pixelIndex{}; ImageType::PixelType input1PixelValue = image1->GetPixel(pixelIndex); ImageType::PixelType input2PixelValue = image2->GetPixel(pixelIndex); @@ -59,8 +58,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(10); diff --git a/src/Filtering/ImageFusion/ColorBoundariesOfRegions/Code.cxx b/src/Filtering/ImageFusion/ColorBoundariesOfRegions/Code.cxx index 5ad2073a1..febedafdb 100644 --- a/src/Filtering/ImageFusion/ColorBoundariesOfRegions/Code.cxx +++ b/src/Filtering/ImageFusion/ColorBoundariesOfRegions/Code.cxx @@ -63,8 +63,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageFusion/ColorLabeledRegions/Code.cxx b/src/Filtering/ImageFusion/ColorLabeledRegions/Code.cxx index dc2fdbd49..ac6b75ac3 100644 --- a/src/Filtering/ImageFusion/ColorLabeledRegions/Code.cxx +++ b/src/Filtering/ImageFusion/ColorLabeledRegions/Code.cxx @@ -58,8 +58,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageFusion/OverlayLabelMapOnImage/Code.cxx b/src/Filtering/ImageFusion/OverlayLabelMapOnImage/Code.cxx index 4fb7026de..64835d2eb 100644 --- a/src/Filtering/ImageFusion/OverlayLabelMapOnImage/Code.cxx +++ b/src/Filtering/ImageFusion/OverlayLabelMapOnImage/Code.cxx @@ -63,8 +63,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageGrid/FitSplineIntoPointSet/Code.cxx b/src/Filtering/ImageGrid/FitSplineIntoPointSet/Code.cxx index 34d378f58..88e238526 100644 --- a/src/Filtering/ImageGrid/FitSplineIntoPointSet/Code.cxx +++ b/src/Filtering/ImageGrid/FitSplineIntoPointSet/Code.cxx @@ -95,8 +95,7 @@ main() OutputImageType::SizeType size; size.Fill(200); - OutputImageType::IndexType start; - start.Fill(0); + OutputImageType::IndexType start{}; OutputImageType::RegionType region(start, size); outputImage->SetRegions(region); diff --git a/src/Filtering/ImageGrid/ShrinkImage/Code.cxx b/src/Filtering/ImageGrid/ShrinkImage/Code.cxx index e59862626..2338b707f 100644 --- a/src/Filtering/ImageGrid/ShrinkImage/Code.cxx +++ b/src/Filtering/ImageGrid/ShrinkImage/Code.cxx @@ -50,8 +50,7 @@ void CreateImage(ImageType::Pointer image) { // Create an image with 2 connected components - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/AddConstantToEveryPixel/Code.cxx b/src/Filtering/ImageIntensity/AddConstantToEveryPixel/Code.cxx index f0616eed9..d0d68156d 100644 --- a/src/Filtering/ImageIntensity/AddConstantToEveryPixel/Code.cxx +++ b/src/Filtering/ImageIntensity/AddConstantToEveryPixel/Code.cxx @@ -43,8 +43,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/BinaryANDTwoImages/Code.cxx b/src/Filtering/ImageIntensity/BinaryANDTwoImages/Code.cxx index 2d9526d44..136325964 100644 --- a/src/Filtering/ImageIntensity/BinaryANDTwoImages/Code.cxx +++ b/src/Filtering/ImageIntensity/BinaryANDTwoImages/Code.cxx @@ -55,8 +55,7 @@ main() void CreateImage1(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -88,8 +87,7 @@ CreateImage1(ImageType::Pointer image) void CreateImage2(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/BinaryORTwoImages/Code.cxx b/src/Filtering/ImageIntensity/BinaryORTwoImages/Code.cxx index 1cff052ab..e629b173d 100644 --- a/src/Filtering/ImageIntensity/BinaryORTwoImages/Code.cxx +++ b/src/Filtering/ImageIntensity/BinaryORTwoImages/Code.cxx @@ -54,8 +54,7 @@ main() void CreateImage1(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -87,8 +86,7 @@ CreateImage1(ImageType::Pointer image) void CreateImage2(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/BinaryXORTwoImages/Code.cxx b/src/Filtering/ImageIntensity/BinaryXORTwoImages/Code.cxx index 27f680dd1..465d087d5 100644 --- a/src/Filtering/ImageIntensity/BinaryXORTwoImages/Code.cxx +++ b/src/Filtering/ImageIntensity/BinaryXORTwoImages/Code.cxx @@ -50,8 +50,7 @@ main() void CreateImage1(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -83,8 +82,7 @@ CreateImage1(ImageType::Pointer image) void CreateImage2(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/Code.cxx b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/Code.cxx index ba8eec185..645ffd62f 100644 --- a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/Code.cxx +++ b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMax/Code.cxx @@ -48,8 +48,7 @@ main() void CreateImage1(ImageType * image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -81,8 +80,7 @@ CreateImage1(ImageType * image) void CreateImage2(ImageType * image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/Code.cxx b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/Code.cxx index c84ca0d3e..69023d249 100644 --- a/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/Code.cxx +++ b/src/Filtering/ImageIntensity/CompareTwoImagesAndSetOutputPixelToMin/Code.cxx @@ -48,8 +48,7 @@ main() void CreateImage1(ImageType * image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -81,8 +80,7 @@ CreateImage1(ImageType * image) void CreateImage2(ImageType * image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/ComputeEdgePotential/Code.cxx b/src/Filtering/ImageIntensity/ComputeEdgePotential/Code.cxx index 35c874012..9ef8a1e08 100644 --- a/src/Filtering/ImageIntensity/ComputeEdgePotential/Code.cxx +++ b/src/Filtering/ImageIntensity/ComputeEdgePotential/Code.cxx @@ -69,8 +69,7 @@ CreateImage(UnsignedCharImageType::Pointer image) { // Create a black image with 2 white regions - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(200); diff --git a/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/Code.cxx b/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/Code.cxx index ed01ba676..93693620a 100644 --- a/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/Code.cxx +++ b/src/Filtering/ImageIntensity/ExtractComponentOfVectorImage/Code.cxx @@ -48,8 +48,7 @@ main() void CreateImage(VectorImageType::Pointer image) { - VectorImageType::IndexType start; - start.Fill(0); + VectorImageType::IndexType start{}; VectorImageType::SizeType size; size.Fill(2); diff --git a/src/Filtering/ImageIntensity/IntensityWindowing/Code.cxx b/src/Filtering/ImageIntensity/IntensityWindowing/Code.cxx index f4634a751..39bc2ac2b 100644 --- a/src/Filtering/ImageIntensity/IntensityWindowing/Code.cxx +++ b/src/Filtering/ImageIntensity/IntensityWindowing/Code.cxx @@ -49,8 +49,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/InverseOfMaskToImage/Code.cxx b/src/Filtering/ImageIntensity/InverseOfMaskToImage/Code.cxx index 2e9565b89..67dd9da64 100644 --- a/src/Filtering/ImageIntensity/InverseOfMaskToImage/Code.cxx +++ b/src/Filtering/ImageIntensity/InverseOfMaskToImage/Code.cxx @@ -78,8 +78,7 @@ CreateHalfMask(ImageType::Pointer image, ImageType::Pointer mask) void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/ScalePixelSumToConstant/Code.cxx b/src/Filtering/ImageIntensity/ScalePixelSumToConstant/Code.cxx index 12f608fec..81ab7acaa 100644 --- a/src/Filtering/ImageIntensity/ScalePixelSumToConstant/Code.cxx +++ b/src/Filtering/ImageIntensity/ScalePixelSumToConstant/Code.cxx @@ -57,8 +57,7 @@ CreateImage(ImageType::Pointer image) { // Create an image full of 1's - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(3); diff --git a/src/Filtering/ImageIntensity/SquareEveryPixel/Code.cxx b/src/Filtering/ImageIntensity/SquareEveryPixel/Code.cxx index a9e9a6a50..d50ee6a33 100644 --- a/src/Filtering/ImageIntensity/SquareEveryPixel/Code.cxx +++ b/src/Filtering/ImageIntensity/SquareEveryPixel/Code.cxx @@ -42,8 +42,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/Code.cxx b/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/Code.cxx index d7b432281..3a7791de5 100644 --- a/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/Code.cxx +++ b/src/Filtering/ImageIntensity/SubtractConstantFromEveryPixel/Code.cxx @@ -43,8 +43,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/Code.cxx b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/Code.cxx index 65564184b..c4936569b 100644 --- a/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/Code.cxx +++ b/src/Filtering/ImageLabel/ExtractInnerAndOuterBoundariesOfBlobsInBinaryImage/Code.cxx @@ -71,8 +71,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/Code.cxx b/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/Code.cxx index cd8c80ac0..6c6132f5c 100644 --- a/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/Code.cxx +++ b/src/Filtering/ImageStatistics/StatisticalPropertiesOfRegions/Code.cxx @@ -83,8 +83,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/LabelMap/ConvertLabelMapToImage/Code.cxx b/src/Filtering/LabelMap/ConvertLabelMapToImage/Code.cxx index d863289fa..925b58135 100644 --- a/src/Filtering/LabelMap/ConvertLabelMapToImage/Code.cxx +++ b/src/Filtering/LabelMap/ConvertLabelMapToImage/Code.cxx @@ -49,8 +49,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/LabelMap/InvertImageUsingBinaryNot/Code.cxx b/src/Filtering/LabelMap/InvertImageUsingBinaryNot/Code.cxx index 88fdfbb8a..39eae1144 100644 --- a/src/Filtering/LabelMap/InvertImageUsingBinaryNot/Code.cxx +++ b/src/Filtering/LabelMap/InvertImageUsingBinaryNot/Code.cxx @@ -49,8 +49,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Filtering/LabelMap/KeepRegionsAboveLevel/Code.cxx b/src/Filtering/LabelMap/KeepRegionsAboveLevel/Code.cxx index a3668dcc5..ee4434518 100644 --- a/src/Filtering/LabelMap/KeepRegionsAboveLevel/Code.cxx +++ b/src/Filtering/LabelMap/KeepRegionsAboveLevel/Code.cxx @@ -75,8 +75,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with three white squares - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(200); diff --git a/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/Code.cxx b/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/Code.cxx index c20ff4db2..4cdc92fd3 100644 --- a/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/Code.cxx +++ b/src/Filtering/LabelMap/KeepRegionsThatMeetSpecific/Code.cxx @@ -77,8 +77,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with three white squares - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(200); diff --git a/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/Code.cxx b/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/Code.cxx index 99b6b768e..cd1a730f8 100644 --- a/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/Code.cxx +++ b/src/Filtering/LabelMap/LabelBinaryRegionsAndGetProperties/Code.cxx @@ -60,8 +60,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/LabelMap/LabelBinaryRegionsInImage/Code.cxx b/src/Filtering/LabelMap/LabelBinaryRegionsInImage/Code.cxx index eb671bc21..a16b617e1 100644 --- a/src/Filtering/LabelMap/LabelBinaryRegionsInImage/Code.cxx +++ b/src/Filtering/LabelMap/LabelBinaryRegionsInImage/Code.cxx @@ -60,8 +60,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/Code.cxx b/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/Code.cxx index bda650db5..ee0748520 100644 --- a/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/Code.cxx +++ b/src/Filtering/LabelMap/RemoveLabelsFromLabelMap/Code.cxx @@ -77,8 +77,7 @@ void CreateImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Filtering/MathematicalMorphology/RegionalMinimal/Code.cxx b/src/Filtering/MathematicalMorphology/RegionalMinimal/Code.cxx index 2eafd2290..256ba3540 100644 --- a/src/Filtering/MathematicalMorphology/RegionalMinimal/Code.cxx +++ b/src/Filtering/MathematicalMorphology/RegionalMinimal/Code.cxx @@ -45,8 +45,7 @@ main() void CreateImage(ImageType::Pointer image) { - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size[0] = 200; diff --git a/src/Filtering/Path/ExtractContoursFromImage/Code.cxx b/src/Filtering/Path/ExtractContoursFromImage/Code.cxx index 77addb83c..5ac88b0fe 100644 --- a/src/Filtering/Path/ExtractContoursFromImage/Code.cxx +++ b/src/Filtering/Path/ExtractContoursFromImage/Code.cxx @@ -70,8 +70,7 @@ void CreateImage(UnsignedCharImageType::Pointer image) { // Create an image - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/Code.cxx b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/Code.cxx index 654f00d10..f10c0948d 100644 --- a/src/Filtering/Thresholding/SeparateGroundUsingOtsu/Code.cxx +++ b/src/Filtering/Thresholding/SeparateGroundUsingOtsu/Code.cxx @@ -75,8 +75,7 @@ void CreateImage(ImageType::Pointer image) { // Create an image - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/ImageCompareCommand.cxx b/src/ImageCompareCommand.cxx index 5ba08a063..6c7429e9b 100644 --- a/src/ImageCompareCommand.cxx +++ b/src/ImageCompareCommand.cxx @@ -321,10 +321,8 @@ RegressionTestImage(const char * testImageFilename, using WriterType = itk::ImageFileWriter; using RegionType = itk::ImageRegion; - OutputType::IndexType index; - index.Fill(0); - OutputType::SizeType size; - size.Fill(0); + OutputType::IndexType index{}; + OutputType::SizeType size{}; auto rescale = RescaleType::New(); diff --git a/src/Nonunit/Review/GeometricPropertiesOfRegion/Code.cxx b/src/Nonunit/Review/GeometricPropertiesOfRegion/Code.cxx index b72e0a181..eab5315f2 100644 --- a/src/Nonunit/Review/GeometricPropertiesOfRegion/Code.cxx +++ b/src/Nonunit/Review/GeometricPropertiesOfRegion/Code.cxx @@ -144,8 +144,7 @@ void CreateIntensityImage(ImageType::Pointer image) { // Create a random image. - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); @@ -172,8 +171,7 @@ void CreateLabelImage(ImageType::Pointer image) { // Create a black image with labeled squares. - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(20); diff --git a/src/Numerics/Statistics/ComputeTextureFeatures/Code.cxx b/src/Numerics/Statistics/ComputeTextureFeatures/Code.cxx index 9b35207fb..1c6e193d8 100644 --- a/src/Numerics/Statistics/ComputeTextureFeatures/Code.cxx +++ b/src/Numerics/Statistics/ComputeTextureFeatures/Code.cxx @@ -46,8 +46,7 @@ main() static void CreateImage(ImageType::Pointer image) { - itk::Index<2> index; - index.Fill(0); + itk::Index<2> index{}; itk::Size<2> size; size.Fill(100); diff --git a/src/Registration/Common/MatchFeaturePoints/Code.cxx b/src/Registration/Common/MatchFeaturePoints/Code.cxx index e4181a2ec..8d7dcd6fc 100644 --- a/src/Registration/Common/MatchFeaturePoints/Code.cxx +++ b/src/Registration/Common/MatchFeaturePoints/Code.cxx @@ -81,9 +81,8 @@ void CreateImage(ImageType::Pointer image, const unsigned int x) { // Allocate empty image - itk::Index<2> start; - start.Fill(0); - itk::Size<2> size; + itk::Index<2> start{}; + itk::Size<2> size; size.Fill(100); ImageType::RegionType region(start, size); image->SetRegions(region); diff --git a/src/Registration/Common/MultiresolutionPyramidFromImage/Code.cxx b/src/Registration/Common/MultiresolutionPyramidFromImage/Code.cxx index 2e1b49585..22ba9d5c8 100644 --- a/src/Registration/Common/MultiresolutionPyramidFromImage/Code.cxx +++ b/src/Registration/Common/MultiresolutionPyramidFromImage/Code.cxx @@ -69,8 +69,7 @@ CreateImage(UnsignedCharImageType::Pointer image) { // Create a black image with a white region - UnsignedCharImageType::IndexType start; - start.Fill(0); + UnsignedCharImageType::IndexType start{}; UnsignedCharImageType::SizeType size; size.Fill(200); diff --git a/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/Code.cxx b/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/Code.cxx index 5a7df0f7b..2b89148e5 100644 --- a/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/Code.cxx +++ b/src/Registration/Common/RegisterImageToAnotherUsingLandmarks/Code.cxx @@ -110,8 +110,7 @@ void CreateFixedImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); @@ -144,8 +143,7 @@ void CreateMovingImage(ImageType::Pointer image) { // Create a black image with a white square - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/Code.cxx b/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/Code.cxx index a9ad0808e..f3ce7e935 100644 --- a/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/Code.cxx +++ b/src/Registration/Metricsv4/PerformRegistrationOnVectorImages/Code.cxx @@ -91,8 +91,7 @@ main(int argc, char * argv[]) std::cout << "fixedImage->GetLargestPossibleRegion(): " << fixedImage->GetLargestPossibleRegion() << std::endl; displacementField->Allocate(); // Fill it with 0's - DisplacementTransformType::OutputVectorType zeroVector; - zeroVector.Fill(0.0); + DisplacementTransformType::OutputVectorType zeroVector{}; displacementField->FillBuffer(zeroVector); // Assign to transform displacementTransform->SetDisplacementField(displacementField); diff --git a/src/Segmentation/Voronoi/VoronoiDiagram/Code.cxx b/src/Segmentation/Voronoi/VoronoiDiagram/Code.cxx index 48e6f2c90..050fd1f7e 100644 --- a/src/Segmentation/Voronoi/VoronoiDiagram/Code.cxx +++ b/src/Segmentation/Voronoi/VoronoiDiagram/Code.cxx @@ -121,8 +121,7 @@ main() { using ImageType = itk::Image; - ImageType::IndexType start; - start.Fill(0); + ImageType::IndexType start{}; ImageType::SizeType size; size.Fill(100); diff --git a/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/Code.cxx b/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/Code.cxx index 0d0023068..074f3b841 100644 --- a/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/Code.cxx +++ b/src/Segmentation/Watersheds/MorphologicalWatershedSegmentation/Code.cxx @@ -94,8 +94,7 @@ CreateImage(UnsignedCharImageType::Pointer image) { // Create a white image with 3 dark regions of different values - itk::Index<2> start; - start.Fill(0); + itk::Index<2> start{}; itk::Size<2> size; size.Fill(200);