123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef MAPAFFINE_H_
- #define MAPAFFINE_H_
- #include "map.hpp"
- namespace cv {
- namespace reg {
- class CV_EXPORTS_W MapAffine : public Map
- {
- public:
-
- CV_WRAP MapAffine();
-
- CV_WRAP MapAffine(InputArray linTr, InputArray shift);
-
- ~MapAffine();
- CV_WRAP void inverseWarp(InputArray img1, OutputArray img2) const;
- CV_WRAP cv::Ptr<Map> inverseMap() const;
- CV_WRAP void compose(cv::Ptr<Map> map);
- CV_WRAP void scale(double factor);
-
- const cv::Matx<double, 2, 2>& getLinTr() const {
- return linTr_;
- }
- CV_WRAP void getLinTr(OutputArray linTr) const {
- Mat(linTr_).copyTo(linTr);
- }
-
- const cv::Vec<double, 2>& getShift() const {
- return shift_;
- }
- CV_WRAP void getShift(OutputArray shift) const {
- Mat(shift_).copyTo(shift);
- }
- private:
- cv::Matx<double, 2, 2> linTr_;
- cv::Vec<double, 2> shift_;
- };
- }}
- #endif
|