OpenCV 4.5.3(日本語機械翻訳)
mapshift.hpp
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //
3 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4 //
5 // By downloading, copying, installing or using the software you agree to this license.
6 // If you do not agree to this license, do not download, install,
7 // copy or use the software.
8 //
9 // Copyright (C) 2013, Alfonso Sanchez-Beato, all rights reserved.
10 // Third party copyrights are property of their respective owners.
11 //
12 // Redistribution and use in source and binary forms, with or without modification,
13 // are permitted provided that the following conditions are met:
14 //
15 // * Redistribution's of source code must retain the above copyright notice,
16 // this list of conditions and the following disclaimer.
17 //
18 // * Redistribution's in binary form must reproduce the above copyright notice,
19 // this list of conditions and the following disclaimer in the documentation
20 // and/or other materials provided with the distribution.
21 //
22 // * The name of the copyright holders may not be used to endorse or promote products
23 // derived from this software without specific prior written permission.
24 //
25 // This software is provided by the copyright holders and contributors "as is" and
26 // any express or implied warranties, including, but not limited to, the implied
27 // warranties of merchantability and fitness for a particular purpose are disclaimed.
28 // In no event shall the contributors be liable for any direct,
29 // indirect, incidental, special, exemplary, or consequential damages
30 // (including, but not limited to, procurement of substitute goods or services;
31 // loss of use, data, or profits; or business interruption) however caused
32 // and on any theory of liability, whether in contract, strict liability,
33 // or tort (including negligence or otherwise) arising in any way out of
34 // the use of this software, even if advised of the possibility of such damage.
35 //
36 //M*/
37
38 #ifndef MAPSHIFT_H_
39 #define MAPSHIFT_H_
40
41 #include "map.hpp"
42
43
44 namespace cv {
45 namespace reg {
46
49
53 class CV_EXPORTS_W MapShift : public Map
54{
55 public:
59 CV_WRAP MapShift();
60
66 CV_WRAP MapShift(InputArray shift);
67
72
73 CV_WRAP void inverseWarp(InputArray img1, OutputArray img2) const CV_OVERRIDE;
74
75 CV_WRAP cv::Ptr<Map> inverseMap() const CV_OVERRIDE;
76
77 CV_WRAP void compose(cv::Ptr<Map> map) CV_OVERRIDE;
78
79 CV_WRAP void scale(double factor) CV_OVERRIDE;
80
85 const cv::Vec<double, 2>& getShift() const {
86 return shift_;
87 }
88
89 CV_WRAP void getShift(OutputArray shift) const {
90 Mat(shift_).copyTo(shift);
91 }
92
93 private:
94 cv::Vec<double, 2> shift_; /*< Displacement */
95};
96
98
99}} // namespace cv::reg
100
101 #endif // MAPSHIFT_H_
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
n-dimensional dense array class
Definition: mat.hpp:802
void copyTo(OutputArray m) const
Copies the matrix to another one.
Template class for short numerical vectors, a partial case of Matx
Definition: matx.hpp:342
Base class for modelling a Map between two images.
Definition: map.hpp:125
Definition: mapshift.hpp:54
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74