Simple function for local patch extraction from OpenCV keypoints.
MIT License
Simple function for local patch extraction from local features keypoints. Accepts following formats:
Usage:
from extract_patches import extract_patches
PATCH_SIZE = 32
mrSize = 3.0
patches = extract_patches(kps1, img1, PATCH_SIZE, mrSize, 'cv2')
See another example in this notebook
Thanks to Vassileios for the baseline implementation.