Beispiel #1
0
QmitkGibbsTrackingView::QmitkGibbsTrackingView()
  : QmitkFunctionality()
  , m_Controls( 0 )
  , m_MultiWidget( NULL )
  , m_ThreadIsRunning(false)
  , m_GlobalTracker(NULL)
  , m_QBallImage(NULL)
  , m_MaskImage(NULL)
  , m_GfaImage(NULL)
  , m_GfaImageNode(NULL)
  , m_QBallImageNode(NULL)
  , m_ItkQBallImage(NULL)
  , m_FiberBundleNode(NULL)
  , m_TrackingWorker(this)
  , m_QBallSelected(false)
  , m_FibSelected(false)
  , m_Iterations(10000000)
  , m_LastStep(0)
{
  m_TrackingWorker.moveToThread(&m_TrackingThread);
  connect(&m_TrackingThread, SIGNAL(started()), this, SLOT(BeforeThread()));
  connect(&m_TrackingThread, SIGNAL(started()), &m_TrackingWorker, SLOT(run()));
  connect(&m_TrackingThread, SIGNAL(finished()), this, SLOT(AfterThread()));
  connect(&m_TrackingThread, SIGNAL(terminated()), this, SLOT(AfterThread()));
  m_TrackingTimer = new QTimer(this);
}
QmitkDenoisingView::QmitkDenoisingView()
  : QmitkFunctionality()
  , m_Controls( 0 )
  , m_ImageNode(NULL)
  , m_BrainMaskNode(NULL)
  , m_DenoisingWorker(this)
  , m_ThreadIsRunning(false)
  , m_NonLocalMeansFilter(NULL)
  , m_InputImage(NULL)
  , m_LastProgressCount(0)
  , m_MaxProgressCount(0)
  , m_SelectedFilter(NOFILTERSELECTED)
{
  m_DenoisingWorker.moveToThread(&m_DenoisingThread);
  connect(&m_DenoisingThread, SIGNAL(started()), this, SLOT(BeforeThread()));
  connect(&m_DenoisingThread, SIGNAL(started()), &m_DenoisingWorker, SLOT(run()));
  connect(&m_DenoisingThread, SIGNAL(finished()), this, SLOT(AfterThread()));
  connect(&m_DenoisingThread, SIGNAL(terminated()), this, SLOT(AfterThread()));
  m_DenoisingTimer = new QTimer(this);
}
QmitkDiffusionRegistrationView::QmitkDiffusionRegistrationView()
  : QmitkAbstractView()
  , m_Controls( 0 )
  , m_DiffusionImage( NULL )

  , m_ThreadIsRunning(false)
  , m_GlobalRegisterer(NULL)
  , m_RegistrationWorker(this)
  , m_Steps(100)
  , m_LastStep(0)

{

  m_RegistrationWorker.moveToThread(&m_RegistrationThread);
  connect(&m_RegistrationThread, SIGNAL(started()), this, SLOT(BeforeThread()));
  connect(&m_RegistrationThread, SIGNAL(started()), &m_RegistrationWorker, SLOT(run()));
  connect(&m_RegistrationThread, SIGNAL(finished()), this, SLOT(AfterThread()));
  connect(&m_RegistrationThread, SIGNAL(terminated()), this, SLOT(AfterThread()));
  m_RegistrationTimer = new QTimer(this);

}