File: conan.rst

package info (click to toggle)
opendrop 3.1.7dev0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,048 kB
  • sloc: python: 13,210; makefile: 26
file content (92 lines) | stat: -rw-r--r-- 3,810 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Contact Angle
=============

A wizard-style window will guide you through the process of performing a contact angle analysis.

Image acquisition
-----------------

The contact angle image acquisition page is the same as the one for interfacial tension analyses.

Image processing
----------------

.. image:: images/conan_image_processing.png
    :alt: Contact Angle Image processing
    :width: 914
    :align: center

The image processing window requires you to define the 'drop region' and 'surface line' of the image. Click on the 'Drop region' button in the 'Tools' panel then drag over the image preview to define the region. Similarly, click on the 'Surface line' button and drag a line to define the surface that the drop is sitting on. With the 'Surface line' button depressed and the preview widget focused, use the arrow keys for finer adjustments of the surface line.

.. image:: images/conan_image_processing_defined.png
    :alt: Contact Angle Image processing, regions defined
    :width: 914
    :align: center

Once the drop region is defined, a blue outline will be drawn over the preview showing the drop profile that has been extracted.

The intersection angle between the drop profile and the surface line will be the contact angle measured.

In a contact angle analysis, OpenDrop uses image thresholding to separate the foreground from the background. Click on the 'Foreground detection' button to open a dialog bubble which will allow you to adjust the threshold value. A blue overlay is painted over parts of the image deemed to be in the foreground.

Click on 'Start analysis' to begin analysing the input images, or begin capturing and analysing images if using a camera.

Results
-------

.. image:: images/conan_results.png
    :alt: Contact Angle Results
    :width: 914
    :align: center

The results page for a contact angle analysis is quite simple.

A summary table is shown on the bottom half with a results visualizer on the top half. Graphs of the left and right contact angles are also available if more than one image is analysed.


Saving
------

.. image:: images/conan_save_dialog.png
    :alt: Contact Angle Save dialog
    :width: 828
    :align: center

Once an analysis is finished, click on the 'Save' button in the footer to open the save dialog. All data will be saved in a folder with name determined by the 'Name' entry, and in a parent directory determined by the 'Parent' selection. 

As a convenience, you may choose to save some pre-made plots.

.. image:: images/conan_save_output.png
    :alt: Contact Angle Example save output
    :width: 619
    :align: center

An example save output is shown above, and screenshots of the contents of some files are shown below. (All coordinates are with respect to the origin being on the top-left corner of the image with increasing x and y in the right and down directions respectively.)

.. figure:: images/conan_timeline_csv.png
    :alt: Contact Angle timeline.csv screenshot
    :width: 927
    :align: center

    timeline.csv

.. figure:: images/conan_profile_extracted_csv.png
    :alt: Contact Angle profile_extracted.csv screenshot
    :width: 159
    :align: center

    drop1/profile_extracted.csv (each row is an (x, y) coordinate pair)

.. figure:: images/conan_surface_csv.png
    :alt: Contact Angle surface.csv screenshot
    :width: 159
    :align: center

    drop1/surface.csv (The coefficients of the surface line; first column is gradient, second column is y-intercept)

.. figure:: images/conan_tangents_csv.png
    :alt: Contact Angle tangents.csv screenshot
    :width: 159
    :align: center

    drop1/tangents.csv (The coefficients of the tangent lines at the contact point. First row is left tangent, second row is right tangent. First column is gradient, second column is y-intercept)