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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,16 @@ We use a subpixel edge detection, either fast, with a linear interpolation betwe
9
9
To find the contact line position and the contact angle the detected edge is fitted with a 3rd order polynomial fit, and the slope of the baseline is also used to calculate the contact angles.
10
10
Note that the drop volume assume cylindrical symmetry and if there is a needle present, the volume of the needle is added.
11
11
12
-
A GUI using tkinter is available, as well as a standalone script. The standalone script is probably beneficial when using an IDE like spyder.
12
+
A GUI using pyqtgraph and pyqt5 is available, as well as a standalone script. The standalone script is probably beneficial when using an IDE like spyder.
13
13
14
14
## Prerequisites
15
-
The script requires numpy, scipy, matplotlib, imageio, skimage, shapely, and tkinter.
15
+
The script requires numpy, scipy, shapely, pyqtgraph, and pyqt5.
16
16
17
17
## Running the script
18
-
To use the GUI, run GUI_sessile_drop_analysis.py, while the standalone script is sessile_drop_analysis.py.
18
+
To use the GUI, run QT_sessile_drop_analysis.py, while the standalone script is in Old scripts/sessile_drop_analysis.py.
19
19
20
20
## Some details
21
-
* The code is written for Python 3.5
21
+
* The code is written for Python 3.8
22
22
* The edge detection uses only a horizontal subpixel correction, and when fitting the errorfunction, 40 pixels left and right of the edge are used.
23
23
* To find the contact angle and contact point a polyfit is used, but the fit is made flipping the x and y coordinates, because polyfits don't perform well for vertical lines (ie at contact angles of 90 degrees).
24
24
* In the non-gui script, the variable k is used to set the amount of pixels used in the polyfit, by default set at 70.
0 commit comments