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

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

Added original make3d

File size: 7.3 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 > Model.out << EOF
47
48% Run your MATLAB commands inlin
49cd ..
50Fdir ='/afs/cs/group/reconstruction3d/scratch/TestMultipleImage/COM4_070525_001900_gates';
51image3dstichingSetPath
52WlrName = 'GateMetaTestGateHilbertFixScalingRemoveOcclu_thre1'
53PairList = [];
54if false %GateMetaTestGates2Hilber
55%       PairList = [ PairList; {'IMG_0663','IMG_0668'}];
56        PairList = [ PairList; {'IMG_0669','IMG_0668'}];
57        PairList = [ PairList; {'IMG_0668','IMG_0677'}];
58%       PairList = [ PairList; {'IMG_0677','IMG_0675'}];
59%       PairList = [ PairList; {'IMG_0675','IMG_0676'}];
60end
61if false
62        PairList = [ PairList; {'IMG_0677','IMG_0675'}];
63        PairList = [ PairList; {'IMG_0675','IMG_0676'}];
64end
65if false % 2Img
66%       PairList = [ PairList; {'IMG_0670','IMG_0671'}];
67        PairList = [ PairList; {'IMG_0671','IMG_0673'}]; % test little translation cases
68end
69if false
70        PairList = [ PairList; {'IMG_0676','IMG_0675'}];
71        PairList = [ PairList; {'IMG_0675','IMG_0677'}];
72        PairList = [ PairList; {'IMG_0677','IMG_0678'}];
73        PairList = [ PairList; {'IMG_0678','IMG_0679'}];
74        PairList = [ PairList; {'IMG_0679','IMG_0681'}];
75end
76if true %GateMetaTestGateHilbertFixScalingRemoveOcclu
77%       PairList = [ PairList; {'IMG_0669','IMG_0664'}];
78        PairList = [ PairList; {'IMG_0665','IMG_0668'}];
79        PairList = [ PairList; {'IMG_0668','IMG_0677'}];
80        PairList = [ PairList; {'IMG_0677','IMG_0675'}];
81        PairList = [ PairList; {'IMG_0675','IMG_0676'}];
82end
83if false % GateMetaTestGatesMoreHilberLittle_ImgInfoFixed2
84        PairList = [ PairList; {'IMG_0669','IMG_0663'}];
85%       PairList = [ PairList; {'IMG_0663','IMG_0665'}];
86        PairList = [ PairList; {'IMG_0663','IMG_0668'}];
87%       PairList = [ PairList; {'IMG_0664','IMG_0668'}];
88        PairList = [ PairList; {'IMG_0668','IMG_0677'}];
89        PairList = [ PairList; {'IMG_0677','IMG_0675'}];
90        PairList = [ PairList; {'IMG_0675','IMG_0676'}];
91end
92if false
93        PairList = [ PairList; {'IMG_0663','IMG_0665'}];
94        PairList = [ PairList; {'IMG_0663','IMG_0667'}];
95        PairList = [ PairList; {'IMG_0663','IMG_0669'}];
96        PairList = [ PairList; {'IMG_0663','IMG_0670'}];
97        PairList = [ PairList; {'IMG_0663','IMG_0671'}];
98
99        PairList = [ PairList; {'IMG_0664','IMG_0665'}];
100        PairList = [ PairList; {'IMG_0664','IMG_0666'}];
101        PairList = [ PairList; {'IMG_0664','IMG_0674'}];
102        PairList = [ PairList; {'IMG_0664','IMG_0675'}];
103        PairList = [ PairList; {'IMG_0664','IMG_0678'}];
104
105        PairList = [ PairList; {'IMG_0665','IMG_0667'}];
106        PairList = [ PairList; {'IMG_0665','IMG_0667'}];
107        PairList = [ PairList; {'IMG_0665','IMG_0671'}];
108        PairList = [ PairList; {'IMG_0665','IMG_0677'}];
109        PairList = [ PairList; {'IMG_0665','IMG_0679'}];
110
111        PairList = [ PairList; {'IMG_0666','IMG_0667'}];
112        PairList = [ PairList; {'IMG_0666','IMG_0668'}];
113        PairList = [ PairList; {'IMG_0666','IMG_0671'}];
114        PairList = [ PairList; {'IMG_0666','IMG_0677'}];
115        PairList = [ PairList; {'IMG_0666','IMG_0674'}];
116end
117if false
118        PairList = [ PairList; {'IMG_0667','IMG_0670'}];
119        PairList = [ PairList; {'IMG_0667','IMG_0673'}];
120        PairList = [ PairList; {'IMG_0667','IMG_0674'}];
121        PairList = [ PairList; {'IMG_0667','IMG_0677'}];
122        PairList = [ PairList; {'IMG_0667','IMG_0678'}];
123
124        PairList = [ PairList; {'IMG_0668','IMG_0670'}];
125        PairList = [ PairList; {'IMG_0668','IMG_0673'}];
126        PairList = [ PairList; {'IMG_0668','IMG_0674'}];
127        PairList = [ PairList; {'IMG_0668','IMG_0677'}];
128        PairList = [ PairList; {'IMG_0668','IMG_0678'}];
129
130        PairList = [ PairList; {'IMG_0669','IMG_0670'}];
131        PairList = [ PairList; {'IMG_0669','IMG_0671'}];
132        PairList = [ PairList; {'IMG_0669','IMG_0673'}];
133
134        PairList = [ PairList; {'IMG_0670','IMG_0673'}];
135        PairList = [ PairList; {'IMG_0670','IMG_0674'}];
136        PairList = [ PairList; {'IMG_0670','IMG_0683'}];
137        PairList = [ PairList; {'IMG_0670','IMG_0684'}];
138
139        PairList = [ PairList; {'IMG_0671','IMG_0673'}];
140        PairList = [ PairList; {'IMG_0671','IMG_0674'}];
141        PairList = [ PairList; {'IMG_0671','IMG_0683'}];
142        PairList = [ PairList; {'IMG_0671','IMG_0684'}];
143
144        PairList = [ PairList; {'IMG_0673','IMG_0674'}];
145        PairList = [ PairList; {'IMG_0673','IMG_0683'}];
146        PairList = [ PairList; {'IMG_0673','IMG_0684'}];
147end
148if false
149        PairList = [ PairList; {'IMG_0674','IMG_0676'}];
150        PairList = [ PairList; {'IMG_0674','IMG_0677'}];
151        PairList = [ PairList; {'IMG_0674','IMG_0678'}];
152        PairList = [ PairList; {'IMG_0674','IMG_0679'}];
153
154        PairList = [ PairList; {'IMG_0675','IMG_0678'}];
155        PairList = [ PairList; {'IMG_0675','IMG_0677'}];
156        PairList = [ PairList; {'IMG_0675','IMG_0678'}];
157        PairList = [ PairList; {'IMG_0675','IMG_0679'}];
158
159        PairList = [ PairList; {'IMG_0676','IMG_0677'}];
160
161        PairList = [ PairList; {'IMG_0677','IMG_0678'}];
162        PairList = [ PairList; {'IMG_0677','IMG_0679'}];
163
164        PairList = [ PairList; {'IMG_0678','IMG_0679'}];
165        PairList = [ PairList; {'IMG_0678','IMG_0680'}];
166        PairList = [ PairList; {'IMG_0678','IMG_0681'}];
167
168        PairList = [ PairList; {'IMG_0679','IMG_0680'}];
169        PairList = [ PairList; {'IMG_0679','IMG_0681'}];
170        PairList = [ PairList; {'IMG_0679','IMG_0682'}];
171
172        PairList = [ PairList; {'IMG_0683','IMG_0684'}];
173end
174FlagSetup;
175
176tic;
177main( Fdir, PairList, WlrName, 0, Flag);
178toc;
179
180cd Batch/;
181
182% Exit MATLAB
183exit
184EOF
185
186# Display the output
187cat Model.out
Note: See TracBrowser for help on using the repository browser.