SuperElastix / elastix

Official elastix repository
http://elastix.dev
Apache License 2.0
481 stars 116 forks source link

elastix 5.2.0 release not working neither logging ? #1238

Closed NicoKiaru closed 2 months ago

NicoKiaru commented 2 months ago

Hello,

I've tried the latest release (5.2.0) on my machine with these files:

singlechan.zip

and this command:

C:\elastix-5.X.0-win64>elastix.exe -p C:\singlechan\rpa.txt -m C:\singlechan\moving.tif -f C:\singlechan\fixed.tif -out C:\singlechan -loglevel warning

My issue is that elastix works with the version 5.0.1 and 5.1.0, however I do not manage to make it work with the version 5.2.0. Also, I did not manage to get any output neither on the command nor with a log file. So I have no idea what could be wrong. I tried different parameters for the log level (warning, error, info) but still could not get any message.

Below the log file from the version 5.1.0: elastix.log

If you have any idea regarding fixing the registration or the logging that would be very helpful, thanks!


Configuration info (taken from the log file)

  elastix version: 5.1.0
  Git revision SHA: d652938573e5f193955908eba225a854b31ce36a
  Git revision date: Thu Jan 12 14:20:18 2023 +0100
  Build date: Jan 12 2023 13:52:33
  Compiler: Visual C++ version 192930147.0
  Memory address size: 64-bit
  CMake version: 3.18.3
  ITK version: 5.3.0
N-Dekker commented 2 months ago

Thanks for your report, @NicoKiaru Honestly I cannot reproduce the issue! I tried:

C:\>C:\elastix-5.2.0-win64\elastix.exe  -p C:\singlechan\rpa.txt -m C:\singlechan\moving.tif -f C:\singlechan\fixed.tif -out C:\singlechan -loglevel warning

Having taken elastix.exe directly from the releases at https://github.com/SuperElastix/elastix/releases/tag/5.2.0

And it did produce a log file, at "C:\singlechan" (elastix.log, as well as TransformParameters.0.txt and IterationInfo txt files.

The release was built using Visual Studio 2022. Would it help to you if you would install (or maybe re-install) the latest Visual C++ redistributable from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 ? I think you would need this one, for X64: https://aka.ms/vs/17/release/vc_redist.x64.exe

Please let me know if that would fix the issue!

NicoKiaru commented 2 months ago

Ah yeah, that fixes it! Thanks a lot for the fast reply!