回答編集履歴

1

a

2018/10/04 03:35

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -24,6 +24,16 @@
24
24
 
25
25
  ```cpp
26
26
 
27
+ #include <iostream>
28
+
29
+ #include <vector>
30
+
31
+
32
+
33
+ #include <opencv2/opencv.hpp>
34
+
35
+
36
+
27
37
  void function(const cv::Mat &image, cv::Mat &dst)
28
38
 
29
39
  {
@@ -38,7 +48,7 @@
38
48
 
39
49
  // チャンネルごとに分割する。
40
50
 
41
- std::vector<cv::Mat> channels(image.channels());
51
+ std::vector<cv::Mat> channels;
42
52
 
43
53
  cv::split(hsv, channels);
44
54