1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef CLITKCONEBEAMPROJECTIMAGE_CXX
19 #define CLITKCONEBEAMPROJECTIMAGE_CXX
21 =================================================
22 * @file clitkConeBeamProjectImage.cxx
23 * @author Jef Vandemeulebroucke <jefvdmb@gmail.com>
26 * @brief "Project a 3D image using a Cone-Beam geometry"
27 =================================================*/
30 #include "clitkConeBeamProjectImage_ggo.h"
31 #include "clitkConeBeamProjectImageGenericFilter.h"
33 #include "clitkImageCommon.h"
34 #include "clitkTransformUtilities.h"
36 int main(int argc, char * argv[]) {
39 GGO(clitkConeBeamProjectImage, args_info);
42 // Creation of a generic filter
43 clitk::ConeBeamProjectImageGenericFilter::Pointer genericFilter = clitk::ConeBeamProjectImageGenericFilter::New();
45 //Passing the arguments to the generic filter
46 genericFilter->SetArgsInfo(args_info);
48 // //Passing the arguments to the generic filter
49 // genericFilter->SetVerbose(args_info.verbose_flag);
50 // genericFilter->SetInput(args_info.input_arg);
51 // genericFilter->SetOutput(args_info.output_arg);
52 // //genericFilter->SetMask(args_info.mask_arg);
54 // //set the three components of the isocenter
55 // std::vector<double> iso(3);
56 // for (unsigned int i=0 ; i<3 ; i++) iso[i]=args_info.iso_arg[i];
57 // genericFilter->SetIsoCenter(iso);
58 // genericFilter->SetSourceToScreen(args_info.screen_arg);
59 // genericFilter->SetSourceToAxis(args_info.axis_arg);
60 // genericFilter->SetProjectionAngle(args_info.angle_arg);
61 // if (args_info.matrix_given) genericFilter->SetRigidTransformMatrix(clitk::ReadMatrix3D(args_info.matrix_arg));
62 // genericFilter->SetEdgePaddingValue(args_info.pad_arg);
65 genericFilter->Update();