Skip to content

Instantly share code, notes, and snippets.

// Open CV 2.4.13
#include <iostream>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/nonfree/features2d.hpp>
using namespace cv;
using namespace std;
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
// 抽出する画像の輝度値の範囲を指定
#define B_MAX 100
#define B_MIN 0
#define G_MAX 100
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
// 抽出する画像の輝度値の範囲を指定
#define H_MAX 180
#define H_MIN 160
#define S_MAX 255
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
# Mnistに使うデータセットをインポートする
#include <kinect.h>
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char* argv[]) {
// (1) Sensorを開く
IKinectSensor* kinect;
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core/utils/trace.hpp>
#include <fstream>
#include <iostream>
#include <cstdlib>
using namespace cv;
using namespace cv::dnn;
using namespace std;
#include <Windows.h>
#include <stdexcept>
#include <iostream>
#include <vector>
#include <string>
using namespace std;
// 入力フォルダ名の指定
string INPUT_FOLDER_NAME = "./input_image/";
#include <iostream>
#include <Windows.h>
#include <stdexcept>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
string INPUT_FOLDER_NAME = "./input_image/";
string OUTPUT_FOLDER_NAME = "./output_image/";
#include <iostream>
#include <Windows.h>
#include <stdexcept>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
string INPUT_FOLDER_NAME = "./input_image/";
string OUTPUT_FOLDER_NAME = "./output_image/";
#include <iostream>
#include <Windows.h>
#include <stdexcept>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
#define PI 3.141592653589793
string INPUT_FOLDER_NAME = "./input_image/";