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
[email protected]
http://public.kitware.com/mailman/listinfo/rtk-users
_______________________________________________
Rtk-users mailing list
[email protected]
http://public.kitware.com/mailman/listinfo/rtk-users