Added more GTSAM_DEPRECATED directives
parent
754d03696d
commit
cf50d10fab
|
|
@ -172,7 +172,7 @@ class GTSAM_EXPORT Cal3 {
|
||||||
|
|
||||||
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
||||||
/** @deprecated The following function has been deprecated, use K above */
|
/** @deprecated The following function has been deprecated, use K above */
|
||||||
Matrix3 matrix() const { return K(); }
|
Matrix3 GTSAM_DEPRECATED matrix() const { return K(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Return inverted calibration matrix inv(K)
|
/// Return inverted calibration matrix inv(K)
|
||||||
|
|
|
||||||
|
|
@ -99,10 +99,10 @@ class GTSAM_EXPORT Cal3Bundler : public Cal3 {
|
||||||
|
|
||||||
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
||||||
/// get parameter u0
|
/// get parameter u0
|
||||||
inline double u0() const { return u0_; }
|
inline double GTSAM_DEPRECATED u0() const { return u0_; }
|
||||||
|
|
||||||
/// get parameter v0
|
/// get parameter v0
|
||||||
inline double v0() const { return v0_; }
|
inline double GTSAM_DEPRECATED v0() const { return v0_; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
|
||||||
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
||||||
SimpleCamera simpleCamera(const Matrix34& P) {
|
SimpleCamera GTSAM_DEPRECATED simpleCamera(const Matrix34& P) {
|
||||||
|
|
||||||
// P = [A|a] = s K cRw [I|-T], with s the unknown scale
|
// P = [A|a] = s K cRw [I|-T], with s the unknown scale
|
||||||
Matrix3 A = P.topLeftCorner(3, 3);
|
Matrix3 A = P.topLeftCorner(3, 3);
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,8 @@ namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V42
|
||||||
void GaussianConditional::scaleFrontalsBySigma(VectorValues& gy) const {
|
void GTSAM_DEPRECATED
|
||||||
|
GaussianConditional::scaleFrontalsBySigma(VectorValues& gy) const {
|
||||||
DenseIndex vectorPosition = 0;
|
DenseIndex vectorPosition = 0;
|
||||||
for (const_iterator frontal = beginFrontals(); frontal != endFrontals(); ++frontal) {
|
for (const_iterator frontal = beginFrontals(); frontal != endFrontals(); ++frontal) {
|
||||||
gy[*frontal].array() *= model_->sigmas().segment(vectorPosition, getDim(frontal)).array();
|
gy[*frontal].array() *= model_->sigmas().segment(vectorPosition, getDim(frontal)).array();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue