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
# drawMatches numpy version | |
def draw_matches(img1, kp1, img2, kp2, matches, color=None): | |
"""Draws lines between matching keypoints of two images. | |
Keypoints not in a matching pair are not drawn. | |
Places the images side by side in a new image and draws circles | |
around each keypoint, with line segments connecting matching pairs. | |
You can tweak the r, thickness, and figsize values as needed. | |
Args: | |
img1: An openCV image ndarray in a grayscale or color format. | |
kp1: ndarray [n1, 2] |
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 <iostream> | |
#include <chrono> | |
#include <ctime> | |
#include <cmath> | |
class Timer | |
{ | |
public: | |
void start() | |
{ |