Skip to content

Commit 8cf8723

Browse files
Merge branch 'master' of https://github.com/david-cattermole/mayaMatchMoveSolver into 174-core-solver-add-ceres-solver
2 parents 8b61212 + c1fdc5c commit 8cf8723

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

src/mmSolver/adjust/adjust_relationships.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
#include "mmSolver/utilities/number_utils.h"
6666
#include "mmSolver/utilities/string_utils.h"
6767

68+
namespace mmsolver {
69+
6870
/*
6971
* Count up number of errors to be measured in the solve.
7072
*/
@@ -226,7 +228,7 @@ uint32_t countUpNumberOfUnknownParameters(
226228
std::vector<double> &out_paramUpperBoundList,
227229
std::vector<double> &out_paramWeightList,
228230
IndexPairList &out_paramToAttrList,
229-
mmsolver::MatrixBool2D &out_paramFrameMatrix, MStatus &out_status) {
231+
MatrixBool2D &out_paramFrameMatrix, MStatus &out_status) {
230232
const bool verbose = false;
231233
MMSOLVER_MAYA_VRB("countUpNumberOfUnknownParameters");
232234

@@ -416,7 +418,7 @@ uint32_t countUpNumberOfUnknownParameters(
416418
*/
417419
void findMarkerToAttributeRelationship(
418420
const MarkerPtrList &markerList, const AttrPtrList &attrList,
419-
mmsolver::MatrixBool2D &out_markerToAttrMatrix, MStatus &out_status) {
421+
MatrixBool2D &out_markerToAttrMatrix, MStatus &out_status) {
420422
const bool verbose = false;
421423
MMSOLVER_MAYA_VRB("findMarkerToAttributeRelationship");
422424

@@ -525,7 +527,7 @@ void findMarkerToAttributeRelationship(
525527
*/
526528
void getMarkerToAttributeRelationship(
527529
const MarkerPtrList &markerList, const AttrPtrList &attrList,
528-
mmsolver::MatrixBool2D &out_markerToAttrMatrix, MStatus &out_status) {
530+
MatrixBool2D &out_markerToAttrMatrix, MStatus &out_status) {
529531
const bool verbose = false;
530532
MMSOLVER_MAYA_VRB("getMarkerToAttributeRelationship");
531533

@@ -619,8 +621,8 @@ void findErrorToParameterRelationship(
619621
const MTimeArray &frameList, const uint32_t numParameters,
620622
const uint32_t numMarkerErrors, const IndexPairList &paramToAttrList,
621623
const IndexPairList &errorToMarkerList,
622-
const mmsolver::MatrixBool2D &markerToAttrMatrix,
623-
mmsolver::MatrixBool2D &out_errorToParamMatrix, MStatus &out_status) {
624+
const MatrixBool2D &markerToAttrMatrix,
625+
MatrixBool2D &out_errorToParamMatrix, MStatus &out_status) {
624626
const bool verbose = false;
625627
MMSOLVER_MAYA_VRB("findErrorToParameterRelationship");
626628

@@ -701,7 +703,7 @@ void calculateMarkerAndParameterCount(
701703
const MTimeArray &frameList, const uint32_t numParameters,
702704
const uint32_t numMarkerErrors, const IndexPairList &paramToAttrList,
703705
const IndexPairList &errorToMarkerList,
704-
const mmsolver::MatrixBool2D &markerToAttrMatrix,
706+
const MatrixBool2D &markerToAttrMatrix,
705707
const FrameSolveMode frameSolveMode,
706708
std::unordered_set<int32_t> &out_valid_frames,
707709
std::unordered_set<int32_t> &out_invalid_frames, MStatus &out_status) {
@@ -836,3 +838,5 @@ void calculateMarkerAndParameterCount(
836838

837839
return;
838840
}
841+
842+
} // namespace mmsolver

src/mmSolver/adjust/adjust_relationships.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#include "mmSolver/mayahelper/maya_marker.h"
5050
#include "mmSolver/utilities/debug_utils.h"
5151

52+
namespace mmsolver {
53+
5254
typedef std::pair<int, int> IndexPair;
5355
typedef std::vector<std::pair<int, int> > IndexPairList;
5456

@@ -97,4 +99,6 @@ void calculateMarkerAndParameterCount(
9799
std::unordered_set<int32_t> &out_valid_frames,
98100
std::unordered_set<int32_t> &out_invalid_frames, MStatus &out_status);
99101

102+
} // namespace mmsolver
103+
100104
#endif // MM_SOLVER_CORE_BUNDLE_ADJUST_RELATIONSHIPS_H

src/mmSolver/cmd/MMSolver2Cmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ MStatus MMSolver2Cmd::doIt(const MArgList &args) {
128128
MStatus status = parseArgs(args);
129129
CHECK_MSTATUS_AND_RETURN_IT(status);
130130
MMSOLVER_ASSERT(
131-
!m_frameList.is_empty(),
131+
m_frameList.length() > 0,
132132
"We must solve at least one frame, otherwise there's no point.");
133133

134134
// Don't store each individual edits, just store the combination

src/mmSolver/cmd/MMSolverCmd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ MStatus MMSolverCmd::doIt(const MArgList &args) {
126126
MStatus status = parseArgs(args);
127127
CHECK_MSTATUS_AND_RETURN_IT(status);
128128
MMSOLVER_ASSERT(
129-
!m_frameList.is_empty(),
129+
m_frameList.length() > 0,
130130
"We must solve at least one frame, otherwise there's no point.");
131131

132132
// Don't store each individual edits, just store the combination

0 commit comments

Comments
 (0)