Computer Assisted Medical Intervention Tool Kit  version 5.1
RegionGrowingWidget.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2023 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6 *
7 * Visit http://camitk.imag.fr for more information
8 *
9 * This file is part of CamiTK.
10 *
11 * CamiTK is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * CamiTK is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * $CAMITK_LICENCE_END$
24 ****************************************************************************/
25#ifndef REGIONGROWINGWIDGET_H
26#define REGIONGROWINGWIDGET_H
27
28#include <QWidget>
29
30#include <ImageComponent.h>
31#include <MultiPickingWidget.h>
32#include <Action.h>
33
34#include "ui_RegionGrowingWidget.h"
35
44class RegionGrowingWidget : public QWidget {
45 Q_OBJECT
46
47public:
50
52 ~RegionGrowingWidget() override = default;
53
56
61 bool isSmoothingChecked();
65 double getTimeStep();
67 int getLowThreshold();
69 int getHighThreshold();
71 QList<QVector3D>* getSeedPoints(camitk::ImageComponent* image);
74protected:
75 Ui::RegionGrowingWidget ui;
76
79
82
83};
84
85#endif // REGIONGROWINGWIDGET_H
The multipicking action widget (a table with the pixel coordinates/3D indexes + some buttons to inter...
Definition: MultiPickingWidget.h:47
RegionGrowing action widget.
Definition: RegionGrowingWidget.h:44
camitk::Action * myAction
Connected Action.
Definition: RegionGrowingWidget.h:81
int getNumberOfIterations()
number of iterations for smoothing
Definition: RegionGrowingWidget.cpp:49
void updateComponent(camitk::ImageComponent *image)
Update the widget with the correct PickedPixelMap (ImageComponent + Qlist of the selected points)
Definition: RegionGrowingWidget.cpp:70
int getLowThreshold()
low threshold for region growing
Definition: RegionGrowingWidget.cpp:57
~RegionGrowingWidget() override=default
destructor
RegionGrowingWidget(camitk::Action *action)
Default construtor.
Definition: RegionGrowingWidget.cpp:35
double getTimeStep()
time step for smoothing
Definition: RegionGrowingWidget.cpp:53
MultiPickingWidget * pickingW
Multiple picking widget.
Definition: RegionGrowingWidget.h:78
bool isSmoothingChecked()
Accessors to all parameters.
Definition: RegionGrowingWidget.cpp:45
Ui::RegionGrowingWidget ui
Definition: RegionGrowingWidget.h:75
int getHighThreshold()
high threshold for region growing
Definition: RegionGrowingWidget.cpp:61
QList< QVector3D > * getSeedPoints(camitk::ImageComponent *image)
List of seed points.
Definition: RegionGrowingWidget.cpp:65
Action class is an abstract class that enables you to build a action (generally on a component).
Definition: Action.h:208
The manager of the Image Volume data.
Definition: ImageComponent.h:77