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
using OpenCvSharp; | |
using OpenCvSharp.CPlusPlus; | |
namespace OpenCvSharpSample.Samples | |
{ | |
public class MethodTest | |
{ | |
public static void DetectAnimeFace() | |
{ | |
string fileName = "image.jpg"; |
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
using System; | |
namespace ColorConverter | |
{ | |
class CmykColorConverter | |
{ | |
static void Main(string[] args) | |
{ | |
// OpenCV の色表現は BGR なので順番注意 | |
// 論理式としての意味合いが強いため、色の再現性は不明 |
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
// for Visual Studio | |
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
long double wallis_formula(int); | |
int main() { | |
int input_count = 0; |
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
/* gist */ | |
.gist .line-number { | |
line-height: 1.625; | |
} |
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
using System; | |
namespace MathUtil | |
{ | |
public class Solver | |
{ | |
static void Main(string[] args) | |
{ | |
// 方程式 | |
// 3x + 2y + z = 10 |
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
{ | |
"editor.tabSize": "2", | |
"editor.insertSpaces": "2" | |
} |
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
#!/bin/bash | |
targettopdir=`pwd`/PTAM-work | |
pwdinfo=`pwd` | |
sudo apt-get update | |
sudo apt-get install build-essential cmake pkg-config | |
sudo apt-get install liblapack-dev freeglut3-dev libdc1394-22-dev | |
sudo apt-get install liblapack-dev libblas-dev | |
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev libv4l-dev |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <iostream> | |
#include <opencv2\opencv.hpp> | |
using namespace cv; | |
using namespace std; | |
int main(int argc, char* argv[]){ | |
if (argc < 2){ | |
cout << "画像の名前を入力してください。"; | |
return -1; |
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
using System; | |
using System.Collections.Generic; | |
using OpenCvSharp.CPlusPlus; | |
using OpenCvSharp; | |
namespace OpenCvSharpSomethings | |
{ | |
class Program | |
{ | |
static Mat[] rotMat; |
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(){ | |
size(640,360); | |
background(0); | |
frameRate(60); | |
stroke(120,100,210); | |
} | |
void draw(){ | |
if(mouseButton == LEFT){ | |
int px1 = pmouseX - width / 2; | |
int py = pmouseY - height / 2; |