|
25 | 25 | #include "eos/morphablemodel/Blendshape.hpp" |
26 | 26 | #include "eos/morphablemodel/EdgeTopology.hpp" |
27 | 27 | #include "eos/morphablemodel/MorphableModel.hpp" |
28 | | -#include "eos/cpp17/optional.hpp" |
29 | 28 |
|
30 | 29 | #include "mexplus_eigen.hpp" |
31 | 30 | #include "mexplus_eos_types.hpp" |
|
37 | 36 | #include "mex.h" |
38 | 37 |
|
39 | 38 | #include <string> |
| 39 | +#include <optional> |
40 | 40 |
|
41 | 41 | void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) |
42 | 42 | { |
@@ -90,15 +90,15 @@ void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) |
90 | 90 | const auto morphable_model = morphablemodel::load_model(morphablemodel_file); |
91 | 91 | const auto blendshapes = morphablemodel::load_blendshapes(blendshapes_file); |
92 | 92 | morphable_model_with_expressions = morphablemodel::MorphableModel( |
93 | | - morphable_model.get_shape_model(), blendshapes, morphable_model.get_color_model(), cpp17::nullopt, |
| 93 | + morphable_model.get_shape_model(), blendshapes, morphable_model.get_color_model(), std::nullopt, |
94 | 94 | morphable_model.get_texture_coordinates()); |
95 | 95 | } |
96 | 96 | const core::LandmarkMapper landmark_mapper(mapper_file); |
97 | 97 | const auto edge_topology = morphablemodel::load_edge_topology(edgetopo_file); |
98 | 98 | const auto contour_landmarks = fitting::ContourLandmarks::load(contour_lms_file); |
99 | 99 | const auto model_contour = fitting::ModelContour::load(model_cnt_file); |
100 | | - const cpp17::optional<int> num_shape_coefficients_to_fit = |
101 | | - num_shape_coeffs == -1 ? cpp17::nullopt : cpp17::optional<int>(num_shape_coeffs); |
| 100 | + const std::optional<int> num_shape_coefficients_to_fit = |
| 101 | + num_shape_coeffs == -1 ? std::nullopt : std::optional<int>(num_shape_coeffs); |
102 | 102 |
|
103 | 103 | // Now do the actual fitting: |
104 | 104 | core::Mesh mesh; |
|
0 commit comments