teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

エラーメッセージを追加しました

2020/10/14 02:03

投稿

0625_hayato
0625_hayato

スコア1

title CHANGED
File without changes
body CHANGED
@@ -11,8 +11,13 @@
11
11
 
12
12
  ```
13
13
  pointer-to-function 型に対する適切な operator() または変換関数のないクラス型のオブジェクトの呼び出しです 55行目
14
-   
15
-        →→→rs2::frame depth_vis = color_map(aligned_frames.get_depth_frame()); //55行目
14
+        →→→ rs2::frame depth_vis = color_map(aligned_frames.get_depth_frame()); //55行目
15
+
16
+ 'im_d_vis'定義されていない識別子です 62行目
17
+        →→→ auto im_d_vis = frame_to_mat(depth_vis); //可視化用の距離画像
18
+
19
+ 'im_d'定義されていない識別子です  71行目
20
+        →→→ sprintf( name_c,"image/image%05d.png", cnt );
16
21
  ```
17
22
 
18
23
  ### 該当のソースコード

1

発生している問題・エラーメッセージの欄にエラーが出ているコード、該当のソースコードの55行目にコメントを追加しました。

2020/10/14 02:03

投稿

0625_hayato
0625_hayato

スコア1

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,8 @@
11
11
 
12
12
  ```
13
13
  pointer-to-function 型に対する適切な operator() または変換関数のないクラス型のオブジェクトの呼び出しです 55行目
14
+   
14
-
15
+        →→→rs2::frame depth_vis = color_map(aligned_frames.get_depth_frame()); //55行目
15
16
  ```
16
17
 
17
18
  ### 該当のソースコード
@@ -65,7 +66,7 @@
65
66
  while(1){
66
67
  rs2::frameset data = pipe.wait_for_frames();
67
68
  auto aligned_frames = align.process(data); // RGB画像に対してDepth画像を位置合わせ
68
- rs2::frame depth_vis = color_map(aligned_frames.get_depth_frame());
69
+ rs2::frame depth_vis = color_map(aligned_frames.get_depth_frame()); //←←←この行でエラーが出ています
69
70
  rs2::frame depth = aligned_frames.get_depth_frame();
70
71
  rs2::frame color = aligned_frames.get_color_frame();
71
72