Skip to content

Commit

Permalink
BUG: Switch off "ErodeMask" in ElastixLib.SingleSliceMaskedTranslation3D
Browse files Browse the repository at this point in the history
This unit test failed in combination with commit "BUG: Let elastix SplitRequestedRegion override ITK's ImageSource", causing an exception in `ComputeJacobianTerms::SampleFixedImageForJacobianTerms`, saying "No valid voxels (0/"...  Fixed by no longer using `ParabolicErodeDilateImageFilter` for the mask in this unit test.
  • Loading branch information
N-Dekker committed May 17, 2024
1 parent 14cdfb2 commit 93716a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Main/GTesting/ElastixLibGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ GTEST_TEST(ElastixLib, SingleSliceMaskedTranslation3D)
static constexpr auto ImageDimension = 3;
using ImageType = itk::Image<float, ImageDimension>;

const auto parameterMap = CreateParameterMap<ImageDimension>({ { "ImageSampler", "Full" },
const auto parameterMap = CreateParameterMap<ImageDimension>({ { "ErodeMask", "false" },
{ "ImageSampler", "Full" },
{ "MaximumNumberOfIterations", "3" },
{ "Metric", "AdvancedNormalizedCorrelation" },
{ "Optimizer", "AdaptiveStochasticGradientDescent" },
Expand Down

0 comments on commit 93716a6

Please sign in to comment.