43 #define M_PI 3.14159265358979323846
52 mPatientModelService(patientModelService)
63 void ThreadedTimedReconstructPreprocessor::preProcessingSlot()
67 void ThreadedTimedReconstructPreprocessor::calculate()
69 std::vector<bool> angio;
70 for (
unsigned i=0; i<mCores.size(); ++i)
71 angio.push_back(mCores[i]->getInputParams().mAngio);
73 std::vector<cx::ProcessedUSInputDataPtr> processedInput = mInput->createProcessedInput(angio);
75 for (
unsigned i=0; i<mCores.size(); ++i)
77 mCores[i]->initialize(processedInput[i], mInput->getOutputVolumeParams());
81 void ThreadedTimedReconstructPreprocessor::postProcessingSlot()
92 mPatientModelService(patientModelService),
93 mViewService(viewService)
96 mReconstructer = reconstructer;
103 void ThreadedTimedReconstructCore::preProcessingSlot()
105 mReconstructer->threadedPreReconstruct();
108 void ThreadedTimedReconstructCore::calculate()
110 mReconstructer->threadedReconstruct();
113 void ThreadedTimedReconstructCore::postProcessingSlot()
115 mReconstructer->threadedPostReconstruct();
117 mPatientModelService->autoSave();
118 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()
cxLogicManager_EXPORT ViewServicePtr viewService()
boost::shared_ptr< class ReconstructCore > ReconstructCorePtr