22 #define M_PI 3.14159265358979323846 31 mPatientModelService(patientModelService)
42 void ThreadedTimedReconstructPreprocessor::preProcessingSlot()
46 void ThreadedTimedReconstructPreprocessor::calculate()
48 std::vector<bool> angio;
49 for (
unsigned i=0; i<mCores.size(); ++i)
50 angio.push_back(mCores[i]->getInputParams().mAngio);
52 std::vector<cx::ProcessedUSInputDataPtr> processedInput = mInput->createProcessedInput(angio);
54 for (
unsigned i=0; i<mCores.size(); ++i)
56 mCores[i]->initialize(processedInput[i], mInput->getOutputVolumeParams());
60 void ThreadedTimedReconstructPreprocessor::postProcessingSlot()
71 mPatientModelService(patientModelService),
72 mViewService(viewService)
75 mReconstructer = reconstructer;
82 void ThreadedTimedReconstructCore::preProcessingSlot()
84 mReconstructer->threadedPreReconstruct();
87 void ThreadedTimedReconstructCore::calculate()
89 mReconstructer->threadedReconstruct();
92 void ThreadedTimedReconstructCore::postProcessingSlot()
94 mReconstructer->threadedPostReconstruct();
96 mPatientModelService->autoSave();
97 mViewService->autoShowData(mReconstructer->getOutput());
ThreadedTimedReconstructCore(PatientModelServicePtr patientModelService, ViewServicePtr viewService, ReconstructCorePtr reconstructer)
Base class for algorithms that wants to thread and time their execution. T is the return type of the ...
virtual ~ThreadedTimedReconstructPreprocessor()
ThreadedTimedReconstructPreprocessor(PatientModelServicePtr patientModelService, ReconstructPreprocessorPtr input, std::vector< ReconstructCorePtr > cores)
boost::shared_ptr< class ReconstructPreprocessor > ReconstructPreprocessorPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual ~ThreadedTimedReconstructCore()
boost::shared_ptr< class ReconstructCore > ReconstructCorePtr
Namespace for all CustusX production code.