1. /***************************************************************************
  2.  *   Copyright (c) Johannes Perl                                           *
  3.  *   All rights reserved.                                                  *
  4.  *                                                                         *
  5.  *   This program is free software; you can redistribute it and/or modify  *
  6.  *   it under the terms of the GNU General Public License as published by  *
  7.  *   the Free Software Foundation; either version 2 of the License, or     *
  8.  *   (at your option) any later version.                                   *
  9.  ***************************************************************************/
  10.  
  11. /*!
  12.  * bp2d.h
  13.  * \author Johannes Perl
  14.  * \brief Performs a unfiltered backprojection on raw CT data.
  15.  */
  16.  
  17. #include <iostream>
  18. #include <string>
  19. #include <cmath>
  20. #include <iomanip>
  21.  
  22. #include "itkImage.h"
  23. #include "itkImageFileReader.h"
  24. #include "itkImageFileWriter.h"
  25. #include "itkImageRegionIterator.h"
  26.  
  27. #ifndef PI
  28. #define PI 3.141592653
  29. #endif
  30.  
  31. /*!
  32.  * Unfiltered backprojection in 2D.
  33.  */
  34. int bp2d(std::string filename, float pStart, float pEnd, float pDist);