[37] | 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 | function []=InitialPath(CompileFlag) |
---|
| 40 | |
---|
| 41 | % 0) clean bin |
---|
| 42 | % system('rm -rf ./bin'); |
---|
| 43 | |
---|
| 44 | if nargin < 1 |
---|
| 45 | CompileFlag = false; |
---|
| 46 | end |
---|
| 47 | |
---|
| 48 | if CompileFlag |
---|
| 49 | % makefile and create every binary file in bin folder |
---|
| 50 | system('mkdir ./bin/'); |
---|
| 51 | |
---|
| 52 | % InitialFolder = pwd; |
---|
| 53 | cd ./bin |
---|
| 54 | |
---|
| 55 | % 1) ../third_party/Superpixels/SourceCode/segment/segmentImgOpt.cpp |
---|
| 56 | mex ../../third_party/Superpixels/SourceCode/segment/segmentImgOpt.cpp |
---|
| 57 | % system('mv ../third_party/Superpixels/SourceCode/segment/segmentImgOpt.mex* ./bin'); |
---|
| 58 | |
---|
| 59 | % 2) ./Debug/SparseAverageSample2DOptimized.cpp |
---|
| 60 | mex .././Features/SparseAverageSample2DOptimized.cpp |
---|
| 61 | % system('mv ./Debug/SparseAverageSample2DOptimized.mex* ./bin'); |
---|
| 62 | |
---|
| 63 | % 3) ./Debug/WrlFacestHroiReduce.cpp |
---|
| 64 | mex .././Rendering/WrlFacestHroiReduce.cpp |
---|
| 65 | % system('mv ./Debug/WrlFacestHroiReduce.mex* ./bin'); |
---|
| 66 | |
---|
| 67 | % 4) ./Debug/SupRayAlign.cpp |
---|
| 68 | mex .././Inference/SupRayAlign.cpp |
---|
| 69 | % system('mv ./Debug/SupRayAlign.mex* ./bin'); |
---|
| 70 | |
---|
| 71 | cd ../; |
---|
| 72 | end |
---|
| 73 | |
---|
| 74 | % this script addd all path needed as flag s sepecified |
---|
| 75 | |
---|
| 76 | % setup flag |
---|
| 77 | CvxFlag = false; |
---|
| 78 | YalmipFlag = true; |
---|
| 79 | SeDuMiFlag = true; |
---|
| 80 | LMIrankFlag = true; |
---|
| 81 | |
---|
| 82 | %addpath(genpath('~/SVN_REPOSITORY/trunk/')); |
---|
| 83 | addpath(genpath('../LearningCode/')); |
---|
| 84 | addpath(genpath('../LaserDataCollection/')); |
---|
| 85 | addpath(genpath('../third_party/EdgeLinkLineSegFit/')); |
---|
| 86 | addpath(genpath('../ec2/bin/mex/')); |
---|
| 87 | addpath('/usr/local/jacket/engine'); |
---|
| 88 | addpath('/usr/local/jacket/gfx'); |
---|
| 89 | addpath('/usr/local/jacket/gfx/mgl'); |
---|
| 90 | |
---|
| 91 | if CvxFlag |
---|
| 92 | % enble cvx |
---|
| 93 | % addpath('/afs/cs/group/reconstruction3d/Data/cvx'); |
---|
| 94 | addpath('../third_party/opt/cvx'); |
---|
| 95 | cvx_setup; |
---|
| 96 | end |
---|
| 97 | |
---|
| 98 | if YalmipFlag |
---|
| 99 | % add path for yalmip |
---|
| 100 | % addpath(genpath('/afs/cs/group/reconstruction3d/Data/yalmip')); |
---|
| 101 | addpath(genpath('../third_party/opt/yalmip')); |
---|
| 102 | end |
---|
| 103 | |
---|
| 104 | if SeDuMiFlag |
---|
| 105 | % add sedumi |
---|
| 106 | % path(path,'/afs/cs/group/reconstruction3d/Data/SeDuMi_1_1R3/SeDuMi_1_1'); |
---|
| 107 | addpath(genpath('../third_party/opt/SeDuMi_1_1R3') ); |
---|
| 108 | end |
---|
| 109 | |
---|
| 110 | if LMIrankFlag |
---|
| 111 | % add sedumi |
---|
| 112 | % path(path,'/afs/cs/group/reconstruction3d/Data/SeDuMi_1_1R3/SeDuMi_1_1'); |
---|
| 113 | path(path,'../third_party/opt/lmirank'); |
---|
| 114 | end |
---|