Skip to content

Instantly share code, notes, and snippets.

View patricksnape's full-sized avatar

Patrick Snape patricksnape

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patricksnape
patricksnape / flann.patch
Last active September 23, 2017 20:42
Fixes #5667
--- modules/features2d/src/matchers.cpp
+++ modules/features2d/src/matchers.cpp
@@ -517,30 +517,32 @@ DescriptorMatcher::~DescriptorMatcher()
void DescriptorMatcher::add( InputArrayOfArrays _descriptors )
{
- if(_descriptors.isUMatVector())
+ if( _descriptors.isUMatVector() )
{
std::vector<UMat> descriptors;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patricksnape
patricksnape / IntText Bug.ipynb
Created March 16, 2015 14:45
IntText Layout Bug
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patricksnape
patricksnape / tps_batch.py
Created March 9, 2015 20:58
TPS Batched Warps
from __future__ import division
def warp_to_shape(image, template_shape, transform, batch_size=5000,
warp_landmarks=False, order=1, mode='constant', cval=0.):
"""
Return a copy of this image warped into a different reference space.
Parameters
----------