caustic-design's People
Forkers
gigaj0ule jeremydeanw saimansam linkous denisazgit whosmelion0ron 1muggle explorerlgd xup5 dylanmsucaustic-design's Issues
User algorithm
Hi, i have a problem with understanding an algorithm, that user should follow.
Section "Interpolation-> Natural Neigbors CGAL" says
"algorithm->compute interpolation to load the source image, and points (.dat) and weights (.weights) data from the OTM and run the interpolation"
But after "Optimal Transport" step i can see only .weights file. Where should i get .dat file?
Then "Interpolation" step needs "light origin points" .dat file. I cant see such file even in OTM-results directory.
Then how should i convert interpolated data into mesh? Target_Surface itself needs mesh to proceed.
Add GPL 3.0 licence
Since this code is based on the work of De Goes et al, which was released under the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
, this repository should also contain the same license to my knowledge.
This allows us to use, modify, and redistrubute (fork) the code.
error compiling utils.h in TargetSurface
Hi, I was reading the paper about this programme and happen to find your source here.
I tried to compile the source for a test and encountered several bugs.
cmake 3.5.2
g++ 6.2.0
Mainly, the two lines below in the 'utils.h' cause problems:
float* matrixProduct(array* L, float* X); void printMatrix(array* X);
such as:
"reference to 'array' is ambiguous"
"'L' was not declared in this scope"
"expected primary-expression before 'float'"
"variable or field 'printMatrix' declared void"
"'X' was not declared in this scope"
The whole output is pasted below:
11:48:08: Running steps for project Project... 11:48:08: Starting: "/usr/bin/cmake" --build . --target all Scanning dependencies of target Target_Surface [ 7%] Building CXX object CMakeFiles/Target_Surface.dir/main.cpp.o [ 15%] Building CXX object CMakeFiles/Target_Surface.dir/mainwindow.cpp.o [ 23%] Building CXX object CMakeFiles/Target_Surface.dir/SurfaceMesh.cpp.o [ 30%] Building CXX object CMakeFiles/Target_Surface.dir/SurfaceModel.cpp.o [ 38%] Building CXX object CMakeFiles/Target_Surface.dir/rendering.cpp.o /home/x/Caustic-Design/Target_Surface/rendering.cpp: In constructor 'ModelRendering::ModelRendering(QWidget*)': /home/x/Caustic-Design/Target_Surface/rendering.cpp:129:85: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ModelRendering::ModelRendering(QWidget *parent):Renderer(60,parent,"Model Rendering") ^ [ 46%] Building CXX object CMakeFiles/Target_Surface.dir/utils.cpp.o In file included from /home/x/Caustic-Design/Target_Surface/utils.cpp:1:0: /home/x/Caustic-Design/Target_Surface/utils.h:20:22: error: reference to 'array' is ambiguous float* matrixProduct(array* L, float* X); ^~~~~ In file included from /home/x/Caustic-Design/Target_Surface/utils.h:3:0, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /home/x/Caustic-Design/Target_Surface/global.h:45:16: note: candidates are: typedef float array [961] typedef float (array)[NORMALS]; ^~~~~ In file included from /usr/include/c++/6/tuple:39:0, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /usr/include/qt4/QtCore/qmap.h:50, from /usr/include/qt4/QtOpenGL/qgl.h:48, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design/Target_Surface/global.h:7, from /home/x/Caustic-Design/Target_Surface/utils.h:3, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array struct array ^~~~~ In file included from /home/x/Caustic-Design/Target_Surface/utils.cpp:1:0: /home/x/Caustic-Design/Target_Surface/utils.h:20:29: error: 'L' was not declared in this scope float* matrixProduct(array* L, float* X); ^ /home/x/Caustic-Design/Target_Surface/utils.h:20:32: error: expected primary-expression before 'float' float* matrixProduct(array* L, float* X); ^~~~~ /home/x/Caustic-Design/Target_Surface/utils.h:20:40: error: expression list treated as compound expression in initializer [-fpermissive] float* matrixProduct(array* L, float* X); ^ /home/x/Caustic-Design/Target_Surface/utils.h:21:18: error: variable or field 'printMatrix' declared void void printMatrix(array* X); ^~~~~ /home/x/Caustic-Design/Target_Surface/utils.h:21:18: error: reference to 'array' is ambiguous In file included from /home/x/Caustic-Design/Target_Surface/utils.h:3:0, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /home/x/Caustic-Design/Target_Surface/global.h:45:16: note: candidates are: typedef float array [961] typedef float (array)[NORMALS]; ^~~~~ In file included from /usr/include/c++/6/tuple:39:0, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /usr/include/qt4/QtCore/qmap.h:50, from /usr/include/qt4/QtOpenGL/qgl.h:48, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design/Target_Surface/global.h:7, from /home/x/Caustic-Design/Target_Surface/utils.h:3, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array struct array ^~~~~ In file included from /home/x/Caustic-Design/Target_Surface/utils.cpp:1:0: /home/x/Caustic-Design/Target_Surface/utils.h:21:25: error: 'X' was not declared in this scope void printMatrix(array* X); ^ /home/x/Caustic-Design/Target_Surface/utils.cpp:29:22: error: redefinition of 'float* matrixProduct' float* matrixProduct(array* L, float* X){ ^~~~~ In file included from /home/x/Caustic-Design/Target_Surface/utils.cpp:1:0: /home/x/Caustic-Design/Target_Surface/utils.h:20:8: note: 'float* matrixProduct' previously defined here float* matrixProduct(array* L, float* X); ^~~~~~~~~~~~~ /home/x/Caustic-Design/Target_Surface/utils.cpp:29:22: error: reference to 'array' is ambiguous float* matrixProduct(array* L, float* X){ ^~~~~ In file included from /home/x/Caustic-Design/Target_Surface/utils.h:3:0, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /home/x/Caustic-Design/Target_Surface/global.h:45:16: note: candidates are: typedef float array [961] typedef float (array)[NORMALS]; ^~~~~ In file included from /usr/include/c++/6/tuple:39:0, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /usr/include/qt4/QtCore/qmap.h:50, from /usr/include/qt4/QtOpenGL/qgl.h:48, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design/Target_Surface/global.h:7, from /home/x/Caustic-Design/Target_Surface/utils.h:3, from /home/x/Caustic-Design/Target_Surface/utils.cpp:1: /usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array struct array ^~~~~ /home/x/Caustic-Design/Target_Surface/utils.cpp:29:29: error: 'L' was not declared in this scope float* matrixProduct(array* L, float* X){ ^ /home/x/Caustic-Design/Target_Surface/utils.cpp:29:32: error: expected primary-expression before 'float' float* matrixProduct(array* L, float* X){ ^~~~~ CMakeFiles/Target_Surface.dir/build.make:196: recipe for target 'CMakeFiles/Target_Surface.dir/utils.cpp.o' failed make[2]: *** [CMakeFiles/Target_Surface.dir/utils.cpp.o] Error 1 make[1]: *** [CMakeFiles/Target_Surface.dir/all] Error 2 make: *** [all] Error 2 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Target_Surface.dir/all' failed Makefile:83: recipe for target 'all' failed 11:48:23: The process "/usr/bin/cmake" exited with code 2. Error while building/deploying project Project (kit: Desktop) When executing step "Make" 11:48:23: Elapsed time: 00:15.
Obsolete libraries
libqt4-dev and libcgal-qt4-dev seem to be obsolete so I can´t compile with cmake
Target_Surface/costFunctor.h:809: error: 'max' is not a member of 'ceres'
Same compiling issue:
Target_Surface/costFunctor.h:809: error: 'max' is not a member of 'ceres' e[0] = T(EBAR_WEIGHT) * ceres::max(T(0), - ceres::log( (T(1)-distance) + dth) ); ^~~~~
when compiling "TargetSurface", these two lines causes problems
Hi, I was reading the paper about this programme and happen to find your source here.
I tried to compile the source for a test and encountered several bugs.
cmake 3.5.2
g++ 6.2.0
Mainly, the two lines below in the 'utils.h' cause problems:
float* matrixProduct(array* L, float* X); void printMatrix(array* X);
such as:
"reference to 'array' is ambiguous"
"'L' was not declared in this scope"
"expected primary-expression before 'float'"
"variable or field 'printMatrix' declared void"
"'X' was not declared in this scope"
The whole output is pasted below:
11:00:19: Running steps for project Project... 11:00:19: Starting: "/usr/bin/cmake" --build . --target all [ 7%] Building CXX object CMakeFiles/Target_Surface.dir/main.cpp.o In file included from /home/x/Caustic-Design-master/Target_Surface/SurfaceMesh.h:13:0, from /home/x/Caustic-Design-master/Target_Surface/SurfaceModel.h:14, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:6, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/utils.h:21:22: error: reference to 'array' is ambiguous float* matrixProduct(array* L, float* X); ^~~~~ In file included from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4:0, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/global.h:51:16: note: candidates are: typedef float array [961] typedef float (array)[NORMALS]; ^~~~~ In file included from /usr/include/c++/6/tuple:39:0, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /usr/include/qt4/QtCore/qmap.h:50, from /usr/include/qt4/QtOpenGL/qgl.h:48, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design-master/Target_Surface/global.h:7, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array struct array ^~~~~ In file included from /home/x/Caustic-Design-master/Target_Surface/SurfaceMesh.h:13:0, from /home/x/Caustic-Design-master/Target_Surface/SurfaceModel.h:14, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:6, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/utils.h:21:29: error: 'L' was not declared in this scope float* matrixProduct(array* L, float* X); ^ /home/x/Caustic-Design-master/Target_Surface/utils.h:21:32: error: expected primary-expression before 'float' float* matrixProduct(array* L, float* X); ^~~~~ /home/x/Caustic-Design-master/Target_Surface/utils.h:21:40: error: expression list treated as compound expression in initializer [-fpermissive] float* matrixProduct(array* L, float* X); ^ /home/x/Caustic-Design-master/Target_Surface/utils.h:22:18: error: variable or field 'printMatrix' declared void void printMatrix(array* X); ^~~~~ /home/x/Caustic-Design-master/Target_Surface/utils.h:22:18: error: reference to 'array' is ambiguous In file included from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4:0, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/global.h:51:16: note: candidates are: typedef float array [961] typedef float (array)[NORMALS]; ^~~~~ In file included from /usr/include/c++/6/tuple:39:0, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /usr/include/qt4/QtCore/qmap.h:50, from /usr/include/qt4/QtOpenGL/qgl.h:48, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design-master/Target_Surface/global.h:7, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array struct array ^~~~~ In file included from /home/x/Caustic-Design-master/Target_Surface/SurfaceMesh.h:13:0, from /home/x/Caustic-Design-master/Target_Surface/SurfaceModel.h:14, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:6, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/utils.h:22:25: error: 'X' was not declared in this scope void printMatrix(array* X); ^ In file included from /home/x/Caustic-Design-master/Target_Surface/targetoptimization.h:10:0, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:7, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/costFunctor.h: In member function 'bool CostFunctorEbar2::operator()(const T*, T*) const': /home/x/Caustic-Design-master/Target_Surface/costFunctor.h:809:33: error: 'max' is not a member of 'ceres' e[0] = T(EBAR_WEIGHT) * ceres::max(T(0), - ceres::log( (T(1)-distance) + dth) ); ^~~~~ /home/x/Caustic-Design-master/Target_Surface/costFunctor.h:809:33: note: suggested alternatives: In file included from /usr/include/c++/6/algorithm:62:0, from /usr/include/qt4/QtCore/qglobal.h:68, from /usr/include/qt4/QtCore/qnamespace.h:45, from /usr/include/qt4/QtCore/qobjectdefs.h:45, from /usr/include/qt4/QtGui/qwindowdefs.h:45, from /usr/include/qt4/QtGui/qwidget.h:46, from /usr/include/qt4/QtOpenGL/qgl.h:45, from /usr/include/qt4/QtOpenGL/QGLWidget:1, from /home/x/Caustic-Design-master/Target_Surface/global.h:7, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /usr/include/c++/6/bits/stl_algo.h:3465:5: note: 'std::max' max(initializer_list<_Tp> __l, _Compare __comp) ^~~ /usr/include/c++/6/bits/stl_algo.h:3465:5: note: 'std::max' In file included from /home/x/Caustic-Design-master/Target_Surface/glm/detail/func_trigonometric.inl:29:0, from /home/x/Caustic-Design-master/Target_Surface/glm/detail/func_trigonometric.hpp:199, from /home/x/Caustic-Design-master/Target_Surface/glm/trigonometric.hpp:32, from /home/x/Caustic-Design-master/Target_Surface/glm/glm.hpp:108, from /home/x/Caustic-Design-master/Target_Surface/global.h:13, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:4, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /home/x/Caustic-Design-master/Target_Surface/glm/detail/func_common.inl:399:20: note: 'glm::max' VECTORIZE_VEC_VEC(max) ^ /home/x/Caustic-Design-master/Target_Surface/glm/detail/_vectorize.hpp:174:41: note: in definition of macro 'VECTORIZE4_VEC_VEC' GLM_FUNC_QUALIFIER detail::tvec4<T, P> func \ ^~~~ /home/x/Caustic-Design-master/Target_Surface/glm/detail/func_common.inl:399:2: note: in expansion of macro 'VECTORIZE_VEC_VEC' VECTORIZE_VEC_VEC(max) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/eigen3/Eigen/Core:362:0, from /usr/local/include/ceres/jet.h:165, from /usr/local/include/ceres/internal/autodiff.h:145, from /usr/local/include/ceres/autodiff_cost_function.h:132, from /usr/local/include/ceres/ceres.h:37, from /home/x/Caustic-Design-master/Target_Surface/targetoptimization.h:4, from /home/x/Caustic-Design-master/Target_Surface/mainwindow.h:7, from /home/x/Caustic-Design-master/Target_Surface/main.cpp:1: /usr/include/eigen3/Eigen/src/Core/arch/CUDA/Half.h:415:45: note: 'Eigen::half_impl::max' EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half (max)(const half& a, const half& b) { ^~~ CMakeFiles/Target_Surface.dir/build.make:76: recipe for target 'CMakeFiles/Target_Surface.dir/main.cpp.o' failed make[2]: *** [CMakeFiles/Target_Surface.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Target_Surface.dir/all] Error 2 make: *** [all] Error 2 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Target_Surface.dir/all' failed Makefile:83: recipe for target 'all' failed 11:00:21: The process "/usr/bin/cmake" exited with code 2. Error while building/deploying project Project (kit: Desktop) When executing step "Make" 11:00:21: Elapsed time: 00:02.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.