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