Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dot-tracking-package/interpolate_tracks.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
23 lines (20 sloc)
714 Bytes
This file contains 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
function [X_grid, Y_grid, U_grid, V_grid] = interpolate_tracks(X, Y, U, V, grid_spacing) | |
% Function to interpolate tracked displacements onto a grid | |
% | |
% INPUTS: | |
% X, Y: x, y co-ordinates of the tracks (pix.) | |
% U, V: x, y displacements of the tracks (pix.) | |
% grid_spacing: desired grid spacing - usually the dot spacing (pix.) | |
% | |
% OUTPUTS: | |
% X_grid, Y_grid: co-ordinate grid | |
% U_grid, V_grid: interpolated displacements on the grid | |
% | |
% AUTHOR: | |
% Lalit Rajendran (lrajendr@purdue.edu) | |
% create grid | |
[X_grid, Y_grid] = create_grid(X, Y, grid_spacing); | |
% interpolate displacements | |
U_grid = interpolate_to_grid(X, Y, U, X_grid, Y_grid); | |
V_grid = interpolate_to_grid(X, Y, V, X_grid, Y_grid); | |
end |