11 #ifndef STACKPROCESSLABELS_HPP 12 #define STACKPROCESSLABELS_HPP 35 if(!checkState().store(STORE_MAIN | STORE_VISIBLE | STORE_NON_LABEL).store(STORE_WORK | STORE_VISIBLE
38 Stack* stack = currentStack();
41 return (*
this)(stack, main, labels);
47 return "Segmentation";
53 return "3D Watershed on the current labeled stack.";
62 return QIcon(
":/images/SegmentMesh.png");
82 if(!checkState().store(STORE_MAIN | STORE_VISIBLE | STORE_NON_LABEL).store(STORE_WORK | STORE_VISIBLE
85 Stack* stack = currentStack();
88 return (*
this)(main, labels, parms[0].toUInt(), parms[1].toUInt());
91 bool operator()(
Store* data,
Store* labels, uint threshold, uint minvoxels);
94 return "Segmentation";
97 return "Consolidate Regions";
100 return "Consilodate regions after watershed overseeding";
118 return QIcon(
":/images/Consolidate.png");
137 if(!checkState().store(STORE_MAIN | STORE_VISIBLE | STORE_NON_LABEL).store(STORE_WORK | STORE_VISIBLE
140 Stack* stack = currentStack();
143 return (*
this)(main, labels, parms[0].toFloat());
146 bool operator()(
Store* data,
Store* labels,
float tolerance);
149 return "Segmentation";
152 return "Consolidate Regions Normalized";
155 return "Consolidate regions with normalization (slower)";
167 return QIcon(
":/images/Consolidate.png");
186 if(!checkState().store(STORE_LABEL))
188 Stack* stack = currentStack();
193 bool res = (*this)(input, output, parms[0].toInt(), parms[1].toInt());
201 bool operator()(
const Store* input,
Store* labels, uint minVoxels, uint maxVoxels);
204 return "Segmentation";
207 return "Delete Labels by Threshold";
210 return "Delete Labels above/below voxel thresholds";
228 return QIcon(
":/images/DeleteLabel.png");
250 if(!checkState().store(STORE_NON_LABEL))
252 Stack* stack = currentStack();
257 Point3f radius =
Point3u(parms[0].toFloat(), parms[1].toFloat(), parms[2].toFloat());
258 uint lab = parms[3].toUInt();
259 uint minColor = parms[4].toUInt();
260 bool res = (*this)(input, labels, radius, lab, minColor);
268 bool operator()(
const Store* input,
Store* labels,
Point3f radius, uint startLabel, uint minColor);
271 return "Segmentation";
274 return "Local Maxima";
277 return "Find local maxima and possibly number them";
282 <<
QString(
"Z Radius (%1)").
arg(UM) <<
"Start Label" 288 <<
QString(
"Z Radius (%1)").
arg(UM) <<
"Start Label" 300 return QIcon(
":/images/LocalMaxima.png");
319 if(!checkState().store(STORE_LABEL))
321 Stack* stack = currentStack();
326 bool res = (*this)(input, output, parms[0].toUShort(), parms[1].toUShort());
334 bool operator()(
const Store* input,
Store* output, ushort filledLabel, ushort newLabel);
337 return "Segmentation";
343 return "Replace a label with another one";
361 return QIcon(
":/images/FillLabel.png");
380 if(!checkState().store(STORE_LABEL))
382 Stack* stack = currentStack();
387 bool res = (*this)(input, output);
395 bool operator()(
const Store* input,
Store* output);
398 return "Segmentation";
401 return "Erase at Border";
404 return "Erase any labelled region touching the border of the image";
416 return QIcon(
":/images/EraseLabel.png");
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:184
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:112
void show()
Ask the user interface to show this store.
Definition: Store.hpp:177
Compute the seeded watershed of the current stack using the CImg library.
Definition: StackProcessLabels.hpp:25
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:406
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:61
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:350
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:157
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:212
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:209
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:203
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:52
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:58
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:248
const Store * currentStore() const
Returns the current store.
Definition: Stack.hpp:122
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:378
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:360
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:339
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:96
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:227
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:117
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:102
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:276
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:80
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:46
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:345
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:160
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:148
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:206
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:273
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:35
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:403
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:107
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:409
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:33
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:217
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:151
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:279
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:222
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:166
Variation on the ConsolidateRegions process.
Definition: StackProcessLabels.hpp:127
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:412
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:336
File containing the definition of a Process.
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:299
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:135
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:397
Delete labels that have too few or too many voxels.
Definition: StackProcessLabels.hpp:176
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:35
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:99
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
Try to merge segmented regions based on their contact area and the total voxel intensity at their bou...
Definition: StackProcessLabels.hpp:72
void hide()
Ask the user interface to hide this store.
Definition: Store.hpp:183
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:342
This namespace contains all the classes needed to define processes.
const Store * work() const
Access the work store.
Definition: Stack.hpp:103
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessLabels.hpp:154
const Store * main() const
Access the main store.
Definition: Stack.hpp:84
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessLabels.hpp:415
QStringList parmNames() const
List of named parameters.
Definition: StackProcessLabels.hpp:55
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:163
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:270
Stack processes have non-mutable access to meshes and mutable access to stacks.
Definition: Process.hpp:829
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:49
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessLabels.hpp:285
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:355
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessLabels.hpp:317
Erase any label touching the border of the image.
Definition: StackProcessLabels.hpp:370
Find the local maxima of the current image.
Definition: StackProcessLabels.hpp:240
QString name() const
Returns the name of the process.
Definition: StackProcessLabels.hpp:400
Replace one label by another one on the stack.
Definition: StackProcessLabels.hpp:309
QString folder() const
Folder in which to place the process.
Definition: StackProcessLabels.hpp:93
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessLabels.hpp:291