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
def find_homography(X, X_dash): | |
''' | |
Given a set of N correspondences of the form [x,y] and [x',y'], fit homography. | |
''' | |
equations = [] | |
num_points = X.shape[0] | |
for i in range(num_points): | |
x, y = X[i, 0], X[i, 1] # Original points | |
x_dash, y_dash = X_dash[i, 0], X_dash[i, 1] # Transformed points |
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
location ~* /(.*\.pdf) { | |
types { application/octet-stream .pdf; } | |
default_type application/octet-stream; | |
} |