elastix icon indicating copy to clipboard operation
elastix copied to clipboard

Less verbose output

Open Markus92 opened this issue 5 years ago • 3 comments

Hi, We are currently registering a few thousand images with Elastix, however our terminals are flooded by the output of every individual iteration! Is there an option to make Elastix less verbose? The only message that might be interesting for us is if it succeeded or failed, and maybe the final iteration step. Otherwise I'd kindly suggest adding this option :) Regards, Mark

Markus92 avatar Jul 25 '19 09:07 Markus92

What you may do is a redirect >> /dev/null

A new logger with verbosity options is desirable indeed, but we depend on new funding to be able to implement that.

mstaring avatar Sep 18 '19 09:09 mstaring

Thanks for the update, Marius. Though that would be a workaround, we'd also lose all error messages.

I might be able to get some time here at ISI to at least implement some quick and dirty logging framework with a verbosity option, seeing as it is starting to become an issue for some of our larger breast MRI studies. Do you have any preference for where to put this into the codebase?

Markus92 avatar Sep 19 '19 08:09 Markus92

That would be welcome!

We do have a better logger implemented at SuperElastix, see https://github.com/SuperElastix/SuperElastix/tree/develop/Modules/Logger

spdlog. This would be a candidate for elastix as well.

The base should be put in the Common directory. The actual use of it in elastix will be the major challenge I think. Currently we use the xout for it, something we made ourselves. Perhaps you can get help from @N-Dekker while working on this.

mstaring avatar Sep 19 '19 10:09 mstaring