You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/particle_analysis.rst
+52-11Lines changed: 52 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,69 @@ Once you have chosen your segmentation parameters and successfully prepared a pr
17
17
Particle Analysis will run the segmentation on your data and calculate a number of parameters for each particle.
18
18
19
19
The calculated parameters include:
20
-
- Area
21
-
- Equivalent circular diameter
22
-
- Major and minor axes lengths
23
-
- Circularity
24
-
- Eccentricity
25
-
- Total particle intensity
26
-
- Zone axis (if atomic resolution images of fcc structure, looking to expand this!)
20
+
21
+
* Area
22
+
23
+
* Equivalent circular diameter
24
+
25
+
* Major and minor axes lengths
26
+
27
+
* Circularity
28
+
29
+
* Eccentricity
30
+
31
+
* Total particle intensity
32
+
33
+
* Zone axis (if atomic resolution images of fcc structure, looking to expand this!)
27
34
28
35
.. code-block:: python
29
36
30
37
>>>#Syntax for accessing particle properties.
31
38
>>> particles.list[0].properties['area']
32
39
40
+
Combining Particles from Multiple Images
41
+
----------------------------------------
42
+
43
+
It is possible to analyse particles from multiple images by passing a previously populated Particle_list object to :py:meth:`~.ParticleAnalysis` instead of returning a new Particle_list.
Copy file name to clipboardExpand all lines: docs/segmentation.rst
+36-4Lines changed: 36 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Segmentation
7
7
ParticleSpy provides different options for the segmentation of particles from images.
8
8
9
9
Using a Pre-Segmented Mask
10
-
==========================
10
+
--------------------------
11
11
12
12
The most straightforward method is to supply ParticleSpy with a pre-segmented mask (boolean image).
13
13
@@ -18,19 +18,29 @@ The most straightforward method is to supply ParticleSpy with a pre-segmented ma
18
18
In this way other software (e.g. ImageJ) could be used to perform segmentation which is then used by ParticleSpy to segment particles.
19
19
20
20
Using the Segmentation User Interface
21
-
=====================================
21
+
-------------------------------------
22
22
23
-
ParticleSpy can also perform its own segmentation using functions from scikit-image. A number of methods and options for segmentation are included and therefore ParticleSpy parameterizes the segmentation process. In order to choose the correct parameters for your segmentation ParticleSpy provides a Segmentation User Interface, that can be launched from a python kernel using the :py:meth:`~.SegUI` function.
23
+
ParticleSpy can also perform its own segmentation either using automated functions from scikit-image or using a fully manual approach.
24
+
In order to assist with both methods, ParticleSpy provides a Segmentation User Interface.
25
+
This can be launched from a python kernel using the :py:meth:`~.SegUI` function.
24
26
25
27
.. code-block:: python
26
28
27
29
>>> SegUI(image)
28
30
29
-
Once the Segmentation User Interface is launched the image is displayed and a number of options are available on the right hand side.
31
+
Parameter Picking for Automated Segmentation
32
+
============================================
33
+
34
+
Once the Segmentation User Interface is launched the 'Auto' panel is displayed.
35
+
This panel provides a number of options that can be tuned to provide an optimal automated segmentation.
36
+
Once you have chosen your parameters, pressing 'Update' will display a segmented image.
37
+
'Update' will also save the current parameters to use later.
30
38
31
39
.. image:: _static/segui.png
32
40
:align:center
33
41
42
+
The parameters for the automated segmentation are described here:
43
+
34
44
(1) Rolling ball size
35
45
36
46
The rolling ball algorithm is equivalent to a top hat filter. It acts to remove slowly varying background intensity at a size larger than the particle diameter. The default is to not apply a rolling ball (value = 0). To apply a rolling ball enter a value (in pixels) that is significantly larger than your particle diameter.
@@ -73,3 +83,25 @@ Prints the current parameters as output for reference.
73
83
(10) Display
74
84
75
85
Option to display either the image with label boundaries displayed, or the solid labels coloured by label number.
86
+
87
+
Manual Segmentation
88
+
===================
89
+
90
+
The second tab in the Segmentation User Interface provides an option to manually segment an individual image.
91
+
You can get to this tab by clicking 'Manual' in the top bar.
92
+
93
+
Here, segmentation works by holding the left mouse button and drawing around the outside of a particle.
94
+
Once you have completely enclosed the particle, release the left mouse button.
95
+
If you are happy with your particle boundary, click on the particle centre with the right mouse button.
96
+
You may notice the middle of the particle turn slightly blue (can be difficult to see).
97
+
Continue to segment all of the particles in the image in this way until all are segmented.
98
+
99
+
Once you have segmented all of the particles, click 'Save Segmentation'.
100
+
This will save the generated segmentation as an internal npy file that can be read when using :py:meth:`~.ParticleAnalysis`.
101
+
102
+
.. image:: _static/manual_segui.png
103
+
:align:center
104
+
105
+
.. warning::
106
+
Do NOT right-click on any part of the image that is not fully enclosed by a red circle.
107
+
Doing so will ruin the segmentation and you will have to reload SegUI.
0 commit comments