-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thu Dec 19 17:22:26 UTC 2024
- Loading branch information
blowekamp
committed
Dec 19, 2024
1 parent
84907e5
commit 049f116
Showing
2,705 changed files
with
232,764 additions
and
97,697 deletions.
There are no files selected for viewing
291 changes: 291 additions & 0 deletions
291
Examples_2DataRepresentation_2Image_2Image1_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
269 changes: 269 additions & 0 deletions
269
Examples_2DataRepresentation_2Image_2Image2_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
247 changes: 247 additions & 0 deletions
247
Examples_2DataRepresentation_2Image_2Image3_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
618 changes: 618 additions & 0 deletions
618
Examples_2DataRepresentation_2Image_2Image4_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
393 changes: 393 additions & 0 deletions
393
Examples_2DataRepresentation_2Image_2Image5_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
306 changes: 306 additions & 0 deletions
306
Examples_2DataRepresentation_2Image_2ImageAdaptor1_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
402 changes: 402 additions & 0 deletions
402
Examples_2DataRepresentation_2Image_2ImageAdaptor2_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
375 changes: 375 additions & 0 deletions
375
Examples_2DataRepresentation_2Image_2ImageAdaptor3_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
354 changes: 354 additions & 0 deletions
354
Examples_2DataRepresentation_2Image_2ImageAdaptor4_8cxx-example.html
Large diffs are not rendered by default.
Oops, something went wrong.
153 changes: 153 additions & 0 deletions
153
Examples_2DataRepresentation_2Image_2ImageToArray_8py-example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<!-- HTML header for doxygen 1.8.15--> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="https://www.w3.org/1999/xhtml" lang="en"> | ||
<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.3"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<title>ITK: Examples/DataRepresentation/Image/ImageToArray.py</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="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"], | ||
jax: ["input/TeX","output/HTML-CSS"], | ||
}); | ||
</script> | ||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js"></script> | ||
<script type="text/javascript" src="build_text.js"></script> | ||
<link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
<link href="ITKDoxygenStyle.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="projectlogo"><img alt="Logo" src="itkLogoSmall.png"/></td> | ||
<td id="projectalign" style="padding-left: 0.5em;"> | ||
<div id="projectname">ITK | ||
 <span id="projectnumber">6.0.0</span> | ||
</div> | ||
<div id="projectbrief">Insight Toolkit</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!-- end header part --> | ||
<!-- Scripts intended to allow users to submit patches with documentation fixes --> | ||
<!-- <script src="https://www.itk.org/Doxygen/js/jquery-1.4.3.min.js" type="text/javascript" charset="utf-8"></script> --> | ||
<!-- <script src="https://www.itk.org/Doxygen/js/editdoxygen.js" type="text/javascript" charset="utf-8"></script> --> | ||
<!-- Generated by Doxygen 1.9.3 --> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
var searchBox = new SearchBox("searchBox", "search",'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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
$(function() { | ||
initMenu('',true,false,'search.php','Search'); | ||
$(document).ready(function() { init_search(); }); | ||
}); | ||
/* @license-end */ | ||
</script> | ||
<div id="main-nav"></div> | ||
</div><!-- top --> | ||
<!-- 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">Examples/DataRepresentation/Image/ImageToArray.py</div></div> | ||
</div><!--header--> | ||
<div class="contents"> | ||
<div class="fragment"><div class="line"><span class="lineno"> 1</span><span class="comment"># ==========================================================================</span></div> | ||
<div class="line"><span class="lineno"> 2</span><span class="comment">#</span></div> | ||
<div class="line"><span class="lineno"> 3</span><span class="comment"># Copyright NumFOCUS</span></div> | ||
<div class="line"><span class="lineno"> 4</span><span class="comment">#</span></div> | ||
<div class="line"><span class="lineno"> 5</span><span class="comment"># Licensed under the Apache License, Version 2.0 (the "License");</span></div> | ||
<div class="line"><span class="lineno"> 6</span><span class="comment"># you may not use this file except in compliance with the License.</span></div> | ||
<div class="line"><span class="lineno"> 7</span><span class="comment"># You may obtain a copy of the License at</span></div> | ||
<div class="line"><span class="lineno"> 8</span><span class="comment">#</span></div> | ||
<div class="line"><span class="lineno"> 9</span><span class="comment"># https://www.apache.org/licenses/LICENSE-2.0.txt</span></div> | ||
<div class="line"><span class="lineno"> 10</span><span class="comment">#</span></div> | ||
<div class="line"><span class="lineno"> 11</span><span class="comment"># Unless required by applicable law or agreed to in writing, software</span></div> | ||
<div class="line"><span class="lineno"> 12</span><span class="comment"># distributed under the License is distributed on an "AS IS" BASIS,</span></div> | ||
<div class="line"><span class="lineno"> 13</span><span class="comment"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> | ||
<div class="line"><span class="lineno"> 14</span><span class="comment"># See the License for the specific language governing permissions and</span></div> | ||
<div class="line"><span class="lineno"> 15</span><span class="comment"># limitations under the License.</span></div> | ||
<div class="line"><span class="lineno"> 16</span><span class="comment">#</span></div> | ||
<div class="line"><span class="lineno"> 17</span><span class="comment"># ==========================================================================*/</span></div> | ||
<div class="line"><span class="lineno"> 18</span> </div> | ||
<div class="line"><span class="lineno"> 19</span><span class="keyword">from</span> InsightToolkit <span class="keyword">import</span> *</div> | ||
<div class="line"><span class="lineno"> 20</span><span class="keyword">from</span> numarray <span class="keyword">import</span> *</div> | ||
<div class="line"><span class="lineno"> 21</span><span class="keyword">from</span> sys <span class="keyword">import</span> argv</div> | ||
<div class="line"><span class="lineno"> 22</span> </div> | ||
<div class="line"><span class="lineno"> 23</span>reader = itkImageFileReaderUC2_New()</div> | ||
<div class="line"><span class="lineno"> 24</span> </div> | ||
<div class="line"><span class="lineno"> 25</span>connector = itkPyBufferUC2_New()</div> | ||
<div class="line"><span class="lineno"> 26</span> </div> | ||
<div class="line"><span class="lineno"> 27</span>reader.SetFileName(argv[1])</div> | ||
<div class="line"><span class="lineno"> 28</span> </div> | ||
<div class="line"><span class="lineno"> 29</span>reader.Update()</div> | ||
<div class="line"><span class="lineno"> 30</span> </div> | ||
<div class="line"><span class="lineno"> 31</span>print(<span class="stringliteral">"ready to convert image into array"</span>)</div> | ||
<div class="line"><span class="lineno"> 32</span> </div> | ||
<div class="line"><span class="lineno"> 33</span>buffer = connector.GetArrayFromImage(reader.GetOutput())</div> | ||
<div class="line"><span class="lineno"> 34</span> </div> | ||
<div class="line"><span class="lineno"> 35</span>writer = itkImageFileWriterUC2_New()</div> | ||
<div class="line"><span class="lineno"> 36</span> </div> | ||
<div class="line"><span class="lineno"> 37</span>writer.SetFileName(argv[2])</div> | ||
<div class="line"><span class="lineno"> 38</span> </div> | ||
<div class="line"><span class="lineno"> 39</span>print(<span class="stringliteral">"ready to convert array into image"</span>)</div> | ||
<div class="line"><span class="lineno"> 40</span> </div> | ||
<div class="line"><span class="lineno"> 41</span>writer.SetInput(connector.GetImageFromArray(buffer))</div> | ||
<div class="line"><span class="lineno"> 42</span> </div> | ||
<div class="line"><span class="lineno"> 43</span>writer.Update()</div> | ||
</div><!-- fragment --> </div><!-- contents --> | ||
<!-- HTML footer for doxygen 1.8.15--> | ||
<!-- start footer part --> | ||
<hr class="footer"/> | ||
<div class="footer" align="left"> | ||
<small>Tarballs of the nightly generated Doxygen documentation are available | ||
for the | ||
<a href="https://itk.org/files/NightlyDoxygen/InsightDoxygenDocHtml.tar.gz">html</a>, | ||
<a href="https://itk.org/files/NightlyDoxygen/InsightDoxygenDocXml.tar.gz">xml</a>, and | ||
<a href="https://itk.org/files/NightlyDoxygen/InsightDoxygenDocTag.gz">tag file</a>. | ||
Previous versions of this documentation for version: | ||
<a href="https://itk.org/Doxygen53/html/index.html">5.3</a>, | ||
<a href="https://itk.org/Doxygen52/html/index.html">5.2</a>, | ||
<a href="https://itk.org/Doxygen51/html/index.html">5.1</a>, | ||
<a href="https://itk.org/Doxygen50/html/index.html">5.0</a>, | ||
<a href="https://itk.org/Doxygen413/html/index.html">4.13</a>, | ||
<a href="https://itk.org/Doxygen320/html/index.html">3.20</a>. | ||
</small> | ||
</div> | ||
<address class="footer"><small> | ||
Generated on <span id="datetime">unknown</span> for ITK by   | ||
<a href="https://www.doxygen.org/index.html"> | ||
<img class="footer" src="doxygen.png" alt="doxygen"/> | ||
</a> 1.9.3 | ||
</small></address> | ||
</body> | ||
</html> |
Oops, something went wrong.