lassoan / SlicerElastix

This extension makes available Elastix medical image registration toolkit (http://elastix.isi.uu.nl/) available in Slicer.
MIT License
49 stars 29 forks source link

AdvancedKappaStatistic metric not installed #32

Open crayonxx opened 4 years ago

crayonxx commented 4 years ago

I want to perform multi-metric registration, which register two CT data sets with MI and simultaneously register the corresponding segments (binary images) with the kappa statistic. Although I did not pass the segmentation node to Elastix, there seemed some problems with the configuration. The error log is shown below. `Error: AdvancedKappaStatistic(index 3) - This component is not installed! ERROR: error occurred while creating Metric 1.

itk::ExceptionObject (00000000001BF480) Location: "unknown" File: D:\D\P\S-0-E-b\SlicerElastix-build\elastix\Core\Kernel\elxElastixMain.cxx Line: 822 Description: itk::ERROR: ElastixMain(000000000377DF10): The following component could not be created: AdvancedKappaStatistic

ERROR: One or more components could not be created. Errors occurred!` Hope for some ideas. Thanks a lot.

lassoan commented 4 years ago

We build Elastix that is bundled with the extension using default options. Usually what is not included by default is experimental or problematic. I would recommend to get an Elastix release that is built with this feature enabled (maybe the binaries that you can get from Elastix website are like that) and set in Slicer to use that (in Advanced section). If you find that this metric works better than others then let me know and I will check if it is easy to enable it in Slicer's Elastix build.

crayonxx commented 3 years ago

Thanks for your advice. As indicated by Elastix, this metric was OFF by default before elastix 5.0.1 (https://github.com/SuperElastix/elastix/blob/develop/Components/Metrics/AdvancedKappaStatistic/CMakeLists.txt). We have tested this feature following your advice and found it works well in conjunction with the MI metric. Thank you very much again.

Crayon