19 #include <itkMeanSquaresImageToImageMetric.h>
45 template <
class TPixelType,
unsigned int VImageDimension>
46 itk::Object::Pointer QmitkMeanSquaresMetricView::GetMetric2(itk::Image<TPixelType, VImageDimension> * )
48 typedef typename itk::Image<TPixelType, VImageDimension> FixedImageType;
49 typedef typename itk::Image<TPixelType, VImageDimension> MovingImageType;
52 MetricPointer->SetComputeGradient(
m_Controls.m_ComputeGradient->isChecked());
54 return MetricPointer.GetPointer();
59 itk::Array<double> metricValues;
60 metricValues.SetSize(1);
62 metricValues[0] =
m_Controls.m_ComputeGradient->isChecked();
68 m_Controls.m_ComputeGradient->setChecked(metricValues[0]);
itk::SmartPointer< Self > Pointer
~QmitkMeanSquaresMetricView()
virtual void SetMetricParameters(itk::Array< double > metricValues) override
virtual mitk::MetricParameters::MetricType GetMetricType() override
virtual bool Maximize() override
mitk::Image::Pointer m_MovingImage
itk::Object::Pointer m_MetricObject
virtual itk::Array< double > GetMetricParameters() override
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
MetricType
Unique integer value for every metric.
virtual itk::Object::Pointer GetMetric() override
virtual void SetupUI(QWidget *parent) override
virtual QString GetName() override
Ui::QmitkMeanSquaresMetricControls m_Controls
QmitkMeanSquaresMetricView(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
Widget for rigid registration.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.