Skip to content

Instantly share code, notes, and snippets.

View eshafeeqe's full-sized avatar

Shafeeq E eshafeeqe

View GitHub Profile
@eshafeeqe
eshafeeqe / cherno_opengl_red_triangle.cpp
Last active August 31, 2019 03:27
Working code of cherno's opengl series with ubuntu 14.04 using nvidia graphics card.
#include "GL/glew.h" // include GLEW and new version of GL on Windows
#include "GLFW/glfw3.h" // GLFW helper library
#include <iostream>
static unsigned int CompileShader(unsigned int type, const std::string& source)
{
unsigned int id = glCreateShader(type);
const char* src = source.c_str();
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys , os , random
import cv, cv2
import numpy as np
from numpy.lib.stride_tricks import as_strided
SURF_THRESHOLD = 500
SURF_MATCH_THRESHOLD = 0.3
SURF_RATIO_THRESHOLD = 0.9
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys , os , random
import cv, cv2
import numpy as np
from numpy.lib.stride_tricks import as_strided
SURF_THRESHOLD = 1000
SURF_MATCH_THRESHOLD = 0.3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys , os , random
import cv, cv2
import numpy as np
from numpy.lib.stride_tricks import as_strided
SURF_THRESHOLD = 1000
SURF_MATCH_THRESHOLD = 0.4
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys , os , random
import cv, cv2
import numpy as np
from numpy.lib.stride_tricks import as_strided
SSD_THRESHOLD = 80
SSD_RATIO_THRESHOLD = 0.95
NCC_RATIO_THRESHOLD = 0.95