config
file output:
#!/usr/bin/python
#
# autogenerated by MRtrix configure script
#
# configure output:
#
# MRtrix build type requested: release version
#
# Detecting OS: linux
# Looking for compiler [clang++]: clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
# Checking for C++11 compliance: ok
# Checking shared library generation: ok
# Detecting pointer size: 64 bit
# Detecting byte order: little-endian
# Checking for variable-length array support: ok
# Checking for non-POD variable-length array support: ok
# Checking for ::max_align_t: 16 bytes
# Checking for std::max_align_t: 16 bytes
# Checking for Eigen3 library: 3.3.4
# Checking for zlib compression library: 1.2.11
# Checking for "JSON for Modern C++" requirements: ok
# Checking for TIFF library: LIBTIFF, Version 4.0.9
# Checking for FFTW library: fftw-3.3.7-sse2-avx
# Checking for Qt moc: moc (version 5.9.5)
# Checking for Qt qmake: qmake (version 5.9.5)
# Checking for Qt rcc: rcc (version 5.9.5)
# Checking for Qt: 5.9.5
PATH = r'/home/jamie/bin/ants/bin:/mnt/Rsrch4/Documents/DTI Portfolio/shell-scripts:/usr/local/itksnap-3.8.0-beta-20181028-Linux-gcc64/bin:/usr/local/fsl/bin:/home/jamie/Downloads/mrtrix3/bin:/usr/local/fsl/bin:/home/jamie/.local/bin:/home/jamie/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
obj_suffix = '.o'
exe_suffix = ''
lib_prefix = 'lib'
lib_suffix = '.so'
cpp = [ 'clang++', '-c', 'CFLAGS', 'SRC', '-o', 'OBJECT' ]
cpp_flags = [ '-std=c++11', '-DMRTRIX_BUILD_TYPE="release version"', '-pthread', '-fPIC', '-DMRTRIX_WORD64', '-DMRTRIX_TIFF_SUPPORT', '-isystem', '/usr/include/x86_64-linux-gnu', '-DEIGEN_FFTW_DEFAULT', '-Wall', '-O3', '-DNDEBUG' ]
ld = [ 'clang++', 'OBJECTS', 'LDFLAGS', '-o', 'EXECUTABLE' ]
ld_flags = [ '-Wl,--sort-common,--as-needed', '-pthread', '-lz', '-ltiff', '-lfftw3' ]
runpath = '-Wl,-rpath,$ORIGIN/'
ld_enabled = True
ld_lib = [ 'clang++', 'OBJECTS', 'LDLIB_FLAGS', '-o', 'LIB' ]
ld_lib_flags = [ '-shared', '-Wl,--sort-common,--as-needed', '-pthread', '-lz', '-ltiff', '-lfftw3' ]
eigen_cflags = [ '-isystem', '/usr/include/eigen3', '-DEIGEN_DONT_PARALLELIZE' ]
moc = 'moc'
rcc = 'rcc'
qt_cflags = [ '-pipe', '-std=gnu++11', '-Wall', '-W', '-D_REENTRANT', '-fPIC', '-DQT_NO_DEBUG', '-DQT_OPENGL_LIB', '-DQT_SVG_LIB', '-DQT_WIDGETS_LIB', '-DQT_GUI_LIB', '-DQT_CORE_LIB', '-isystem', '/usr/include/x86_64-linux-gnu/qt5', '-isystem', '/usr/include/x86_64-linux-gnu/qt5/QtOpenGL', '-isystem', '/usr/include/x86_64-linux-gnu/qt5/QtSvg', '-isystem', '/usr/include/x86_64-linux-gnu/qt5/QtWidgets', '-isystem', '/usr/include/x86_64-linux-gnu/qt5/QtGui', '-isystem', '/usr/include/x86_64-linux-gnu/qt5/QtCore', '-isystem', '/usr/include/libdrm', '-isystem', '/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++' ]
qt_ldflags = [ '-Wl,-O1', '-lQt5OpenGL', '-lQt5Svg', '-lQt5Widgets', '-lQt5Gui', '-lQt5Core', '-lGL', '-lpthread' ]
nogui = False
ldd $(which dwidenoise)
output:
linux-vdso.so.1 (0x00007ffe9ef6f000)
libmrtrix.so => /home/jamie/Downloads/mrtrix3/bin/../lib/libmrtrix.so (0x00007fbd444d5000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbd4414c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd43dae000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbd43b96000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbd43977000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd43586000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd4498c000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbd43369000)
libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007fbd430f2000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fbd42ecc000)
libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007fbd42cbe000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007fbd42a56000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd42852000)
For complete, I executed dwidenoise
with the -debug
flag. The output:
>> dwidenoise -mask ./DTI32_17242/dwi_mask.nii.gz ./DTI32_17242/dwi.mif ./DTI32_17242/dwi_denoised.mif -force -debug
dwidenoise: [WARNING] existing output files will be overwritten
dwidenoise: [DEBUG] No config file found at "/etc/mrtrix.conf"
dwidenoise: [DEBUG] No config file found at "/home/jamie/.mrtrix.conf"
dwidenoise: [INFO] opening image "./DTI32_17242/dwi.mif"...
dwidenoise: [DEBUG] reading key/value file "./DTI32_17242/dwi.mif"...
dwidenoise: [DEBUG] sanitising image information...
dwidenoise: [INFO] image "./DTI32_17242/dwi.mif" opened with dimensions 256x256x57x33, voxel spacing 0.9375x0.9375x2.6000000000000001xnan, datatype UInt16LE
dwidenoise: [DEBUG] memory-mapping file "./DTI32_17242/dwi.mif"...
dwidenoise: [DEBUG] file "./DTI32_17242/dwi.mif" mapped at 0x7f3ea2f38000, size 246546432 (read-only)
dwidenoise: [DEBUG] image "./DTI32_17242/dwi.mif" loaded
dwidenoise: [DEBUG] image "./DTI32_17242/dwi.mif" initialised with strides = [ -1 -256 65536 3735552 ], start = 65535, using indirect IO
dwidenoise: [DEBUG] initialising threads...
dwidenoise: [DEBUG] launching 4 threads "loop threads"...
dwidenoise: [ 0%] preloading data for "./DTI32_17242/dwi.mif"...
dwidenoise: [DEBUG] waiting for completion of threads "loop threads"...
dwidenoise: [100%] preloading data for "./DTI32_17242/dwi.mif"...
dwidenoise: [DEBUG] threads "loop threads" completed OK
dwidenoise: [100%] preloading data for "./DTI32_17242/dwi.mif"
dwidenoise: [DEBUG] image "./DTI32_17242/dwi.mif" initialised with strides = [ -33 -8448 2162688 1 ], start = 2162655, using direct IO
dwidenoise: [INFO] opening image "./DTI32_17242/dwi_mask.nii.gz"...
dwidenoise: [DEBUG] transforms_match: FOV difference in scanner coordinates: 0
dwidenoise: [DEBUG] sanitising image information...
dwidenoise: [INFO] Axes and transform of image "./DTI32_17242/dwi_mask.nii.gz" altered to approximate RAS coordinate system
dwidenoise: [DEBUG] searching for suitable phase encoding data...
dwidenoise: [INFO] image "./DTI32_17242/dwi_mask.nii.gz" opened with dimensions 256x256x57x33, voxel spacing 0.9375x0.9375x2.5999999046325684x1, datatype Int16LE
dwidenoise: [DEBUG] loading image "./DTI32_17242/dwi_mask.nii.gz"...
dwidenoise: [100%] uncompressing image "./DTI32_17242/dwi_mask.nii.gz"
dwidenoise: [DEBUG] image "./DTI32_17242/dwi_mask.nii.gz" loaded
dwidenoise: [DEBUG] image "./DTI32_17242/dwi_mask.nii.gz" initialised with strides = [ -1 -256 65536 3735552 ], start = 65535, using indirect IO
dwidenoise: [INFO] creating image "./DTI32_17242/dwi_denoised.mif"...
dwidenoise: [DEBUG] sanitising image information...
dwidenoise: [DEBUG] creating empty file "./DTI32_17242/dwi_denoised.mif"
dwidenoise: [DEBUG] resizing file "./DTI32_17242/dwi_denoised.mif" to 493095824
dwidenoise: [DEBUG] sanitising image information...
dwidenoise: [INFO] image "./DTI32_17242/dwi_denoised.mif" created with dimensions 256x256x57x33, voxel spacing 0.9375x0.9375x2.6000000000000001xnan, datatype Float32LE
dwidenoise: [DEBUG] memory-mapping file "./DTI32_17242/dwi_denoised.mif"...
dwidenoise: [DEBUG] "./DTI32_17242/dwi_denoised.mif" appears to reside on a networked filesystem - using delayed write-back
dwidenoise: [DEBUG] file "./DTI32_17242/dwi_denoised.mif" held in RAM at 0x7f3e3fe9e010, size 493092864
dwidenoise: [DEBUG] image "./DTI32_17242/dwi_denoised.mif" loaded
dwidenoise: [DEBUG] image "./DTI32_17242/dwi_denoised.mif" initialised with strides = [ -33 -8448 2162688 1 ], start = 2162655, using direct IO
dwidenoise: [DEBUG] initialising threads...
dwidenoise: [DEBUG] launching 4 threads "loop threads"...
dwidenoise: [ 0%] running MP-PCA denoising...
dwidenoise: [DEBUG] waiting for completion of threads "loop threads"...
dwidenoise: [ 1%] running MP-PCA denoising...
dwidenoise: [SYSTEM FATAL CODE: SIGSEGV (11)] Segmentation fault: Invalid memory access
These lines stick out
dwidenoise: [DEBUG] No config file found at "/etc/mrtrix.conf"
dwidenoise: [DEBUG] No config file found at "/home/jamie/.mrtrix.conf"