MorphoGraphX
StackProcessFilters.hpp
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef STACKPROCESSFILTERS_HPP
12 #define STACKPROCESSFILTERS_HPP
13 
14 #include <Process.hpp>
15 
16 namespace mgx { namespace process
17 {
20 
28  class mgxBase_EXPORT AverageStack : public StackProcess {
29  public:
30  AverageStack(const StackProcess& process) : Process(process), StackProcess(process) {}
31 
32  bool operator()(const QStringList& parms)
33  {
34  if(!checkState().store(STORE_NON_EMPTY))
35  return false;
36  Store* input = currentStack()->currentStore();
37  Store* output = currentStack()->work();
38  Point3i r(parms[0].toInt(), parms[1].toInt(), parms[2].toInt());
39  bool res = (*this)(input, output, r, parms[3].toUInt());
40  if(res) {
41  input->hide();
42  output->show();
43  }
44  return res;
45  }
46 
47  bool operator()(const Store* input, Store* output, Point3i radius, uint steps);
48 
49  QString name() const { return "Average"; }
50  QString description() const { return "Average stack data with a square filter."; }
51  QString folder() const { return "Filters"; }
52  QStringList parmNames() const { return QStringList() << "X Radius" << "Y Radius" << "Z Radius" << "Steps"; }
53  QStringList parmDescs() const { return QStringList() << "X Radius" << "Y Radius" << "Z Radius" << "Steps"; }
54  QStringList parmDefaults() const { return QStringList() << "1" << "1" << "1" << "1"; }
55  QIcon icon() const { return QIcon(":/images/AvgPix.png"); }
56  };
57 
69  class mgxBase_EXPORT BrightenStack : public StackProcess {
70  public:
71  BrightenStack(const StackProcess& process) : Process(process), StackProcess(process) {}
72 
73  bool operator()(const QStringList& parms)
74  {
75  if(!checkState().store(STORE_NON_EMPTY))
76  return false;
77  Stack* s = currentStack();
78  Store* input = s->currentStore();
79  Store* output = s->work();
80  bool res = (*this)(input, output, parms[0].toFloat());
81  if(res) {
82  input->hide();
83  output->show();
84  }
85  return res;
86  }
87  bool operator()(const Store* input, Store* output, float brightness);
88 
89  QString folder() const { return "Filters"; }
90  QString name() const { return "Brighten Darken"; }
91  QString description() const { return
92  "Brighten or Darken stack.\n"
93  "A value > 1 will brighten the stack, < 1 will darken it.\n"
94  "To convert from a 12bit to a 16bit stack, use 16.\n"
95  "To convert from a 8bit to a 16bit stack, use 256.\n"; }
96  QStringList parmNames() const { return QStringList() << "Amount"; }
97  QStringList parmDescs() const { return QStringList() << "Amount to multiply voxels"; }
98  QStringList parmDefaults() const { return QStringList() << "2.0"; }
99  QIcon icon() const { return QIcon(":/images/Brightness.png"); }
100  };
101 
108  class mgxBase_EXPORT BinarizeStack : public StackProcess {
109  public:
111  : Process(process)
112  , StackProcess(process)
113  {
114  }
115 
116  bool operator()(const QStringList& parms)
117  {
118  if(!checkState().store(STORE_NON_EMPTY))
119  return false;
120  Stack* s = currentStack();
121  Store* input = s->currentStore();
122  Store* output = s->work();
123  bool res = (*this)(input, output, parms[0].toUShort());
124  if(res) {
125  input->hide();
126  output->show();
127  }
128  return res;
129  }
130  bool operator()(const Store* input, Store* output, ushort threshold);
131 
132  QString folder() const {
133  return "Filters";
134  }
135  QString name() const {
136  return "Binarize";
137  }
139  {
140  return "Transform the stack to binary (65535 or 0).\n"
141  "All voxels with an intensity greater than the threshold to 65535, while to others are set to 0.";
142  }
144  return QStringList() << "Threshold";
145  }
147  return QStringList() << "Voxels above this threshold will be assigned 1.";
148  }
150  return QStringList() << "5000";
151  }
152  QIcon icon() const {
153  return QIcon(":/images/Brightness.png");
154  }
155  };
156 
162  class mgxBase_EXPORT ColorGradient : public StackProcess {
163  public:
165  : Process(process)
166  , StackProcess(process)
167  {
168  }
169 
170  bool operator()(const QStringList& parms)
171  {
172  if(!checkState().store(STORE_NON_EMPTY))
173  return false;
174  Stack* s = currentStack();
175  Store* input = s->currentStore();
176  Store* output = s->work();
177  bool res = (*this)(input, output, parms[0].toFloat());
178  if(res) {
179  input->hide();
180  output->show();
181  }
182  return res;
183  }
184  bool operator()(const Store* input, Store* output, float colorGradDiv);
185 
186  QString folder() const {
187  return "Filters";
188  }
189  QString name() const {
190  return "Color Gradient";
191  }
193  return "Compute color gradient in Z direction";
194  }
196  return QStringList() << "Z Divisor";
197  }
199  return QStringList() << "Factor by which the gradient is divided by.";
200  }
202  return QStringList() << "5.0";
203  }
204  QIcon icon() const {
205  return QIcon(":/images/ColorGrad.png");
206  }
207  };
208 
214  class mgxBase_EXPORT InvertStack : public StackProcess {
215  public:
217  : Process(process)
218  , StackProcess(process)
219  {
220  }
221 
222  bool operator()(const QStringList&)
223  {
224  if(!checkState().store(STORE_NON_EMPTY))
225  return false;
226  Stack* s = currentStack();
227  Store* input = s->currentStore();
228  Store* output = s->work();
229  bool res = (*this)(input, output);
230  if(res) {
231  input->hide();
232  output->show();
233  }
234  return res;
235  }
236  bool operator()(const Store* input, Store* output);
237 
238  QString folder() const {
239  return "Filters";
240  }
241  QString name() const {
242  return "Invert";
243  }
245  return "Invert the stack";
246  }
248  return QStringList();
249  }
251  return QStringList();
252  }
253  QIcon icon() const {
254  return QIcon(":/images/Invert.png");
255  }
256  };
257 
263  class mgxBase_EXPORT FilterStack : public StackProcess {
264  public:
266  : Process(process)
267  , StackProcess(process)
268  {
269  }
270 
271  bool operator()(const QStringList& parms)
272  {
273  if(!checkState().store(STORE_NON_EMPTY))
274  return false;
275  Stack* s = currentStack();
276  Store* input = s->currentStore();
277  Store* output = s->work();
278  bool res = (*this)(input, output, parms[0].toUInt(), parms[1].toUInt());
279  if(res) {
280  input->hide();
281  output->show();
282  }
283  return res;
284  }
285  bool operator()(const Store* input, Store* output, uint lowFilter, uint highFilter);
286 
287  QString folder() const {
288  return "Filters";
289  }
290  QString name() const {
291  return "Trim high/low values";
292  }
294  {
295  return "Clip the voxel intensities to the interval [Low Threshold, High Threshold].";
296  }
298  {
299  return QStringList() << "Low Threshold"
300  << "High Threshold";
301  }
303  {
304  return QStringList() << "Lower bound"
305  << "Upper bound";
306  }
308  {
309  return QStringList() << "1000"
310  << "0";
311  }
312  QIcon icon() const {
313  return QIcon(":/images/Filter.png");
314  }
315  };
316 
325  class mgxBase_EXPORT GaussianBlurStack : public StackProcess {
326  public:
328  : Process(process)
329  , StackProcess(process)
330  {
331  }
332 
333  bool operator()(const QStringList& parms)
334  {
335  if(!checkState().store(STORE_NON_EMPTY))
336  return false;
337  Stack* s = currentStack();
338  Store* input = s->currentStore();
339  Store* output = s->work();
340  Point3f sigma(parms[0].toFloat(), parms[1].toFloat(), parms[2].toFloat());
341  bool res = (*this)(input, output, sigma);
342  if(res) {
343  input->hide();
344  output->show();
345  }
346  return res;
347  }
348  bool operator()(const Store* input, Store* output, Point3f sigma);
349 
350  QString folder() const {
351  return "Filters";
352  }
353  QString name() const {
354  return "Gaussian Blur Stack";
355  }
357  return "Blur the stack, radius = 3 x Sigma";
358  }
360  {
361  return QStringList() << QString("X Sigma (%1)").arg(UM) << QString("Y Sigma (%1)").arg(UM)
362  << QString("Z Sigma (%1)").arg(UM);
363  }
365  {
366  return QStringList() << QString("X Sigma (%1)").arg(UM) << QString("Y Sigma (%1)").arg(UM)
367  << QString("Z Sigma (%1)").arg(UM);
368  }
370  {
371  return QStringList() << "0.3"
372  << "0.3"
373  << "0.3";
374  }
375  QIcon icon() const {
376  return QIcon(":/images/Blur.png");
377  }
378  };
379 
389  class mgxBase_EXPORT SharpenStack : public StackProcess {
390  public:
392  : Process(process)
393  , StackProcess(process)
394  {
395  }
396 
397  bool operator()(const QStringList& parms)
398  {
399  if(!checkState().store(STORE_NON_EMPTY))
400  return false;
401  Stack* s = currentStack();
402  Store* input = s->currentStore();
403  Store* output = s->work();
404  Point3f sigma(parms[0].toFloat(), parms[1].toFloat(), parms[2].toFloat());
405  bool res = (*this)(input, output, sigma, parms[3].toFloat());
406  if(res) {
407  input->hide();
408  output->show();
409  }
410  return res;
411  }
412  bool operator()(const Store* input, Store* output, const Point3f sigma, const float amount);
413 
414  QString folder() const {
415  return "Filters";
416  }
417  QString name() const {
418  return "Sharpen Stack";
419  }
421  return "Sharpen the stack, radius = 3 x Sigma";
422  }
424  {
425  return QStringList() << QString("X Sigma (%1)").arg(UM) << QString("Y Sigma (%1)").arg(UM)
426  << QString("Z Sigma (%1)").arg(UM) << "Amount";
427  }
429  {
430  return QStringList() << QString("X Sigma (%1)").arg(UM) << QString("Y Sigma (%1)").arg(UM)
431  << QString("Z Sigma (%1)").arg(UM) << "Amount";
432  }
434  {
435  return QStringList() << "0.2"
436  << "0.2"
437  << "1.0"
438  << "1.0";
439  }
440  QIcon icon() const {
441  return QIcon(":/images/Sharpen.png");
442  }
443  };
444 
453  class mgxBase_EXPORT ApplyKernelStack : public StackProcess {
454  public:
456  : Process(process)
457  , StackProcess(process)
458  {
459  }
460 
461  bool operator()(const QStringList& parms)
462  {
463  if(!checkState().store(STORE_NON_EMPTY))
464  return false;
465  Stack* s = currentStack();
466  Store* input = s->currentStore();
467  Store* output = s->work();
468  HVecF kernels[3];
469  bool ok;
470  QString fields[3] = { "x", "y", "z" };
471  for(int i = 0; i < 3; i++) {
472  QString str = QString(parms[i]).trimmed();
473  QStringList field_values = str.split(" ", QString::SkipEmptyParts);
474  kernels[i].resize(field_values.size());
475  for(size_t j = 0; j < (size_t)field_values.size(); ++j) {
476  kernels[i][j] = field_values[j].toFloat(&ok);
477  if(not ok)
478  return setErrorMessage(
479  QString("Value %1 of field %2 if not a valid number.").arg(j).arg(fields[i]));
480  }
481  }
482 
483  bool res = (*this)(input, output, kernels[0], kernels[1], kernels[2]);
484  if(res) {
485  input->hide();
486  output->show();
487  }
488  return res;
489  }
490  bool operator()(const Store* input, Store* output, const HVecF& kernelX, const HVecF& kernelY,
491  const HVecF& kernelZ);
492 
493  QString folder() const {
494  return "Filters";
495  }
496  QString name() const {
497  return "Apply Separable Kernel";
498  }
500  return "Kernel must have odd number of values";
501  }
503  {
504  return QStringList() << "X Kernel"
505  << "Y Kernel"
506  << "Z Kernel";
507  }
509  {
510  return QStringList() << "X Kernel"
511  << "Y Kernel"
512  << "Z Kernel";
513  }
515  {
516  return QStringList() << "-.1 1.2 -.1"
517  << "-.1 1.2 -.1"
518  << "-.1 1.2 -.1";
519  }
520  QIcon icon() const {
521  return QIcon(":/images/Kernel.png");
522  }
523  };
524 
534  class mgxBase_EXPORT NormalizeStack : public StackProcess {
535  public:
537  : Process(process)
538  , StackProcess(process)
539  {
540  }
541 
542  bool operator()(const QStringList& parms)
543  {
544  if(!checkState().store(STORE_NON_EMPTY))
545  return false;
546  Stack* s = currentStack();
547  Store* input = s->currentStore();
548  Store* output = s->work();
549  Point3f radius(parms[0].toFloat(), parms[1].toFloat(), parms[2].toFloat());
550  Point3f sigma(parms[3].toFloat(), parms[4].toFloat(), parms[5].toFloat());
551  bool res = (*this)(input, output, radius, sigma, parms[6].toUInt(), parms[7].toFloat());
552  if(res) {
553  input->hide();
554  output->show();
555  }
556  return res;
557  }
558  bool operator()(const Store* input, Store* output, Point3f radius, Point3f sigma, uint threshold, float blurFactor);
559 
560  QString folder() const {
561  return "Filters";
562  }
563  QString name() const {
564  return "Normalize Stack";
565  }
567  return "Normalize the stack";
568  }
570  {
571  return QStringList() << QString("X Radius (%1)").arg(UM) << QString("Y Radius (%1)").arg(UM)
572  << QString("Z Radius (%1)").arg(UM) << QString("X Sigma (%1)").arg(UM)
573  << QString("Y Sigma (%1)").arg(UM) << QString("Z Sigma (%1)").arg(UM) << "Threshold"
574  << "Blur factor";
575  }
577  {
578  return QStringList() << QString("X Radius (%1) for the locality of normalization").arg(UM)
579  << QString("Y Radius (%1) for the locality of normalization").arg(UM)
580  << QString("Z Radius (%1) for the locality of normalization").arg(UM)
581  << QString("X Sigma (%1) for pre-blur").arg(UM)
582  << QString("Y Sigma (%1) for pre-blur").arg(UM)
583  << QString("Z Sigma (%1) for pre-blur").arg(UM)
584  << "Threshold under which pixels are cleared considered as background"
585  << "Relative contribution of blurred vs unblurred dilation";
586  }
588  {
589  return QStringList() << "5.0"
590  << "5.0"
591  << "5.0"
592  << "0.5"
593  << "0.5"
594  << "0.5"
595  << "10000"
596  << "0.7";
597  }
598  QIcon icon() const {
599  return QIcon(":/images/Normalize.png");
600  }
601  };
602 
608  class mgxBase_EXPORT CImgGaussianBlurStack : public StackProcess {
609  public:
611  : Process(process)
612  , StackProcess(process)
613  {
614  }
615 
616  bool operator()(const QStringList& parms)
617  {
618  if(!checkState().store(STORE_NON_EMPTY))
619  return false;
620  Stack* s = currentStack();
621  Store* input = s->currentStore();
622  Store* output = s->work();
623  bool res = (*this)(input, output, parms[0].toUInt());
624  if(res) {
625  input->hide();
626  output->show();
627  }
628  return res;
629  }
630 
631  bool operator()(const Store* input, Store* output, uint radius);
632 
633  QString folder() const {
634  return "CImage";
635  }
636  QString name() const {
637  return "Cimg Gaussian Blur";
638  }
640  return "Cimg Gaussian Blur";
641  }
643  return QStringList() << "Radius";
644  }
646  return QStringList() << "Radius";
647  }
649  return QStringList() << "5";
650  }
651  QIcon icon() const {
652  return QIcon(":/images/Blur.png");
653  }
654  };
655 
661  class mgxBase_EXPORT CImgLaplaceStack : public StackProcess {
662  public:
664  : Process(process)
665  , StackProcess(process)
666  {
667  }
668 
669  bool operator()(const QStringList&)
670  {
671  if(!checkState().store(STORE_NON_EMPTY))
672  return false;
673  Stack* s = currentStack();
674  Store* input = s->currentStore();
675  Store* output = s->work();
676  bool res = (*this)(input, output);
677  if(res) {
678  input->hide();
679  output->show();
680  }
681  return res;
682  }
683  bool operator()(const Store* input, Store* output);
684 
685  QString folder() const {
686  return "CImage";
687  }
688  QString name() const {
689  return "CImg Laplace Transform";
690  }
692  return "CImg Laplace transform of stack";
693  }
695  return QStringList();
696  }
698  return QStringList();
699  }
700  QIcon icon() const {
701  return QIcon(":/images/Laplace.png");
702  }
703  };
705 } // namespace process
706 } // namespace mgx
707 
708 #endif // STACKPROCESSFILTERS_HPP
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:152
void show()
Ask the user interface to show this store.
Definition: Store.hpp:177
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:697
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:51
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:312
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:73
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:375
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:499
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:55
Change the global luminosity of the stack.
Definition: StackProcessFilters.hpp:69
Blur the stack using a Gaussian kernel or specified radius.
Definition: StackProcessFilters.hpp:325
split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:146
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:192
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:616
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:440
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:587
arg(const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char( ' ')
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:99
const Store * currentStore() const
Returns the current store.
Definition: Stack.hpp:122
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:297
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:138
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:685
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:195
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:356
Compute the local average of each voxel of the stack.
Definition: StackProcessFilters.hpp:28
Compute the gradient of the image in the Z axis of the image.
Definition: StackProcessFilters.hpp:162
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:189
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:569
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:633
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:135
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:271
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:89
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:201
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:700
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:417
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:238
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:639
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:143
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:98
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:97
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:359
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:52
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:333
Invert the intensity of all voxels in the stack.
Definition: StackProcessFilters.hpp:214
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:642
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:566
Apply a user-defined convolution kernel to the current image.
Definition: StackProcessFilters.hpp:453
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:253
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:53
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:293
The Store class holds the actual 3D data and properties specific to it.
Definition: Store.hpp:35
Compute the Laplacian of the stack (using CImg).
Definition: StackProcessFilters.hpp:661
Binarize the stack: set the intensity of any voxel greater than the threshold to 65535 and all other ...
Definition: StackProcessFilters.hpp:108
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:149
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:54
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:669
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:307
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:598
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:542
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:96
CImg implementation of the gaussian blur.
Definition: StackProcessFilters.hpp:608
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:636
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:461
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:50
Namespace containing all the utility classes.
Definition: Vector.hpp:47
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:170
Apply an "unsharp" filter to the stack.
Definition: StackProcessFilters.hpp:389
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:691
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:520
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:247
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:563
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:287
File containing the definition of a Process.
The Stack class represent the dimensions of the 3D data, and the frames transformations.
Definition: Stack.hpp:35
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:496
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:241
This is the main process class, the one all process inherit from.
Definition: Process.hpp:258
void hide()
Ask the user interface to hide this store.
Definition: Store.hpp:183
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:576
This namespace contains all the classes needed to define processes.
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:350
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:428
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:502
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:651
const Store * work() const
Access the work store.
Definition: Stack.hpp:103
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:49
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:198
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:645
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:91
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:508
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:244
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:250
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:648
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:302
Clip the intensity of the stack to the interval [Low Threshold, High Threshold].
Definition: StackProcessFilters.hpp:263
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:414
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:90
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:694
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:186
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:433
QStringList parmDescs() const
List of parameters descriptions.
Definition: StackProcessFilters.hpp:364
Normalize the intensity of the stack.
Definition: StackProcessFilters.hpp:534
Stack processes have non-mutable access to meshes and mutable access to stacks.
Definition: Process.hpp:829
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:493
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:132
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:32
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:397
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:369
QString description() const
Returns a description of the process for the GUI.
Definition: StackProcessFilters.hpp:420
QStringList parmNames() const
List of named parameters.
Definition: StackProcessFilters.hpp:423
bool operator()(const QStringList &)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:222
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: StackProcessFilters.hpp:204
QString folder() const
Folder in which to place the process.
Definition: StackProcessFilters.hpp:560
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:290
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:353
QStringList parmDefaults() const
List of default parms.
Definition: StackProcessFilters.hpp:514
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: StackProcessFilters.hpp:116
QString name() const
Returns the name of the process.
Definition: StackProcessFilters.hpp:688