File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Compatibility/Deprecated/ResampleRGBImage
Core/Transform/TranslateAVectorImage
Filtering/ImageGrid/CropImageBySpecifyingRegion2 Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ CreateImage(ImageType::Pointer image)
120
120
ImageType::RegionType region (start, size);
121
121
image->SetRegions (region);
122
122
image->Allocate ();
123
- image->FillBuffer (itk::NumericTraits<ImageType::PixelType>::Zero );
123
+ image->FillBuffer (itk::NumericTraits<ImageType::PixelType>::ZeroValue () );
124
124
125
125
ImageType::PixelType pixel;
126
126
pixel.SetRed (200 );
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ main(int, char *[])
38
38
itk::ImageRegion<2 > region (start, size);
39
39
image->SetRegions (region);
40
40
image->Allocate ();
41
- image->FillBuffer (itk::NumericTraits<VectorType>::Zero );
41
+ image->FillBuffer (itk::NumericTraits<VectorType>::ZeroValue () );
42
42
43
43
itk::TranslationTransform<double , 2 >::Pointer transform = itk::TranslationTransform<double , 2 >::New ();
44
44
itk::TranslationTransform<double , 2 >::OutputVectorType translation;
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ CreateImage(ImageType::Pointer image)
109
109
110
110
image->SetRegions (region);
111
111
image->Allocate ();
112
- image->FillBuffer (itk::NumericTraits<ImageType::PixelType>::Zero );
112
+ image->FillBuffer (itk::NumericTraits<ImageType::PixelType>::ZeroValue () );
113
113
114
114
// Make a rectangle, centered at (100,150) with sides 160 & 240
115
115
// This provides a 20 x 30 border around the square for the crop filter to remove
You can’t perform that action at this time.
0 commit comments