<!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: testBasicPointFunctors.cpp File Reference</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
   &#160;<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&amp;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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('testBasicPointFunctors_8cpp.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="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">testBasicPointFunctors.cpp File Reference<div class="ingroups"><a class="el" href="group__Tests.html">DGtal Test Files</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cstdio&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &quot;DGtal/base/Common.h&quot;</code><br />
<code>#include &quot;DGtal/base/CUnaryFunctor.h&quot;</code><br />
<code>#include &quot;DGtal/kernel/PointVector.h&quot;</code><br />
<code>#include &quot;DGtal/kernel/SpaceND.h&quot;</code><br />
<code>#include &quot;DGtal/kernel/BasicPointFunctors.h&quot;</code><br />
<code>#include &quot;DGtal/kernel/domains/HyperRectDomain.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for testBasicPointFunctors.cpp:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="testBasicPointFunctors_8cpp__incl.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div>
<p><a href="testBasicPointFunctors_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa7a7c9ac5d47bcfedd34b020b56c7ae5"><td class="memTemplParams" colspan="2">template&lt;typename TFunctor , typename TArg , typename TRes &gt; </td></tr>
<tr class="memitem:aa7a7c9ac5d47bcfedd34b020b56c7ae5"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="testBasicPointFunctors_8cpp.html#aa7a7c9ac5d47bcfedd34b020b56c7ae5">checkingConcepts</a> ()</td></tr>
<tr class="separator:aa7a7c9ac5d47bcfedd34b020b56c7ae5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a440b2926bbbfe8ebdef24d852b433b0b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testBasicPointFunctors_8cpp.html#a440b2926bbbfe8ebdef24d852b433b0b">testProjector</a> ()</td></tr>
<tr class="separator:a440b2926bbbfe8ebdef24d852b433b0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="testBasicPointFunctors_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</p>
<dl class="section author"><dt>Author</dt><dd>Bertrand Kerautret (<code><a href="#" onclick="location.href='mai'+'lto:'+'ker'+'au'+'tre'+'@l'+'ori'+'a.'+'fr'; return false;">kerau<span style="display: none;">.nosp@m.</span>tre@<span style="display: none;">.nosp@m.</span>loria<span style="display: none;">.nosp@m.</span>.fr</a></code> ) LORIA (CNRS, UMR 7503), University of Nancy, France</dd>
<dd>
Tristan Roussillon (<code><a href="#" onclick="location.href='mai'+'lto:'+'tri'+'st'+'an.'+'ro'+'uss'+'il'+'lon'+'@l'+'iri'+'s.'+'cnr'+'s.'+'fr'; return false;">trist<span style="display: none;">.nosp@m.</span>an.r<span style="display: none;">.nosp@m.</span>oussi<span style="display: none;">.nosp@m.</span>llon<span style="display: none;">.nosp@m.</span>@liri<span style="display: none;">.nosp@m.</span>s.cn<span style="display: none;">.nosp@m.</span>rs.fr</a></code> ) Laboratoire d'InfoRmatique en Image et Systèmes d'information - LIRIS (CNRS, UMR 5205), CNRS, France </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2012/02/02</dd></dl>
<p>This file is part of the <a class="el" href="namespaceDGtal.html" title="DGtal is the top-level namespace which contains all DGtal functions and types.">DGtal</a> library </p>

<p class="definition">Definition in file <a class="el" href="testBasicPointFunctors_8cpp_source.html">testBasicPointFunctors.cpp</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="aa7a7c9ac5d47bcfedd34b020b56c7ae5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7a7c9ac5d47bcfedd34b020b56c7ae5">&#9670;&nbsp;</a></span>checkingConcepts()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename TFunctor , typename TArg , typename TRes &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void checkingConcepts </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="testBasicPointFunctors_8cpp_source.html#l00047">47</a> of file <a class="el" href="testBasicPointFunctors_8cpp_source.html">testBasicPointFunctors.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  BOOST_CONCEPT_ASSERT(( <a class="code" href="structDGtal_1_1concepts_1_1CUnaryFunctor.html">concepts::CUnaryFunctor&lt;TFunctor, TArg, TRes &gt;</a> ));</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div>
<div class="ttc" id="astructDGtal_1_1concepts_1_1CUnaryFunctor_html"><div class="ttname"><a href="structDGtal_1_1concepts_1_1CUnaryFunctor.html">DGtal::concepts::CUnaryFunctor</a></div><div class="ttdoc">Aim: Defines a unary functor, which associates arguments to results.</div><div class="ttdef"><b>Definition:</b> <a href="CUnaryFunctor_8h_source.html#l00089">CUnaryFunctor.h:90</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a3c04138a5bfe5d72780bb7e82a18e627"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c04138a5bfe5d72780bb7e82a18e627">&#9670;&nbsp;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>argv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="testBasicPointFunctors_8cpp_source.html#l00288">288</a> of file <a class="el" href="testBasicPointFunctors_8cpp_source.html">testBasicPointFunctors.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;{</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">beginBlock</a> ( <span class="stringliteral">&quot;Testing basic point functors&quot;</span> );</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Args:&quot;</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;  <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; argc; ++i )</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; argv[ i ];</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; endl;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160; </div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;  checkingConcepts&lt;functors::Projector&lt;SpaceND&lt;2,int&gt; &gt;, <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;6,int&gt;</a>, <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> &gt;();</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  <span class="comment">//for instance, this does not compile because </span></div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;  <span class="comment">//the point of dim 6 is projected on a point of dim 2 (and not 3)</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;  <span class="comment">//checkingConcepts&lt;Projector&lt;SpaceND&lt;2,int&gt; &gt;, PointVector&lt;6,int&gt;, PointVector&lt;3,int&gt; &gt;(); </span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;  <span class="keywordtype">bool</span> res = <a class="code" href="testBasicPointFunctors_8cpp.html#a440b2926bbbfe8ebdef24d852b433b0b">testProjector</a>();</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#a7b51b5b34d3c1d5e799e0500a2d12acc">emphase</a>() &lt;&lt; ( res ? <span class="stringliteral">&quot;Passed.&quot;</span> : <span class="stringliteral">&quot;Error.&quot;</span> ) &lt;&lt; endl;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">endBlock</a>();</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;  <span class="keywordflow">return</span> res ? 0 : 1;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;}</div>
<div class="ttc" id="aclassDGtal_1_1PointVector_html"><div class="ttname"><a href="classDGtal_1_1PointVector.html">DGtal::PointVector</a></div><div class="ttdoc">Aim: Implements basic operations that will be used in Point and Vector classes.</div><div class="ttdef"><b>Definition:</b> <a href="PointVector_8h_source.html#l00592">PointVector.h:593</a></div></div>
<div class="ttc" id="aclassDGtal_1_1Trace_html_a352b7160bf722e2f0bcbee5d0bad6ef3"><div class="ttname"><a href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">DGtal::Trace::beginBlock</a></div><div class="ttdeci">void beginBlock(const std::string &amp;keyword=&quot;&quot;)</div></div>
<div class="ttc" id="aclassDGtal_1_1Trace_html_a7b51b5b34d3c1d5e799e0500a2d12acc"><div class="ttname"><a href="classDGtal_1_1Trace.html#a7b51b5b34d3c1d5e799e0500a2d12acc">DGtal::Trace::emphase</a></div><div class="ttdeci">std::ostream &amp; emphase()</div></div>
<div class="ttc" id="aclassDGtal_1_1Trace_html_ad054990834d2763627166540087a2980"><div class="ttname"><a href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">DGtal::Trace::info</a></div><div class="ttdeci">std::ostream &amp; info()</div></div>
<div class="ttc" id="aclassDGtal_1_1Trace_html_afa3a2874289734884107b1ce68ccb93d"><div class="ttname"><a href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">DGtal::Trace::endBlock</a></div><div class="ttdeci">double endBlock()</div></div>
<div class="ttc" id="anamespaceDGtal_html_a8fc7012708b0416880a5c8b12dfdf9dd"><div class="ttname"><a href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">DGtal::trace</a></div><div class="ttdeci">Trace trace</div><div class="ttdef"><b>Definition:</b> <a href="Common_8h_source.html#l00153">Common.h:153</a></div></div>
<div class="ttc" id="atestBasicPointFunctors_8cpp_html_a440b2926bbbfe8ebdef24d852b433b0b"><div class="ttname"><a href="testBasicPointFunctors_8cpp.html#a440b2926bbbfe8ebdef24d852b433b0b">testProjector</a></div><div class="ttdeci">bool testProjector()</div><div class="ttdef"><b>Definition:</b> <a href="testBasicPointFunctors_8cpp_source.html#l00052">testBasicPointFunctors.cpp:52</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">DGtal::Trace::beginBlock()</a>, <a class="el" href="classDGtal_1_1Trace.html#a7b51b5b34d3c1d5e799e0500a2d12acc">DGtal::Trace::emphase()</a>, <a class="el" href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">DGtal::Trace::endBlock()</a>, <a class="el" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">DGtal::Trace::info()</a>, <a class="el" href="testBasicPointFunctors_8cpp_source.html#l00052">testProjector()</a>, and <a class="el" href="Common_8h_source.html#l00153">DGtal::trace</a>.</p>

</div>
</div>
<a id="a440b2926bbbfe8ebdef24d852b433b0b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a440b2926bbbfe8ebdef24d852b433b0b">&#9670;&nbsp;</a></span>testProjector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool testProjector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="testBasicPointFunctors_8cpp_source.html#l00052">52</a> of file <a class="el" href="testBasicPointFunctors_8cpp_source.html">testBasicPointFunctors.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nbok = 0;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nb = 0;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">beginBlock</a> ( <span class="stringliteral">&quot;Checking projection on a subspace&quot;</span> );</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  {</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="comment">//a 3d point</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> p(0,1,2); </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="comment">//projectors</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="keyword">typedef</span> <a class="code" href="structDGtal_1_1functors_1_1Projector.html">DGtal::functors::Projector&lt;SpaceND&lt;2,int&gt;</a> &gt; Projector2D;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  std::vector&lt;Dimension&gt; v1, v2; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  v1.push_back(0);   v1.push_back(2); </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  v2.push_back(2);   v2.push_back(1);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;  Projector2D proj1, proj2, proj3; </div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  proj1.<a class="code" href="structDGtal_1_1functors_1_1Projector.html#a1c18d72391ba31d8ebf9b9594e860e63">init</a>(v1.begin(), v1.end()); </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  proj2.init(v2.begin(), v2.end()); </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">//comparison</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> res1(0,2); </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj1(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res1 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  nbok += ( proj1(p) == res1 ) ? 1 : 0; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  nb++;  </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> res2(2,1);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj2(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res2 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  nbok += ( proj2(p) == res2 ) ? 1 : 0; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  nb++;  </div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> res3(0,1);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj3(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res3 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  nbok += ( proj3(p) == res3 ) ? 1 : 0; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  nb++;  </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">endBlock</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">beginBlock</a> ( <span class="stringliteral">&quot;Checking projection on a greater space&quot;</span> );</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  <span class="comment">//a 2d point</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> p(5,2); </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="comment">//projectors</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="keyword">typedef</span> <a class="code" href="structDGtal_1_1functors_1_1Projector.html">DGtal::functors::Projector&lt;SpaceND&lt;3,int&gt;</a> &gt; Projector3D;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  std::vector&lt;Dimension&gt; v1, v2, v4; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  v1.push_back(0);   v1.push_back(2); v1.push_back(1);  </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  v2.push_back(1);   v2.push_back(0);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  v4.push_back(1);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  Projector3D proj1, proj2, proj3; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  proj1.<a class="code" href="structDGtal_1_1functors_1_1Projector.html#a1c18d72391ba31d8ebf9b9594e860e63">init</a>(v1.begin(), v1.end()); </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  proj2.init(v2.begin(), v2.end());</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  Projector3D proj4(-1);  </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  proj4.init(v4.begin(), v4.end()); </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="comment">//SliceRotator2D</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3, int&gt;</a> pt1(0,0, 0);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3, int&gt;</a> pt2(10,10, 10);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <a class="code" href="classDGtal_1_1HyperRectDomain.html">HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;  <a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a> (pt1, pt2);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <a class="code" href="classDGtal_1_1functors_1_1SliceRotator2D.html">DGtal::functors::SliceRotator2D&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;, <span class="keywordtype">int</span>&gt; sliceRot(2, <a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>, 6, 1,  pt1, 0.1);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  <a class="code" href="classDGtal_1_1functors_1_1SliceRotator2D.html">DGtal::functors::SliceRotator2D&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;, <span class="keywordtype">int</span>&gt; sliceRot2(2, <a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>, 7, 2, 3.14);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt(5,5);  </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt_2(10, 9);  </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3, int&gt;</a> ptR(4,5,6);  </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3, int&gt;</a> ptR2(0, 1, 7);  </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; sliceRot(pt) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; ptR &lt;&lt; std::endl;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  nbok += ( sliceRot(pt) == ptR ) ? 1 : 0; </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  nb++;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt_2 &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; sliceRot2(pt_2) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; ptR2 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  nbok += ( sliceRot2(pt_2) == ptR2 ) ? 1 : 0; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;  nb++;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <span class="comment">//Point2DEmbedderIn3D</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> ptOrigin3D(3,3,3);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <a class="code" href="classDGtal_1_1functors_1_1Point2DEmbedderIn3D.html">DGtal::functors::Point2DEmbedderIn3D&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;, <span class="keywordtype">int</span>&gt; embedder(<a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>,</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                                                                        ptOrigin3D,</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                                                                        <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(6,6,3),</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                                                                        <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,3,5),</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                                                                        <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0,0,0));</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> ptb(0, 0);  </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt_2b(4, 2);  </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; ptb &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder(ptb) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,3,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  nbok += ( embedder(ptb) == <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,3,3) ) ? 1 : 0; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  nb++;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt_2b &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder(pt_2b) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,5,5) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  nbok += ( embedder(pt_2b) ==  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,5,5)  ) ? 1 : 0; </div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  nb++;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <span class="comment">//Point2DEmbedderIn3D (constructor from normal point)</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> pt2Origin3D(5,5,3);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  <a class="code" href="classDGtal_1_1functors_1_1Point2DEmbedderIn3D.html">DGtal::functors::Point2DEmbedderIn3D&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;, <span class="keywordtype">int</span>&gt; embedder2(<a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>,</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                                                                         pt2Origin3D,</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                                                                         <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0,0,3),</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                                                                         4); </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt2b(0, 0);  </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt2_2b(2, 2);  </div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt2b &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder2(pt2b) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,5,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  nbok += ( embedder2(pt2b) == <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,5,3) ) ? 1 : 0;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;  nb++;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  </div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt2_2b &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder2(pt2_2b) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,4,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;  nbok += ( embedder2(pt2_2b) ==  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,4,3)  ) ? 1 : 0;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;  nb++;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <span class="comment">//Point2DEmbedderIn3D (constructor from normal point)</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> dirXaxis(1,0,0);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  <a class="code" href="classDGtal_1_1functors_1_1Point2DEmbedderIn3D.html">DGtal::functors::Point2DEmbedderIn3D&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt;,</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                                       <span class="keywordtype">int</span>&gt; embedder3(<a class="code" href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a>,</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                                                      pt2Origin3D,</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                                                      <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0,0,3),</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                                                      dirXaxis, 4);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt2c(0, 0);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2, int&gt;</a> pt2_2c(2, 0);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt2c &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder3(pt2c) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,7,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  nbok += ( embedder3(pt2c) == <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(3,7,3) ) ? 1 : 0;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  nb++;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    </div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt2_2c &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder3(pt2_2c) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,7,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  nbok += ( embedder3(pt2_2c) ==  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(5,7,3)  ) ? 1 : 0;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  nb++;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;  </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;  <span class="comment">// testing shift functor</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;  embedder3.shiftOriginPoint(<a class="code" href="classDGtal_1_1PointVector.html">Z3i::RealPoint</a>(2, 0.4, 0.0));</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;pt &quot;</span> &lt;&lt; pt2_2c &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; embedder3(pt2_2c) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(7,7,3) &lt;&lt; std::endl;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  nbok += ( embedder3(pt2_2c) ==  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(7,7,3)  ) ? 1 : 0;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;  nb++;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="comment">//comparison</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> res1(5,0,2); </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj1(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res1 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;  nbok += ( proj1(p) == res1 ) ? 1 : 0; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  nb++;  </div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> res2(2,5,0);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj2(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res2 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  nbok += ( proj2(p) == res2 ) ? 1 : 0; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  nb++;  </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> res3(5,2,0);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj3(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res3 &lt;&lt; std::endl;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  nbok += ( proj3(p) == res3 ) ? 1 : 0; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  nb++;  </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> res4(2,-1,-1);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;p &quot;</span> &lt;&lt; p &lt;&lt; <span class="stringliteral">&quot; =&gt; &quot;</span> &lt;&lt; proj4(p) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; res4</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;               &lt;&lt; <span class="stringliteral">&quot;(-1 as default value)&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;  nbok += ( proj4(p) == res4 ) ? 1 : 0; </div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;  nb++;  </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">endBlock</a>();</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">beginBlock</a> ( <span class="stringliteral">&quot;Checking Basic Domain SubSampler&quot;</span> );</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;  {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="comment">// BasicDomainSubSampler 2D</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <a class="code" href="classDGtal_1_1HyperRectDomain.html">HyperRectDomain&lt;SpaceND&lt;2, int&gt;</a> &gt; domainSource (<a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(0,0), <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(10,10));</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <a class="code" href="testHalfEdgeDataStructure_8cpp.html#a1aba5499fd29449181365ce424303a10">std::vector&lt; SpaceND&lt;2, int&gt;::Size</a> &gt; aGridSize;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    aGridSize.push_back(5);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    aGridSize.push_back(5);  </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> shiftVector(0 ,0);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <a class="code" href="classDGtal_1_1functors_1_1BasicDomainSubSampler.html">DGtal::functors::BasicDomainSubSampler&lt; HyperRectDomain&lt;SpaceND&lt;2, int&gt;</a> &gt; &gt; subSampler(domainSource,</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                                                                                           aGridSize,</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                                                                                           shiftVector);</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>()&lt;&lt; <span class="stringliteral">&quot;Subsampling functor on 2D domain &quot;</span> &lt;&lt; domainSource &lt;&lt;<span class="stringliteral">&quot; with grid size &quot;</span> </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                &lt;&lt; aGridSize[0] &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; aGridSize[1] &lt;&lt; <span class="stringliteral">&quot; and shift vector &quot;</span>&lt;&lt; shiftVector &lt;&lt;std::endl ;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> pointTest(1,0);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> pointInSourceDomain = subSampler(pointTest);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Sampling point of coordinate &quot;</span>&lt;&lt; pointTest &lt;&lt; <span class="stringliteral">&quot;, =&gt; coordinates in source domain:&quot;</span> </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;                 &lt;&lt; pointInSourceDomain &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(5,0) &lt;&lt; std::endl; </div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    nb++;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    nbok += (pointInSourceDomain== <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(5,0));</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;     <span class="comment">// BasicDomainSubSampler 3D</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <a class="code" href="classDGtal_1_1HyperRectDomain.html">HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt; domainSource3D (<a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0,0, 0), <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(10,10, 10));</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <a class="code" href="testHalfEdgeDataStructure_8cpp.html#a1aba5499fd29449181365ce424303a10">std::vector&lt; SpaceND&lt;3, int&gt;::Size</a> &gt; aGridSize3D;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    aGridSize3D.push_back(5);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    aGridSize3D.push_back(3);  </div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    aGridSize3D.push_back(1);  </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> shiftVector3D(0 ,1, -1);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <a class="code" href="classDGtal_1_1functors_1_1BasicDomainSubSampler.html">functors::BasicDomainSubSampler&lt; HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt; &gt; subSampler3D(domainSource3D,</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                                                                          aGridSize3D,  shiftVector3D);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>()&lt;&lt; <span class="stringliteral">&quot;Subsampling functor on 3D domain &quot;</span> &lt;&lt; domainSource3D &lt;&lt;<span class="stringliteral">&quot; with grid size &quot;</span> </div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                &lt;&lt; aGridSize3D[0] &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; aGridSize3D[1]&lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; aGridSize3D[2] &lt;&lt; <span class="stringliteral">&quot; and shift vector &quot;</span>&lt;&lt; shiftVector3D &lt;&lt;std::endl ;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> pointTest3D(0,1,2);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> pointTest3D2(0,0,0);</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> pointInSourceDomain3D = subSampler3D(pointTest3D);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a> pointInSourceDomain3D2 = subSampler3D(pointTest3D2);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Sampling point of coordinate &quot;</span>&lt;&lt; pointTest3D &lt;&lt; <span class="stringliteral">&quot;, =&gt; coordinates in source domain:&quot;</span> </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                 &lt;&lt; pointInSourceDomain3D &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 4, 1) &lt;&lt; std::endl; </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Sampling point of coordinate &quot;</span>&lt;&lt; pointTest3D2 &lt;&lt; <span class="stringliteral">&quot;, =&gt; coordinates in source domain:&quot;</span> </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                 &lt;&lt; pointInSourceDomain3D2 &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 1, 0) &lt;&lt; std::endl; </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    nb++;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    nbok += (pointInSourceDomain3D== <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 4, 1)) &amp;&amp; </div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            (pointInSourceDomain3D2== <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 1, 0));</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;  <span class="comment">// FlipDomainAxis</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    std::vector&lt;HyperRectDomain&lt;SpaceND&lt;3, int&gt; &gt;<a class="code" href="namespaceDGtal.html#a8fbe8c8d47ca5c36ced14284ac62613d">::Dimension</a>&gt; vectFlip;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    vectFlip.push_back(1); </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    vectFlip.push_back(2);     </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <a class="code" href="classDGtal_1_1functors_1_1FlipDomainAxis.html">functors::FlipDomainAxis&lt;HyperRectDomain&lt;SpaceND&lt;3, int&gt;</a> &gt; &gt; flipFunctorAxis12(domainSource3D, vectFlip);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Flip point of coordinate &quot;</span>&lt;&lt; pointTest3D &lt;&lt; <span class="stringliteral">&quot;, =&gt;  fliped coordinates with axis 1 and 2:&quot;</span> </div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                 &lt;&lt; flipFunctorAxis12(pointTest3D) &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 9, 8) &lt;&lt; std::endl; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    nb++;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    nbok += (flipFunctorAxis12(pointTest3D)== <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;3,int&gt;</a>(0, 9, 8));</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160; </div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160; </div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="comment">// BasicDomainReSampler 2D</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    std::vector&lt;  double &gt; aGridSizeReSample;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    aGridSizeReSample.push_back(0.25);</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    aGridSizeReSample.push_back(0.5);  </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <a class="code" href="classDGtal_1_1functors_1_1BasicDomainSubSampler.html">DGtal::functors::BasicDomainSubSampler&lt; HyperRectDomain&lt;SpaceND&lt;2, int&gt;</a> &gt;,  </div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                                            <a class="code" href="namespaceDGtal.html#ac1e9ac6a329319ae13c51c0c9e92486a">DGtal::int32_t</a>, <span class="keywordtype">double</span> &gt; reSampler(domainSource,</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                                                                               aGridSizeReSample,  shiftVector);</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160; </div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>()&lt;&lt; <span class="stringliteral">&quot;Resampling functor on 2D domain &quot;</span> &lt;&lt; domainSource &lt;&lt;<span class="stringliteral">&quot; with grid size &quot;</span> </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;                &lt;&lt; aGridSizeReSample[0] &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; aGridSizeReSample[1] &lt;&lt; <span class="stringliteral">&quot; and shift vector &quot;</span>&lt;&lt; shiftVector &lt;&lt;std::endl ;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> pointTestRS(9,4);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a> pointInSourceDomainRS = reSampler(pointTestRS);</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <a class="code" href="namespaceDGtal.html#a8fc7012708b0416880a5c8b12dfdf9dd">trace</a>.<a class="code" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">info</a>() &lt;&lt; <span class="stringliteral">&quot;Sampling point of coordinate &quot;</span>&lt;&lt; pointTestRS &lt;&lt; <span class="stringliteral">&quot;, =&gt; coordinates in source domain:&quot;</span> </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                 &lt;&lt; pointInSourceDomainRS &lt;&lt; <span class="stringliteral">&quot; == &quot;</span> &lt;&lt; <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(2,2) &lt;&lt; std::endl; </div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    nb++;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    nbok += (pointInSourceDomainRS== <a class="code" href="classDGtal_1_1PointVector.html">PointVector&lt;2,int&gt;</a>(2,2));</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    </div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160; </div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160; </div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;  }</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;  <span class="keywordflow">return</span> nbok == nb;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;}</div>
<div class="ttc" id="aclassDGtal_1_1HyperRectDomain_html"><div class="ttname"><a href="classDGtal_1_1HyperRectDomain.html">DGtal::HyperRectDomain</a></div><div class="ttdoc">Aim: Parallelepidec region of a digital space, model of a 'CDomain'.</div><div class="ttdef"><b>Definition:</b> <a href="HyperRectDomain_8h_source.html#l00099">HyperRectDomain.h:100</a></div></div>
<div class="ttc" id="aclassDGtal_1_1functors_1_1BasicDomainSubSampler_html"><div class="ttname"><a href="classDGtal_1_1functors_1_1BasicDomainSubSampler.html">DGtal::functors::BasicDomainSubSampler</a></div><div class="ttdoc">Aim: Functor that subsamples an initial domain by given a grid size and a shift vector....</div><div class="ttdef"><b>Definition:</b> <a href="BasicPointFunctors_8h_source.html#l00637">BasicPointFunctors.h:638</a></div></div>
<div class="ttc" id="aclassDGtal_1_1functors_1_1FlipDomainAxis_html"><div class="ttname"><a href="classDGtal_1_1functors_1_1FlipDomainAxis.html">DGtal::functors::FlipDomainAxis</a></div><div class="ttdoc">Aim: Functor that flips the domain coordinate system from some selected axis. For instance,...</div><div class="ttdef"><b>Definition:</b> <a href="BasicPointFunctors_8h_source.html#l00758">BasicPointFunctors.h:759</a></div></div>
<div class="ttc" id="aclassDGtal_1_1functors_1_1Point2DEmbedderIn3D_html"><div class="ttname"><a href="classDGtal_1_1functors_1_1Point2DEmbedderIn3D.html">DGtal::functors::Point2DEmbedderIn3D</a></div><div class="ttdoc">Aim: Functor that embeds a 2D point into a 3D space from two axis vectors and an origin point given i...</div><div class="ttdef"><b>Definition:</b> <a href="BasicPointFunctors_8h_source.html#l00372">BasicPointFunctors.h:373</a></div></div>
<div class="ttc" id="aclassDGtal_1_1functors_1_1SliceRotator2D_html"><div class="ttname"><a href="classDGtal_1_1functors_1_1SliceRotator2D.html">DGtal::functors::SliceRotator2D</a></div><div class="ttdoc">Special Point Functor that adds one dimension to a 2D point and apply on it a rotation of angle alpha...</div><div class="ttdef"><b>Definition:</b> <a href="BasicPointFunctors_8h_source.html#l00200">BasicPointFunctors.h:201</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_ac1e9ac6a329319ae13c51c0c9e92486a"><div class="ttname"><a href="namespaceDGtal.html#ac1e9ac6a329319ae13c51c0c9e92486a">DGtal::int32_t</a></div><div class="ttdeci">boost::int32_t int32_t</div><div class="ttdoc">signed 32-bit integer.</div><div class="ttdef"><b>Definition:</b> <a href="BasicTypes_8h_source.html#l00072">BasicTypes.h:72</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1Projector_html"><div class="ttname"><a href="structDGtal_1_1functors_1_1Projector.html">DGtal::functors::Projector</a></div><div class="ttdoc">Aim: Functor that maps a point P of dimension i to a point Q of dimension j. The member myDims is an ...</div><div class="ttdef"><b>Definition:</b> <a href="BasicPointFunctors_8h_source.html#l00106">BasicPointFunctors.h:107</a></div></div>
<div class="ttc" id="astructDGtal_1_1functors_1_1Projector_html_a1c18d72391ba31d8ebf9b9594e860e63"><div class="ttname"><a href="structDGtal_1_1functors_1_1Projector.html#a1c18d72391ba31d8ebf9b9594e860e63">DGtal::functors::Projector::init</a></div><div class="ttdeci">void init(const TIterator &amp;itb, const TIterator &amp;ite)</div></div>
<div class="ttc" id="atestHalfEdgeDataStructure_8cpp_html_a1aba5499fd29449181365ce424303a10"><div class="ttname"><a href="testHalfEdgeDataStructure_8cpp.html#a1aba5499fd29449181365ce424303a10">Size</a></div><div class="ttdeci">HalfEdgeDataStructure::Size Size</div><div class="ttdef"><b>Definition:</b> <a href="testHalfEdgeDataStructure_8cpp_source.html#l00050">testHalfEdgeDataStructure.cpp:50</a></div></div>
<div class="ttc" id="atestProjection_8cpp_html_a1f1a69f8d8b037b72c2160ed12b3ef51"><div class="ttname"><a href="testProjection_8cpp.html#a1f1a69f8d8b037b72c2160ed12b3ef51">domain</a></div><div class="ttdeci">Domain domain</div><div class="ttdef"><b>Definition:</b> <a href="testProjection_8cpp_source.html#l00088">testProjection.cpp:88</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="classDGtal_1_1Trace.html#a352b7160bf722e2f0bcbee5d0bad6ef3">DGtal::Trace::beginBlock()</a>, <a class="el" href="testProjection_8cpp_source.html#l00088">domain</a>, <a class="el" href="classDGtal_1_1Trace.html#afa3a2874289734884107b1ce68ccb93d">DGtal::Trace::endBlock()</a>, <a class="el" href="classDGtal_1_1Trace.html#ad054990834d2763627166540087a2980">DGtal::Trace::info()</a>, <a class="el" href="structDGtal_1_1functors_1_1Projector.html#a1c18d72391ba31d8ebf9b9594e860e63">DGtal::functors::Projector&lt; S &gt;::init()</a>, <a class="el" href="BasicPointFunctors_8h_source.html#l00541">DGtal::functors::Point2DEmbedderIn3D&lt; TDomain3D, TInteger &gt;::shiftOriginPoint()</a>, and <a class="el" href="Common_8h_source.html#l00153">DGtal::trace</a>.</p>

<p class="reference">Referenced by <a class="el" href="testBasicPointFunctors_8cpp_source.html#l00288">main()</a>.</p>

</div>
</div>
</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_59425e443f801f1f2fd8bbe4959a3ccf.html">tests</a></li><li class="navelem"><a class="el" href="dir_2b7a4b5856a4d2068800cbeeeef5e1d8.html">kernel</a></li><li class="navelem"><a class="el" href="testBasicPointFunctors_8cpp.html">testBasicPointFunctors.cpp</a></li>
    <li class="footer">Generated on Mon Dec 23 2024 13:18:54 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>