19 #include <itkNormalizedCorrelationImageToImageMetric.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 "NormalizedCorrelation";
~QmitkNormalizedCorrelationMetricView()
QmitkNormalizedCorrelationMetricView(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
itk::SmartPointer< Self > Pointer
virtual void SetupUI(QWidget *parent) override
virtual mitk::MetricParameters::MetricType GetMetricType() override
itk::Object::Pointer m_MetricObject
virtual void SetMetricParameters(itk::Array< double > metricValues) override
virtual itk::Array< double > GetMetricParameters() override
mitk::Image::Pointer m_MovingImage
virtual itk::Object::Pointer GetMetric() override
#define AccessByItk(mitkImage, itkImageTypeFunction)
Access a MITK image by an ITK image.
virtual QString GetName() override
virtual bool Maximize() override
MetricType
Unique integer value for every metric.
Ui::QmitkNormalizedCorrelationMetricControls m_Controls
Widget for rigid registration.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.