SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
509 stars 149 forks source link

Parameter file for 3D binary mask to mask registration #442

Open cclaess opened 2 years ago

cclaess commented 2 years ago

Hi, I am trying to do a b-spline registration of 2 3D binary masks, but I am not very successful yet. I can't really find a similar case in the model zoo, but I am searching for a parameter file example for this task. I tried AdvancedKappaStatistic and AdvancedMeanSquares (in combination with a TransformBendingEnergyPenalty), of which only AdvancedKappaStatistic resulted in some transformation, but not the desired one. The masks are already rigidly aligned.

Any recommendations or a parameter file?

Thanks

NHPatterson commented 2 years ago

Strangely, I've had some luck with (Metric "AdvancedMattesMutualInformation") but in a 2D binary mask scenario.

One thing to be wary of is AutomaticTransformInitialization and making sure it is OFF as you already have rigidly aligned images (although not sure it is set with a with a b-spline transform). If this is left on, it will compute a transformation (by default based on geometric center) prior to doing the non-linear stuff that will mess things up. Thus using (AutomaticTransformInitialization "false") is worth a shot.