source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/random_frame_pairs.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 283 bytes
Line 
1function randompairs = random_frame_pairs(n)
2% Given n frames, pick all different pairs of frames, and randomize their order.
3% This is returned in a 2xn matrix, where each column gives a pair of frames.
4pairs = (all_ntuples(2,n))';
5randompairs = pairs(1:2,randperm(size(pairs,2)));
Note: See TracBrowser for help on using the repository browser.