BF,RF: Adjust relative/absolute warp detection to handle warp fields with zero variance

The volumes of a warp field which encodes an affine transform may have a constant value (i.e. zero variance), which breaks the logic that determines whether the warp contains absolute or relative displacements. This MR fixes that bug, and also removes some redundant code - the logic is contained within warpfns.cc:is_abs_convention, which is now re-used by fnirt_file_reader.cpp:FnirtFileReader::common_read.

Merge request reports

Loading
Loading