Skip to content

Dt background value#1875

Merged
cookpa merged 4 commits intomasterfrom
dt_background_value
May 6, 2025
Merged

Dt background value#1875
cookpa merged 4 commits intomasterfrom
dt_background_value

Conversation

@cookpa
Copy link
Member

@cookpa cookpa commented May 6, 2025

We've had a default tensor pixel value for some time, but it's only used when the fixed and moving domains don't overlap.

A bigger problem is that when the tensor volume is brain masked, the interpolation with zeros in the log space causes huge tensors at the edge of the brain, which hinders visualization of tensor glyphs or mean diffusivity images.

Currently, this can be avoided with the TensorMask option in ImageMath.

This PR allows the use of a default isotropic tensor in background voxels. In antsApplyTransforms, the default mean diffusivity specified with -f is now used in background voxels of the moving image, so that resampling is more sensible along the edge of the brain.

The default value of -f remains zero, so the user has to opt-in to using the new functionality.

@cookpa cookpa merged commit 77ea10f into master May 6, 2025
1 check passed
@cookpa cookpa deleted the dt_background_value branch May 6, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant