Skip to content

Instantly share code, notes, and snippets.

View ankit-maverick's full-sized avatar

Ankit Agrawal ankit-maverick

  • IIT Bombay
  • Mumbai
View GitHub Profile

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

In [10]: a = np.arange(20).reshape(10,2).astype(np.float)
In [12]: a[3,1] = np.nan
In [14]: a[5,0] = np.nan
In [15]: a
Out[15]:
array([[ 0., 1.],
[ 2., 3.],
def match_keypoints_brief(keypoints1, descriptors1, keypoints2,
descriptors2, threshold=0.40):
"""Match keypoints described using BRIEF descriptors in one image to
those in second image.
Parameters
----------
keypoints1 : (M, 2) ndarray
M Keypoints from the first image described using skimage.feature.brief
import numpy as np
from skimage import data
from skimage import transform as tf
from skimage.feature import pairwise_hamming_distance, brief, match_keypoints_brief, corner_harris, corner_peaks, keypoints_orb, descriptor_orb
from skimage.color import rgb2gray
from skimage import img_as_float
import matplotlib.pyplot as plt
rotate = np.pi/2
translate = (512, 0)