[Rtk-users] Compile custom application
vincent
vl at xris.eu
Mon Jun 11 12:35:48 EDT 2018
Hello everyone,
I wanted to create a small application to simulate a geometry for a
tomosynthesis acquisition scanner whose source displacement is along the
x axis only.
I created a rtksimulatedtomogeometry directory in the rtk/applications
folder made a few changes to rtksimulatedgeometry.
I added the corresponding line in the CMakeList.txt in the
rtk/applications folder.
When I recompile RTK, I get the following error message:
/rtksimulatedtomogeometry.cxx:19:42: fatal error:
rtksimulatedtomogeometry_ggo.h: No such file or directory
Indeed, this file does not exist but I could not find any rtkXXX_ggo.h
in my sources folder.
Could someone please tell me what I missed ?
I attached the three files I modified if it can be of any help. If I can
make it work, I would be happy to share it with the rest of the RTK
community.
Thank you for your help,
Kindest regards,
Vincent
-------------- next part --------------
WRAP_GGO(rtksimulatedtomogeometry_GGO_C rtksimulatedtomogeometry.ggo ${RTK_BINARY_DIR}/rtkVersion.ggo)
add_executable(rtksimulatedtomogeometry rtksimulatedtomogeometry.cxx ${rtksimulatedgeometry_GGO_C})
target_link_libraries(rtksimulatedtomogeometry RTK)
#Installation code
if(NOT RTK_INSTALL_NO_EXECUTABLES)
foreach(EXE_NAME rtksimulatedtomogeometry)
install(TARGETS ${EXE_NAME}
RUNTIME DESTINATION ${RTK_INSTALL_RUNTIME_DIR} COMPONENT Runtime
LIBRARY DESTINATION ${RTK_INSTALL_LIB_DIR} COMPONENT RuntimeLibraries
ARCHIVE DESTINATION ${RTK_INSTALL_ARCHIVE_DIR} COMPONENT Development)
endforeach()
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtksimulatedtomogeometry.cxx
Type: text/x-c++src
Size: 2212 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20180611/7b00678f/attachment.cxx>
-------------- next part --------------
package "rtksimulatedgeometry"
purpose "Creates an RTK geometry file from simulated/regular trajectory."
option "verbose" v "Verbose execution" flag off
option "config" - "Config file" string no
option "output" o "Output file name" string yes
option "first_angle" f "First angle in degrees" double no default="0"
option "nproj" n "Number of projections" int yes
option "arc" a "Angular arc covevered by the acquisition in degrees" double no default="360"
option "sdd" - "Source to detector distance (mm)" double no default="1536"
option "sid" - "Source to isocenter distance (mm)" double no default="1000"
option "proj_iso_x" - "X coordinate on the projection image of isocenter" double no default="0"
option "proj_iso_y" - "Y coordinate on the projection image of isocenter" double no default="0"
option "firstPosX" - "In-place x source position wrt to central ray" double no default="0"
option "deltaX" - "Length of the tomo linear trajectory" double no default="1"
option "source_y" - "In-place y source position wrt to central ray" double no default="0"
option "out_angle" - "Out of plane angle" double no default="0"
option "in_angle" - "In plane angle" double no default="0"
option "rad_cyl" - "Radius cylinder of cylindrical detector" double no default="0"
More information about the Rtk-users
mailing list