Skip to content

Instantly share code, notes, and snippets.

/*
* 画像処理をparallel_forを使って並列にしてみた例
* mosaicはプラットフォーム(VS2013)依存な方法
* mosaic2はOpenCVの方法をぱくったのだがparallel_for_ってユーザが使っていいのだろうか
*/
#include "opencv2/opencv.hpp"
using namespace cv;
/*
* OpenCVのチュートリアルにあるサンプルでassertionエラーになるので
* カメラが動き出すまで待たないといけないのかと思いコードを追加したら
* ビンゴだった・・・
*/
#include "opencv2/opencv.hpp"
using namespace cv;
@junjis0203
junjis0203 / ev3-sound.c
Created November 21, 2013 14:31
Example of playing sound in EV3. Sorry, I can't describe how to play sound in English.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
@junjis0203
junjis0203 / ev3-display.c
Created November 21, 2013 14:29
Example of drawing display for EV3. Sorry, I can't describe how to draw display in English.
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <linux/fb.h>
#include <stdio.h>
#include <stdlib.h>
@junjis0203
junjis0203 / ev3-sensor.c
Created November 21, 2013 14:27
Example of getting sensor value from EV3. Sorry, I can't describe how to fetch sensor value in English.
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include "lms2012.h"