ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.21k stars 381 forks source link

BUG: float type for posterior sum caused overflow on large images #1793

Closed cookpa closed 2 months ago

cookpa commented 2 months ago

Fixes #1791

@ntustison , I tried replacing RealType with double in the segmentation filter, but it caused a lot of compile errors, including Atropos.cxx and the ParzenWindow classes. So I just changed the posterior summation here.

ntustison commented 2 months ago

Awesmoe. THanks @cookpa .