Skip to content

Commit

Permalink
VXL 2021-12-13 (f1eb4db2)
Browse files Browse the repository at this point in the history
Code extracted from:

    https://github.com/vxl/vxl.git

at commit f1eb4db29365c901d64ea054d558184d130d5319 (master).
  • Loading branch information
VXL Maintainers authored and hjmjohnson committed Dec 15, 2021
1 parent af8c2f6 commit 186057d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ foreach(p
endforeach()

project(VXL #Project name must be all caps to have properly generated VXL_VERSION_* variables
VERSION 3.4.0.0 # defines #MAJOR,MINOR,PATCH,TWEAK}
VERSION 3.5.0.0 # defines #MAJOR,MINOR,PATCH,TWEAK}
DESCRIPTION "A multi-platform collection of C++ software libraries for Computer Vision and Image Understanding."
LANGUAGES CXX C)

Expand Down
4 changes: 2 additions & 2 deletions core/vnl/algo/vnl_levenberg_marquardt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ vnl_levenberg_marquardt::lmdif_lsqfun(long * n, // I Number of residuals
assert(*p == (int)f->get_number_of_unknowns());
assert(*n == (int)f->get_number_of_residuals());
assert(*p > 0);
assert(*n > *p);
assert(*n >= *p);
vnl_vector_ref<double> ref_x(*p, const_cast<double *>(x));
vnl_vector_ref<double> ref_fx(*n, fx);

Expand Down Expand Up @@ -248,7 +248,7 @@ vnl_levenberg_marquardt::lmder_lsqfun(long * n, // I Number of residuals
assert(*p == (int)f->get_number_of_unknowns());
assert(*n == (int)f->get_number_of_residuals());
assert(*p > 0);
assert(*n > *p);
assert(*n >= *p);
vnl_vector_ref<double> ref_x(*p, (double *)x); // const violation!
vnl_vector_ref<double> ref_fx(*n, fx);
vnl_matrix_ref<double> ref_fJ(*n, *p, fJ);
Expand Down

0 comments on commit 186057d

Please sign in to comment.