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