回答編集履歴

3

修正

2022/01/03 03:08

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ```cpp
18
18
 
19
- cv::Pointp2 p(1.1, 1.2);
19
+ cv::Point2f p(1.1, 1.2);
20
20
 
21
21
  cv::Point p2 = cv::Point(p);
22
22
 

2

修正

2022/01/03 03:08

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  ```cpp
18
18
 
19
- cv::Point p(1.1, 1.2);
19
+ cv::Pointp2 p(1.1, 1.2);
20
20
 
21
- cv::Point2f p2 = cv::Point(x);
21
+ cv::Point p2 = cv::Point(p);
22
22
 
23
23
  ```

1

修正

2022/01/03 03:07

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  ```cpp
18
18
 
19
- float x = 1.1;
19
+ cv::Point p(1.1, 1.2);
20
20
 
21
- int y = int(x);
21
+ cv::Point2f p2 = cv::Point(x);
22
22
 
23
23
  ```