/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2019. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
#include "manualRegistration.h"
#include "manualRegistrationPlugin.h"
#include "manualRegistrationToolBox.h"
manualRegistrationPlugin::manualRegistrationPlugin(QObject *parent) : medPluginLegacy(parent)
{
}
bool manualRegistrationPlugin::initialize()
{
if(!manualRegistration::registered())
{
qWarning() << "Unable to register manualRegistration type";
}
if ( !manualRegistrationToolBox::registered() )
{
qWarning() << "Unable to register manualRegistration toolbox";
}
return true;
}
QString manualRegistrationPlugin::description() const
{
QString description;
description += "
Manual Registration Tutorial
";
description += "Manual registration between two volumes using landmarks.";
description += "Preparation
";
description += "";
description += "- Drops 2 data in the view.
";
description += "- Click on 'Start Manual Registration'.
";
description += "- You can choose to perform a Rigid transformation algorithm, or an Affine one.
";
description += "
";
description += "Landmarks
";
description += "You need to select some identical points of interest on both the data. ";
description += "Firstly, choose a point of interest on the first image and add a landmark, then search the same point of interest on the second data and add a landmark on this second data.";
description += "";
description += "- To add a landmark: Shift + left mouse button.
";
description += "- To remove a pair of landmarks: Backspace + left mouse button.
";
description += "
";
description += "Run
";
description += "";
description += "- When you are ready, click on 'Compute Registration'.
";
description += "- The new transformation is added to the transformation list.
";
description += "- You can redo, undo, reset, and export the last transformation to a file.
";
description += "
";
description += "This plugin uses the ITK library: https://itk.org";
return description;
}
QString manualRegistrationPlugin::name() const
{
return "Manual Registration";
}
QString manualRegistrationPlugin::version() const
{
return MANUALREGISTRATIONPLUGIN_VERSION;
}
QStringList manualRegistrationPlugin::types() const
{
return QStringList() << "manualRegistration";
}