{"action":"created","issue":{"url":"https://api.github.com/repos/frankyeh/TIPL/issues/3","repository_url":"https://api.github.com/repos/frankyeh/TIPL","labels_url":"https://api.github.com/repos/frankyeh/TIPL/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/frankyeh/TIPL/issues/3/comments","events_url":"https://api.github.com/repos/frankyeh/TIPL/issues/3/events","html_url":"https://github.com/frankyeh/TIPL/issues/3","id":145247494,"number":3,"title":"[image::pixel_index] missing  `is_valid` and `next`?","user":{"login":"WillForan","id":680742,"avatar_url":"https://avatars.githubusercontent.com/u/680742?v=3","gravatar_id":"","url":"https://api.github.com/users/WillForan","html_url":"https://github.com/WillForan","followers_url":"https://api.github.com/users/WillForan/followers","following_url":"https://api.github.com/users/WillForan/following{/other_user}","gists_url":"https://api.github.com/users/WillForan/gists{/gist_id}","starred_url":"https://api.github.com/users/WillForan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WillForan/subscriptions","organizations_url":"https://api.github.com/users/WillForan/orgs","repos_url":"https://api.github.com/users/WillForan/repos","events_url":"https://api.github.com/users/WillForan/events{/privacy}","received_events_url":"https://api.github.com/users/WillForan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T18:15:05Z","updated_at":"2016-04-06T18:38:15Z","closed_at":null,"body":"trying to compile within dsi studio i see the following errors\r\n\r\n```\r\n../src/image/numerical/basic_op.hpp:691:41: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n../src/image/numerical/basic_op.hpp:691:73: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n../src/image/numerical/numerical.hpp:173:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n../src/image/numerical/numerical.hpp:173:74: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n../src/image/numerical/optimization.hpp:25:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n../src/image/numerical/optimization.hpp:25:72: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n../src/image/numerical/dif.hpp:131:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\r\n../src/image/numerical/dif.hpp:192:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\r\n../src/image/numerical/dif.hpp:251:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n../src/image/numerical/dif.hpp:251:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n../src/image/numerical/dif.hpp:283:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n../src/image/numerical/dif.hpp:283:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n../src/image/reg/reg.hpp:41:14: error: declaration of ‘class value_type’\r\n../src/image/reg/reg.hpp:11:10: error:  shadows template parm ‘class value_type’\r\n../src/image/ml/cnn.hpp:42:22: error: ‘expf’ is not a member of ‘std’\r\n../src/image/ml/cnn.hpp:59:35: error: ‘expf’ is not a member of ‘std’\r\n../src/image/ml/cnn.hpp:612:22: error: ‘expf’ is not a member of ‘std’\r\n../src/image/ml/cnn.hpp:793:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\r\n../src/image/ml/cnn.hpp:798:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\r\n\r\n```\r\n\r\nthe full output:\r\n\r\n```\r\n+ make\r\ng++ -c -m64 -pipe -fpermissive -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../src -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -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 -I. -I. -I. -o main.o ../src/main.cpp\r\nIn file included from ../src/image/morphology/morphology.hpp:7:0,\r\n                 from ../src/image/image.hpp:31,\r\n                 from ../src/main.cpp:10:\r\n../src/image/numerical/basic_op.hpp: In function ‘void image::project(const image::basic_image<PixelType, 2u>&, OutImageType&, unsigned int)’:\r\n../src/image/numerical/basic_op.hpp:691:41: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n         for(pixel_index<2> index; index.is_valid(src.geometry()); index.next(src.geometry()))\r\n                                         ^\r\n../src/image/numerical/basic_op.hpp:691:73: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n         for(pixel_index<2> index; index.is_valid(src.geometry()); index.next(src.geometry()))\r\n                                                                         ^\r\nIn file included from ../src/image/segmentation/otsu.hpp:4:0,\r\n                 from ../src/image/segmentation/segmentation.hpp:6,\r\n                 from ../src/image/image.hpp:32,\r\n                 from ../src/main.cpp:10:\r\n../src/image/numerical/numerical.hpp: In function ‘void image::gradient_multiple_sampling(const image::basic_image<pixel_type1, 2u, storage_type1>&, VectorImageType&, double, unsigned int, unsigned int)’:\r\n../src/image/numerical/numerical.hpp:173:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n     for (image::pixel_index<2> iter; iter.is_valid(src.geometry()); iter.next(src.geometry()))\r\n                                           ^\r\n../src/image/numerical/numerical.hpp:173:74: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n     for (image::pixel_index<2> iter; iter.is_valid(src.geometry()); iter.next(src.geometry()))\r\n                                                                          ^\r\nIn file included from ../src/image/image.hpp:43:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/numerical/optimization.hpp: In function ‘void image::optimization::plot_fun_2d(image_type&, iter_type1, iter_type1, iter_type1, iter_type1, function_type&, unsigned int, unsigned int, unsigned int)’:\r\n../src/image/numerical/optimization.hpp:25:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n     for(image::pixel_index<2> index;index.is_valid(I.geometry());index.next(I.geometry()))\r\n                                           ^\r\n../src/image/numerical/optimization.hpp:25:72: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n     for(image::pixel_index<2> index;index.is_valid(I.geometry());index.next(I.geometry()))\r\n                                                                        ^\r\nIn file included from ../src/image/image.hpp:47:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:\r\n../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]\r\n             if(xyz[dim_order[index]])\r\n                                    ^\r\n../src/image/io/io.hpp: In member function ‘void image::io::volume::reorientation()’:\r\n../src/image/io/io.hpp:56:52: warning: array subscript has type ‘char’ [-Wchar-subscripts]\r\n                 spatial_resolution[dim_order[index]] = sr[index];\r\n                                                    ^\r\n../src/image/io/io.hpp: In member function ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int)’:\r\n../src/image/io/io.hpp:133:46: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n             std::auto_ptr<dicom> dicom_header(new dicom);\r\n                                              ^\r\n../src/image/io/io.hpp:144:46: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n             std::auto_ptr<nifti> nifti_header(new nifti);\r\n                                              ^\r\nIn file included from ../src/image/image.hpp:51:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:\r\n../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]\r\n     unsigned int namelen;\r\n                  ^\r\n../src/image/io/mat.hpp:91:17: warning:   ‘std::string image::io::mat_matrix::name’ [-Wreorder]\r\n     std::string name;\r\n                 ^\r\n../src/image/io/mat.hpp:115:5: warning:   when initialized here [-Wreorder]\r\n     mat_matrix(const std::string& name_):type(0),rows(0),cols(0),namelen((unsigned int)name_.size()+1),name(name_),data_ptr(0) {}\r\n     ^\r\nIn file included from ../src/image/image.hpp:51:0,\r\n                 from ../src/main.cpp:10:\r\n../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)’:\r\n../src/image/io/mat.hpp:387:45: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n             std::auto_ptr<mat_matrix> matrix(new mat_matrix);\r\n                                             ^\r\n../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*)’:\r\n../src/image/io/mat.hpp:407:45: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n             std::auto_ptr<mat_matrix> matrix(new mat_matrix);\r\n                                             ^\r\n../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)’:\r\n../src/image/io/mat.hpp:419:41: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n         std::auto_ptr<mat_matrix> matrix(new mat_matrix);\r\n                                         ^\r\nIn file included from ../src/image/image.hpp:58:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/filter/gaussian.hpp: In function ‘void image::filter::gaussian(image_type&)’:\r\n../src/image/filter/gaussian.hpp:113:69: warning: to refer to a type member of a template parameter, use ‘typename image_type:: value_type’ [-fpermissive]\r\n     gaussian_filter_imp<image_type::value_type,image_type::dimension>()(src);\r\n                                                                     ^\r\nIn file included from ../src/image/reg/lddmm.hpp:5:0,\r\n                 from ../src/image/image.hpp:66,\r\n                 from ../src/main.cpp:10:\r\n../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant(const image::basic_image<PixelType, 3u>&, DetType&)’:\r\n../src/image/numerical/dif.hpp:131:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\r\n     for (image::pixel_index<3> index; index.is_valid(geo); index.next(geo))\r\n                                                                  ^\r\n../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 3u>&, DetType&)’:\r\n../src/image/numerical/dif.hpp:192:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\r\n     for (image::pixel_index<3> index; index.is_valid(geo); index.next(geo))\r\n                                                                  ^\r\n../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant(const image::basic_image<PixelType, 2u>&, image::basic_image<PixelType2, 2u>&)’:\r\n../src/image/numerical/dif.hpp:251:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n     for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\r\n                                             ^\r\n../src/image/numerical/dif.hpp:251:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n     for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\r\n                                                                  ^\r\n../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 2u>&, image::basic_image<PixelType2, 2u>&)’:\r\n../src/image/numerical/dif.hpp:283:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\r\n     for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\r\n                                             ^\r\n../src/image/numerical/dif.hpp:283:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\r\n     for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\r\n                                                                  ^\r\nIn file included from ../src/image/image.hpp:69:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/reg/reg.hpp: At global scope:\r\n../src/image/reg/reg.hpp:41:14: error: declaration of ‘class value_type’\r\n     template<typename value_type>\r\n              ^\r\n../src/image/reg/reg.hpp:11:10: error:  shadows template parm ‘class value_type’\r\n template<typename value_type>\r\n          ^\r\n../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::run_reg(const image_type&, const vector_type&, const image_type&, const vector_type&, int, image::reg::reg_cost_type, image::reg::reg_type, terminate_type&, int)’:\r\n../src/image/reg/reg.hpp:85:72: warning: to refer to a type member of a template parameter, use ‘typename image_type:: value_type’ [-fpermissive]\r\n         image::basic_image<image_type::value_type,image_type::dimension> new_from(to.geometry());\r\n                                                                        ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In function ‘float image::ml::tanh_f(value_type)’:\r\n../src/image/ml/cnn.hpp:42:22: error: ‘expf’ is not a member of ‘std’\r\n     const float ep = std::expf(v + v);\r\n                      ^\r\n../src/image/ml/cnn.hpp:42:22: note: suggested alternative:\r\nIn file included from /usr/include/c++/4.9/cmath:44:0,\r\n                 from /usr/include/c++/4.9/random:38,\r\n                 from /usr/include/c++/4.9/bits/stl_algo.h:66,\r\n                 from /usr/include/c++/4.9/algorithm:62,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\r\n                 from ../src/main.cpp:5:\r\n/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\r\n __MATHCALL (exp,, (_Mdouble_ __x));\r\n ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In function ‘float image::ml::sigmoid_f(value_type)’:\r\n../src/image/ml/cnn.hpp:59:35: error: ‘expf’ is not a member of ‘std’\r\n     return float(1) / (float(1) + std::expf(-v));\r\n                                   ^\r\n../src/image/ml/cnn.hpp:59:35: note: suggested alternative:\r\nIn file included from /usr/include/c++/4.9/cmath:44:0,\r\n                 from /usr/include/c++/4.9/random:38,\r\n                 from /usr/include/c++/4.9/bits/stl_algo.h:66,\r\n                 from /usr/include/c++/4.9/algorithm:62,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\r\n                 from ../src/main.cpp:5:\r\n/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\r\n __MATHCALL (exp,, (_Mdouble_ __x));\r\n ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::reset()’:\r\n../src/image/ml/cnn.hpp:102:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int i = 0; i < weight.size(); ++i)\r\n                          ^\r\n../src/image/ml/cnn.hpp: At global scope:\r\n../src/image/ml/cnn.hpp:129:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]\r\n     virtual void calculate_dwdb(const float* dE_da,\r\n                                              ^\r\n../src/image/ml/cnn.hpp:130:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]\r\n                                   const float* prev_out,\r\n                                                ^\r\n../src/image/ml/cnn.hpp:131:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]\r\n                                   std::vector<float>& dweight,\r\n                                                       ^\r\n../src/image/ml/cnn.hpp:132:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]\r\n                                   std::vector<float>& dbias){}\r\n                                                       ^\r\n../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:\r\n../src/image/ml/cnn.hpp:236:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n             for(int j = 0;j < o2w_1i.size();++j)\r\n                             ^\r\n../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<float> >&, std::vector<float, std::allocator<float> >&)’:\r\n../src/image/ml/cnn.hpp:246:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int i = 0; i < w2o_1.size(); i++)\r\n                          ^\r\n../src/image/ml/cnn.hpp:251:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n             for(int j = 0;j < w2o_1i.size();++j)\r\n                             ^\r\n../src/image/ml/cnn.hpp:256:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int i = 0; i < b2o.size(); i++)\r\n                          ^\r\n../src/image/ml/cnn.hpp:260:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n             for(int j = 0;j < outs.size();++j)\r\n                             ^\r\n../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:\r\n../src/image/ml/cnn.hpp:274:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n             for(int j = 0;j < i2w_1i.size();++j)\r\n                             ^\r\n../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:\r\n../src/image/ml/cnn.hpp:419:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int y = 0;y < c.height();++y)\r\n                         ^\r\n../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:\r\n../src/image/ml/cnn.hpp:442:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]\r\n     int kernel_size;\r\n         ^\r\n../src/image/ml/cnn.hpp:439:22: warning:   ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]\r\n     connection_table connection;\r\n                      ^\r\n../src/image/ml/cnn.hpp:444:5: warning:   when initialized here [-Wreorder]\r\n     convolutional_layer(activation_type af_,int kernel_size_,const connection_table& connection_ = connection_table())\r\n     ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::soft_max_layer::forward_propagation(const float*, float*)’:\r\n../src/image/ml/cnn.hpp:612:22: error: ‘expf’ is not a member of ‘std’\r\n             out[i] = std::expf(data[i]);\r\n                      ^\r\n../src/image/ml/cnn.hpp:612:22: note: suggested alternative:\r\nIn file included from /usr/include/c++/4.9/cmath:44:0,\r\n                 from /usr/include/c++/4.9/random:38,\r\n                 from /usr/include/c++/4.9/bits/stl_algo.h:66,\r\n                 from /usr/include/c++/4.9/algorithm:62,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\r\n                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\r\n                 from ../src/main.cpp:5:\r\n/usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\r\n __MATHCALL (exp,, (_Mdouble_ __x));\r\n ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:\r\n../src/image/ml/cnn.hpp:743:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int i = 0;i < geo.size();++i)\r\n                         ^\r\n../src/image/ml/cnn.hpp:748:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n             if(i < layers.size())\r\n                  ^\r\n../src/image/ml/cnn.hpp: In member function ‘bool image::ml::network::load_from_file(const char*)’:\r\n../src/image/ml/cnn.hpp:793:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\r\n                 std::vector<float> w((std::istream_iterator<float>(std::istringstream(line))),(std::istream_iterator<float>()));\r\n                                                                                            ^\r\n../src/image/ml/cnn.hpp:793:92: note: candidates are:\r\nIn file included from /usr/include/c++/4.9/iterator:66:0,\r\n                 from ../src/main.cpp:2:\r\n/usr/include/c++/4.9/bits/stream_iterator.h:72:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\r\n       istream_iterator(const istream_iterator& __obj)\r\n       ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:72:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘const std::istream_iterator<float>&’\r\n/usr/include/c++/4.9/bits/stream_iterator.h:68:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type = std::basic_istream<char>]\r\n       istream_iterator(istream_type& __s)\r\n       ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:68:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘std::istream_iterator<float>::istream_type& {aka std::basic_istream<char>&}’\r\n/usr/include/c++/4.9/bits/stream_iterator.h:64:26: note: constexpr std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator() [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\r\n       _GLIBCXX_CONSTEXPR istream_iterator()\r\n                          ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:64:26: note:   candidate expects 0 arguments, 1 provided\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp:798:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\r\n                 std::vector<float> b((std::istream_iterator<float>(std::istringstream(line))),(std::istream_iterator<float>()));\r\n                                                                                            ^\r\n../src/image/ml/cnn.hpp:798:92: note: candidates are:\r\nIn file included from /usr/include/c++/4.9/iterator:66:0,\r\n                 from ../src/main.cpp:2:\r\n/usr/include/c++/4.9/bits/stream_iterator.h:72:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\r\n       istream_iterator(const istream_iterator& __obj)\r\n       ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:72:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘const std::istream_iterator<float>&’\r\n/usr/include/c++/4.9/bits/stream_iterator.h:68:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type = std::basic_istream<char>]\r\n       istream_iterator(istream_type& __s)\r\n       ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:68:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘std::istream_iterator<float>::istream_type& {aka std::basic_istream<char>&}’\r\n/usr/include/c++/4.9/bits/stream_iterator.h:64:26: note: constexpr std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator() [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\r\n       _GLIBCXX_CONSTEXPR istream_iterator()\r\n                          ^\r\n/usr/include/c++/4.9/bits/stream_iterator.h:64:26: note:   candidate expects 0 arguments, 1 provided\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:\r\n../src/image/ml/cnn.hpp:811:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(int k = 0;k < layers.size();++k)\r\n                         ^\r\nIn file included from ../src/image/image.hpp:86:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:\r\n../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]\r\n     const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}\r\n                                                                                         ^\r\nIn file included from ../src/cmd/cnt.cpp:3:0,\r\n                 from ../src/main.cpp:16:\r\n../src/tracking/vbc_dialog.hpp: At global scope:\r\n../src/tracking/vbc_dialog.hpp:64:31: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n     std::auto_ptr<stat_model> model;\r\n                               ^\r\nIn file included from ../src/main.cpp:16:0:\r\n../src/cmd/cnt.cpp: In function ‘int cnt()’:\r\n../src/cmd/cnt.cpp:9:41: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\r\n     std::auto_ptr<vbc_database> database(new vbc_database);\r\n                                         ^\r\n../src/cmd/cnt.cpp:120:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for(int i = 0;i < vbc->vbc->threads.size();++i)\r\n                     ^\r\n../src/main.cpp: In function ‘QStringList search_files(QString, QString)’:\r\n../src/main.cpp:57:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for(unsigned int i = 0;i < dir_list.size();++i)\r\n                              ^\r\n../src/main.cpp:61:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for(unsigned int index = 0;index < new_list.size();++index)\r\n                                          ^\r\n../src/main.cpp:64:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for (unsigned int index = 0;index < file_list.size();++index)\r\n                                           ^\r\nIn file included from ../src/image/numerical/transformation.hpp:3:0,\r\n                 from ../src/image/image.hpp:34,\r\n                 from ../src/main.cpp:10:\r\n../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<double> >; output_iterator1 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator2 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; dym_type = image::dyndim]’:\r\n../src/image/ml/em.hpp:33:108:   required from here\r\n../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n                             for (int k = 0;k < i;++k,Vrowk += dim)\r\n                                              ^\r\n../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n                     for (int k = 0;k < i;++k,Vrowk += dim)\r\n                                      ^\r\n../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for (int l = 0,iter = 0;l < dim && iter < 30;++iter)\r\n                                   ^\r\nIn file included from ../src/image/image.hpp:69:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:\r\n../src/libs/tracking/fib_data.hpp:141:33:   required from here\r\n../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization<double>::prog’ will be initialized after [-Wreorder]\r\n     int prog;\r\n         ^\r\n../src/image/reg/reg.hpp:19:10: warning:   ‘bool image::reg::normalization<double>::has_T’ [-Wreorder]\r\n     bool has_T;\r\n          ^\r\n../src/image/reg/reg.hpp:28:5: warning:   when initialized here [-Wreorder]\r\n     normalization(void):prog(0),has_T(false){}\r\n     ^\r\nIn file included from ../src/image/morphology/morphology.hpp:7:0,\r\n                 from ../src/image/image.hpp:31,\r\n                 from ../src/main.cpp:10:\r\n../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:\r\n../src/image/numerical/basic_op.hpp:826:34:   required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’\r\n../src/image/io/dicom.hpp:162:85:   required from here\r\n../src/image/numerical/basic_op.hpp:786:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (char i = 0; i < sizeof(type); ++i,--pdata)\r\n                        ^\r\n../src/image/numerical/basic_op.hpp:787:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]\r\n         temp[i] = *pdata;\r\n             ^\r\n../src/image/numerical/basic_op.hpp:788:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\r\n     value = *(type*)temp;\r\n           ^\r\nIn file included from ../src/image/image.hpp:83:0,\r\n                 from ../src/main.cpp:10:\r\n../src/image/ml/cnn.hpp: In function ‘float image::ml::sigmoid_f(value_type) [with value_type = float]’:\r\n../src/image/ml/cnn.hpp:60:1: warning: control reaches end of non-void function [-Wreturn-type]\r\n }\r\n ^\r\n\r\nMakefile:1630: recipe for target 'main.o' failed\r\nmake: *** [main.o] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/frankyeh/TIPL/issues/comments/206507793","html_url":"https://github.com/frankyeh/TIPL/issues/3#issuecomment-206507793","issue_url":"https://api.github.com/repos/frankyeh/TIPL/issues/3","id":206507793,"user":{"login":"frankyeh","id":275569,"avatar_url":"https://avatars.githubusercontent.com/u/275569?v=3","gravatar_id":"","url":"https://api.github.com/users/frankyeh","html_url":"https://github.com/frankyeh","followers_url":"https://api.github.com/users/frankyeh/followers","following_url":"https://api.github.com/users/frankyeh/following{/other_user}","gists_url":"https://api.github.com/users/frankyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/frankyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankyeh/subscriptions","organizations_url":"https://api.github.com/users/frankyeh/orgs","repos_url":"https://api.github.com/users/frankyeh/repos","events_url":"https://api.github.com/users/frankyeh/events{/privacy}","received_events_url":"https://api.github.com/users/frankyeh/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T18:38:15Z","updated_at":"2016-04-06T18:38:15Z","body":"Hi Will,\n\n    I fixed the bug here and please see if it works for you.\n\nBest regards,\nFrank\n\nOn Fri, Apr 1, 2016 at 2:15 PM, Will Foran <notifications@github.com> wrote:\n\n> trying to compile within dsi studio i see the following errors\n>\n> ../src/image/numerical/basic_op.hpp:691:41: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n> ../src/image/numerical/basic_op.hpp:691:73: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n> ../src/image/numerical/numerical.hpp:173:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n> ../src/image/numerical/numerical.hpp:173:74: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n> ../src/image/numerical/optimization.hpp:25:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n> ../src/image/numerical/optimization.hpp:25:72: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n> ../src/image/numerical/dif.hpp:131:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\n> ../src/image/numerical/dif.hpp:192:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\n> ../src/image/numerical/dif.hpp:251:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n> ../src/image/numerical/dif.hpp:251:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n> ../src/image/numerical/dif.hpp:283:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n> ../src/image/numerical/dif.hpp:283:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n> ../src/image/reg/reg.hpp:41:14: error: declaration of ‘class value_type’\n> ../src/image/reg/reg.hpp:11:10: error:  shadows template parm ‘class value_type’\n> ../src/image/ml/cnn.hpp:42:22: error: ‘expf’ is not a member of ‘std’\n> ../src/image/ml/cnn.hpp:59:35: error: ‘expf’ is not a member of ‘std’\n> ../src/image/ml/cnn.hpp:612:22: error: ‘expf’ is not a member of ‘std’\n> ../src/image/ml/cnn.hpp:793:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\n> ../src/image/ml/cnn.hpp:798:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\n>\n>\n> the full output:\n>\n> + make\n> g++ -c -m64 -pipe -fpermissive -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../src -I../src/libs -I../src/libs/dsi -I../src/libs/tracking -I../src/libs/mapping -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -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 -I. -I. -I. -o main.o ../src/main.cpp\n> In file included from ../src/image/morphology/morphology.hpp:7:0,\n>                  from ../src/image/image.hpp:31,\n>                  from ../src/main.cpp:10:\n> ../src/image/numerical/basic_op.hpp: In function ‘void image::project(const image::basic_image<PixelType, 2u>&, OutImageType&, unsigned int)’:\n> ../src/image/numerical/basic_op.hpp:691:41: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n>          for(pixel_index<2> index; index.is_valid(src.geometry()); index.next(src.geometry()))\n>                                          ^\n> ../src/image/numerical/basic_op.hpp:691:73: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n>          for(pixel_index<2> index; index.is_valid(src.geometry()); index.next(src.geometry()))\n>                                                                          ^\n> In file included from ../src/image/segmentation/otsu.hpp:4:0,\n>                  from ../src/image/segmentation/segmentation.hpp:6,\n>                  from ../src/image/image.hpp:32,\n>                  from ../src/main.cpp:10:\n> ../src/image/numerical/numerical.hpp: In function ‘void image::gradient_multiple_sampling(const image::basic_image<pixel_type1, 2u, storage_type1>&, VectorImageType&, double, unsigned int, unsigned int)’:\n> ../src/image/numerical/numerical.hpp:173:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n>      for (image::pixel_index<2> iter; iter.is_valid(src.geometry()); iter.next(src.geometry()))\n>                                            ^\n> ../src/image/numerical/numerical.hpp:173:74: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n>      for (image::pixel_index<2> iter; iter.is_valid(src.geometry()); iter.next(src.geometry()))\n>                                                                           ^\n> In file included from ../src/image/image.hpp:43:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/numerical/optimization.hpp: In function ‘void image::optimization::plot_fun_2d(image_type&, iter_type1, iter_type1, iter_type1, iter_type1, function_type&, unsigned int, unsigned int, unsigned int)’:\n> ../src/image/numerical/optimization.hpp:25:43: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n>      for(image::pixel_index<2> index;index.is_valid(I.geometry());index.next(I.geometry()))\n>                                            ^\n> ../src/image/numerical/optimization.hpp:25:72: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n>      for(image::pixel_index<2> index;index.is_valid(I.geometry());index.next(I.geometry()))\n>                                                                         ^\n> In file included from ../src/image/image.hpp:47:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/io/io.hpp: In member function ‘void image::io::volume::change_orientation(bool, bool, bool)’:\n> ../src/image/io/io.hpp:45:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]\n>              if(xyz[dim_order[index]])\n>                                     ^\n> ../src/image/io/io.hpp: In member function ‘void image::io::volume::reorientation()’:\n> ../src/image/io/io.hpp:56:52: warning: array subscript has type ‘char’ [-Wchar-subscripts]\n>                  spatial_resolution[dim_order[index]] = sr[index];\n>                                                     ^\n> ../src/image/io/io.hpp: In member function ‘bool image::io::volume::load_from_files(const string_list_type&, unsigned int)’:\n> ../src/image/io/io.hpp:133:46: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>              std::auto_ptr<dicom> dicom_header(new dicom);\n>                                               ^\n> ../src/image/io/io.hpp:144:46: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>              std::auto_ptr<nifti> nifti_header(new nifti);\n>                                               ^\n> In file included from ../src/image/image.hpp:51:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/io/mat.hpp: In constructor ‘image::io::mat_matrix::mat_matrix(const string&)’:\n> ../src/image/io/mat.hpp:92:18: warning: ‘image::io::mat_matrix::namelen’ will be initialized after [-Wreorder]\n>      unsigned int namelen;\n>                   ^\n> ../src/image/io/mat.hpp:91:17: warning:   ‘std::string image::io::mat_matrix::name’ [-Wreorder]\n>      std::string name;\n>                  ^\n> ../src/image/io/mat.hpp:115:5: warning:   when initialized here [-Wreorder]\n>      mat_matrix(const std::string& name_):type(0),rows(0),cols(0),namelen((unsigned int)name_.size()+1),name(name_),data_ptr(0) {}\n>      ^\n> In file included from ../src/image/image.hpp:51:0,\n>                  from ../src/main.cpp:10:\n> ../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)’:\n> ../src/image/io/mat.hpp:387:45: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>              std::auto_ptr<mat_matrix> matrix(new mat_matrix);\n>                                              ^\n> ../src/image/io/mat.hpp: In member function ‘bool image::io::mat_read_base<input_interface>::load_from_file(const char_type*)’:\n> ../src/image/io/mat.hpp:407:45: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>              std::auto_ptr<mat_matrix> matrix(new mat_matrix);\n>                                              ^\n> ../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)’:\n> ../src/image/io/mat.hpp:419:41: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>          std::auto_ptr<mat_matrix> matrix(new mat_matrix);\n>                                          ^\n> In file included from ../src/image/image.hpp:58:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/filter/gaussian.hpp: In function ‘void image::filter::gaussian(image_type&)’:\n> ../src/image/filter/gaussian.hpp:113:69: warning: to refer to a type member of a template parameter, use ‘typename image_type:: value_type’ [-fpermissive]\n>      gaussian_filter_imp<image_type::value_type,image_type::dimension>()(src);\n>                                                                      ^\n> In file included from ../src/image/reg/lddmm.hpp:5:0,\n>                  from ../src/image/image.hpp:66,\n>                  from ../src/main.cpp:10:\n> ../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant(const image::basic_image<PixelType, 3u>&, DetType&)’:\n> ../src/image/numerical/dif.hpp:131:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\n>      for (image::pixel_index<3> index; index.is_valid(geo); index.next(geo))\n>                                                                   ^\n> ../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 3u>&, DetType&)’:\n> ../src/image/numerical/dif.hpp:192:66: error: ‘class image::pixel_index<3u>’ has no member named ‘next’\n>      for (image::pixel_index<3> index; index.is_valid(geo); index.next(geo))\n>                                                                   ^\n> ../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant(const image::basic_image<PixelType, 2u>&, image::basic_image<PixelType2, 2u>&)’:\n> ../src/image/numerical/dif.hpp:251:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n>      for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\n>                                              ^\n> ../src/image/numerical/dif.hpp:251:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n>      for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\n>                                                                   ^\n> ../src/image/numerical/dif.hpp: In function ‘void image::jacobian_determinant_dis(const image::basic_image<PixelType, 2u>&, image::basic_image<PixelType2, 2u>&)’:\n> ../src/image/numerical/dif.hpp:283:45: error: ‘class image::pixel_index<2u>’ has no member named ‘is_valid’\n>      for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\n>                                              ^\n> ../src/image/numerical/dif.hpp:283:66: error: ‘class image::pixel_index<2u>’ has no member named ‘next’\n>      for (image::pixel_index<2> index; index.is_valid(geo); index.next(geo))\n>                                                                   ^\n> In file included from ../src/image/image.hpp:69:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/reg/reg.hpp: At global scope:\n> ../src/image/reg/reg.hpp:41:14: error: declaration of ‘class value_type’\n>      template<typename value_type>\n>               ^\n> ../src/image/reg/reg.hpp:11:10: error:  shadows template parm ‘class value_type’\n>  template<typename value_type>\n>           ^\n> ../src/image/reg/reg.hpp: In member function ‘void image::reg::normalization<value_type>::run_reg(const image_type&, const vector_type&, const image_type&, const vector_type&, int, image::reg::reg_cost_type, image::reg::reg_type, terminate_type&, int)’:\n> ../src/image/reg/reg.hpp:85:72: warning: to refer to a type member of a template parameter, use ‘typename image_type:: value_type’ [-fpermissive]\n>          image::basic_image<image_type::value_type,image_type::dimension> new_from(to.geometry());\n>                                                                         ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In function ‘float image::ml::tanh_f(value_type)’:\n> ../src/image/ml/cnn.hpp:42:22: error: ‘expf’ is not a member of ‘std’\n>      const float ep = std::expf(v + v);\n>                       ^\n> ../src/image/ml/cnn.hpp:42:22: note: suggested alternative:\n> In file included from /usr/include/c++/4.9/cmath:44:0,\n>                  from /usr/include/c++/4.9/random:38,\n>                  from /usr/include/c++/4.9/bits/stl_algo.h:66,\n>                  from /usr/include/c++/4.9/algorithm:62,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\n>                  from ../src/main.cpp:5:\n> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\n>  __MATHCALL (exp,, (_Mdouble_ __x));\n>  ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In function ‘float image::ml::sigmoid_f(value_type)’:\n> ../src/image/ml/cnn.hpp:59:35: error: ‘expf’ is not a member of ‘std’\n>      return float(1) / (float(1) + std::expf(-v));\n>                                    ^\n> ../src/image/ml/cnn.hpp:59:35: note: suggested alternative:\n> In file included from /usr/include/c++/4.9/cmath:44:0,\n>                  from /usr/include/c++/4.9/random:38,\n>                  from /usr/include/c++/4.9/bits/stl_algo.h:66,\n>                  from /usr/include/c++/4.9/algorithm:62,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\n>                  from ../src/main.cpp:5:\n> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\n>  __MATHCALL (exp,, (_Mdouble_ __x));\n>  ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In member function ‘void image::ml::basic_layer::reset()’:\n> ../src/image/ml/cnn.hpp:102:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int i = 0; i < weight.size(); ++i)\n>                           ^\n> ../src/image/ml/cnn.hpp: At global scope:\n> ../src/image/ml/cnn.hpp:129:46: warning: unused parameter ‘dE_da’ [-Wunused-parameter]\n>      virtual void calculate_dwdb(const float* dE_da,\n>                                               ^\n> ../src/image/ml/cnn.hpp:130:48: warning: unused parameter ‘prev_out’ [-Wunused-parameter]\n>                                    const float* prev_out,\n>                                                 ^\n> ../src/image/ml/cnn.hpp:131:55: warning: unused parameter ‘dweight’ [-Wunused-parameter]\n>                                    std::vector<float>& dweight,\n>                                                        ^\n> ../src/image/ml/cnn.hpp:132:55: warning: unused parameter ‘dbias’ [-Wunused-parameter]\n>                                    std::vector<float>& dbias){}\n>                                                        ^\n> ../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::forward_propagation(const float*, float*)’:\n> ../src/image/ml/cnn.hpp:236:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>              for(int j = 0;j < o2w_1i.size();++j)\n>                              ^\n> ../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<float> >&, std::vector<float, std::allocator<float> >&)’:\n> ../src/image/ml/cnn.hpp:246:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int i = 0; i < w2o_1.size(); i++)\n>                           ^\n> ../src/image/ml/cnn.hpp:251:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>              for(int j = 0;j < w2o_1i.size();++j)\n>                              ^\n> ../src/image/ml/cnn.hpp:256:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int i = 0; i < b2o.size(); i++)\n>                           ^\n> ../src/image/ml/cnn.hpp:260:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>              for(int j = 0;j < outs.size();++j)\n>                              ^\n> ../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::partial_connected_layer::back_propagation(float*, float*, const float*)’:\n> ../src/image/ml/cnn.hpp:274:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>              for(int j = 0;j < i2w_1i.size();++j)\n>                              ^\n> ../src/image/ml/cnn.hpp: In constructor ‘image::ml::connection_table::connection_table(int, int)’:\n> ../src/image/ml/cnn.hpp:419:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int y = 0;y < c.height();++y)\n>                          ^\n> ../src/image/ml/cnn.hpp: In constructor ‘image::ml::convolutional_layer::convolutional_layer(image::ml::activation_type, int, const image::ml::connection_table&)’:\n> ../src/image/ml/cnn.hpp:442:9: warning: ‘image::ml::convolutional_layer::kernel_size’ will be initialized after [-Wreorder]\n>      int kernel_size;\n>          ^\n> ../src/image/ml/cnn.hpp:439:22: warning:   ‘image::ml::connection_table image::ml::convolutional_layer::connection’ [-Wreorder]\n>      connection_table connection;\n>                       ^\n> ../src/image/ml/cnn.hpp:444:5: warning:   when initialized here [-Wreorder]\n>      convolutional_layer(activation_type af_,int kernel_size_,const connection_table& connection_ = connection_table())\n>      ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In member function ‘virtual void image::ml::soft_max_layer::forward_propagation(const float*, float*)’:\n> ../src/image/ml/cnn.hpp:612:22: error: ‘expf’ is not a member of ‘std’\n>              out[i] = std::expf(data[i]);\n>                       ^\n> ../src/image/ml/cnn.hpp:612:22: note: suggested alternative:\n> In file included from /usr/include/c++/4.9/cmath:44:0,\n>                  from /usr/include/c++/4.9/random:38,\n>                  from /usr/include/c++/4.9/bits/stl_algo.h:66,\n>                  from /usr/include/c++/4.9/algorithm:62,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:89,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:45,\n>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,\n>                  from ../src/main.cpp:5:\n> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:100:1: note:   ‘expf’\n>  __MATHCALL (exp,, (_Mdouble_ __x));\n>  ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::save_to_file(const char*)’:\n> ../src/image/ml/cnn.hpp:743:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int i = 0;i < geo.size();++i)\n>                          ^\n> ../src/image/ml/cnn.hpp:748:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>              if(i < layers.size())\n>                   ^\n> ../src/image/ml/cnn.hpp: In member function ‘bool image::ml::network::load_from_file(const char*)’:\n> ../src/image/ml/cnn.hpp:793:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\n>                  std::vector<float> w((std::istream_iterator<float>(std::istringstream(line))),(std::istream_iterator<float>()));\n>                                                                                             ^\n> ../src/image/ml/cnn.hpp:793:92: note: candidates are:\n> In file included from /usr/include/c++/4.9/iterator:66:0,\n>                  from ../src/main.cpp:2:\n> /usr/include/c++/4.9/bits/stream_iterator.h:72:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\n>        istream_iterator(const istream_iterator& __obj)\n>        ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:72:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘const std::istream_iterator<float>&’\n> /usr/include/c++/4.9/bits/stream_iterator.h:68:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type = std::basic_istream<char>]\n>        istream_iterator(istream_type& __s)\n>        ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:68:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘std::istream_iterator<float>::istream_type& {aka std::basic_istream<char>&}’\n> /usr/include/c++/4.9/bits/stream_iterator.h:64:26: note: constexpr std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator() [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\n>        _GLIBCXX_CONSTEXPR istream_iterator()\n>                           ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:64:26: note:   candidate expects 0 arguments, 1 provided\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp:798:92: error: no matching function for call to ‘std::istream_iterator<float>::istream_iterator(std::istringstream)’\n>                  std::vector<float> b((std::istream_iterator<float>(std::istringstream(line))),(std::istream_iterator<float>()));\n>                                                                                             ^\n> ../src/image/ml/cnn.hpp:798:92: note: candidates are:\n> In file included from /usr/include/c++/4.9/iterator:66:0,\n>                  from ../src/main.cpp:2:\n> /usr/include/c++/4.9/bits/stream_iterator.h:72:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\n>        istream_iterator(const istream_iterator& __obj)\n>        ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:72:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘const std::istream_iterator<float>&’\n> /usr/include/c++/4.9/bits/stream_iterator.h:68:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type&) [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type = std::basic_istream<char>]\n>        istream_iterator(istream_type& __s)\n>        ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:68:7: note:   no known conversion for argument 1 from ‘std::istringstream {aka std::basic_istringstream<char>}’ to ‘std::istream_iterator<float>::istream_type& {aka std::basic_istream<char>&}’\n> /usr/include/c++/4.9/bits/stream_iterator.h:64:26: note: constexpr std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator() [with _Tp = float; _CharT = char; _Traits = std::char_traits<char>; _Dist = long int]\n>        _GLIBCXX_CONSTEXPR istream_iterator()\n>                           ^\n> /usr/include/c++/4.9/bits/stream_iterator.h:64:26: note:   candidate expects 0 arguments, 1 provided\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In member function ‘void image::ml::network::forward_propagation(const float*, float*)’:\n> ../src/image/ml/cnn.hpp:811:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(int k = 0;k < layers.size();++k)\n>                          ^\n> In file included from ../src/image/image.hpp:86:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/vis/color_map.hpp: In member function ‘const image::vector<3>& image::color_map::operator[](unsigned int) const’:\n> ../src/image/vis/color_map.hpp:58:89: warning: left operand of comma operator has no effect [-Wunused-value]\n>      const image::vector<3,float>& operator[](unsigned int index) const{return color[255,index];}\n>                                                                                          ^\n> In file included from ../src/cmd/cnt.cpp:3:0,\n>                  from ../src/main.cpp:16:\n> ../src/tracking/vbc_dialog.hpp: At global scope:\n> ../src/tracking/vbc_dialog.hpp:64:31: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>      std::auto_ptr<stat_model> model;\n>                                ^\n> In file included from ../src/main.cpp:16:0:\n> ../src/cmd/cnt.cpp: In function ‘int cnt()’:\n> ../src/cmd/cnt.cpp:9:41: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.9/backward/auto_ptr.h:87) [-Wdeprecated-declarations]\n>      std::auto_ptr<vbc_database> database(new vbc_database);\n>                                          ^\n> ../src/cmd/cnt.cpp:120:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>      for(int i = 0;i < vbc->vbc->threads.size();++i)\n>                      ^\n> ../src/main.cpp: In function ‘QStringList search_files(QString, QString)’:\n> ../src/main.cpp:57:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>      for(unsigned int i = 0;i < dir_list.size();++i)\n>                               ^\n> ../src/main.cpp:61:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for(unsigned int index = 0;index < new_list.size();++index)\n>                                           ^\n> ../src/main.cpp:64:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for (unsigned int index = 0;index < file_list.size();++index)\n>                                            ^\n> In file included from ../src/image/numerical/transformation.hpp:3:0,\n>                  from ../src/image/image.hpp:34,\n>                  from ../src/main.cpp:10:\n> ../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<double> >; output_iterator1 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; output_iterator2 = __gnu_cxx::__normal_iterator<double*, std::vector<double> >; dym_type = image::dyndim]’:\n> ../src/image/ml/em.hpp:33:108:   required from here\n> ../src/image/numerical/matrix.hpp:1796:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>                              for (int k = 0;k < i;++k,Vrowk += dim)\n>                                               ^\n> ../src/image/numerical/matrix.hpp:1805:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>                      for (int k = 0;k < i;++k,Vrowk += dim)\n>                                       ^\n> ../src/image/numerical/matrix.hpp:1827:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>          for (int l = 0,iter = 0;l < dim && iter < 30;++iter)\n>                                    ^\n> In file included from ../src/image/image.hpp:69:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/reg/reg.hpp: In instantiation of ‘image::reg::normalization<value_type>::normalization() [with value_type = double]’:\n> ../src/libs/tracking/fib_data.hpp:141:33:   required from here\n> ../src/image/reg/reg.hpp:23:9: warning: ‘image::reg::normalization<double>::prog’ will be initialized after [-Wreorder]\n>      int prog;\n>          ^\n> ../src/image/reg/reg.hpp:19:10: warning:   ‘bool image::reg::normalization<double>::has_T’ [-Wreorder]\n>      bool has_T;\n>           ^\n> ../src/image/reg/reg.hpp:28:5: warning:   when initialized here [-Wreorder]\n>      normalization(void):prog(0),has_T(false){}\n>      ^\n> In file included from ../src/image/morphology/morphology.hpp:7:0,\n>                  from ../src/image/image.hpp:31,\n>                  from ../src/main.cpp:10:\n> ../src/image/numerical/basic_op.hpp: In instantiation of ‘void image::change_endian(type&) [with type = double]’:\n> ../src/image/numerical/basic_op.hpp:826:34:   required from ‘void image::change_endian(datatype*, size_type) [with datatype = double; size_type = long unsigned int]’\n> ../src/image/io/dicom.hpp:162:85:   required from here\n> ../src/image/numerical/basic_op.hpp:786:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\n>      for (char i = 0; i < sizeof(type); ++i,--pdata)\n>                         ^\n> ../src/image/numerical/basic_op.hpp:787:13: warning: array subscript has type ‘char’ [-Wchar-subscripts]\n>          temp[i] = *pdata;\n>              ^\n> ../src/image/numerical/basic_op.hpp:788:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]\n>      value = *(type*)temp;\n>            ^\n> In file included from ../src/image/image.hpp:83:0,\n>                  from ../src/main.cpp:10:\n> ../src/image/ml/cnn.hpp: In function ‘float image::ml::sigmoid_f(value_type) [with value_type = float]’:\n> ../src/image/ml/cnn.hpp:60:1: warning: control reaches end of non-void function [-Wreturn-type]\n>  }\n>  ^\n>\n> Makefile:1630: recipe for target 'main.o' failed\n> make: *** [main.o] Error 1\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/frankyeh/TIPL/issues/3>\n>\n"}}