X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fbackprojectors.h;h=c28a11b750c4ea15dc6260428650ecc62430061b;hb=12e2c29153a0f55ac23bdeec06b404638672985b;hp=923cee1291e68dd59b0453b1ac74ce21d3015cda;hpb=c481fbf2890e6e3a0a5479a9e53e685634ce411a;p=ctsim.git diff --git a/include/backprojectors.h b/include/backprojectors.h index 923cee1..c28a11b 100644 --- a/include/backprojectors.h +++ b/include/backprojectors.h @@ -9,8 +9,14 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: backprojectors.h,v 1.1 2000/06/10 23:00:17 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 +** ** Revision 1.1 2000/06/10 23:00:17 kevin ** *** empty log message *** ** @@ -32,7 +38,7 @@ class Backproject { public: - Backproject (const RAYSUM* rs, ImageFile& im, InterpolationType interpType); + Backproject (const Projections& proj, ImageFile& im, InterpolationType interpType); virtual ~Backproject (); @@ -44,17 +50,17 @@ 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; kuint32 ny; - double det_inc; - double rot_inc; - int ncent; // index refering to L=0 projection - int ndet; - double xmin, xmax, ymin, ymax; // Retangular coords of phantom - double xinc, yinc; // size of cells + double detInc; + double rotInc; + int iDetCenter; // index refering to L=0 projection + int nDet; + double xMin, xMax, yMin, yMax; // Retangular coords of phantom + double xInc, yInc; // size of cells private: Backproject (const Backproject& rhs); @@ -65,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); @@ -76,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); @@ -92,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); @@ -106,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); @@ -116,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);