backprojectionDD_mex.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. %% Author: Rodrigo de Barros Vimieiro
  3. % Date: September, 2018
  4. % rodrigo.vimieiro@gmail.com
  5. % =========================================================================
  6. %{
  7. % -------------------------------------------------------------------------
  8. %
  9. % -------------------------------------------------------------------------
  10. % DESCRIPTION:
  11. % This is the header function
  12. % ---------------------------------------------------------------------
  13. % Copyright (C) <2018> <Rodrigo de Barros Vimieiro>
  14. %
  15. % This program is free software: you can redistribute it and/or modify
  16. % it under the terms of the GNU General Public License as published by
  17. % the Free Software Foundation, either version 3 of the License, or
  18. % (at your option) any later version.
  19. %
  20. % This program is distributed in the hope that it will be useful,
  21. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. % GNU General Public License for more details.
  24. %
  25. % You should have received a copy of the GNU General Public License
  26. % along with this program. If not, see <http://www.gnu.org/licenses/>.
  27. %}
  28. % =========================================================================
  29. %% 3-D Distance Driven Back-projection Code
  30. */
  31. //typedef double user_dataType;
  32. //typedef float user_dataType;
  33. //#define user_mexdataType mxDOUBLE_CLASS
  34. //#define user_mexdataType mxSINGLE_CLASS
  35. #include "mex.h"
  36. #define _USE_MATH_DEFINES
  37. #include <math.h>
  38. void mapp2xy(float* const pXmapp, float* const pYmapp, float tubeX, float tubeY, float tubeZ, float * const pXcoord, float * const pYcoord, float * const pZcoord, const int nXelem, const int nYelem);