Hi, Frankey,
I have upgraded the gcc version to 4.9 and even tried gcc version of 5.3 and enable -std=c++11 by adding flag to CXXFLAGS. But still I have failed to install your software on my RedHat 7.2 machine.
I have referred to tons of websites and cannot solve the issue, and by referring to your replies to other posts, every time I will delete the entire folders and install from scratch, thus copying the files over and install again won't work for me. And the error has been consistently about the dicom_parser.o.
Looking forward to your favorable reply.
Regards
Lingjie
[root@hzlserver3 build]# make
/usr/lib64/qt5/bin/uic ../src/mainwindow.ui -o ui_mainwindow.h
/usr/lib64/qt5/bin/uic ../src/tracking/tracking_window.ui -o ui_tracking_window.h
/usr/lib64/qt5/bin/uic ../src/reconstruction/reconstruction_window.ui -o ui_reconstruction_window.h
/usr/lib64/qt5/bin/uic ../src/dicom/dicom_parser.ui -o ui_dicom_parser.h
/usr/lib64/qt5/bin/uic ../src/simulation.ui -o ui_simulation.h
/usr/lib64/qt5/bin/uic ../src/view_image.ui -o ui_view_image.h
/usr/lib64/qt5/bin/uic ../src/manual_alignment.ui -o ui_manual_alignment.h
/usr/lib64/qt5/bin/uic ../src/tracking/tract_report.ui -o ui_tract_report.h
/usr/lib64/qt5/bin/uic ../src/tracking/color_bar_dialog.ui -o ui_color_bar_dialog.h
../src/tracking/color_bar_dialog.ui: Warning: Z-order assignment: '' is not a valid widget.
/usr/lib64/qt5/bin/uic ../src/tracking/connectivity_matrix_dialog.ui -o ui_connectivity_matrix_dialog.h
/usr/lib64/qt5/bin/uic ../src/tracking/atlasdialog.ui -o ui_atlasdialog.h
/usr/lib64/qt5/bin/uic ../src/dicom/motion_dialog.ui -o ui_motion_dialog.h
/usr/lib64/qt5/bin/uic ../src/filebrowser.ui -o ui_filebrowser.h
../src/filebrowser.ui: Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
/usr/lib64/qt5/bin/uic ../src/connectometry/createdbdialog.ui -o ui_createdbdialog.h
/usr/lib64/qt5/bin/uic ../src/connectometry/individual_connectometry.ui -o ui_individual_connectometry.h
/usr/lib64/qt5/bin/uic ../src/connectometry/match_db.ui -o ui_match_db.h
/usr/lib64/qt5/bin/uic ../src/connectometry/db_window.ui -o ui_db_window.h
/usr/lib64/qt5/bin/uic ../src/connectometry/group_connectometry.ui -o ui_group_connectometry.h
g++ -c -pipe -fpermissive -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../src -I. -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I../../../../include/qt5 -I../../../../include/qt5/QtOpenGL -I../../../../include/qt5/QtPrintSupport -I../../../../include/qt5/QtWidgets -I../../../../include/qt5/QtGui -I../../../../include/qt5/QtCore -I. -I. -I../../../../lib64/qt5/mkspecs/linux-g++ -o main.o ../src/main.cpp
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/numerical/basic_op.hpp: In function ‘void image::change_endian(type&)’:
../src/image/numerical/basic_op.hpp:815:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = pdata;
^
In file included from ../src/image/image.hpp:34:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/numerical/transformation.hpp: In function ‘void image::create_affine_transformation_matrix(input_rotation_iter, input_shift_iter, output_iter, image::vdim<3u>)’:
../src/image/numerical/transformation.hpp:439:68: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename std::iterator_traits<output_iter>::value_type value_type;
^
In file included from ../src/image/image.hpp:47:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:
../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(xyz[dim_order[index]])
^
../src/image/io/io.hpp: In member function ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int)’:
../src/image/io/io.hpp:107:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr dicom_header(new dicom);
^
../src/image/io/io.hpp:118:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr nifti_header(new nifti);
^
In file included from ../src/image/image.hpp:51:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:
../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]
unsigned int namelen;
^
../src/image/io/mat.hpp:91:17: warning: ‘std::string image::io::mat_matrix::name’ [-Wreorder]
std::string name;
^
../src/image/io/mat.hpp:115:5: warning: when initialized here [-Wreorder]
mat_matrix(const std::string& name_):type(0),rows(0),cols(0),namelen((unsigned int)name_.size()+1),name(name_),data_ptr(0) {}
^
In file included from ../src/image/image.hpp:51:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type, unsigned int, std::string)’:
../src/image/io/mat.hpp:387:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*)’:
../src/image/io/mat.hpp:407:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘void image::io::mat_read_base<input_interface>::add(const char*, const Type*, unsigned int, unsigned int)’:
../src/image/io/mat.hpp:419:41: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
In file included from ../src/image/image.hpp:65:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/reg/linear.hpp: In function ‘void image::reg::get_bound(const image_type1&, const image_type2&, const transform_type&, transform_type&, transform_type&, image::reg::reg_type)’:
../src/image/reg/linear.hpp:321:49: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename transform_type::value_type value_type;
^
In file included from ../src/image/reg/lddmm.hpp:5:0,
from ../src/image/image.hpp:66,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 3u>&, DetType&)’:
../src/image/numerical/dif.hpp:187:42: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename DetType::value_type value_type;
^
In file included from ../src/image/image.hpp:83:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::initialize_weight(image::uniform_dist&)’:
../src/image/ml/cnn.hpp:105:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < weight.size(); ++i)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:136:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]
virtual void calculate_dwdb(const float* dE_da,
^
../src/image/ml/cnn.hpp:137:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out,
^
../src/image/ml/cnn.hpp:138:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]
std::vector& dweight,
^
../src/image/ml/cnn.hpp:139:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]
std::vector& dbias){}
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:277:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < o2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::calculate_dwdb(const float*, const float*, std::vector<float, std::allocator >&, std::vector<float, std::allocator >&)’:
../src/image/ml/cnn.hpp:287:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w2o_1.size(); i++)
^
../src/image/ml/cnn.hpp:292:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < w2o_1i.size();++j)
^
../src/image/ml/cnn.hpp:297:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b2o.size(); i++)
^
../src/image/ml/cnn.hpp:301:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < outs.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:315:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < i2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:398:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:427:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < i2o.size(); i++)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:
../src/image/ml/cnn.hpp:475:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y = 0;y < c.height();++y)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:
../src/image/ml/cnn.hpp:498:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]
int kernel_size;
^
../src/image/ml/cnn.hpp:495:22: warning: ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]
connection_table connection;
^
../src/image/ml/cnn.hpp:500:5: warning: when initialized here [-Wreorder]
convolutional_layer(activation_type af_,int kernel_size_,const connection_table& connection_ = connection_table())
^
In file included from ../src/image/image.hpp:83:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::to_image(image::color_image&, std::vector<float, std::allocator >, int, int)’:
../src/image/ml/cnn.hpp:829:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < layers.size();++i)
^
../src/image/ml/cnn.hpp:835:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(I2.width() > max_width)
^
../src/image/ml/cnn.hpp:842:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < I2.size();++j)
^
../src/image/ml/cnn.hpp:864:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:876:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < Iv.size();++j)
^
../src/image/ml/cnn.hpp:894:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:901:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp:910:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
image::draw(Is[i],I,image::geometry<2>(1,cur_height + (Is[i].height() < layer_height ? (layer_height- Is[i].height())/2: 0)));
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:
../src/image/ml/cnn.hpp:1008:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:1013:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:1078:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < layers.size();++k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::initialize_training()’:
../src/image/ml/cnn.hpp:1104:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < layers.size();++j)
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1142:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < dweight.size();++k)
^
In file included from ../src/image/image.hpp:86:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:
../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]
const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}
^
In file included from ../src/cmd/cnt.cpp:3:0,
from ../src/main.cpp:16:
../src/connectometry/group_connectometry.hpp: At global scope:
../src/connectometry/group_connectometry.hpp:52:31: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<stat_model> model;
^
In file included from ../src/main.cpp:16:0:
../src/cmd/cnt.cpp: In function ‘int cnt()’:
../src/cmd/cnt.cpp:103:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < vbc->vbc->threads.size();++i)
^
../src/main.cpp: In function ‘QStringList search_files(QString, QString)’:
../src/main.cpp:38:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = 0;i < dir_list.size();++i)
^
../src/main.cpp:42:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < new_list.size();++index)
^
../src/main.cpp:45:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < file_list.size();++index)
^
In file included from ../src/image/numerical/transformation.hpp:3:0,
from ../src/image/image.hpp:34,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/numerical/matrix.hpp: In instantiation of ‘void image::mat::eigen_decomposition_sym(input_iterator, output_iterator1, output_iterator2, const dym_type&) [with input_iterator = __gnu_cxx::__normal_iterator<double*, std::vector >; output_iterator1 = __gnu_cxx::normal_iterator<double*, std::vector >; output_iterator2 = gnu_cxx::normal_iterator<double*, std::vector >; dym_type = image::dyndim]’:
../src/image/ml/em.hpp:33:108: required from here
../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0,iter = 0;l < dim && iter < 30;++iter)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/utility/multi_thread.hpp: In instantiation of ‘image::par_for(T, Func, int)::<lambda()> [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/utility/multi_thread.hpp:11:91: required from ‘struct image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]::<lambda()>’
../src/image/utility/multi_thread.hpp:15:10: required from ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:13:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = id; i < size; i += thread_count)
^
../src/image/utility/multi_thread.hpp: In instantiation of ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < size; i += thread_count)
^
In file included from ../src/image/image.hpp:69:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:
../src/libs/tracking/fib_data.hpp:145:33: required from here
../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization::prog’ will be initialized after [-Wreorder]
int prog;
^
../src/image/reg/reg.hpp:19:10: warning: ‘bool image::reg::normalization::has_T’ [-Wreorder]
bool has_T;
^
../src/image/reg/reg.hpp:28:5: warning: when initialized here [-Wreorder]
normalization(void):prog(0),has_T(false){}
^
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/main.cpp:9:
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:
../src/image/numerical/basic_op.hpp:853:34: required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’
../src/image/io/dicom.hpp:162:85: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
g++ -c -pipe -fpermissive -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../src -I. -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I../../../../include/qt5 -I../../../../include/qt5/QtOpenGL -I../../../../include/qt5/QtPrintSupport -I../../../../include/qt5/QtWidgets -I../../../../include/qt5/QtGui -I../../../../include/qt5/QtCore -I. -I. -I../../../../lib64/qt5/mkspecs/linux-g++ -o mainwindow.o ../src/mainwindow.cpp
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/numerical/basic_op.hpp: In function ‘void image::change_endian(type&)’:
../src/image/numerical/basic_op.hpp:815:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
In file included from ../src/image/image.hpp:34:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/numerical/transformation.hpp: In function ‘void image::create_affine_transformation_matrix(input_rotation_iter, input_shift_iter, output_iter, image::vdim<3u>)’:
../src/image/numerical/transformation.hpp:439:68: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename std::iterator_traits<output_iter>::value_type value_type;
^
In file included from ../src/image/image.hpp:47:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:
../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(xyz[dim_order[index]])
^
../src/image/io/io.hpp: In member function ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int)’:
../src/image/io/io.hpp:107:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr dicom_header(new dicom);
^
../src/image/io/io.hpp:118:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr nifti_header(new nifti);
^
In file included from ../src/image/image.hpp:51:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:
../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]
unsigned int namelen;
^
../src/image/io/mat.hpp:91:17: warning: ‘std::string image::io::mat_matrix::name’ [-Wreorder]
std::string name;
^
../src/image/io/mat.hpp:115:5: warning: when initialized here [-Wreorder]
mat_matrix(const std::string& name):type(0),rows(0),cols(0),namelen((unsigned int)name.size()+1),name(name),data_ptr(0) {}
^
In file included from ../src/image/image.hpp:51:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*, unsigned int, std::string)’:
../src/image/io/mat.hpp:387:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*)’:
../src/image/io/mat.hpp:407:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘void image::io::mat_read_base<input_interface>::add(const char*, const Type*, unsigned int, unsigned int)’:
../src/image/io/mat.hpp:419:41: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
In file included from ../src/image/image.hpp:65:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/reg/linear.hpp: In function ‘void image::reg::get_bound(const image_type1&, const image_type2&, const transform_type&, transform_type&, transform_type&, image::reg::reg_type)’:
../src/image/reg/linear.hpp:321:49: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename transform_type::value_type value_type;
^
In file included from ../src/image/reg/lddmm.hpp:5:0,
from ../src/image/image.hpp:66,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 3u>&, DetType&)’:
../src/image/numerical/dif.hpp:187:42: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename DetType::value_type value_type;
^
In file included from ../src/image/image.hpp:83:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::initialize_weight(image::uniform_dist&)’:
../src/image/ml/cnn.hpp:105:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < weight.size(); ++i)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:136:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]
virtual void calculate_dwdb(const float* dE_da,
^
../src/image/ml/cnn.hpp:137:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out,
^
../src/image/ml/cnn.hpp:138:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]
std::vector& dweight,
^
../src/image/ml/cnn.hpp:139:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]
std::vector& dbias){}
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:277:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < o2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::calculate_dwdb(const float*, const float*, std::vector<float, std::allocator >&, std::vector<float, std::allocator >&)’:
../src/image/ml/cnn.hpp:287:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w2o_1.size(); i++)
^
../src/image/ml/cnn.hpp:292:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < w2o_1i.size();++j)
^
../src/image/ml/cnn.hpp:297:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b2o.size(); i++)
^
../src/image/ml/cnn.hpp:301:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < outs.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:315:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < i2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:398:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:427:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < i2o.size(); i++)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:
../src/image/ml/cnn.hpp:475:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y = 0;y < c.height();++y)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:
../src/image/ml/cnn.hpp:498:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]
int kernel_size;
^
../src/image/ml/cnn.hpp:495:22: warning: ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]
connection_table connection;
^
../src/image/ml/cnn.hpp:500:5: warning: when initialized here [-Wreorder]
convolutional_layer(activation_type af,int kernel_size,const connection_table& connection = connection_table())
^
In file included from ../src/image/image.hpp:83:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::to_image(image::color_image&, std::vector<float, std::allocator >, int, int)’:
../src/image/ml/cnn.hpp:829:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < layers.size();++i)
^
../src/image/ml/cnn.hpp:835:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(I2.width() > max_width)
^
../src/image/ml/cnn.hpp:842:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < I2.size();++j)
^
../src/image/ml/cnn.hpp:864:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:876:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < Iv.size();++j)
^
../src/image/ml/cnn.hpp:894:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:901:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp:910:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
image::draw(Is[i],I,image::geometry<2>(1,cur_height + (Is[i].height() < layer_height ? (layer_height- Is[i].height())/2: 0)));
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:
../src/image/ml/cnn.hpp:1008:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:1013:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:1078:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < layers.size();++k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::initialize_training()’:
../src/image/ml/cnn.hpp:1104:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < layers.size();++j)
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1142:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < dweight.size();++k)
^
In file included from ../src/image/image.hpp:86:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:
../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]
const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}
^
In file included from ../src/mainwindow.cpp:13:0:
../src/reconstruction/reconstruction_window.h: At global scope:
../src/reconstruction/reconstruction_window.h:41:39: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<std::future > motion_correction_thread;
^
In file included from ../src/tracking/tracking_window.h:11:0,
from ../src/mainwindow.cpp:16:
../src/SliceModel.h:121:39: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<std::future > thread;
^
In file included from ../src/tracking/tracking_window.h:12:0,
from ../src/mainwindow.cpp:16:
../src/tracking/slice_view_scene.h: In constructor ‘slice_view_scene::slice_view_scene(tracking_window&)’:
../src/tracking/slice_view_scene.h:35:10: warning: ‘slice_view_scene::mid_down’ will be initialized after [-Wreorder]
bool mid_down;
^
../src/tracking/slice_view_scene.h:34:10: warning: ‘bool slice_view_scene::mouse_down’ [-Wreorder]
bool mouse_down;
^
../src/tracking/slice_view_scene.h:13:5: warning: when initialized here [-Wreorder]
slice_view_scene(tracking_window& cur_tracking_window_):
^
../src/tracking/slice_view_scene.h:34:10: warning: ‘slice_view_scene::mouse_down’ will be initialized after [-Wreorder]
bool mouse_down;
^
../src/tracking/slice_view_scene.h:25:22: warning: ‘tracking_window& slice_view_scene::cur_tracking_window’ [-Wreorder]
tracking_window& cur_tracking_window;
^
../src/tracking/slice_view_scene.h:13:5: warning: when initialized here [-Wreorder]
slice_view_scene(tracking_window& cur_tracking_window_):
^
../src/tracking/slice_view_scene.h:25:22: warning: ‘slice_view_scene::cur_tracking_window’ will be initialized after [-Wreorder]
tracking_window& cur_tracking_window;
^
../src/tracking/slice_view_scene.h:23:17: warning: ‘QStatusBar* slice_view_scene::statusbar’ [-Wreorder]
QStatusBar* statusbar;
^
../src/tracking/slice_view_scene.h:13:5: warning: when initialized here [-Wreorder]
slice_view_scene(tracking_window& cur_tracking_window_):
^
In file included from ../src/mainwindow.cpp:16:0:
../src/tracking/tracking_window.h: At global scope:
../src/tracking/tracking_window.h:66:27: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr timer,timer2;
^
../src/tracking/tracking_window.h:66:33: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr timer,timer2;
^
In file included from ../src/dicom/dicom_parser.h:3:0,
from ../src/mainwindow.cpp:18:
../src/dicom/dwi_header.hpp: In constructor ‘DwiHeader::DwiHeader()’:
../src/dicom/dwi_header.hpp:20:11: warning: ‘DwiHeader::bvalue’ will be initialized after [-Wreorder]
float bvalue;
^
../src/dicom/dwi_header.hpp:14:8: warning: ‘float DwiHeader::te’ [-Wreorder]
float te;
^
../src/dicom/dwi_header.hpp:23:5: warning: when initialized here [-Wreorder]
DwiHeader(void): bvalue(0.0), te(0.0) {}
^
In file included from ../src/mainwindow.cpp:30:0:
../src/connectometry/group_connectometry.hpp: At global scope:
../src/connectometry/group_connectometry.hpp:52:31: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<stat_model> model;
^
../src/connectometry/group_connectometry.hpp:54:27: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr timer;
^
../src/mainwindow.cpp:107:42: warning: unused parameter ‘col’ [-Wunused-parameter]
void MainWindow::open_fib_at(int row,int col)
^
../src/mainwindow.cpp:113:42: warning: unused parameter ‘col’ [-Wunused-parameter]
void MainWindow::open_src_at(int row,int col)
^
../src/mainwindow.cpp: In member function ‘void MainWindow::on_RenameDICOMDir_clicked()’:
../src/mainwindow.cpp:518:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int j = 0;j < files.size() && check_prog(index,dirs.size());++j)
^
../src/mainwindow.cpp: In member function ‘void MainWindow::on_batch_src_clicked()’:
../src/mainwindow.cpp:620:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < new_list.size();++index)
^
../src/mainwindow.cpp:637:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < nifti_file_list.size();++index)
^
../src/mainwindow.cpp:652:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < dicom_file_list.size();++index)
^
../src/mainwindow.cpp:689:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < dicom_file_list.size();++index)
^
In file included from ../src/image/numerical/transformation.hpp:3:0,
from ../src/image/image.hpp:34,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/numerical/matrix.hpp: In instantiation of ‘void image::mat::eigen_decomposition_sym(input_iterator, output_iterator1, output_iterator2, const dym_type&) [with input_iterator = __gnu_cxx::__normal_iterator<double*, std::vector >; output_iterator1 = __gnu_cxx::normal_iterator<double*, std::vector >; output_iterator2 = gnu_cxx::normal_iterator<double*, std::vector >; dym_type = image::dyndim]’:
../src/image/ml/em.hpp:33:108: required from here
../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0,iter = 0;l < dim && iter < 30;++iter)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/utility/multi_thread.hpp: In instantiation of ‘image::par_for(T, Func, int)::<lambda()> [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/utility/multi_thread.hpp:11:91: required from ‘struct image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]::<lambda()>’
../src/image/utility/multi_thread.hpp:15:10: required from ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:13:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = id; i < size; i += thread_count)
^
../src/image/utility/multi_thread.hpp: In instantiation of ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < size; i += thread_count)
^
In file included from ../src/image/image.hpp:69:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:
../src/libs/tracking/fib_data.hpp:145:33: required from here
../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization::prog’ will be initialized after [-Wreorder]
int prog;
^
../src/image/reg/reg.hpp:19:10: warning: ‘bool image::reg::normalization::has_T’ [-Wreorder]
bool has_T;
^
../src/image/reg/reg.hpp:28:5: warning: when initialized here [-Wreorder]
normalization(void):prog(0),has_T(false){}
^
In file included from ../src/image/image.hpp:52:0,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/io/2dseq.hpp: In instantiation of ‘bool image::io::bruker_2dseq::load_from_file(const char_type*) [with char_type = char]’:
../src/mainwindow.cpp:365:72: required from here
../src/image/io/2dseq.hpp:248:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int z = 0;z < dim[2];++z)
^
../src/image/io/2dseq.hpp:251:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(slope_index >= slopes.size())
^
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/libs/vbc/vbc_database.h:5,
from ../src/mainwindow.h:6,
from ../src/mainwindow.cpp:1:
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:
../src/image/numerical/basic_op.hpp:853:34: required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’
../src/image/io/dicom.hpp:162:85: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = pdata;
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::get_orientation(int, iterator_type, dim_order_type, flip_type) [with iterator_type = float; dim_order_type = char*; flip_type = char*]’:
../src/image/io/io.hpp:130:71: required from ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int) [with string_list_type = std::vector<std::basic_string >]’
../src/mainwindow.cpp:691:65: required from here
../src/image/numerical/basic_op.hpp:297:47: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(std::abs(vec[j]) > std::abs(vec[dim_order[index]]))
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::reorientation(iterator_type, iterator_type2, dim_order_type, flip_type) [with iterator_type = float*; iterator_type2 = float*; dim_order_type = char*; flip_type = char*]’:
../src/image/io/io.hpp:141:82: required from ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int) [with string_list_type = std::vector<std::basic_string >]’
../src/mainwindow.cpp:691:65: required from here
../src/image/numerical/basic_op.hpp:374:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
spatial_resolution[dim_order[index]] = sr[index];
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(datatype*, size_type) [with datatype = short int; size_type = int]’:
../src/image/io/nifti.hpp:320:40: required from ‘void image::io::nifti_base<input_interface, output_interface>::convert_to_small_endian() [with input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:412:37: required from ‘bool image::io::nifti_base<input_interface, output_interface>::load_from_file(const char_type*) [with char_type = char; input_interface = gz_istream; output_interface = gz_ostream]’
../src/mainwindow.cpp:354:65: required from here
../src/image/numerical/basic_op.hpp:852:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0; index < count; ++index)
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(datatype*, size_type) [with datatype = float; size_type = int]’:
../src/image/io/nifti.hpp:340:43: required from ‘void image::io::nifti_base<input_interface, output_interface>::convert_to_small_endian() [with input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:412:37: required from ‘bool image::io::nifti_base<input_interface, output_interface>::load_from_file(const char_type*) [with char_type = char; input_interface = gz_istream; output_interface = gz_ostream]’
../src/mainwindow.cpp:354:65: required from here
../src/image/numerical/basic_op.hpp:852:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::reorder(const image_type1&, image_type2&, int*, int*, int) [with image_type1 = image::basic_image<float, 3u>; image_type2 = image::basic_image<float, 3u>]’:
../src/image/numerical/basic_op.hpp:538:40: required from ‘void image::swap_xy(ImageType&) [with ImageType = image::basic_image<float, 3u>]’
../src/image/io/nifti.hpp:768:31: required from ‘bool image::io::nifti_base<input_interface, output_interface>::toLPS(image_type&, bool) [with image_type = image::basic_image<float, 3u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/mainwindow.cpp:359:23: required from here
../src/image/numerical/basic_op.hpp:347:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int z = 0; z < volume.geometry()[2]; ++z)
^
g++ -c -pipe -fpermissive -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../src -I. -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -I../../../../include/qt5 -I../../../../include/qt5/QtOpenGL -I../../../../include/qt5/QtPrintSupport -I../../../../include/qt5/QtWidgets -I../../../../include/qt5/QtGui -I../../../../include/qt5/QtCore -I. -I. -I../../../../lib64/qt5/mkspecs/linux-g++ -o dicom_parser.o ../src/dicom/dicom_parser.cpp
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/numerical/basic_op.hpp: In function ‘void image::change_endian(type&)’:
../src/image/numerical/basic_op.hpp:815:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
In file included from ../src/image/image.hpp:34:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/numerical/transformation.hpp: In function ‘void image::create_affine_transformation_matrix(input_rotation_iter, input_shift_iter, output_iter, image::vdim<3u>)’:
../src/image/numerical/transformation.hpp:439:68: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename std::iterator_traits<output_iter>::value_type value_type;
^
In file included from ../src/image/image.hpp:47:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:
../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(xyz[dim_order[index]])
^
../src/image/io/io.hpp: In member function ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int)’:
../src/image/io/io.hpp:107:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr dicom_header(new dicom);
^
../src/image/io/io.hpp:118:46: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr nifti_header(new nifti);
^
In file included from ../src/image/image.hpp:51:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:
../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]
unsigned int namelen;
^
../src/image/io/mat.hpp:91:17: warning: ‘std::string image::io::mat_matrix::name’ [-Wreorder]
std::string name;
^
../src/image/io/mat.hpp:115:5: warning: when initialized here [-Wreorder]
mat_matrix(const std::string& name):type(0),rows(0),cols(0),namelen((unsigned int)name.size()+1),name(name),data_ptr(0) {}
^
In file included from ../src/image/image.hpp:51:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*, unsigned int, std::string)’:
../src/image/io/mat.hpp:387:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*)’:
../src/image/io/mat.hpp:407:45: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
../src/image/io/mat.hpp: In member function ‘void image::io::mat_read_base<input_interface>::add(const char*, const Type*, unsigned int, unsigned int)’:
../src/image/io/mat.hpp:419:41: warning: ‘auto_ptr’ is deprecated (declared at /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
std::auto_ptr<mat_matrix> matrix(new mat_matrix);
^
In file included from ../src/image/image.hpp:65:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/reg/linear.hpp: In function ‘void image::reg::get_bound(const image_type1&, const image_type2&, const transform_type&, transform_type&, transform_type&, image::reg::reg_type)’:
../src/image/reg/linear.hpp:321:49: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename transform_type::value_type value_type;
^
In file included from ../src/image/reg/lddmm.hpp:5:0,
from ../src/image/image.hpp:66,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 3u>&, DetType&)’:
../src/image/numerical/dif.hpp:187:42: warning: typedef ‘value_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename DetType::value_type value_type;
^
In file included from ../src/image/image.hpp:83:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::initialize_weight(image::uniform_dist&)’:
../src/image/ml/cnn.hpp:105:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < weight.size(); ++i)
^
../src/image/ml/cnn.hpp: At global scope:
../src/image/ml/cnn.hpp:136:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]
virtual void calculate_dwdb(const float* dE_da,
^
../src/image/ml/cnn.hpp:137:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]
const float* prev_out,
^
../src/image/ml/cnn.hpp:138:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]
std::vector& dweight,
^
../src/image/ml/cnn.hpp:139:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]
std::vector& dbias){}
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:277:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < o2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::calculate_dwdb(const float*, const float*, std::vector<float, std::allocator >&, std::vector<float, std::allocator >&)’:
../src/image/ml/cnn.hpp:287:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w2o_1.size(); i++)
^
../src/image/ml/cnn.hpp:292:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < w2o_1i.size();++j)
^
../src/image/ml/cnn.hpp:297:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b2o.size(); i++)
^
../src/image/ml/cnn.hpp:301:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < outs.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:315:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < i2w_1i.size();++j)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:398:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::max_pooling_layer::back_propagation(float*, float*, const float*)’:
../src/image/ml/cnn.hpp:415:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < o2i.size(); i++)
^
../src/image/ml/cnn.hpp:427:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < i2o.size(); i++)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:
../src/image/ml/cnn.hpp:475:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int y = 0;y < c.height();++y)
^
../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:
../src/image/ml/cnn.hpp:498:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]
int kernel_size;
^
../src/image/ml/cnn.hpp:495:22: warning: ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]
connection_table connection;
^
../src/image/ml/cnn.hpp:500:5: warning: when initialized here [-Wreorder]
convolutional_layer(activation_type af,int kernel_size,const connection_table& connection = connection_table())
^
In file included from ../src/image/image.hpp:83:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::to_image(image::color_image&, std::vector<float, std::allocator >, int, int)’:
../src/image/ml/cnn.hpp:829:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < layers.size();++i)
^
../src/image/ml/cnn.hpp:835:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(I2.width() > max_width)
^
../src/image/ml/cnn.hpp:842:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < I2.size();++j)
^
../src/image/ml/cnn.hpp:864:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:876:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < Iv.size();++j)
^
../src/image/ml/cnn.hpp:894:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:901:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp:910:87: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
image::draw(Is[i],I,image::geometry<2>(1,cur_height + (Is[i].height() < layer_height ? (layer_height- Is[i].height())/2: 0)));
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:
../src/image/ml/cnn.hpp:1008:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < geo.size();++i)
^
../src/image/ml/cnn.hpp:1013:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i < layers.size())
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:
../src/image/ml/cnn.hpp:1078:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < layers.size();++k)
^
../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::initialize_training()’:
../src/image/ml/cnn.hpp:1104:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < layers.size();++j)
^
../src/image/ml/cnn.hpp: In lambda function:
../src/image/ml/cnn.hpp:1142:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0;k < dweight.size();++k)
^
In file included from ../src/image/image.hpp:86:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:
../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]
const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}
^
In file included from ../src/dicom/dicom_parser.h:3:0,
from ../src/dicom/dicom_parser.cpp:5:
../src/dicom/dwi_header.hpp: In constructor ‘DwiHeader::DwiHeader()’:
../src/dicom/dwi_header.hpp:20:11: warning: ‘DwiHeader::bvalue’ will be initialized after [-Wreorder]
float bvalue;
^
../src/dicom/dwi_header.hpp:14:8: warning: ‘float DwiHeader::te’ [-Wreorder]
float te;
^
../src/dicom/dwi_header.hpp:23:5: warning: when initialized here [-Wreorder]
DwiHeader(void): bvalue(0.0), te(0.0) {}
^
../src/dicom/dicom_parser.cpp: In function ‘bool load_dicom_multi_frame(const char*, std::vector<std::shared_ptr >&)’:
../src/dicom/dicom_parser.cpp:78:22: error: ‘class image::io::dicom’ has no member named ‘get_values’
dicom_header.get_values(0x2001,0x1003,b);
^
../src/dicom/dicom_parser.cpp:79:22: error: ‘class image::io::dicom’ has no member named ‘get_values’
dicom_header.get_values(0x2005,0x10B0,bx);
^
../src/dicom/dicom_parser.cpp:80:22: error: ‘class image::io::dicom’ has no member named ‘get_values’
dicom_header.get_values(0x2005,0x10B1,by);
^
../src/dicom/dicom_parser.cpp:81:22: error: ‘class image::io::dicom’ has no member named ‘get_values’
dicom_header.get_values(0x2005,0x10B2,bz);
^
../src/dicom/dicom_parser.cpp: In function ‘bool load_multiple_slice_dicom(QStringList, std::vector<std::shared_ptr >&)’:
../src/dicom/dicom_parser.cpp:349:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (;slice_num < file_list.size();++slice_num)
^
../src/dicom/dicom_parser.cpp:363:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (;b_num < file_list.size();++b_num)
^
../src/dicom/dicom_parser.cpp:379:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (;b_num < file_list.size();++b_num)
^
../src/dicom/dicom_parser.cpp:392:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (;slice_num < file_list.size();++slice_num)
^
../src/dicom/dicom_parser.cpp: In function ‘bool load_4d_fdf(QStringList, std::vector<std::shared_ptr >&)’:
../src/dicom/dicom_parser.cpp:515:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(dwi_id < 0 || dwi_id >= dwi_files.size() || slice_id < 0 || slice_id >= dwi_files.front()->image.depth())
^
../src/dicom/dicom_parser.cpp:515:85: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(dwi_id < 0 || dwi_id >= dwi_files.size() || slice_id < 0 || slice_id >= dwi_files.front()->image.depth())
^
../src/dicom/dicom_parser.cpp: In function ‘bool load_all_files(QStringList, std::vector<std::shared_ptr >&)’:
../src/dicom/dicom_parser.cpp:556:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < file_list.size();++index)
^
../src/dicom/dicom_parser.cpp:571:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < dicom_file_list.size();++index)
^
../src/dicom/dicom_parser.cpp:580:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < file_list.size();++index)
^
../src/dicom/dicom_parser.cpp:589:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = 0;i < file_list.size();++i)
^
../src/dicom/dicom_parser.cpp:604:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int index = 0;index < file_list.size();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::update_b_table()’:
../src/dicom/dicom_parser.cpp:705:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionOpen_b_table_triggered()’:
../src/dicom/dicom_parser.cpp:744:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(b_table.size()/4 != ui->tableWidget->rowCount() && (b_table.size()/4)%ui->tableWidget->rowCount() == 0)
^
../src/dicom/dicom_parser.cpp:747:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = 0;i < ui->tableWidget->rowCount();++i)
^
../src/dicom/dicom_parser.cpp:756:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0,b_index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionSave_b_table_triggered()’:
../src/dicom/dicom_parser.cpp:813:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionFlip_bx_triggered()’:
../src/dicom/dicom_parser.cpp:823:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionFlip_by_triggered()’:
../src/dicom/dicom_parser.cpp:829:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionFlip_bz_triggered()’:
../src/dicom/dicom_parser.cpp:835:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionSwap_bx_by_triggered()’:
../src/dicom/dicom_parser.cpp:841:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionSwap_bx_bz_triggered()’:
../src/dicom/dicom_parser.cpp:851:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
../src/dicom/dicom_parser.cpp: In member function ‘void dicom_parser::on_actionSwap_by_bz_triggered()’:
../src/dicom/dicom_parser.cpp:861:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0;index < ui->tableWidget->rowCount();++index)
^
In file included from ../src/image/numerical/transformation.hpp:3:0,
from ../src/image/image.hpp:34,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/numerical/matrix.hpp: In instantiation of ‘void image::mat::eigen_decomposition_sym(input_iterator, output_iterator1, output_iterator2, const dym_type&) [with input_iterator = __gnu_cxx::__normal_iterator<double*, std::vector >; output_iterator1 = __gnu_cxx::__normal_iterator<double*, std::vector >; output_iterator2 = __gnu_cxx::__normal_iterator<double*, std::vector >; dym_type = image::dyndim]’:
../src/image/ml/em.hpp:33:108: required from here
../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0;k < i;++k,Vrowk += dim)
^
../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0,iter = 0;l < dim && iter < 30;++iter)
^
In file included from ../src/image/ml/cnn.hpp:26:0,
from ../src/image/image.hpp:83,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/utility/multi_thread.hpp: In instantiation of ‘image::par_for(T, Func, int)::<lambda()> [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/utility/multi_thread.hpp:11:91: required from ‘struct image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]::<lambda()>’
../src/image/utility/multi_thread.hpp:15:10: required from ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:13:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = id; i < size; i += thread_count)
^
../src/image/utility/multi_thread.hpp: In instantiation of ‘void image::par_for(T, Func, int) [with T = long unsigned int; Func = image::ml::network::update_weights(float)::<lambda(int)>]’:
../src/image/ml/cnn.hpp:1152:10: required from here
../src/image/utility/multi_thread.hpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < size; i += thread_count)
^
In file included from ../src/image/image.hpp:69:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:
../src/libs/tracking/fib_data.hpp:145:33: required from here
../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization::prog’ will be initialized after [-Wreorder]
int prog;
^
../src/image/reg/reg.hpp:19:10: warning: ‘bool image::reg::normalization::has_T’ [-Wreorder]
bool has_T;
^
../src/image/reg/reg.hpp:28:5: warning: when initialized here [-Wreorder]
normalization(void):prog(0),has_T(false){}
^
In file included from ../src/image/image.hpp:52:0,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/io/2dseq.hpp: In instantiation of ‘bool image::io::bruker_2dseq::load_from_file(const char_type*) [with char_type = char]’:
../src/dicom/dicom_parser.cpp:261:47: required from here
../src/image/io/2dseq.hpp:248:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int z = 0;z < dim[2];++z)
^
../src/image/io/2dseq.hpp:251:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(slope_index >= slopes.size())
^
In file included from ../src/image/morphology/morphology.hpp:7:0,
from ../src/image/image.hpp:31,
from ../src/dicom/dwi_header.hpp:5,
from ../src/dicom/dicom_parser.h:3,
from ../src/dicom/dicom_parser.cpp:5:
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:
../src/image/numerical/basic_op.hpp:853:34: required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’
../src/image/io/dicom.hpp:162:85: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = pdata;
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(datatype, size_type) [with datatype = short int; size_type = int]’:
../src/image/io/nifti.hpp:320:40: required from ‘void image::io::nifti_base<input_interface, output_interface>::convert_to_small_endian() [with input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:412:37: required from ‘bool image::io::nifti_base<input_interface, output_interface>::load_from_file(const char_type*) [with char_type = char; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:146:48: required from here
../src/image/numerical/basic_op.hpp:852:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int index = 0; index < count; ++index)
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(datatype*, size_type) [with datatype = float; size_type = int]’:
../src/image/io/nifti.hpp:340:43: required from ‘void image::io::nifti_base<input_interface, output_interface>::convert_to_small_endian() [with input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:412:37: required from ‘bool image::io::nifti_base<input_interface, output_interface>::load_from_file(const char_type*) [with char_type = char; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:146:48: required from here
../src/image/numerical/basic_op.hpp:852:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::reorder(const image_type1&, image_type2&, int*, int*, int) [with image_type1 = image::basic_image<float, 4u>; image_type2 = image::basic_image<float, 4u>]’:
../src/image/numerical/basic_op.hpp:538:40: required from ‘void image::swap_xy(ImageType&) [with ImageType = image::basic_image<float, 4u>]’
../src/image/io/nifti.hpp:768:31: required from ‘bool image::io::nifti_base<input_interface, output_interface>::toLPS(image_type&, bool) [with image_type = image::basic_image<float, 4u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:191:39: required from here
../src/image/numerical/basic_op.hpp:347:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned int z = 0; z < volume.geometry()[2]; ++z)
^
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::reorder(const image_type1&, image_type2&, int*, int*, int) [with image_type1 = image::basic_image<unsigned char, 3u>; image_type2 = image::basic_image<unsigned char, 3u>]’:
../src/image/numerical/basic_op.hpp:538:40: required from ‘void image::swap_xy(ImageType&) [with ImageType = image::basic_image<unsigned char, 3u>]’
../src/image/io/nifti.hpp:768:31: required from ‘bool image::io::nifti_base<input_interface, output_interface>::toLPS(image_type&, bool) [with image_type = image::basic_image<unsigned char, 3u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:200:35: required from here
../src/image/numerical/basic_op.hpp:347:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::reorder(const image_type1&, image_type2&, int*, int*, int) [with image_type1 = image::basic_image<float, 3u>; image_type2 = image::basic_image<float, 3u>]’:
../src/image/numerical/basic_op.hpp:538:40: required from ‘void image::swap_xy(ImageType&) [with ImageType = image::basic_image<float, 3u>]’
../src/image/io/nifti.hpp:768:31: required from ‘bool image::io::nifti_base<input_interface, output_interface>::toLPS(image_type&, bool) [with image_type = image::basic_image<float, 3u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:210:44: required from here
../src/image/numerical/basic_op.hpp:347:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = unsigned char]’:
../src/image/numerical/basic_op.hpp:853:34: required from ‘void image::change_endian(datatype*, size_type) [with datatype = unsigned char; size_type = unsigned int]’
../src/image/io/nifti.hpp:610:48: required from ‘bool image::io::nifti_base<input_interface, output_interface>::save_to_buffer(pointer_type, unsigned int) const [with pointer_type = __gnu_cxx::__normal_iterator<unsigned char*, std::vector<unsigned char, std::allocator > >; input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:690:50: required from ‘bool image::io::nifti_base<input_interface, output_interface>::save_to_image(image_type&) const [with image_type = image::basic_image<unsigned char, 3u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/image/io/nifti.hpp:755:30: required from ‘bool image::io::nifti_base<input_interface, output_interface>::toLPS(image_type&, bool) [with image_type = image::basic_image<unsigned char, 3u>; input_interface = gz_istream; output_interface = gz_ostream]’
../src/dicom/dicom_parser.cpp:200:35: required from here
../src/image/numerical/basic_op.hpp:814:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (char i = 0; i < sizeof(type); ++i,--pdata)
^
../src/image/numerical/basic_op.hpp:815:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
temp[i] = *pdata;
^
make: *** [dicom_parser.o] Error 1