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 <GL/glut.h> | |
#include<windows.h> | |
#include"Vector.h" | |
using namespace std; | |
#define WINDOW_WIDTH (640.0) | |
#define WINDOW_HEIGHT (480.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
#include"Vector.h" | |
#include<vector> | |
using namespace std; | |
/* | |
KdTreeMulti |
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<math.h> | |
#define D3DX_PI ((double) 3.141592654f) | |
#define D3DX_1BYPI ((double) 0.318309886f) | |
#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f)) | |
#define D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI)) |
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 "Task.h" | |
CTask::CTask(void) | |
{ | |
} | |
CTask::~CTask(void) | |
{ | |
} |
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 "DxLib.h" | |
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow) | |
{ | |
int Key; | |
SetGraphMode(640, 480, 16); | |
ChangeWindowMode(true); | |
if (DxLib_Init() == -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
#include <Windows.h> | |
#include <shlobj.h> | |
#include <map> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include "utillity.h" | |
static int CALLBACK SHBrowseProc(HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData) |
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
std::wstring_convert<std::codecvt_utf8<wchar_t> > m_codecvt_utf8; | |
return m_codecvt_utf8.from_bytes(str.c_str()); |
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
std::vector<std::string> split(std::string text,std::string delim ) | |
{ | |
int index = 0, current = 0; | |
std::vector<std::string> strs; | |
while ((index = text.find_first_of(delim, current)) != std::string::npos) | |
{ | |
strs.push_back(text.substr(current, index - current)); | |
current = index + 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
struct Depth | |
{ | |
int m_w, m_h; | |
std::vector<std::vector<double>> depth; | |
public: | |
bool load_depth(std::string name) | |
{ | |
//delete | |
if (!depth.empty()) |
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 "opencv\cv.h" | |
#include "opencv\highgui.h" | |
#if CV_MAJOR_VERSION > 1 | |
#include <opencv2/legacy/legacy.hpp> | |
#endif | |
//============================================================================ | |
bool IsEdgeIn(int ind1, int ind2, | |
const std::vector<std::vector<int> > &edges) |
OlderNewer