1 /*****************************************************************************
4 ** Name: reconstruct.h Header file for Reconstruction class
5 ** Programmer: Kevin Rosenberg
6 ** Date Started: Aug 84
8 ** This is part of the CTSim program
9 ** Copyright (c) 1983-2001 Kevin Rosenberg
11 ** $Id: reconstruct.h,v 1.9 2001/03/13 08:24:41 kevin Exp $
13 ** This program is free software; you can redistribute it and/or modify
14 ** it under the terms of the GNU General Public License (version 2) as
15 ** published by the Free Software Foundation.
17 ** This program is distributed in the hope that it will be useful,
18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ** GNU General Public License for more details.
22 ** You should have received a copy of the GNU General Public License
23 ** along with this program; if not, write to the Free Software
24 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 ******************************************************************************/
27 #ifndef __RECONSTRUCT_H
28 #define __RECONSTRUCT_H
38 struct ReconstructionROI {
48 const Projections& m_rOriginalProj;
49 const Projections* m_pProj;
50 ImageFile& m_rImagefile;
51 ProcessSignal* m_pProcessSignal;
52 Backprojector* m_pBackprojector;
53 int m_nFilteredProjections;
55 const bool m_bRebinToParallel;
57 std::string m_strFailMessage;
59 double* m_adPlotXAxis;
62 Reconstructor (const Projections& rProj, ImageFile& rIF, const char* const filterName, double filt_param,
63 const char* const filterMethodName, const int zeropad, const char* filterGenerationName,
64 const char* const interpName, int interpFactor, const char* const backprojectName, const int trace,
65 ReconstructionROI* pROI = NULL, bool bRebinToParallel = false, SGP* pSGP = NULL);
69 bool fail() const {return m_bFail;}
70 const std::string& failMessage() const {return m_strFailMessage;}
72 void plotFilter (SGP* pSGP = NULL);
74 void reconstructAllViews ();
76 void reconstructView (int iStartView = 0, int iViewCount = -1, SGP* pSGP = NULL, bool bBackprojectView = true, double dGraphWidth = 1.);
77 void postProcessing ();