X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fbackprojectors.h;h=c28a11b750c4ea15dc6260428650ecc62430061b;hp=ea0e85c23e2a3b0af01e6238c0c6b1b18124e262;hb=f4a23943110823118f35756dd41fbd6707f04511;hpb=b5857e74e5735455b5ef11cbea5044ae7b2e8a0d diff --git a/include/backprojectors.h b/include/backprojectors.h index ea0e85c..c28a11b 100644 --- a/include/backprojectors.h +++ b/include/backprojectors.h @@ -9,8 +9,11 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: backprojectors.h,v 1.2 2000/06/13 16:20:31 kevin Exp $ +** $Id: backprojectors.h,v 1.3 2000/06/17 20:12:14 kevin Exp $ ** $Log: backprojectors.h,v $ +** Revision 1.3 2000/06/17 20:12:14 kevin +** Converted Scanner and Projections to C++ +** ** Revision 1.2 2000/06/13 16:20:31 kevin ** finished c++ conversions ** @@ -35,7 +38,7 @@ class Backproject { public: - Backproject (const RAYSUM* rs, ImageFile& im, InterpolationType interpType); + Backproject (const Projections& proj, ImageFile& im, InterpolationType interpType); virtual ~Backproject (); @@ -47,7 +50,7 @@ class Backproject void Backproject::errorIndexOutsideDetector (int ix, int iy, double theta, double L, int ni); InterpolationType interpType; - const RAYSUM* rs; + const Projections& proj; ImageFile& im; ImageFileArray v; kuint32 nx; @@ -68,8 +71,8 @@ class Backproject class BackprojectTrig : public Backproject { public: - BackprojectTrig (const RAYSUM* rs, ImageFile& im, InterpolationType interpType) - : Backproject::Backproject (rs, im, interpType) + BackprojectTrig (const Projections& proj, ImageFile& im, InterpolationType interpType) + : Backproject::Backproject (proj, im, interpType) {} void BackprojectView (const double* const t, double view_angle); @@ -79,7 +82,7 @@ class BackprojectTrig : public Backproject class BackprojectTable : public Backproject { public: - BackprojectTable (const RAYSUM* rs, ImageFile& im, InterpolationType interpType); + BackprojectTable (const Projections& proj, ImageFile& im, InterpolationType interpType); ~BackprojectTable (); void BackprojectView (const double* const t, double view_angle); @@ -95,7 +98,7 @@ class BackprojectTable : public Backproject class BackprojectDiff : public Backproject { public: - BackprojectDiff (const RAYSUM* rs, ImageFile& im, InterpolationType interpType); + BackprojectDiff (const Projections& proj, ImageFile& im, InterpolationType interpType); ~BackprojectDiff (); void BackprojectView (const double* const t, double view_angle); @@ -109,8 +112,8 @@ class BackprojectDiff : public Backproject class BackprojectDiff2 : public BackprojectDiff { public: - BackprojectDiff2 (const RAYSUM* rs, ImageFile& im, InterpolationType interpType) - : BackprojectDiff::BackprojectDiff (rs, im, interpType) + BackprojectDiff2 (const Projections& proj, ImageFile& im, InterpolationType interpType) + : BackprojectDiff::BackprojectDiff (proj, im, interpType) {} void BackprojectView (const double* const t, double view_angle); @@ -119,12 +122,12 @@ class BackprojectDiff2 : public BackprojectDiff class BackprojectIntDiff2 : public BackprojectDiff { public: - BackprojectIntDiff2 (const RAYSUM* rs, ImageFile& im, InterpolationType interpType) - : BackprojectDiff::BackprojectDiff (rs, im, interpType) + BackprojectIntDiff2 (const Projections& proj, ImageFile& im, InterpolationType interpType) + : BackprojectDiff::BackprojectDiff (proj, im, interpType) {} void BackprojectView (const double* const t, double view_angle); }; -Backproject* selectBackprojector (BackprojType type, const RAYSUM*, ImageFile& im, InterpolationType interpType); +Backproject* selectBackprojector (BackprojType type, const Projections& proj, ImageFile& im, InterpolationType interpType);