<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Jothy,<br>
<br>
The ConstantImageSource filter is a simple filter that just
generates a uniform image (i.e. all pixels/voxels are filled with
the same value). In rtkfdk, we generate an image filled with zeros
and pass it in input to the fdk filter (it is absolutely necessary).
This zero-filled image, however, must have the correct dimension,
size, spacing, direction, etc...<br>
<br>
The line that throws an error is supposed to set those parameters on
the ConstantImageSource filter, using the arguments provided on the
command line, so that it generates an image with the right
information. But you could use parameters taken from a GUI instead.
Have a look at the source code of rtk::ConstantImageSource. The
method "SetInformationFromImage" sets everything you need to set (it
copies the parameters from another image, but you can just set the
same parameters to what you get from the GUI). <br>
<br>
Hope it helps,<br>
Cyril<br>
<br>
<div class="moz-cite-prefix">On 03/04/2016 06:13 AM, Jothybasu
Selvaraj wrote:<br>
</div>
<blockquote
cite="mid:CAKuw5X3Ph+dspKcsq=iB6_85oYtRz-pVGWpSBCyQtm9jXpmjXA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif">Dear All</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">I have just started to
use RTK and its wonderful. Thanks for all the developers for
their efforts in making this open source toolkit.</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">i am planning to
reconstruct a Varian CBCT. I do not want to use gengetopt,
rather I want to pass on the arguments to the classes from the
values obtained from GUI.</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">I get the error like
this</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif">
<div class="gmail_default">D:\Projects\ReConnor\mainwindow.cpp:106:
error: 'args_info_rtkfdk' was not declared in this scope</div>
<div class="gmail_default">
rtk::SetConstantImageSourceFromGgo<ConstantImageSourceType,
args_info_rtkfdk>(constantImageSource, args_info);</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">How can I overcome this.</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Thanks very much in anticipation of
your help.</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Regards</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default">Jothy</div>
<div class="gmail_default">
^</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rtk-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a>
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/rtk-users">http://public.kitware.com/mailman/listinfo/rtk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>