Skip to content

Commit 355c6cb

Browse files
hjmjohnsonthewtex
authored andcommitted
BUG: Double scaling introduced in refactoring
The moving marginal pdf was double scaled by the normalization factor. During the previous refactorings the scaling was decoupled from the computations for the fixed and marginal computations, but was not removed from the subsequent marginal computation. Printf trace dumps of every variable value before and after April 10, 2020 changes.
1 parent e747b0a commit 355c6cb

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Modules/Registration/Metricsv4/include/itkMattesMutualInformationImageToImageMetricv4.hxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ MattesMutualInformationImageToImageMetricv4<TFixedImage,
358358
{
359359
currMarginalBin += *colptr;
360360
}
361-
currMarginalBin *= normalizationFactor;
362361
}
363362
}
364363

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c40bf186ebd70003837afc65d999f8f1
1+
1fa40e8d13e22f06fefb518a9115acbd

Testing/Data/Baseline/Registration/ImageRegistration4Test.png.sha512

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)