[Rtk-users] arg_info_rtkfdk
Cyril Mory
cyril.mory at uclouvain.be
Fri Mar 4 03:48:55 EST 2016
Hi Jothy,
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...
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).
Hope it helps,
Cyril
On 03/04/2016 06:13 AM, Jothybasu Selvaraj wrote:
> Dear All
>
>
> I have just started to use RTK and its wonderful. Thanks for all the
> developers for their efforts in making this open source toolkit.
>
>
>
> 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.
>
> I get the error like this
>
> D:\Projects\ReConnor\mainwindow.cpp:106: error: 'args_info_rtkfdk' was
> not declared in this scope
> rtk::SetConstantImageSourceFromGgo<ConstantImageSourceType,
> args_info_rtkfdk>(constantImageSource, args_info);
>
> How can I overcome this.
>
> Thanks very much in anticipation of your help.
>
>
> Regards
>
> Jothy
> ^
>
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20160304/6fce83af/attachment-0010.html>
More information about the Rtk-users
mailing list