SuperElastix / SimpleElastix

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

No output from PrintParameterMap() in IDLE #369

Open naledo opened 4 years ago

naledo commented 4 years ago

Hi!

The code is from "Parameter Maps" of document, but nothing to output in IDLE.

import SimpleITK as sitk
elastixImageFilter = sitk.ElastixImageFilter()
elastixImageFilter.PrintParameterMap()

It seems to have some similar issues in the past. I can't still resolve the problems. Thanks for your suggestion!

kaspermarstal commented 4 years ago

There are problems logging to console in some IDEs. You can use sitk.WriteParameterFile() to write the parameter map to disk and inspect it from there.