This file contains 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
# Author : frakw | |
# Date : 2023-12-04 | |
# Description : Convert all labelme generated json into mask image in every subdirectory | |
# Usage : python labelme_gen_mask_img.py | |
import json | |
import numpy as np | |
import cv2 | |
import os | |
import fnmatch |
This file contains 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
target_type: 'aprilgrid' #gridtype | |
tagCols: 6 #number of apriltags | |
tagRows: 6 #number of apriltags | |
tagSize: 0.03 #size of apriltag, edge to edge [m] | |
tagSpacing: 0.3 #ratio of space between tags to tagSize | |
codeOffset: 0 #code offset for the first tag in the aprilboard |
This file contains 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 "imgui/imgui.h" | |
#include "imgui/imgui_impl_glfw.h" | |
#include "imgui/imgui_impl_opengl3.h" | |
#include <glad/glad.h> | |
#include <GLFW/glfw3.h> | |
#include <iostream> | |
#include <string> | |
int main(void) | |
{ |
This file contains 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 <iostream> | |
#include <string> | |
#include <random> | |
#include <fstream> | |
#include <algorithm> | |
#include <time.h> | |
#include <chrono> | |
#include <limits> | |
#include <opencv2/opencv.hpp> | |
#define CVPLOT_HEADER_ONLY |
This file contains 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.Collections; | |
using System.Collections.Generic; | |
using System; | |
using System.IO; | |
using System.Text; | |
using UnityEngine; | |
[System.Serializable] | |
public class EarthCoord | |
{ |
This file contains 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 <string> | |
#include <set> | |
#include <iostream> | |
#include <iterator> | |
using namespace std; | |
#define MAX_ARRAY_SIZE 299983//list陣列大小,用質數可以減少碰撞 | |
//參考自:https://stackoverflow.com/questions/7666509/hash-function-for-string | |
unsigned int djb2(string& word) {//hash function |
This file contains 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 <fstream> | |
#include <string> | |
#include <set> | |
#include <iostream> | |
#include <numeric> | |
#include <unordered_map> | |
#include <iterator> | |
#include <chrono> | |
#include <sstream> | |
using namespace std; |
This file contains 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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <set> | |
#include <algorithm> | |
#include <iomanip> | |
using namespace std; | |
template<typename N,typename P> | |
//N 為名稱資料型別 P為probability資料型別 |
This file contains 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 <iostream> | |
#include <string> | |
#include <sstream> | |
using namespace std; | |
template<typename element,typename order>//element是heap內的資料型別(int),order是優先權的資料型別(char) | |
class heap_node {//heap node的class | |
public: | |
heap_node() {} | |
heap_node(element i, order p, heap_node<element, order>* f) : data(i), priority(p),father(f) {} | |
template<typename, typename> friend class heap; |
This file contains 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
digraph STG { | |
rankdir=LR; | |
INIT [shape=point]; | |
a [label="a"]; | |
b [label="b"]; | |
c [label="c"]; | |
d [label="d"]; | |
e [label="e"]; | |
f [label="f"]; |
NewerOlder