** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadrecon.h,v 1.13 2001/03/11 15:27:30 kevin Exp $
+** $Id$
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
const std::string m_strBackprojectName;
const std::string m_strLabel;
ReconstructionROI m_reconROI;
+ const bool m_bRebinToParallel;
public:
ReconstructorSupervisorThread(ProjectionFileView* pProjView, int iNX, int iNY, const char* pszFilterName,
double dFilterParam, const char* pszFilterMethod, int iZeropad, const char* pszFilterGenerationName,
const char* pszInterpName, int iInterpParam, const char* pszBackprojectName, const char* const pszLabel,
- ReconstructionROI* pROI);
+ ReconstructionROI* pROI, bool bRebinToParallel);
virtual wxThread::ExitCode Entry();
private:
std::vector<ImageFile*> m_vecpChildImageFile;
+ const Projections* m_pProj;
ProjectionFileView* m_pProjView;
ProjectionFileDocument* m_pProjDoc;
ReconstructionROI* m_pReconROI;
public:
- ReconstructorSupervisor (SupervisorThread* pMyThread, ProjectionFileView* pProjView, int iNX, int iNY, const char* pszFilterName,
- double dFilterParam, const char* pszFilterMethod, int iZeropad, const char* pszFilterGenerationName,
- const char* pszInterpName, int iInterpParam, const char* pszBackprojectName, const char* const pszLabel,
- ReconstructionROI* pReconROI);
+ ReconstructorSupervisor (SupervisorThread* pMyThread, Projections* pProj, ProjectionFileView* pProjView,
+ int iNX, int iNY, const char* pszFilterName, double dFilterParam, const char* pszFilterMethod, int iZeropad,
+ const char* pszFilterGenerationName, const char* pszInterpName, int iInterpParam,
+ const char* pszBackprojectName, const char* const pszLabel, ReconstructionROI* pReconROI);
virtual BackgroundWorkerThread* createWorker (int iThread, int iStartUnit, int iNumUnits);
};
-
-
class ReconstructorWorker : public BackgroundWorkerThread {
private:
+ const Projections* m_pProj;
ProjectionFileView* m_pProjView;
ImageFile* m_pImageFile;
const char* m_pszFilterName;
: BackgroundWorkerThread (pSupervisor, iThread, iStartView, iNumViews)
{}
- void SetParameters (ProjectionFileView* pProjFile, ImageFile* pImageFile,
+ void SetParameters (const Projections* pProj, ProjectionFileView* pProjFile, ImageFile* pImageFile,
const char* const pszFilterName, double dFilterParam, const char* const pszFilterMethod,
int iZeropad, const char* const pszFilterGenerationName, const char* const pszInterpName, int iInterpParam,
const char* pszBackprojectName, ReconstructionROI* pROI);