Skip to content

Commit a757e24

Browse files
committed
MLAB-6465: shortcode 'imagegallery' can now display titles; added titles to the images in an imagegallery
1 parent c7c6305 commit a757e24

22 files changed

Lines changed: 172 additions & 37 deletions

File tree

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/globalmacromodules.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ Make sure to choose *Directory Structure* as *self-contained*. This ensures that
7979

8080
Click <field>Next ></field> to edit further properties. You have the opportunity to directly define the internal network of the macro module, for example, by copying an existing network. In this case, we could copy the network of the local macro module `Filter` we already created. In addition, you have the opportunity to directly create a Python file. Python scripting can be used for the implementation of module interactions and other module functionalities. More information about Python scripting can be found [here](./tutorials/basicmechanisms/macromodules/pythonscripting).
8181

82-
{{< imagegallery 2 "images" "ProjectWizard1" "ProjectWizard2" >}}
82+
{{< imagegallery 2
83+
"images"
84+
"ProjectWizard1|Module properties"
85+
"ProjectWizard2|Macro module properties"
86+
>}}
8387
8488
## Structure of Global Macro Modules
8589
After creating your global macro module, you can find the created project *MyProject* in your package. This project contains your macro module `Filter`. For the macro module exist three files:

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/itemmodelview.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ We can leave the *Fields* empty for now. We can add them in the *.script* file.
3535

3636
Click *Create* {{< mousebutton "left" >}}.
3737

38-
{{< imagegallery 3 "images/tutorials/basicmechanics" "ItemModel_1" "ItemModel_2" "ItemModel_3">}}
38+
{{< imagegallery 3
39+
"images/tutorials/basicmechanics"
40+
"ItemModel_1|Module properties"
41+
"ItemModel_2|Macro module properties"
42+
"ItemModel_3|Module field interface"
43+
>}}
3944
4045
If you cannot find your module via *Module Search*, reload module cache by clicking the menu item {{< menuitem "Extras" "Reload Module Database (Clear Cache)" >}}
4146

mevislab.github.io/content/tutorials/basicmechanisms/macromodules/pythondebugger.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ Now, the code execution is only stopped if you copy the tag name *SOPClassUID*.
121121
## Evaluate Expression
122122
The *Evaluate Expression* tab allows you to modify variables during execution. In our example, you can set the result <inlineCode>item.text(1)</inlineCode> to something like <inlineCode>item.setText(1, "Hello")</inlineCode>. If you now step to the next line via {{< keyboard "F10" >}}, your watched value shows *"Hello"* instead of *"SOPClassUID"*.
123123

124-
{{< imagegallery 2 "images/tutorials/basicmechanics" "Debug9" "Debug9a" >}}
124+
{{< imagegallery 2
125+
"images/tutorials/basicmechanics"
126+
"Debug9|Evaluate expression"
127+
"Debug9a|Watches"
128+
>}}
125129
126130
## Summary
127131
* MATE allows debugging of any Python files including files predefined in MeVisLab.

mevislab.github.io/content/tutorials/dataobjects/contourobjects.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@ As mentioned, when creating CSOs, you can do this interactively by using an edit
3737

3838
The following images show editors available in MeVisLab for drawing CSOs:
3939

40-
{{< imagegallery 6 "images/tutorials/dataobjects/contours" "SoCSOPointEditor" "SoCSOAngleEditor" "SoCSOArrowEditor" "SoCSODistanceLineEditor" "SoCSODistancePolylineEditor" "SoCSOEllipseEditor" "SoCSORectangleEditor" "SoCSOSplineEditor" "SoCSOPolygonEditor" "SoCSOIsoEditor" "SoCSOLiveWireEditor">}}
40+
{{< imagegallery 6
41+
"images/tutorials/dataobjects/contours"
42+
"SoCSOPointEditor"
43+
"SoCSOAngleEditor"
44+
"SoCSOArrowEditor"
45+
"SoCSODistanceLineEditor"
46+
"SoCSODistancePolylineEditor"
47+
"SoCSOEllipseEditor"
48+
"SoCSORectangleEditor"
49+
"SoCSOSplineEditor"
50+
"SoCSOPolygonEditor"
51+
"SoCSOIsoEditor"
52+
"SoCSOLiveWireEditor"
53+
>}}
4154
4255
{{<alert class="info" caption="Extra Infos">}}
4356
The `SoCSOIsoEditor` and `SoCSOLiveWireEditor` are special, because they are using an algorithm to detect edges themselves.

mevislab.github.io/content/tutorials/dataobjects/contours/contourexample6.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ In order to see all possible parameters of a CSO, add a `CSOInfo` module to your
7070

7171
For labels shown on grayscale images, it makes sense to add a shadow. Open the panel of the `SoCSOVisualizationSettings` module and on tab *Misc* check the option <field>Should render shadow</field>. This increases the readability of your labels.
7272

73-
{{< imagegallery 2 "images/tutorials/dataobjects/contours/" "Ex6_NoShadow" "Ex6_Shadow" >}}
73+
{{< imagegallery 2
74+
"images/tutorials/dataobjects/contours/"
75+
"Ex6_NoShadow|Labels without shadow"
76+
"Ex6_Shadow|Labels with shadow"
77+
>}}
7478
7579
If you want to define your static text as a parameter in multiple labels, you can open the panel of the `CSOLabelRenderer` module and define text as *User Data*. The values can then be used in Python via <inlineCode>userData</inlineCode>.
7680

mevislab.github.io/content/tutorials/dataobjects/curves/curvesexample1.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ Now, update the <field>Curve Table</field>, so that you are using three columns
7777

7878
You can see two curves. The second and third columns are printed as separate curves. Both appear yellow. After checking <field>Split columns into data sets</field>, you will see one yellow and one red curve.
7979

80-
{{<imagegallery 2 "images/tutorials/dataobjects/curves" "before_split" "after_split">}}
80+
{{< imagegallery 2
81+
"/images/tutorials/dataobjects/curves"
82+
"before_split|Without splitting columns"
83+
"after_split|Splitting the columns"
84+
>}}
8185
8286
If the flag <field>Split columns into data sets</field> is set to *TRUE*, then a table with more than two columns is split into different *CurveData* objects. This gives the user the possibility to assign a different style and title for each series.
8387

mevislab.github.io/content/tutorials/dataobjects/surfaceobjects.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,22 @@ Between the nodes and alongside the edges, faces are created. The rendering of t
4949
#### Normals
5050
Normals display the orthogonal vector either to the faces (face normals) or to the nodes (nodes normals, which are just the average of adjacent face normals). With the help of the module `SoWEMRendererNormals`, these structures can be visualized.
5151
![Network for rendering normals and nodes of a WEM](images/tutorials/dataobjects/surfaces/WEM_01_6.png "Network for rendering normals and nodes of a WEM")
52-
{{< imagegallery 2 "images/tutorials/dataobjects/surfaces/" "WEMNodeNormals" "WEMFaceNormals">}}
52+
53+
{{< imagegallery 2
54+
"images/tutorials/dataobjects/surfaces/"
55+
"WEMNodeNormals"
56+
"WEMFaceNormals"
57+
>}}
5358
5459
### WEMs in MeVisLab {#WEMsInMevislab}
5560
In MeVisLab, WEMs can consist of triangles, quadrilaterals, or other polygons. Most common in MeVisLab are surfaces composed of triangles, as shown in the following example. With the help of the module `WEMLoad`, existing WEMs can be loaded into the network.
5661

57-
{{< imagegallery 3 "images/tutorials/dataobjects/surfaces/" "WEMTriangles" "WEMNetwork" "WEMSurface" >}}
62+
{{< imagegallery 3
63+
"images/tutorials/dataobjects/surfaces/"
64+
"WEMTriangles"
65+
"WEMNetwork"
66+
"WEMSurface"
67+
>}}
5868
5969
## Summary
6070
* WEMs are polygon meshes, in most cases composed of triangles.

mevislab.github.io/content/tutorials/dataobjects/surfaces/surfaceexample5.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ As a next step, add and connect two modules `WEMSubdivide` to further divide edg
3636

3737
The difference when selecting different maximum edge lengths can be seen in the following images.
3838

39-
{{< imagegallery 2 "images/tutorials/dataobjects/surfaces" "EdgeLength1" "EdgeLength01">}}
39+
{{< imagegallery 2
40+
"images/tutorials/dataobjects/surfaces"
41+
"EdgeLength1|Short edge length"
42+
"EdgeLength01|Even shorter edge length"
43+
>}}
4044
4145
#### Distances Between WEMs are Stored in PVLs
4246
Now, add the modules `WEMSurfaceDistance` and `WEMInfo` to your workspace and connect them as shown. `WEMSurfaceDistance` calculates the minimum distance between the nodes of both WEM. The distances are stored in the nodes' PVLs as LUT values.

mevislab.github.io/content/tutorials/image_processing/image_processing2.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ Add a `Mask` and a `Threshold` module to your workspace and connect them as seen
4747

4848
Changing the window/level values in your viewer still also changes background voxels. The `Threshold` module still leaves the voxels as is because the threshold value is configured as larger than *0*. Open the panels of the modules `Threshold` and `Mask` via double-click {{< mousebutton "left" >}} and set the values as seen below.
4949

50-
{{< imagegallery 2 "images/tutorials/image_processing" "Threshold" "Mask">}}
50+
{{< imagegallery 2
51+
"images/tutorials/image_processing"
52+
"Threshold|Threshold panel"
53+
"Mask|Mask panel"
54+
>}}
5155
5256
Now, all voxels having a value lower or equal *60* are set to *0*, all others are set to *1*. The resulting image from the `Threshold` module is a binary image that can now be used as a mask by the `Mask` module.
5357

mevislab.github.io/content/tutorials/image_processing/image_processing3.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ Scrolling through the slices, you will see that your segmentation is not closed.
6363

6464
The difference before and after closing the gaps can be seen in the Output Inspector.
6565

66-
{{< imagegallery 2 "images/tutorials/image_processing" "Output_Before" "Output_After">}}
66+
{{< imagegallery 2
67+
"images/tutorials/image_processing"
68+
"Output_Before|Original result of the region growing algorithm"
69+
"Output_After|Gaps are closed"
70+
>}}
6771
6872
You can play around with the different settings of the `RegionGrowing` and `CloseGap` modules to get a better result.
6973

0 commit comments

Comments
 (0)