/*========================================================================= 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 #include #include #include variationalSegmentationPlugin::variationalSegmentationPlugin(QObject *parent) : medPluginLegacy(parent) { } bool variationalSegmentationPlugin::initialize() { if(!variationalSegmentation::registered()) { qDebug() << "Unable to register variationalSegmentation type"; } medToolBoxFactory *factory = medToolBoxFactory::instance(); if(!factory->registerToolBox()) { qDebug() << "Unable to register VarSegToolBox type"; } return true; } QString variationalSegmentationPlugin::name() const { return "Variational Segmentation"; } QString variationalSegmentationPlugin::description() const { QString description; description += "

Variational Segmentation Tutorial

"; description += "Drop a volume in the view and click on 'Start Segmentation'."; description += "

Segmentation

"; description += "Click on the data to add some "; description += "landmarks on the contour, and at least one inside or outside the area you "; description += "want to segment."; description += "

Type of landmarks to set

"; description += "
    "; description += "
  • Inside VOI: \n\tShift + right mouse button
  • "; description += "
  • On VOI: \n\tShift + left mouse button
  • "; description += "
  • Outside VOI: \n\tShift + Ctrl + right mouse button \n\tor Shift + middle mouse button
  • "; description += "
  • To delete a landmark: \n\tCtrl + left mouse button on the landmark
  • "; description += "
"; description += "

Results

"; description += "When you are done, click on 'Apply segmentation' to see the "; description += "result. You can then generate your binary volume clicking on 'Save Mask'."; description += "

This plugin uses the VTK library: https://vtk.org"; return description; } QString variationalSegmentationPlugin::version() const { return VARIATIONALSEGMENTATIONPLUGIN_VERSION; } QStringList variationalSegmentationPlugin::types() const { return QStringList() << "variationalSegmentation"; }