19 #include <itkDiffusionTensor3D.h>
39 m_Controls =
new Ui::QmitkZeppelinModelParametersWidgetControls;
42 connect((QObject*)
m_Controls->m_D1box, SIGNAL(valueChanged(
double)), (QObject*)
this, SLOT(
DChanged(
double)));
43 connect((QObject*)
m_Controls->m_D2box, SIGNAL(valueChanged(
double)), (QObject*)
this, SLOT(
DChanged(
double)));
51 itk::DiffusionTensor3D<float> tensor;
53 tensor.SetElement(0,
m_Controls->m_D1box->value());
54 tensor.SetElement(3,
m_Controls->m_D2box->value());
55 tensor.SetElement(5,
m_Controls->m_D2box->value());
56 m_Controls->m_FaLabel->setText(QString::number(tensor.GetFractionalAnisotropy()));