<html xmlns:v="urn:schemas-microsoft-com:vml" 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=utf-8">
<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.E-mailStijl18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hey Simon,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for the quick reply. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I did not notice that manual setting was not possible. The set and get functions seemed to return the expected values before requesting the output. The alternative previous version displaced detector filter you suggested runs without any
 issues. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
<p class="MsoNormal">Nick<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>Van:</b> Simon Rit <simon.rit@creatis.insa-lyon.fr> <br>
<b>Verzonden:</b> Tuesday, September 20, 2022 9:25 AM<br>
<b>Aan:</b> Nick Staut <nick.staut@smartscientific.nl><br>
<b>CC:</b> rtk-users@public.kitware.com<br>
<b>Onderwerp:</b> Re: [Rtk-users] Issues with displaced detector filter when running FDK inline with acquisition<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Nick,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I stopped caring about the inline application and removed it as it did not seem to be used... One of the things that has been developed is a new weighting scheme for offset detectors, see
<a href="http://doi.org/10.1118/1.4945418">doi.org/10.1118/1.4945418</a>. In this filter, you cannot specify the minimum and maximum offsets manually:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/SimonRit/RTK/blob/master/include/rtkDisplacedDetectorForOffsetFieldOfViewImageFilter.hxx#L81-L89">https://github.com/SimonRit/RTK/blob/master/include/rtkDisplacedDetectorForOffsetFieldOfViewImageFilter.hxx#L81-L89</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Things should be different with the previous version<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/SimonRit/RTK/blob/master/include/rtkDisplacedDetectorImageFilter.hxx#L130-L149">https://github.com/SimonRit/RTK/blob/master/include/rtkDisplacedDetectorImageFilter.hxx#L130-L149</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Can you try this version instead? I have opened an issue to track this problem:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/SimonRit/RTK/issues/509">https://github.com/SimonRit/RTK/issues/509</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Simon<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Sep 19, 2022 at 12:17 PM Nick Staut <<a href="mailto:nick.staut@smartscientific.nl">nick.staut@smartscientific.nl</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi everyone,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I’ve been trying to use RTK to run a reconstruction during acquisition which runs without issues and returns an acceptable result if I disable the displacedDetectorFilter. However,
 when I try to enable the displaced detector filter before getting sufficient projections (+ more importantly for the ddf: geometry entries) I get the following error:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">“ITK ERROR: Cannot account for too large detector displacements, a part of space must be covered by all projections.”<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I saw that the old rtkinlinefdk implementation (from RTK v1.4 after which it seemed discontinued) manually set the minimum and maximum offsets to the displacedDetectorFilter, however
 if I do the same now it still fails. <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">To provide a reproducible example I recreated the rtkinlinefdk application following the original format (with small modifications to mimic what I do in my code these modifications
 are mentioned at the comment at the top of the cxx file). I attached all required files for the example application to the e-mail, it should just compile if you recompile RTK with this unzipped folder in you application directory. Once I understand the issue
 with the displaced detector filter I could also create a pull request for this rtk application if this is considered useful.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Kind regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Nick<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users" target="_blank">https://public.kitware.com/cgi-bin/mailman/listinfo/rtk-users</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</body>
</html>