From e8cb2983d01befa957b941d170f932b3e51c0598 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Mon, 5 May 2025 12:11:54 +0200 Subject: [PATCH] STYLE: Make randomization input ComplexConjugateImageAdaptorTest useful Removed the `image->FillBuffer` call from this test, as it appeared to make the randomization of input pixel values useless. As noticed by Bradley Lowekamp at https://github.com/InsightSoftwareConsortium/ITK/pull/5337#discussion_r2071665502 Cory Quammen (who originally wrote the test) also suggested removing this line of code. --- .../ImageAdaptors/test/itkComplexConjugateImageAdaptorTest.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Modules/Core/ImageAdaptors/test/itkComplexConjugateImageAdaptorTest.cxx b/Modules/Core/ImageAdaptors/test/itkComplexConjugateImageAdaptorTest.cxx index 9f1da4db14b..f31179f42db 100644 --- a/Modules/Core/ImageAdaptors/test/itkComplexConjugateImageAdaptorTest.cxx +++ b/Modules/Core/ImageAdaptors/test/itkComplexConjugateImageAdaptorTest.cxx @@ -44,8 +44,6 @@ itkComplexConjugateImageAdaptorTest(int, char *[]) iter.Set(pixel); } - image->FillBuffer(PixelType(2.0, -3.7)); - // Create adaptor. auto adaptor = AdaptorType::New(); adaptor->SetImage(image);