質問編集履歴
1
C#のソースコードのコメントに画像Bを画像Aに合わせに行く旨を追記。
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,6 +31,7 @@
|
|
31
31
|
|
32
32
|
エラーが発生しているコード
|
33
33
|
```C#
|
34
|
+
//descriptor1は画像Aの特徴点、descriptor2は画像Bの特徴点
|
34
35
|
matches = matcher.KnnMatch(descriptor1, descriptor2, 2);
|
35
36
|
List<Point2f> p1 = new List<Point2f>(), p2 = new List<Point2f>();
|
36
37
|
foreach (var m in matches)
|
@@ -50,7 +51,8 @@
|
|
50
51
|
//元画像:MatMoto(1753*2480*CV_8UC3)、結果:MatKekka(new Mat()) 変換行列:matHenkan (3*3*CV_64FC1)
|
51
52
|
Cv2.WarpAffine(MatMoto, MatKekka, matHenkan , Matread.Size());
|
52
53
|
|
53
|
-
//
|
54
|
+
//今回は、画像B(MatMoto(1753*2480*CV_8UC3)を
|
55
|
+
//画像A(1764*2478*CV_8UC4)に合わせに行っています。
|
54
56
|
```
|
55
57
|
### 試したこと
|
56
58
|
|