-
Notifications
You must be signed in to change notification settings - Fork 8
/
stereo.h
95 lines (76 loc) · 2.84 KB
/
stereo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance with the
// License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// __END_LICENSE__
/*
This version of the file has been stripped down to minimize dependencies.
- What should we do for external projects?
*/
/// \file stereo.h
///
#ifndef __ASP_STEREO_H__
#define __ASP_STEREO_H__
#include <boost/algorithm/string.hpp>
#include <vw/Core.h>
#include <vw/Image.h>
#include <vw/Math.h>
#include <vw/FileIO.h>
#include <asp/Core/StereoSettings.h>
#include <asp/Core/MedianFilter.h>
#include <asp/Core/Macros.h>
#include <asp/Core/Common.h>
//#include <asp/Sessions.h>
namespace po = boost::program_options;
namespace fs = boost::filesystem;
// Support for ISIS image files
#if defined(ASP_HAVE_PKG_ISISIO) && ASP_HAVE_PKG_ISISIO == 1
#include <asp/IsisIO/DiskImageResourceIsis.h>
#endif
// Boost headers
#include <boost/thread/xtime.hpp>
// Posix time is not fully supported in the version of Boost for RHEL
// Workstation 4
#ifdef __APPLE__
#include <boost/date_time/posix_time/posix_time.hpp>
#else
#include <ctime>
#endif
// The stereo pipeline has several stages, which are enumerated below.
enum { PREPROCESSING = 0,
CORRELATION,
REFINEMENT,
FILTERING,
POINT_CLOUD,
WIRE_MESH,
NUM_STAGES};
// Allows FileIO to correctly read/write these pixel types
namespace asp {
// Transform the crop window to be in reference to L.tif
vw::BBox2i transformed_crop_win(Options const& opt);
// Parse input command line arguments
void handle_arguments( int argc, char *argv[], Options& opt,
boost::program_options::options_description const&
additional_options);
// Register Session types
//void stereo_register_sessions();
// Checks for obvious user mistakes
void user_safety_checks(Options const& opt);
// Approximate search range by looking at interest point match file
vw::BBox2i approximate_search_range(std::string const& out_prefix,
std::string const& left_sub_file,
std::string const& right_sub_file,
float scale);
} // end namespace vw
#endif//__ASP_STEREO_H__