Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

team79/ImageRegistration

Repository files navigation

ImageRegistration

图像配准类:

文件:

ImageRegistration.h

ImageRegistration.cpp

class ImageRegistration {
 Mat src1;
 Mat src2;
 void getRegistrationMat();
 Mat transMatrix;
public:
 void init(Mat,Mat);
 Point2f getXY(int,int);
 ~ImageRegistration();
};

其中src1为原图像,src2为待匹配图像。

使用

初始化:

Mat src1 = imread("test-1.png", 1);
Mat src2 = imread("test-2.png", 1); 
ImageRegistration llll;
llll.init(src1, src2);

调用getXY函数即可得到原图中的点在src2中的坐标

Point2f temp = llll.getXY(i, j);

实际演示:

比如我们将src1中的(100,100)起的50*50的块涂黑,对应的src2中也在相应位置涂黑

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /