1 #ifndef PRINCIPAL_ORIENTATIONS_HPP
2 #define PRINCIPAL_ORIENTATIONS_HPP
30 return operator()(mesh, parms[0].toFloat(), parms[1].toFloat());
36 return "Cell Axis/Fibril Orientations";
39 return "Compute Fibril Orientations";
43 return "Compute principle orientations of lines in the mesh signal.\n"
44 "Based on Boudaoud et al., 'FibrilTool, an ImageJ plug-in to\n"
45 "quantify fibrillar structures in raw microscopy images', Nature Protocols 2014";
50 <<
"Minimum inner area ratio";
55 <<
"Width of cell border that is not taken into account for the computation."
56 <<
"Minimum ratio of inner area (whole cell - border) vs. total area needed for compuation.";
64 return QIcon(
":/images/PrincipalOrientations.png");
84 if(!checkState().mesh(MESH_NON_EMPTY))
87 return (*
this)(currentMesh(), parms[0],
QColor(parms[1]), parms[2].toFloat(), parms[3].toFloat(),
88 parms[4].toFloat(), parms[5].toFloat());
91 bool operator()(
Mesh* mesh,
const QString DisplayHeatMap,
const QColor& ColorMax,
float AxisLineWidth,
92 float ScaleAxisLength,
float AxisOffset,
float OrientationThreshold);
95 return "Cell Axis/Fibril Orientations";
98 return "Display Fibril Orientations";
102 return "Display the orientations of fibrils on the image.\n"
103 "Only the maximal direction (main orientation) is displayed as a vector.";
116 return QStringList() <<
"Display orientation strength (= MaxDirection/MinDirection - 1) as a colormap."
119 <<
"Length of the vectors = Scale * orientation strength."
120 <<
"Draw the vector ends a bit tilted up for proper display on surfaces."
121 <<
"Minimal value of orientation strength required for drawing main direction.";
141 return QIcon(
":/images/PrincipalOrientations.png");
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessFibril.hpp:140
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessFibril.hpp:105
Change the representation of the fibril orientation after it has been computed.
Definition: MeshProcessFibril.hpp:74
QString folder() const
Folder in which to place the process.
Definition: MeshProcessFibril.hpp:35
QString name() const
Returns the name of the process.
Definition: MeshProcessFibril.hpp:97
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessFibril.hpp:123
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessFibril.hpp:25
QIcon icon() const
Icon to use to represent the process in the GUI.
Definition: MeshProcessFibril.hpp:63
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessFibril.hpp:114
Process()
Default constructor.
QStringList parmDescs() const
List of parameters descriptions.
Definition: MeshProcessFibril.hpp:52
CheckState checkState()
Call this function and convert the result to a boolean.
QStringList parmNames() const
List of named parameters.
Definition: MeshProcessFibril.hpp:47
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualiza...
Definition: Mesh.hpp:167
QString folder() const
Folder in which to place the process.
Definition: MeshProcessFibril.hpp:94
bool operator()(const QStringList &parms)
Implementation of the process with generic arguments.
Definition: MeshProcessFibril.hpp:82
QStringList parmDefaults() const
List of default parms.
Definition: MeshProcessFibril.hpp:58
QString name() const
Returns the name of the process.
Definition: MeshProcessFibril.hpp:38
File containing the definition of a Process.
Mesh * mesh(int i)
Returns the ith mesh.
This is the main process class, the one all process inherit from.
Definition: Process.hpp:248
Show the signal.
Definition: Process.hpp:671
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessFibril.hpp:41
Non-empty mesh.
Definition: Process.hpp:664
Compute principle orientations of lines in the mesh signal.
Definition: MeshProcessFibril.hpp:17
Mesh * currentMesh()
Returns the current mesh (i.e.
QString description() const
Returns a description of the process for the GUI.
Definition: MeshProcessFibril.hpp:100
Mesh processes have mutable access to meshes and non-mutable access to stacks.
Definition: Process.hpp:855
ParmChoiceMap parmChoice() const
Purely for GUI purposes, provides for some of the parms parameter a choice.
Definition: MeshProcessFibril.hpp:132