IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
CenteredMat.h
Go to the documentation of this file.
1 /**
2  * \file IMP/em2d/CenteredMat.h
3  * \brief Decorator for OpenCV matrix to use relative coordinates
4  * Copyright 2007-2023 IMP Inventors. All rights reserved.
5 */
6 
7 #ifndef IMPEM2D_CENTERED_MAT_H
8 #define IMPEM2D_CENTERED_MAT_H
9 
10 #include <IMP/em2d/em2d_config.h>
11 #include "internal/CenteredMat.h"
12 
13 IMPEM2D_BEGIN_NAMESPACE
14 
15 class CenteredMat : public internal::CenteredMat {
16  public:
17  IMPEM2D_DEPRECATED_VALUE_DECL(2.19)
18  CenteredMat(cv::Mat &m) : internal::CenteredMat(m) {
19  IMPEM2D_DEPRECATED_VALUE_DEF(2.19, "Use internal::CenteredMat instead");
20  }
21 
22  IMPEM2D_DEPRECATED_VALUE_DECL(2.19)
23  CenteredMat(cv::Mat &m, int center_row, int center_col)
24  : internal::CenteredMat(m, center_row, center_col) {
25  IMPEM2D_DEPRECATED_VALUE_DEF(2.19, "Use internal::CenteredMat instead");
26  }
27 };
28 
29 IMPEM2D_END_NAMESPACE
30 
31 #endif /* IMPEM2D_CENTERED_MAT_H */