Skip to content

Instantly share code, notes, and snippets.

@cfoch
Created December 25, 2018 19:40
Show Gist options
  • Save cfoch/64b116cc1a2449051051ff14a9702daf to your computer and use it in GitHub Desktop.
Save cfoch/64b116cc1a2449051051ff14a9702daf to your computer and use it in GitHub Desktop.
[cfoch@localhost simple]$ make
[ 50%] Built target dlib-example
[ 75%] Building CXX object CMakeFiles/fit-model.dir/fit-model.o
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:38:49: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
template <typename... Args, typename = std::enable_if_t<sizeof...(Args) == NumChannels>>
^~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:38:44: note: suggested alternative: ‘enable_if’
template <typename... Args, typename = std::enable_if_t<sizeof...(Args) == NumChannels>>
^~~
enable_if
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:38:60: error: expected ‘>’ before ‘<’ token
template <typename... Args, typename = std::enable_if_t<sizeof...(Args) == NumChannels>>
^
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:47:34: error: ‘constexpr const ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const’ cannot be overloaded with ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const’
constexpr const ElementType& operator[](int i) const noexcept
^~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:43:28: note: previous declaration ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const’
constexpr ElementType& operator[](int i) noexcept
^~~~~~~~
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:21:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp: In function ‘eos::core::Image3u eos::core::from_mat(const cv::Mat&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:107:60: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 3>’ and ‘<brace-enclosed initializer list>’)
image.at<cv::Vec3b>(r, c)[2]};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 3>& eos::core::Pixel<unsigned char, 3>::operator=(const eos::core::Pixel<unsigned char, 3>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 3>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 3>& eos::core::Pixel<unsigned char, 3>::operator=(eos::core::Pixel<unsigned char, 3>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 3>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:21:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp: In function ‘eos::core::Image4u eos::core::from_mat_with_alpha(const cv::Mat&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:126:90: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
image.at<cv::Vec4b>(r, c)[2], image.at<cv::Vec4b>(r, c)[3]};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:23:
/home/cfoch/dev/env/eos-prefix/include/eos/core/LandmarkMapper.hpp: At global scope:
/home/cfoch/dev/env/eos-prefix/include/eos/core/LandmarkMapper.hpp:141:25: error: ‘num_mappings’ function uses ‘auto’ type specifier without trailing return type
auto num_mappings() const {
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/LandmarkMapper.hpp:141:25: note: deduced return type only available with -std=c++14 or -std=gnu++14
/home/cfoch/dev/env/eos-prefix/include/eos/core/LandmarkMapper.hpp:150:32: error: ‘get_mappings’ function uses ‘auto’ type specifier without trailing return type
const auto& get_mappings() const {
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/LandmarkMapper.hpp:150:32: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/cpp17/variant_serialization.hpp:28,
from /home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp:39,
from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:28,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:52:37: error: ‘variant_size_v’ is not a member of ‘mpark’
typename std::enable_if<N == mpark::variant_size_v<Variant>, void>::type
^~~~~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:52:37: note: suggested alternative: ‘variant_size’
typename std::enable_if<N == mpark::variant_size_v<Variant>, void>::type
^~~~~~~~~~~~~~
variant_size
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:52:59: error: template argument 1 is invalid
typename std::enable_if<N == mpark::variant_size_v<Variant>, void>::type
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:52:60: error: expected identifier before ‘,’ token
typename std::enable_if<N == mpark::variant_size_v<Variant>, void>::type
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:52:60: error: expected unqualified-id before ‘,’ token
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:61:14: error: ‘variant_size_v’ is not a member of ‘mpark’
N<mpark::variant_size_v<Variant>, void>::type load_variant(Archive& ar, int target, Variant& variant)
^~~~~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:61:14: note: suggested alternative: ‘variant_size’
N<mpark::variant_size_v<Variant>, void>::type load_variant(Archive& ar, int target, Variant& variant)
^~~~~~~~~~~~~~
variant_size
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:61:36: error: template argument 1 is invalid
N<mpark::variant_size_v<Variant>, void>::type load_variant(Archive& ar, int target, Variant& variant)
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:61:37: error: expected identifier before ‘,’ token
N<mpark::variant_size_v<Variant>, void>::type load_variant(Archive& ar, int target, Variant& variant)
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:61:37: error: expected unqualified-id before ‘,’ token
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp: In function ‘void cereal::load(Archive&, mpark::variant<Ts ...>&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:93:51: error: ‘variant_size_v’ is not a member of ‘mpark’
if (index >= static_cast<std::int32_t>(mpark::variant_size_v<variant_t>))
^~~~~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:93:51: note: suggested alternative: ‘variant_size’
if (index >= static_cast<std::int32_t>(mpark::variant_size_v<variant_t>))
^~~~~~~~~~~~~~
variant_size
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:93:75: error: expected primary-expression before ‘>’ token
if (index >= static_cast<std::int32_t>(mpark::variant_size_v<variant_t>))
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:93:76: error: expected primary-expression before ‘)’ token
if (index >= static_cast<std::int32_t>(mpark::variant_size_v<variant_t>))
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:96:21: error: ‘load_variant’ is not a member of ‘cereal::variant_detail’
variant_detail::load_variant<0, variant_t, VariantTypes...>(ar, index, variant);
^~~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:96:46: error: expected primary-expression before ‘,’ token
variant_detail::load_variant<0, variant_t, VariantTypes...>(ar, index, variant);
^
/home/cfoch/dev/env/eos-prefix/include/eos/cpp17/detail/mpark_variant_serialization.hpp:96:60: error: expected primary-expression before ‘...’ token
variant_detail::load_variant<0, variant_t, VariantTypes...>(ar, index, variant);
^~~
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:28,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp: At global scope:
/home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp:148:40: error: ‘get_expression_model’ function uses ‘auto’ type specifier without trailing return type
const auto& get_expression_model() const
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp:148:40: note: deduced return type only available with -std=c++14 or -std=gnu++14
/home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp:397:44: error: ‘get_landmark_definitions’ function uses ‘auto’ type specifier without trailing return type
const auto& get_landmark_definitions() const
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/morphablemodel/MorphableModel.hpp:397:44: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:34,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp: In function ‘std::tuple<std::vector<Eigen::Matrix<float, 2, 1, 0, 2, 1>, std::allocator<Eigen::Matrix<float, 2, 1, 0, 2, 1> > >, std::vector<Eigen::Matrix<float, 4, 1, 0, 4, 1>, std::allocator<Eigen::Matrix<float, 4, 1, 0, 4, 1> > >, std::vector<int, std::allocator<int> > > eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp:341:88: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
const auto result = std::find_if(begin(landmarks), end(landmarks), [&ibug_idx](auto&& e) {
^~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp: In lambda function:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp:342:22: error: request for member ‘name’ in ‘e’, which is of non-class type ‘int’
return e.name == ibug_idx;
^~~~
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:27,
from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:35,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/RenderingParameters.hpp: At global scope:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/RenderingParameters.hpp:153:28: error: ‘get_camera_type’ function uses ‘auto’ type specifier without trailing return type
auto get_camera_type() const
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/RenderingParameters.hpp:153:28: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:35,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp: In function ‘std::vector<int> eos::fitting::occluding_boundary_vertices(const eos::core::Mesh&, const eos::morphablemodel::EdgeTopology&, glm::mat4x4, bool)’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:131:91: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
std::for_each(begin(mesh.vertices), end(mesh.vertices), [&rotated_vertices, &R](const auto& v) {
^~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp: In lambda function:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:132:53: error: invalid types ‘const int[int]’ for array subscript
rotated_vertices.push_back(R * glm::vec4(v[0], v[1], v[2], 1.0f));
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:132:59: error: invalid types ‘const int[int]’ for array subscript
rotated_vertices.push_back(R * glm::vec4(v[0], v[1], v[2], 1.0f));
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:132:65: error: invalid types ‘const int[int]’ for array subscript
rotated_vertices.push_back(R * glm::vec4(v[0], v[1], v[2], 1.0f));
^
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp: At global scope:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:177:93: error: ‘get_corresponding_pointset’ function uses ‘auto’ type specifier without trailing return type
const morphablemodel::MorphableModel& morphable_model)
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:177:93: note: deduced return type only available with -std=c++14 or -std=gnu++14
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:216:76: error: ‘concat’ function uses ‘auto’ type specifier without trailing return type
inline auto concat(const std::vector<T>& vec_a, const std::vector<T>& vec_b)
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:216:76: note: deduced return type only available with -std=c++14 or -std=gnu++14
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp: In function ‘std::pair<eos::core::Mesh, eos::fitting::RenderingParameters> eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:479:64: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
[&occluding_contour_landmarks](const auto& lm) {
^~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp: In lambda function:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:480:73: error: request for member ‘coordinates’ in ‘lm’, which is of non-class type ‘const int’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:480:92: error: request for member ‘coordinates’ in ‘lm’, which is of non-class type ‘const int’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:480:107: error: no matching function for call to ‘std::vector<Eigen::Matrix<float, 2, 1> >::push_back(<brace-enclosed initializer list>)’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^
In file included from /usr/include/c++/8/vector:64,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:30,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/usr/include/c++/8/bits/stl_vector.h:1074:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Eigen::Matrix<float, 2, 1>; _Alloc = std::allocator<Eigen::Matrix<float, 2, 1> >; std::vector<_Tp, _Alloc>::value_type = Eigen::Matrix<float, 2, 1>]’
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1074:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const Eigen::Matrix<float, 2, 1>&’}
/usr/include/c++/8/bits/stl_vector.h:1090:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Eigen::Matrix<float, 2, 1>; _Alloc = std::allocator<Eigen::Matrix<float, 2, 1> >; std::vector<_Tp, _Alloc>::value_type = Eigen::Matrix<float, 2, 1>]’
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1090:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Eigen::Matrix<float, 2, 1> >::value_type&&’ {aka ‘Eigen::Matrix<float, 2, 1>&&’}
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp: In function ‘std::pair<eos::core::Mesh, eos::fitting::RenderingParameters> eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:486:64: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
[&occluding_contour_landmarks](const auto& lm) {
^~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp: In lambda function:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:487:73: error: request for member ‘coordinates’ in ‘lm’, which is of non-class type ‘const int’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:487:92: error: request for member ‘coordinates’ in ‘lm’, which is of non-class type ‘const int’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^~~~~~~~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:487:107: error: no matching function for call to ‘std::vector<Eigen::Matrix<float, 2, 1> >::push_back(<brace-enclosed initializer list>)’
occluding_contour_landmarks.push_back({lm.coordinates[0], lm.coordinates[1]});
^
In file included from /usr/include/c++/8/vector:64,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:30,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/usr/include/c++/8/bits/stl_vector.h:1074:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Eigen::Matrix<float, 2, 1>; _Alloc = std::allocator<Eigen::Matrix<float, 2, 1> >; std::vector<_Tp, _Alloc>::value_type = Eigen::Matrix<float, 2, 1>]’
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1074:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&’ {aka ‘const Eigen::Matrix<float, 2, 1>&’}
/usr/include/c++/8/bits/stl_vector.h:1090:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Eigen::Matrix<float, 2, 1>; _Alloc = std::allocator<Eigen::Matrix<float, 2, 1> >; std::vector<_Tp, _Alloc>::value_type = Eigen::Matrix<float, 2, 1>]’
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:1090:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Eigen::Matrix<float, 2, 1> >::value_type&&’ {aka ‘Eigen::Matrix<float, 2, 1>&&’}
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp: In lambda function:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:418:108: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
static_cast<std::uint8_t>(color[2]), static_cast<std::uint8_t>(alpha_value)};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp: In function ‘eos::core::Image4u eos::render::detail::interpolate_black_line(eos::core::Image4u&)’:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:684:67: error: no matching function for call to ‘eos::core::Pixel<unsigned char, 4>::Pixel(<brace-enclosed initializer list>)’
if (isomap(row, col) == core::Pixel<uint8_t, 4>{0, 0, 0, 0})
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate: ‘constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(const std::array<ElementType, NumChannels>&) [with ElementType = unsigned char; int NumChannels = 4]’
constexpr explicit Pixel(const std::array<ElementType, NumChannels>& arr) noexcept : data_(arr){};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: candidate: ‘template<class ... Args, class> constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(Args ...)’
constexpr Pixel(Args... args) noexcept : data_{{static_cast<ElementType>(args)...}} {};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: template argument deduction/substitution failed:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:690:103: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
static_cast<uint8_t>(pixel_val[2]), static_cast<uint8_t>(pixel_val[3])};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:701:67: error: no matching function for call to ‘eos::core::Pixel<unsigned char, 4>::Pixel(<brace-enclosed initializer list>)’
if (isomap(r, c) == core::Pixel<uint8_t, 4>{0, 0, 0, 0})
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate: ‘constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(const std::array<ElementType, NumChannels>&) [with ElementType = unsigned char; int NumChannels = 4]’
constexpr explicit Pixel(const std::array<ElementType, NumChannels>& arr) noexcept : data_(arr){};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: candidate: ‘template<class ... Args, class> constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(Args ...)’
constexpr Pixel(Args... args) noexcept : data_{{static_cast<ElementType>(args)...}} {};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: template argument deduction/substitution failed:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:707:103: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
static_cast<uint8_t>(pixel_val[2]), static_cast<uint8_t>(pixel_val[3])};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:716:67: error: no matching function for call to ‘eos::core::Pixel<unsigned char, 4>::Pixel(<brace-enclosed initializer list>)’
if (isomap(r, c) == core::Pixel<uint8_t, 4>{0, 0, 0, 0})
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate: ‘constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(const std::array<ElementType, NumChannels>&) [with ElementType = unsigned char; int NumChannels = 4]’
constexpr explicit Pixel(const std::array<ElementType, NumChannels>& arr) noexcept : data_(arr){};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: candidate: ‘template<class ... Args, class> constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(Args ...)’
constexpr Pixel(Args... args) noexcept : data_{{static_cast<ElementType>(args)...}} {};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: template argument deduction/substitution failed:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:722:103: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
static_cast<uint8_t>(pixel_val[2]), static_cast<uint8_t>(pixel_val[3])};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:728:67: error: no matching function for call to ‘eos::core::Pixel<unsigned char, 4>::Pixel(<brace-enclosed initializer list>)’
if (isomap(r, c) == core::Pixel<uint8_t, 4>{0, 0, 0, 0})
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate: ‘constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(const std::array<ElementType, NumChannels>&) [with ElementType = unsigned char; int NumChannels = 4]’
constexpr explicit Pixel(const std::array<ElementType, NumChannels>& arr) noexcept : data_(arr){};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:41:24: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: candidate: ‘template<class ... Args, class> constexpr eos::core::Pixel<ElementType, NumChannels>::Pixel(Args ...)’
constexpr Pixel(Args... args) noexcept : data_{{static_cast<ElementType>(args)...}} {};
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:39:15: note: template argument deduction/substitution failed:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘constexpr eos::core::Pixel<unsigned char, 4>::Pixel(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate expects 1 argument, 4 provided
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:29:
/home/cfoch/dev/env/eos-prefix/include/eos/render/texture_extraction.hpp:734:103: error: no match for ‘operator=’ (operand types are ‘eos::core::Pixel<unsigned char, 4>’ and ‘<brace-enclosed initializer list>’)
static_cast<uint8_t>(pixel_val[2]), static_cast<uint8_t>(pixel_val[3])};
^
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(const eos::core::Pixel<unsigned char, 4>&)’
class Pixel
^~~~~
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const eos::core::Pixel<unsigned char, 4>&’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: candidate: ‘eos::core::Pixel<unsigned char, 4>& eos::core::Pixel<unsigned char, 4>::operator=(eos::core::Pixel<unsigned char, 4>&&)’
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:35:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘eos::core::Pixel<unsigned char, 4>&&’
/home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp: In function ‘int main(int, char**)’:
/home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:172:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<dlib::rectangle>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
for (i = 0; i < dets.size(); i++) {
~~^~~~~~~~~~~~~
/home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:182:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
for (j = 0; j < shape.num_parts (); j++) {
~~^~~~~~~~~~~~~~~~~~~~
/home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:206:13: warning: unused variable ‘yaw_angle’ [-Wunused-variable]
float yaw_angle = glm::degrees(glm::yaw(rendering_params.get_rotation()));
^~~~~~~~~
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp: In instantiation of ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const [with ElementType = unsigned char; int NumChannels = 4]’:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:46:40: required from here
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:45:23: error: binding reference of type ‘unsigned char&’ to ‘const value_type’ {aka ‘const unsigned char’} discards qualifiers
return data_[i];
^
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:46:5: error: body of ‘constexpr’ function ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const [with ElementType = unsigned char; int NumChannels = 4]’ not a return-statement
};
^
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp: In instantiation of ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const [with ElementType = unsigned char; int NumChannels = 3]’:
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:60:72: required from here
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:45:23: error: binding reference of type ‘unsigned char&’ to ‘const value_type’ {aka ‘const unsigned char’} discards qualifiers
return data_[i];
^
/home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:46:5: error: body of ‘constexpr’ function ‘constexpr ElementType& eos::core::Pixel<ElementType, NumChannels>::operator[](int) const [with ElementType = unsigned char; int NumChannels = 3]’ not a return-statement
};
^
In file included from /usr/include/c++/8/algorithm:62,
from /usr/include/opencv2/core/base.hpp:55,
from /usr/include/opencv2/core.hpp:54,
from /usr/include/opencv2/core/core.hpp:48,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:27,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:21:
/usr/include/c++/8/bits/stl_algo.h: In instantiation of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<const Eigen::Matrix<float, 3, 1>*, std::vector<Eigen::Matrix<float, 3, 1> > >; _Funct = eos::fitting::occluding_boundary_vertices(const eos::core::Mesh&, const eos::morphablemodel::EdgeTopology&, glm::mat4x4, bool)::<lambda(const int&)>]’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:133:6: required from here
/usr/include/c++/8/bits/stl_algo.h:3882:5: error: no match for call to ‘(eos::fitting::occluding_boundary_vertices(const eos::core::Mesh&, const eos::morphablemodel::EdgeTopology&, glm::mat4x4, bool)::<lambda(const int&)>) (const Eigen::Matrix<float, 3, 1>&)’
__f(*__first);
~~~^~~~~~~~~~
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:35,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:131:98: note: candidate: ‘eos::fitting::occluding_boundary_vertices(const eos::core::Mesh&, const eos::morphablemodel::EdgeTopology&, glm::mat4x4, bool)::<lambda(const int&)>’
std::for_each(begin(mesh.vertices), end(mesh.vertices), [&rotated_vertices, &R](const auto& v) {
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/closest_edge_fitting.hpp:131:98: note: no known conversion for argument 1 from ‘const Eigen::Matrix<float, 3, 1>’ to ‘const int&’
In file included from /usr/include/c++/8/algorithm:62,
from /usr/include/opencv2/core/base.hpp:55,
from /usr/include/opencv2/core.hpp:54,
from /usr/include/opencv2/core/core.hpp:48,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:27,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:21:
/usr/include/c++/8/bits/stl_algo.h: In instantiation of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Funct = eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>]’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:481:28: required from here
/usr/include/c++/8/bits/stl_algo.h:3882:5: error: no match for call to ‘(eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>) (const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >&)’
__f(*__first);
~~~^~~~~~~~~~
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:479:72: note: candidate: ‘eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>’
[&occluding_contour_landmarks](const auto& lm) {
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:479:72: note: no known conversion for argument 1 from ‘const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >’ to ‘const int&’
In file included from /usr/include/c++/8/algorithm:62,
from /usr/include/opencv2/core/base.hpp:55,
from /usr/include/opencv2/core.hpp:54,
from /usr/include/opencv2/core/core.hpp:48,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/image/opencv_interop.hpp:27,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:21:
/usr/include/c++/8/bits/stl_algo.h: In instantiation of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Funct = eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>]’:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:488:28: required from here
/usr/include/c++/8/bits/stl_algo.h:3882:5: error: no match for call to ‘(eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>) (const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >&)’
__f(*__first);
~~~^~~~~~~~~~
In file included from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:486:72: note: candidate: ‘eos::fitting::fit_shape_and_pose(const eos::morphablemodel::MorphableModel&, eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const eos::core::LandmarkMapper&, int, int, const eos::morphablemodel::EdgeTopology&, const eos::fitting::ContourLandmarks&, const eos::fitting::ModelContour&, int, akrzemi1::optional<int>, float, akrzemi1::optional<int>, akrzemi1::optional<float>, std::vector<float>&, std::vector<float>&, std::vector<Eigen::Matrix<float, 2, 1> >&)::<lambda(const int&)>’
[&occluding_contour_landmarks](const auto& lm) {
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:486:72: note: no known conversion for argument 1 from ‘const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >’ to ‘const int&’
In file included from /usr/include/c++/8/bits/stl_algobase.h:71,
from /usr/include/c++/8/bits/char_traits.h:39,
from /usr/include/c++/8/string:40,
from /usr/include/c++/8/stdexcept:39,
from /usr/include/c++/8/array:39,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/image/Pixel.hpp:25,
from /home/cfoch/dev/env/eos-prefix/include/eos/core/Image.hpp:25,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:20:
/usr/include/c++/8/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_pred<_Predicate>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Predicate = eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)>]’:
/usr/include/c++/8/bits/stl_algo.h:120:14: required from ‘_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Predicate = __gnu_cxx::__ops::_Iter_pred<eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)> >]’
/usr/include/c++/8/bits/stl_algo.h:161:23: required from ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Predicate = __gnu_cxx::__ops::_Iter_pred<eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)> >]’
/usr/include/c++/8/bits/stl_algo.h:3930:28: required from ‘_IIter std::find_if(_IIter, _IIter, _Predicate) [with _IIter = __gnu_cxx::__normal_iterator<const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >*, std::vector<eos::core::Landmark<Eigen::Matrix<float, 2, 1> >, std::allocator<eos::core::Landmark<Eigen::Matrix<float, 2, 1> > > > >; _Predicate = eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)>]’
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp:343:10: required from here
/usr/include/c++/8/bits/predefined_ops.h:283:11: error: no match for call to ‘(eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)>) (const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >&)’
{ return bool(_M_pred(*__it)); }
^~~~~~~~~~~~~~~~~~~~
In file included from /home/cfoch/dev/env/eos-prefix/include/eos/fitting/fitting.hpp:34,
from /home/cfoch/dev/checkout/cfoch/cfoch-cv/src/cpp/eos-sample/simple/fit-model.cpp:25:
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp:341:96: note: candidate: ‘eos::fitting::get_nearest_contour_correspondences(eos::core::LandmarkCollection<Eigen::Matrix<float, 2, 1> >&, const std::vector<std::__cxx11::basic_string<char> >&, const std::vector<int>&, const eos::core::Mesh&, const mat4x4&, const mat4x4&, const vec4&)::<lambda(int&&)>’
const auto result = std::find_if(begin(landmarks), end(landmarks), [&ibug_idx](auto&& e) {
^
/home/cfoch/dev/env/eos-prefix/include/eos/fitting/contour_correspondence.hpp:341:96: note: no known conversion for argument 1 from ‘const eos::core::Landmark<Eigen::Matrix<float, 2, 1> >’ to ‘int&&’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment