This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2\opencv.hpp> | |
#include <sstream> | |
#include <iostream> | |
void main() | |
{ | |
//+++ 赤い四角がでるよ+++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
// 幅320px、高さ240pxで赤色の画像データを生成 | |
// 画像の名前(cv::Size(幅、高さ), ビット深度、cv::Scalar(R, G, B)) | |
cv::Mat redImg(cv::Size(320, 240), CV_8UC3, cv::Scalar(0, 0, 255)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
// robotという構造体を作成する | |
struct robot | |
{ | |
std::string color; // ロボットの色 | |
int button; // ロボットのボタンの数 | |
int arm; // ロボットの腕の数 | |
}; |