19 #include <itkDiffusionTensor3D.h>
39 m_Controls =
new Ui::QmitkTensorModelParametersWidgetControls;
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)));
44 connect((QObject*)
m_Controls->m_D3box, SIGNAL(valueChanged(
double)), (QObject*)
this, SLOT(
DChanged(
double)));
52 itk::DiffusionTensor3D<float> tensor;
54 tensor.SetElement(0,
m_Controls->m_D1box->value());
55 tensor.SetElement(3,
m_Controls->m_D2box->value());
56 tensor.SetElement(5,
m_Controls->m_D3box->value());
57 m_Controls->m_FaLabel->setText(QString::number(tensor.GetFractionalAnisotropy()));