-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgiant.camera_models.split_camera.html
More file actions
193 lines (165 loc) · 9.79 KB
/
giant.camera_models.split_camera.html
File metadata and controls
193 lines (165 loc) · 9.79 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>giant.camera_models.split_camera — GIANT 2.0.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=3f530b75" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=aae3c237" />
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
<script src="_static/documentation_options.js?v=51b770b3"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="icon" href="_static/logo.ico"/>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="copyright" title="Copyright" href="copyright.html" />
<link rel="next" title="CameraFrameSplitAxis" href="split_camera/giant.camera_models.split_camera.CameraFrameSplitAxis.html" />
<link rel="prev" title="FisheyeModel.project_directions" href="fisheye_model/giant.camera_models.fisheye_model.FisheyeModel.project_directions.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
</head><body>
<div class="document">
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<p class="logo">
<a href="index.html">
<img class="logo" src="_static/logo.png" alt="Logo" />
</a>
</p>
<p class="blurb">A powerful API for Optical Navigation</p>
<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installing GIANT</a></li>
<li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="giant.html">API Reference</a></li>
<li class="toctree-l1"><a class="reference internal" href="giant.html#indices">Indices</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
<li class="toctree-l1"><a class="reference internal" href="copyright.html">Copyright</a></li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="index.html">Documentation overview</a><ul>
<li><a href="giant.html">API Reference</a><ul>
<li><a href="giant.camera_models.html">giant.camera_models</a><ul>
<li>Previous: <a href="fisheye_model/giant.camera_models.fisheye_model.FisheyeModel.project_directions.html" title="previous chapter">FisheyeModel.project_directions</a></li>
<li>Next: <a href="split_camera/giant.camera_models.split_camera.CameraFrameSplitAxis.html" title="next chapter">CameraFrameSplitAxis</a></li>
</ul></li>
</ul></li>
</ul></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="documentwrapper">
<div class="bodywrapper">
<div class="related top">
<nav id="rellinks">
<ul>
<li>
←
<a href="fisheye_model/giant.camera_models.fisheye_model.FisheyeModel.project_directions.html" title="Previous document">FisheyeModel.project_directions</a>
</li>
<li>
<a href="split_camera/giant.camera_models.split_camera.CameraFrameSplitAxis.html" title="Next document">CameraFrameSplitAxis</a>
→
</li>
</ul>
</nav>
</div>
<div class="body" role="main">
<section id="module-giant.camera_models.split_camera">
<span id="giant-camera-models-split-camera"></span><h1>giant.camera_models.split_camera<a class="headerlink" href="#module-giant.camera_models.split_camera" title="Link to this heading">¶</a></h1>
<p>This module provides the SplitCamera class, which allows for combining two different camera models into a single model.</p>
<p>The SplitCamera class is useful when dealing with cameras that have different properties or behaviors in different
regions of the image or camera frame. It allows you to specify two different camera models and define how to split
between them based on either the camera frame coordinates or the image plane coordinates.</p>
<section id="use">
<h2>Use<a class="headerlink" href="#use" title="Link to this heading">¶</a></h2>
<p>To use the SplitCamera class, you need to provide two camera models and specify how to split between them:</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span><span class="w"> </span><span class="nn">giant.camera_models</span><span class="w"> </span><span class="kn">import</span> <span class="n">PinholeModel</span><span class="p">,</span> <span class="n">SplitCamera</span>
<span class="gp">>>> </span><span class="n">model1</span> <span class="o">=</span> <span class="n">PinholeModel</span><span class="p">(</span><span class="o">...</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">model2</span> <span class="o">=</span> <span class="n">PinholeModel</span><span class="p">(</span><span class="o">...</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">split_camera</span> <span class="o">=</span> <span class="n">SplitCamera</span><span class="p">(</span><span class="n">model1</span><span class="p">,</span> <span class="n">model2</span><span class="p">,</span> <span class="n">camera_frame_split_axis</span><span class="o">=</span><span class="n">CameraFrameSplitAxis</span><span class="o">.</span><span class="n">X</span><span class="p">,</span>
<span class="gp">... </span> <span class="n">camera_frame_split_threshold</span><span class="o">=</span><span class="mf">0.0</span><span class="p">)</span>
</pre></div>
</div>
<p>The SplitCamera will then use model1 for points where the X coordinate in the camera frame is less than or equal to 0.0,
and model2 for points where the X coordinate is greater than 0.0.</p>
</section>
<p class="rubric">Classes</p>
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="split_camera/giant.camera_models.split_camera.SplitCamera.html#giant.camera_models.split_camera.SplitCamera" title="giant.camera_models.split_camera.SplitCamera"><code class="xref py py-obj docutils literal notranslate"><span class="pre">SplitCamera</span></code></a></p></td>
<td><p>A camera model that combines two different camera models for different regions of the detector.</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Enums</p>
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="split_camera/giant.camera_models.split_camera.CameraFrameSplitAxis.html#giant.camera_models.split_camera.CameraFrameSplitAxis" title="giant.camera_models.split_camera.CameraFrameSplitAxis"><code class="xref py py-obj docutils literal notranslate"><span class="pre">CameraFrameSplitAxis</span></code></a></p></td>
<td><p>An enumeration specifying the axis to use for splitting in the camera frame.</p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="split_camera/giant.camera_models.split_camera.ImagePlaneSplitAxis.html#giant.camera_models.split_camera.ImagePlaneSplitAxis" title="giant.camera_models.split_camera.ImagePlaneSplitAxis"><code class="xref py py-obj docutils literal notranslate"><span class="pre">ImagePlaneSplitAxis</span></code></a></p></td>
<td><p>An enumeration specifying the axis to use for splitting in the image plane.</p></td>
</tr>
</tbody>
</table>
<div class="toctree-wrapper compound">
</div>
<div class="line-block">
<div class="line"><br /></div>
</div>
</section>
</div>
<div class="related bottom">
<nav id="rellinks">
<ul>
<li>
←
<a href="fisheye_model/giant.camera_models.fisheye_model.FisheyeModel.project_directions.html" title="Previous document">FisheyeModel.project_directions</a>
</li>
<li>
<a href="split_camera/giant.camera_models.split_camera.CameraFrameSplitAxis.html" title="Next document">CameraFrameSplitAxis</a>
→
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
<div style="display:inline-block;vertical-align:middle;">
<img src="/_static/NASA_logo.svg" alt="NASA" style="width:80px;height:80px;">
</div>
<div style="display:inline-block;vertical-align:middle;">
©2023 United States Government |
NASA Official: <a href="mailto:andrew.j.liounis@nasa.gov">Andrew Liounis</a> |
Curator: <a href="mailto:andrew.j.liounis@nasa.gov">Andrew Liounis</a>
<br>
Last updated on Sep 03, 2025 |
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 8.2.3</a>
& <a href="https://github.com/bitprophet/alabaster">Alabaster 1.0.0</a>
|
<a href="https://www.nasa.gov/about/highlights/HP_Privacy.html">Privacy Policy/Notices</a>
</div>
</div>
</body>
</html>