This file contains hidden or 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
// | |
// RGB to HSV convert sample | |
// | |
// see also : http://ja.wikipedia.org/wiki/HSV%E8%89%B2%E7%A9%BA%E9%96%93 | |
// | |
#include <stdio.h> | |
#include <math.h> | |
#define min_f(a, b, c) (fminf(a, fminf(b, c))) |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#if _DEBUG | |
#pragma comment(lib, "opencv_core248d.lib") | |
#pragma comment(lib, "opencv_imgproc248d.lib") | |
#pragma comment(lib, "opencv_highgui248d.lib") |
This file contains hidden or 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 <stdio.h> | |
#include <stddef.h> | |
typedef struct _hoge { | |
int a; | |
char c; | |
float f; | |
} Hoge; | |
int main(int argc, char* argv[]) |
This file contains hidden or 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
$ LANG=C gphoto2 --summary | |
Camera summary: | |
Manufacturer: Ricoh Company, Ltd. | |
Model: RICOH THETA | |
Version: 01.10 | |
Serial Number: xxxxxxxx | |
Vendor Extension ID: 0x6 (1.10) | |
Capture Formats: | |
Display Formats: Association/Directory, JPEG, Firmware |
This file contains hidden or 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
// | |
// how to use java.awt.Robot class in processing ... | |
// | |
import java.awt.*; | |
import java.awt.event.*; | |
Robot robot; | |
PFont pfont; | |
Point save_p; | |
This file contains hidden or 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
// | |
// sample sketch for "OpenCV for Processing" library... | |
// | |
String image_url = "nike.jpg"; | |
Mat test_img; | |
void setup() { | |
size(640, 480); | |
initOpenCV(); | |
} |
This file contains hidden or 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
String url = "http://example.com/path/to/camera_image.jpg"; | |
void setup() { | |
size(640, 480); | |
} | |
void draw() { | |
PImage img = loadImage(url); | |
tint(#aaeeff, 40); |
This file contains hidden or 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
// | |
// sample sketch for "OpenCV for Processing" library... | |
// | |
import gab.opencv.*; | |
import org.opencv.core.*; | |
import org.opencv.imgproc.*; | |
String image_url = "http://example.com/path/to/movie.jpg"; | |
OpenCV opencv; | |
Mat test_img; |
This file contains hidden or 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
#pragma once | |
#include <SDKDDKVer.h> | |
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <vector> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> |
This file contains hidden or 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
void setup() { | |
String ipaddr = loadStrings("http://checkip.amazonaws.com")[0]; | |
println(ipaddr); | |
} |