-
Notifications
You must be signed in to change notification settings - Fork 1
/
3dBorderExtractionImg_8cpp_source.html
160 lines (158 loc) · 15.3 KB
/
3dBorderExtractionImg_8cpp_source.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGtal: 3dBorderExtractionImg.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">DGtal
 <span id="projectnumber">1.5.beta</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('3dBorderExtractionImg_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">3dBorderExtractionImg.cpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="3dBorderExtractionImg_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#include <iostream></span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include "DGtal/base/Common.h"</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#include "DGtal/base/Common.h"</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#include "DGtal/io/readers/VolReader.h"</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#include "DGtal/images/ImageSelector.h"</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include "DGtal/images/imagesSetsUtils/SetFromImage.h"</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#include "DGtal/io/viewers/Viewer3D.h"</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor">#include "DGtal/helpers/StdDefs.h"</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#include "ConfigExamples.h"</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">using namespace </span><a class="code" href="namespaceDGtal.html">DGtal</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="3dBorderExtractionImg_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627"> 65</a></span> <span class="keywordtype">int</span> <a class="code" href="3dBorderExtractionImg_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>( <span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv )</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  std::string inputFilename = examplesPath + <span class="stringliteral">"samples/Al.100.vol"</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  QApplication application(argc,argv);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classDGtal_1_1Viewer3D.html">Viewer3D<></a> viewer;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  viewer.<a class="code" href="classDGtal_1_1Viewer3D.html#a1ea1c9cf781ce6940db02c352cf24e6f">show</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">typedef</span> <a class="code" href="classDGtal_1_1ImageContainerBySTLVector.html">ImageSelector < Z3i::Domain, int>::Type</a> <a class="code" href="testSimpleRandomAccessRangeFromPoint_8cpp.html#a852ab282e5168b5711ef7a87b3aefa68">Image</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="classDGtal_1_1Image.html">Image</a> image = <a class="code" href="structDGtal_1_1VolReader.html">VolReader<Image>::importVol</a>(inputFilename);</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classDGtal_1_1DigitalSetByAssociativeContainer.html">Z3i::DigitalSet</a> set3d (image.domain());</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structDGtal_1_1SetFromImage.html">SetFromImage<Z3i::DigitalSet>::append<Image></a>(set3d, image, 0,255);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="classDGtal_1_1Object.html">Z3i::Object18_6</a> obj3d (Z3i::dt18_6, set3d);</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classDGtal_1_1Object.html">Z3i::Object18_6</a> border = obj3d.<a class="code" href="classDGtal_1_1Object.html#a4aa4b903a3446d05261ceaa8c00d1888">border</a>();</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  viewer << border;</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  viewer << <a class="code" href="structDGtal_1_1ClippingPlane.html">ClippingPlane</a>(0,1,0, -40) << <a class="code" href="classDGtal_1_1Viewer3D.html">Viewer3D<>::updateDisplay</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> application.exec();</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// //</span></div>
<div class="ttc" id="a3dBorderExtractionImg_8cpp_html_a3c04138a5bfe5d72780bb7e82a18e627"><div class="ttname"><a href="3dBorderExtractionImg_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a></div><div class="ttdeci">int main(int argc, char **argv)</div><div class="ttdef"><b>Definition:</b> <a href="3dBorderExtractionImg_8cpp_source.html#l00065">3dBorderExtractionImg.cpp:65</a></div></div>
<div class="ttc" id="aclassDGtal_1_1DigitalSetByAssociativeContainer_html"><div class="ttname"><a href="classDGtal_1_1DigitalSetByAssociativeContainer.html">DGtal::DigitalSetByAssociativeContainer</a></div><div class="ttdoc">Aim: A wrapper class around a STL associative container for storing sets of digital points within som...</div><div class="ttdef"><b>Definition:</b> <a href="DigitalSetByAssociativeContainer_8h_source.html#l00089">DigitalSetByAssociativeContainer.h:90</a></div></div>
<div class="ttc" id="aclassDGtal_1_1ImageContainerBySTLVector_html"><div class="ttname"><a href="classDGtal_1_1ImageContainerBySTLVector.html">DGtal::ImageContainerBySTLVector</a></div><div class="ttdef"><b>Definition:</b> <a href="ImageContainerBySTLVector_8h_source.html#l00126">ImageContainerBySTLVector.h:127</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Image_html"><div class="ttname"><a href="classDGtal_1_1Image.html">DGtal::Image</a></div><div class="ttdoc">Aim: implements association bewteen points lying in a digital domain and values.</div><div class="ttdef"><b>Definition:</b> <a href="Image_8h_source.html#l00069">Image.h:70</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Object_html"><div class="ttname"><a href="classDGtal_1_1Object.html">DGtal::Object</a></div><div class="ttdoc">Aim: An object (or digital object) represents a set in some digital space associated with a digital t...</div><div class="ttdef"><b>Definition:</b> <a href="Object_8h_source.html#l00119">Object.h:120</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Object_html_a4aa4b903a3446d05261ceaa8c00d1888"><div class="ttname"><a href="classDGtal_1_1Object.html#a4aa4b903a3446d05261ceaa8c00d1888">DGtal::Object::border</a></div><div class="ttdeci">Object border() const</div></div>
<div class="ttc" id="aclassDGtal_1_1Viewer3D_html"><div class="ttname"><a href="classDGtal_1_1Viewer3D.html">DGtal::Viewer3D</a></div><div class="ttdef"><b>Definition:</b> <a href="Viewer3D_8h_source.html#l00131">Viewer3D.h:132</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Viewer3D_html_a1ea1c9cf781ce6940db02c352cf24e6f"><div class="ttname"><a href="classDGtal_1_1Viewer3D.html#a1ea1c9cf781ce6940db02c352cf24e6f">DGtal::Viewer3D::show</a></div><div class="ttdeci">virtual void show()</div><div class="ttdoc">Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...</div></div>
<div class="ttc" id="anamespaceDGtal_html"><div class="ttname"><a href="namespaceDGtal.html">DGtal</a></div><div class="ttdoc">DGtal is the top-level namespace which contains all DGtal functions and types.</div></div>
<div class="ttc" id="astructDGtal_1_1ClippingPlane_html"><div class="ttname"><a href="structDGtal_1_1ClippingPlane.html">DGtal::ClippingPlane</a></div><div class="ttdoc">Class for adding a Clipping plane through the Viewer3D stream. Realizes the concept CDrawableWithView...</div><div class="ttdef"><b>Definition:</b> <a href="DrawWithDisplay3DModifier_8h_source.html#l00156">DrawWithDisplay3DModifier.h:157</a></div></div>
<div class="ttc" id="astructDGtal_1_1SetFromImage_html"><div class="ttname"><a href="structDGtal_1_1SetFromImage.html">DGtal::SetFromImage</a></div><div class="ttdoc">Aim: Define utilities to convert a digital set into an image.</div><div class="ttdef"><b>Definition:</b> <a href="SetFromImage_8h_source.html#l00063">SetFromImage.h:64</a></div></div>
<div class="ttc" id="astructDGtal_1_1VolReader_html"><div class="ttname"><a href="structDGtal_1_1VolReader.html">DGtal::VolReader</a></div><div class="ttdoc">Aim: implements methods to read a "Vol" file format.</div><div class="ttdef"><b>Definition:</b> <a href="VolReader_8h_source.html#l00089">VolReader.h:90</a></div></div>
<div class="ttc" id="atestSimpleRandomAccessRangeFromPoint_8cpp_html_a852ab282e5168b5711ef7a87b3aefa68"><div class="ttname"><a href="testSimpleRandomAccessRangeFromPoint_8cpp.html#a852ab282e5168b5711ef7a87b3aefa68">Image</a></div><div class="ttdeci">ImageContainerBySTLVector< Domain, Value > Image</div><div class="ttdef"><b>Definition:</b> <a href="testSimpleRandomAccessRangeFromPoint_8cpp_source.html#l00045">testSimpleRandomAccessRangeFromPoint.cpp:45</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_d28a4824dc47e487b107a5db32ef43c4.html">examples</a></li><li class="navelem"><a class="el" href="dir_e2a1212e307b93bd4c291c0c273a42c5.html">topology</a></li><li class="navelem"><a class="el" href="3dBorderExtractionImg_8cpp.html">3dBorderExtractionImg.cpp</a></li>
<li class="footer">Generated on Sat Nov 9 2024 12:44:31 for DGtal by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>