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