SuperElastix / SimpleElastix

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

Get stopping condition from Elastix registration #408

Open anais2390 opened 3 years ago

anais2390 commented 3 years ago

Hi ! I am running some Elastix registrations and I would like to know if it is possible to get the Stopping Condition out of sitk.ElastixImageFilter() ? And same question for the Final Metric ? In a similar way as with the sitk.ImageRegistrationMethod() class ? Something like this :

ElastixImageFilter = sitk.ElastixImageFilter() ElastixImageFilter.SetFixedImage(fixe) ElastixImageFilter.SetMovingImage(move) ElastixImageFilter.Execute() stop_condition = ElastixImageFilter.GetOptimizerStopConditionDescription() final_metric_value = ElastixImageFilter.GetMEtricValue()

Thanks !