<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US"><div>Hi,</div><div><br></div><div>I cannot reproduce the problem. Are you sure you haven't altered FirstReconstruction.py in any way? Could you provide the exact content of the file?</div><div><br></div><div>Thank you!</div><div><br></div><div>Aurélien.</div><div><br></div><div>On Tue, 2020-05-05 at 22:01 +0000, Zhang, Zhehao wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div class="WordSection1">
<p class="MsoNormal">Dear all, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi! I am new to RTK and want to use it on Python. So I installed RTK through pip, like<o:p></o:p></p>
<pre><span style="color:black">pip install itk<o:p></o:p></span></pre>
<pre><span style="color:black">pip install itk-rtk<o:p></o:p></span></pre>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal">I think the examples for ITK work well. However, when I tried to run the FirstReconstruction example for RTK, some trouble have stopped me for a while.<o:p></o:p></p>
<p class="MsoNormal">I used the order “python FirstReconstruction.py test.mha geometry.xml” to run the given Python code, but I continued to get the error<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Traceback (most recent call last):<o:p></o:p></p>
<p class="MsoNormal">  File "FirstReconstruction.py", line 88, in <module><o:p></o:p></p>
<p class="MsoNormal">    writer.Update()<o:p></o:p></p>
<p class="MsoNormal">RuntimeError: C:\P\IPP\standalone-build\ITKs\Modules\Core\Common\src\itkProcessObject.cxx:1400:<o:p></o:p></p>
<p class="MsoNormal">itk::ERROR: FieldOfViewImageFilter(000001C546A88980): Input Primary is required but not set.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Additionally, this ‘Input Primary is required but not set’ error also occurred in some other examples, on both Windows and Ubuntu systems. I have no idea how to solve it. Could you please help me out?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you very much.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sincerely,<o:p></o:p></p>
<p class="MsoNormal">Zhehao<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>


<pre>_______________________________________________
Rtk-users mailing list
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users">https://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre></blockquote></body></html>