source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/image3dstiching/Batch/CleanMatchShow.sh @ 37

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

Added original make3d

File size: 5.7 KB
Line 
1# *  This code was used in the following articles:
2# *  [1] Learning 3-D Scene Structure from a Single Still Image,
3# *      Ashutosh Saxena, Min Sun, Andrew Y. Ng,
4# *      In ICCV workshop on 3D Representation for Recognition (3dRR-07), 2007.
5# *      (best paper)
6# *  [2] 3-D Reconstruction from Sparse Views using Monocular Vision,
7# *      Ashutosh Saxena, Min Sun, Andrew Y. Ng,
8# *      In ICCV workshop on Virtual Representations and Modeling
9# *      of Large-scale environments (VRML), 2007.
10# *  [3] 3-D Depth Reconstruction from a Single Still Image,
11# *      Ashutosh Saxena, Sung H. Chung, Andrew Y. Ng.
12# *      International Journal of Computer Vision (IJCV), Aug 2007.
13# *  [6] Learning Depth from Single Monocular Images,
14# *      Ashutosh Saxena, Sung H. Chung, Andrew Y. Ng.
15# *      In Neural Information Processing Systems (NIPS) 18, 2005.
16# *
17# *  These articles are available at:
18# *  http://make3d.stanford.edu/publications
19# *
20# *  We request that you cite the papers [1], [3] and [6] in any of
21# *  your reports that uses this code.
22# *  Further, if you use the code in image3dstiching/ (multiple image version),
23# *  then please cite [2].
24# * 
25# *  If you use the code in third_party/, then PLEASE CITE and follow the
26# *  LICENSE OF THE CORRESPONDING THIRD PARTY CODE.
27# *
28# *  Finally, this code is for non-commercial use only.  For further
29# *  information and to obtain a copy of the license, see
30# *
31# *  http://make3d.stanford.edu/publications/code
32# *
33# *  Also, the software distributed under the License is distributed on an
34# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
35# *  express or implied.   See the License for the specific language governing
36# *  permissions and limitations under the License.
37# *
38# */
39
40#!/bin/bash
41
42# Change to the submission directory
43cd $PBS_O_WORKDIR
44
45# Run the m-file
46matlab -nojvm -nodisplay > CleanMatches.out << EOF
47
48% Run your MATLAB commands inlin
49cd ..
50if false
51k = 1;
52PairList = [];
53for i = 1:5%length(ImgInfo)
54        for j = (i+1):length(ImgInfo)
55                PairList{k,1} = strrep(ImgInfo(i).ExifInfo.name, '.jpg', '');
56                PairList{k,2} = strrep(ImgInfo(j).ExifInfo.name, '.jpg', '');
57                k = k + 1;
58        end
59end
60else
61        if false
62        PairList = [ PairList; {'IMG_0664','IMG_0668'}];
63        PairList = [ PairList; {'IMG_0668','IMG_0674'}];
64        PairList = [ PairList; {'IMG_0674','IMG_0676'}];
65        PairList = [ PairList; {'IMG_0676','IMG_0677'}];
66        PairList = [ PairList; {'IMG_0677','IMG_0678'}];
67
68        % inlcude all posible pairs
69        PairList = [ PairList; {'IMG_0663','IMG_0665'}];
70        PairList = [ PairList; {'IMG_0663','IMG_0667'}];
71        PairList = [ PairList; {'IMG_0663','IMG_0669'}];
72        PairList = [ PairList; {'IMG_0663','IMG_0670'}];
73        PairList = [ PairList; {'IMG_0663','IMG_0671'}];
74
75        PairList = [ PairList; {'IMG_0664','IMG_0665'}];
76        PairList = [ PairList; {'IMG_0664','IMG_0666'}];
77        PairList = [ PairList; {'IMG_0664','IMG_0674'}];
78        PairList = [ PairList; {'IMG_0664','IMG_0675'}];
79        PairList = [ PairList; {'IMG_0664','IMG_0678'}];
80
81        PairList = [ PairList; {'IMG_0665','IMG_0667'}];
82        PairList = [ PairList; {'IMG_0665','IMG_0667'}];
83        PairList = [ PairList; {'IMG_0665','IMG_0671'}];
84        PairList = [ PairList; {'IMG_0665','IMG_0677'}];
85        PairList = [ PairList; {'IMG_0665','IMG_0679'}];
86
87        PairList = [ PairList; {'IMG_0666','IMG_0667'}];
88        PairList = [ PairList; {'IMG_0666','IMG_0668'}];
89        PairList = [ PairList; {'IMG_0666','IMG_0671'}];
90        PairList = [ PairList; {'IMG_0666','IMG_0677'}];
91        PairList = [ PairList; {'IMG_0666','IMG_0674'}];
92        end
93%-----------------
94        if false
95        PairList = [ PairList; {'IMG_0667','IMG_0670'}];
96        PairList = [ PairList; {'IMG_0667','IMG_0673'}];
97        PairList = [ PairList; {'IMG_0667','IMG_0674'}];
98        PairList = [ PairList; {'IMG_0667','IMG_0677'}];
99        PairList = [ PairList; {'IMG_0667','IMG_0678'}];
100
101        PairList = [ PairList; {'IMG_0668','IMG_0670'}];
102        PairList = [ PairList; {'IMG_0668','IMG_0673'}];
103        PairList = [ PairList; {'IMG_0668','IMG_0674'}];
104        PairList = [ PairList; {'IMG_0668','IMG_0677'}];
105        PairList = [ PairList; {'IMG_0668','IMG_0678'}];
106
107        PairList = [ PairList; {'IMG_0669','IMG_0670'}];
108        PairList = [ PairList; {'IMG_0669','IMG_0671'}];
109        PairList = [ PairList; {'IMG_0669','IMG_0673'}];
110
111        PairList = [ PairList; {'IMG_0670','IMG_0673'}];
112        PairList = [ PairList; {'IMG_0670','IMG_0674'}];
113        PairList = [ PairList; {'IMG_0670','IMG_0683'}];
114        PairList = [ PairList; {'IMG_0670','IMG_0684'}];
115
116        PairList = [ PairList; {'IMG_0671','IMG_0673'}];
117        PairList = [ PairList; {'IMG_0671','IMG_0674'}];
118        PairList = [ PairList; {'IMG_0671','IMG_0683'}];
119        PairList = [ PairList; {'IMG_0671','IMG_0684'}];
120
121        PairList = [ PairList; {'IMG_0673','IMG_0674'}];
122        PairList = [ PairList; {'IMG_0673','IMG_0683'}];
123        PairList = [ PairList; {'IMG_0673','IMG_0684'}];
124        end
125%----------------------
126        if true
127        PairList = [ PairList; {'IMG_0674','IMG_0676'}];
128        PairList = [ PairList; {'IMG_0674','IMG_0677'}];
129        PairList = [ PairList; {'IMG_0674','IMG_0678'}];
130        PairList = [ PairList; {'IMG_0674','IMG_0679'}];
131
132        PairList = [ PairList; {'IMG_0675','IMG_0678'}];
133        PairList = [ PairList; {'IMG_0675','IMG_0677'}];
134        PairList = [ PairList; {'IMG_0675','IMG_0678'}];
135        PairList = [ PairList; {'IMG_0675','IMG_0679'}];
136
137        PairList = [ PairList; {'IMG_0676','IMG_0677'}];
138
139        PairList = [ PairList; {'IMG_0677','IMG_0678'}];
140        PairList = [ PairList; {'IMG_0677','IMG_0679'}];
141
142        PairList = [ PairList; {'IMG_0678','IMG_0679'}];
143        PairList = [ PairList; {'IMG_0678','IMG_0680'}];
144        PairList = [ PairList; {'IMG_0678','IMG_0681'}];
145
146        PairList = [ PairList; {'IMG_0679','IMG_0680'}];
147        PairList = [ PairList; {'IMG_0679','IMG_0681'}];
148        PairList = [ PairList; {'IMG_0679','IMG_0682'}];
149
150        PairList = [ PairList; {'IMG_0683','IMG_0684'}];
151        end
152end
153EvaluateMatchesTracks
154cd Batch/;
155
156% Exit MATLAB
157exit
158EOF
159
160# Display the output
161cat CleanMatches.out
Note: See TracBrowser for help on using the repository browser.