Created
November 5, 2011 03:36
-
-
Save tochiz/1341066 to your computer and use it in GitHub Desktop.
Sample for OpenCV for image input & output.
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 <cmath> | |
#include <cv.h> | |
int main() | |
{ | |
// Mat形式の画像データを作る | |
cv::Mat img; | |
// | |
img = cv::imread("input.png"); | |
// TODO: 画像を編集するならここ | |
// ファイル書き出し | |
cv::imwrite("output.jpg", img); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment