<!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: VoxelComplexFunctions.h 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.4.2</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('VoxelComplexFunctions_8h_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">VoxelComplexFunctions.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>  </div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#if defined(VoxelComplexFunctions_RECURSES)</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#error Recursive header files inclusion detected in VoxelComplexFunctions.h</span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#else </span><span class="comment">// defined(VoxelComplexFunctions_RECURSES)</span></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"></span>#define VoxelComplexFunctions_RECURSES</div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#if !defined VoxelComplexFunctions_h</span></div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#define VoxelComplexFunctions_h</span></div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">// Inclusions</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> <span class="preprocessor">#include "DGtal/base/Common.h"</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include "DGtal/topology/VoxelComplex.h"</span></div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">namespace </span><a class="code" href="namespaceDGtal.html">DGtal</a></div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">namespace </span>functions {</div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  TComplex</div> <div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a8f2a4664af776ca513141edb552a4461"> 54</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a8f2a4664af776ca513141edb552a4461">asymetricThinningScheme</a>(</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  TComplex & vc ,</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::function<</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  std::pair<typename TComplex::Cell, typename TComplex::Data> (</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique &)</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  > Select ,</div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  std::function<</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">bool</span>(</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">const</span> TComplex & ,</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & )</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  > Skel,</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">bool</span> verbose = <span class="keyword">false</span></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>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  TComplex</div> <div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a46d491155b4e945e904080855a3bae28"> 70</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a46d491155b4e945e904080855a3bae28">persistenceAsymetricThinningScheme</a>(</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  TComplex & vc ,</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  std::function<</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  std::pair<typename TComplex::Cell, typename TComplex::Data> (</div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique &)</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  > Select ,</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  std::function<</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">bool</span>(</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> TComplex & ,</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & )</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  > Skel,</div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="namespaceDGtal.html#a27c59126488e9c545120667959d2fc4e">uint32_t</a> persistence,</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">bool</span> verbose = <span class="keyword">false</span></div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  );</div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// Select Functions</span></div> <div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"></span> <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  std::pair<typename TComplex::Cell, typename TComplex::Data></div> <div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a96220e2a64c64f8380043319b6c5e329"> 96</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a96220e2a64c64f8380043319b6c5e329">selectFirst</a>(</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique & clique);</div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::pair<typename TComplex::Cell, typename TComplex::Data></div> <div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#aa469c81c1af173fe1758bba410f4a940"> 109</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#aa469c81c1af173fe1758bba410f4a940">selectRandom</a>(</div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique & clique);</div> <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex, <span class="keyword">typename</span> TRandomGenerator ></div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  std::pair<typename TComplex::Cell, typename TComplex::Data></div> <div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#ab4ff3e47b9d4cb74977f0d493f548184"> 124</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#aa469c81c1af173fe1758bba410f4a940">selectRandom</a>(</div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique & clique,</div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  TRandomGenerator & gen);</div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TDistanceTransform, <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  std::pair<typename TComplex::Cell, typename TComplex::Data></div> <div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a8833a616f9e288f432a67eea853217d9"> 155</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a8833a616f9e288f432a67eea853217d9">selectMaxValue</a>(</div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">const</span> TDistanceTransform & dist_map,</div> <div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <span class="keyword">typename</span> TComplex::Clique & clique);</div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">// Skeleton Functions</span></div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"></span> <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#ad1a335e8f7956c3188e031a8d83a5ea7"> 178</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#ad1a335e8f7956c3188e031a8d83a5ea7">skelUltimate</a>(</div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  </div> <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a73b08e83670143586a55950e050aa6ad"> 193</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a73b08e83670143586a55950e050aa6ad">skelEnd</a>(</div> <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a4e8e89624580d0a7c6ecebbb8a3d072d"> 212</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a4e8e89624580d0a7c6ecebbb8a3d072d">skelSimple</a>(</div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a147a79d431e108b58dd715c876da90ec"> 230</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a147a79d431e108b58dd715c876da90ec">skelIsthmus</a>(</div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#affff269feb515ccbb61fed6df33bd403"> 251</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#affff269feb515ccbb61fed6df33bd403">oneIsthmus</a>(</div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#ad86a0dd4add6c1b9f567908893b4a69d"> 271</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#ad86a0dd4add6c1b9f567908893b4a69d">twoIsthmus</a>(</div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TComplex ></div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a23d911a3be8b0751f42bc11e96d3af1b"> 315</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a23d911a3be8b0751f42bc11e96d3af1b">skelWithTable</a>(</div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keyword">const</span> boost::dynamic_bitset<> & table,</div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keyword">const</span> std::unordered_map<typename TComplex::Point, unsigned int> & pointToMaskMap,</div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keyword">const</span> TComplex & vc,</div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">TComplex::Cell</a> & cell);</div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment">// Helpers for Objects</span></div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="comment"></span> <span class="keyword">template</span> < <span class="keyword">typename</span> TObject ></div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a4dba32b69179583e300225bf4227a381"> 334</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a4dba32b69179583e300225bf4227a381">isZeroSurface</a>(<span class="keyword">const</span> TObject & small_obj) ;</div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  </div> <div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keyword">template</span> < <span class="keyword">typename</span> TObject ></div> <div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordtype">bool</span></div> <div class="line"><a name="l00351"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#a5c782738287493c15465124d3516d4ec"> 351</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#a5c782738287493c15465124d3516d4ec">isOneSurface</a>(<span class="keyword">const</span> TObject & small_obj) ;</div> <div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  </div> <div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TObject ></div> <div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  std::vector< TObject ></div> <div class="line"><a name="l00367"></a><span class="lineno"><a class="line" href="namespaceDGtal_1_1functions.html#aafaf8919cafd89499a5a3206f969735b"> 367</a></span>  <a class="code" href="namespaceDGtal_1_1functions.html#aafaf8919cafd89499a5a3206f969735b">connectedComponents</a>(<span class="keyword">const</span> TObject & input_obj, <span class="keywordtype">bool</span> verbose);</div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  } <span class="comment">// namespace functions</span></div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  </div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="comment">//Operators between VoxelComplexes//</span></div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  </div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TKSpace, <span class="keyword">typename</span> TCellContainer></div> <div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keyword">inline</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a>&</div> <div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="namespaceDGtal.html#ae9453d81f5c0bc9057de2329c799e798"> 386</a></span>  <a class="code" href="namespaceDGtal.html#af6ca8514c052da8444ab157c10b57add">operator-=</a>( <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a>& S1,</div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keyword">const</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a>& S2 )</div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  {</div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keyword">typedef</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a> VC;</div> <div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordflow">for</span> ( <a class="code" href="namespaceDGtal.html#a8fbe8c8d47ca5c36ced14284ac62613d">Dimension</a> i = 0; i <= VC::dimension; ++i )</div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  functions::setops::operator-=( S1.<a class="code" href="classDGtal_1_1CubicalComplex.html#a8df3c6ef5479b5902812c30ca7221b70">myCells</a>[ i ],S2.<a class="code" href="classDGtal_1_1CubicalComplex.html#a8df3c6ef5479b5902812c30ca7221b70">myCells</a>[ i ] );</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordflow">return</span> S1;</div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  }</div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  </div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> TKSpace, <span class="keyword">typename</span> TCellContainer></div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keyword">inline</span> VoxelComplex< TKSpace, TCellContainer ></div> <div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="namespaceDGtal.html#a5eccf894da053756ca42d3544bdd7acf"> 408</a></span>  <a class="code" href="namespaceDGtal.html#adec6f2f58473756f2ba913ebda2a5d1a">operator-</a>( <span class="keyword">const</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a>& S1,</div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keyword">const</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a>& S2 )</div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  {</div> <div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <span class="keyword">typedef</span> <a class="code" href="classDGtal_1_1VoxelComplex.html">VoxelComplex< TKSpace, TCellContainer ></a> VC;</div> <div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  VC S(S1);</div> <div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">for</span> ( <a class="code" href="namespaceDGtal.html#a8fbe8c8d47ca5c36ced14284ac62613d">Dimension</a> i = 0; i <= VC::dimension; ++i )</div> <div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  functions::setops::operator-=( S.myCells[ i ],S2.<a class="code" href="classDGtal_1_1CubicalComplex.html#a8df3c6ef5479b5902812c30ca7221b70">myCells</a>[ i ] );</div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <span class="keywordflow">return</span> S;</div> <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  }</div> <div class="line"><a name="l00417"></a><span class="lineno"> 417</span> } <span class="comment">// namespace DGtal</span></div> <div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  </div> <div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  </div> <div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment">// Includes inline functions.</span></div> <div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="preprocessor">#include "DGtal/topology/VoxelComplexFunctions.ih"</span></div> <div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  </div> <div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="comment">// //</span></div> <div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment"></span> </div> <div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="preprocessor">#endif </span><span class="comment">// !defined VoxelComplexFunctions_h</span></div> <div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  </div> <div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="preprocessor">#undef VoxelComplexFunctions_RECURSES</span></div> <div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="preprocessor">#endif </span><span class="comment">// else defined(VoxelComplexFunctions_RECURSES)</span></div> <div class="ttc" id="aclassDGtal_1_1CubicalComplex_html_a8df3c6ef5479b5902812c30ca7221b70"><div class="ttname"><a href="classDGtal_1_1CubicalComplex.html#a8df3c6ef5479b5902812c30ca7221b70">DGtal::CubicalComplex::myCells</a></div><div class="ttdeci">std::vector< CellMap > myCells</div><div class="ttdef"><b>Definition:</b> <a href="CubicalComplex_8h_source.html#l01301">CubicalComplex.h:1301</a></div></div> <div class="ttc" id="aclassDGtal_1_1VoxelComplex_html"><div class="ttname"><a href="classDGtal_1_1VoxelComplex.html">DGtal::VoxelComplex</a></div><div class="ttdoc">This class represents a voxel complex living in some Khalimsky space. Voxel complexes are derived fro...</div><div class="ttdef"><b>Definition:</b> <a href="VoxelComplex_8h_source.html#l00091">VoxelComplex.h:91</a></div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a147a79d431e108b58dd715c876da90ec"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a147a79d431e108b58dd715c876da90ec">DGtal::functions::skelIsthmus</a></div><div class="ttdeci">bool skelIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a23d911a3be8b0751f42bc11e96d3af1b"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a23d911a3be8b0751f42bc11e96d3af1b">DGtal::functions::skelWithTable</a></div><div class="ttdeci">bool skelWithTable(const boost::dynamic_bitset<> &table, const std::unordered_map< typename TComplex::Point, unsigned int > &pointToMaskMap, const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a46d491155b4e945e904080855a3bae28"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a46d491155b4e945e904080855a3bae28">DGtal::functions::persistenceAsymetricThinningScheme</a></div><div class="ttdeci">TComplex persistenceAsymetricThinningScheme(TComplex &vc, std::function< std::pair< typename TComplex::Cell, typename TComplex::Data >(const typename TComplex::Clique &) > Select, std::function< bool(const TComplex &, const typename TComplex::Cell &) > Skel, uint32_t persistence, bool verbose=false)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a4dba32b69179583e300225bf4227a381"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a4dba32b69179583e300225bf4227a381">DGtal::functions::isZeroSurface</a></div><div class="ttdeci">bool isZeroSurface(const TObject &small_obj)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a4e8e89624580d0a7c6ecebbb8a3d072d"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a4e8e89624580d0a7c6ecebbb8a3d072d">DGtal::functions::skelSimple</a></div><div class="ttdeci">bool skelSimple(const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a5c782738287493c15465124d3516d4ec"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a5c782738287493c15465124d3516d4ec">DGtal::functions::isOneSurface</a></div><div class="ttdeci">bool isOneSurface(const TObject &small_obj)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a73b08e83670143586a55950e050aa6ad"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a73b08e83670143586a55950e050aa6ad">DGtal::functions::skelEnd</a></div><div class="ttdeci">bool skelEnd(const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a8833a616f9e288f432a67eea853217d9"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a8833a616f9e288f432a67eea853217d9">DGtal::functions::selectMaxValue</a></div><div class="ttdeci">std::pair< typename TComplex::Cell, typename TComplex::Data > selectMaxValue(const TDistanceTransform &dist_map, const typename TComplex::Clique &clique)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a8f2a4664af776ca513141edb552a4461"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a8f2a4664af776ca513141edb552a4461">DGtal::functions::asymetricThinningScheme</a></div><div class="ttdeci">TComplex asymetricThinningScheme(TComplex &vc, std::function< std::pair< typename TComplex::Cell, typename TComplex::Data >(const typename TComplex::Clique &) > Select, std::function< bool(const TComplex &, const typename TComplex::Cell &) > Skel, bool verbose=false)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_a96220e2a64c64f8380043319b6c5e329"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#a96220e2a64c64f8380043319b6c5e329">DGtal::functions::selectFirst</a></div><div class="ttdeci">std::pair< typename TComplex::Cell, typename TComplex::Data > selectFirst(const typename TComplex::Clique &clique)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_aa469c81c1af173fe1758bba410f4a940"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#aa469c81c1af173fe1758bba410f4a940">DGtal::functions::selectRandom</a></div><div class="ttdeci">std::pair< typename TComplex::Cell, typename TComplex::Data > selectRandom(const typename TComplex::Clique &clique)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_aafaf8919cafd89499a5a3206f969735b"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#aafaf8919cafd89499a5a3206f969735b">DGtal::functions::connectedComponents</a></div><div class="ttdeci">std::vector< TObject > connectedComponents(const TObject &input_obj, bool verbose)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_ad1a335e8f7956c3188e031a8d83a5ea7"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#ad1a335e8f7956c3188e031a8d83a5ea7">DGtal::functions::skelUltimate</a></div><div class="ttdeci">bool skelUltimate(const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_ad86a0dd4add6c1b9f567908893b4a69d"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#ad86a0dd4add6c1b9f567908893b4a69d">DGtal::functions::twoIsthmus</a></div><div class="ttdeci">bool twoIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)</div></div> <div class="ttc" id="anamespaceDGtal_1_1functions_html_affff269feb515ccbb61fed6df33bd403"><div class="ttname"><a href="namespaceDGtal_1_1functions.html#affff269feb515ccbb61fed6df33bd403">DGtal::functions::oneIsthmus</a></div><div class="ttdeci">bool oneIsthmus(const TComplex &vc, const typename TComplex::Cell &cell)</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="anamespaceDGtal_html_a27c59126488e9c545120667959d2fc4e"><div class="ttname"><a href="namespaceDGtal.html#a27c59126488e9c545120667959d2fc4e">DGtal::uint32_t</a></div><div class="ttdeci">boost::uint32_t uint32_t</div><div class="ttdoc">unsigned 32-bit integer.</div><div class="ttdef"><b>Definition:</b> <a href="BasicTypes_8h_source.html#l00063">BasicTypes.h:63</a></div></div> <div class="ttc" id="anamespaceDGtal_html_a8fbe8c8d47ca5c36ced14284ac62613d"><div class="ttname"><a href="namespaceDGtal.html#a8fbe8c8d47ca5c36ced14284ac62613d">DGtal::Dimension</a></div><div class="ttdeci">DGtal::uint32_t Dimension</div><div class="ttdef"><b>Definition:</b> <a href="Common_8h_source.html#l00136">Common.h:136</a></div></div> <div class="ttc" id="anamespaceDGtal_html_adec6f2f58473756f2ba913ebda2a5d1a"><div class="ttname"><a href="namespaceDGtal.html#adec6f2f58473756f2ba913ebda2a5d1a">DGtal::operator-</a></div><div class="ttdeci">KForm< Calculus, order, duality > operator-(const KForm< Calculus, order, duality > &form_a, const KForm< Calculus, order, duality > &form_b)</div></div> <div class="ttc" id="anamespaceDGtal_html_af6ca8514c052da8444ab157c10b57add"><div class="ttname"><a href="namespaceDGtal.html#af6ca8514c052da8444ab157c10b57add">DGtal::operator-=</a></div><div class="ttdeci">CubicalComplex< TKSpace, TCellContainer > & operator-=(CubicalComplex< TKSpace, TCellContainer > &, const CubicalComplex< TKSpace, TCellContainer > &)</div><div class="ttdef"><b>Definition:</b> <a href="CubicalComplexFunctions_8h_source.html#l00097">CubicalComplexFunctions.h:97</a></div></div> <div class="ttc" id="atestCubicalComplex_8cpp_html_a9b10591d95c90247f1c7b3bd52853782"><div class="ttname"><a href="testCubicalComplex_8cpp.html#a9b10591d95c90247f1c7b3bd52853782">Cell</a></div><div class="ttdeci">KSpace::Cell Cell</div><div class="ttdef"><b>Definition:</b> <a href="testCubicalComplex_8cpp_source.html#l00056">testCubicalComplex.cpp:56</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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f2cd1aeea1cfa982bb13a5f95fa4218c.html">DGtal</a></li><li class="navelem"><a class="el" href="dir_beb349dd51fade10e83e4caaef469050.html">topology</a></li><li class="navelem"><b>VoxelComplexFunctions.h</b></li> <li class="footer">Generated on Mon Dec 23 2024 13:18:53 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>