main
read_four_integers()
Legacy code to read YOLO x1 x2 position from a text file.
Labels:
src_PyThon_ContactAngle_CaMeasurer_main_read_four_integers
read_csv_for_endpoint_beginning(csv_path:str, image_name:str)
Reads a CSV file and returns the endpoint and beginning values for a given image name.
Parameters:
csv_path
(str): Path to the CSV file containing the image data.image_name
(str): Name of the image to look up (e.g., 'image001.jpg').
Returns:
list
: A list containing [endpoint, beginning].Raises:
FileNotFoundError
: If the CSV file doesn't exist.ValueError
: If the image is not found or the row does not contain exactly two integers.
Author:
- Yassin Riyazi
Labels:
src_PyThon_ContactAngle_CaMeasurer_main_read_csv_for_endpoint_beginning
base_function_process()
1. Loading data 1.1.Loading the image 1.2.cropping the base line 1.3.loading the x1, x2 positions 2. Super-resolution 3. Extracting whole edge points 4. Extracting advancing and receding points Test: Removing two layer polynomial Removing super-resolution from this section
Author:
- Yassin Riyazi (Removing two layer polynomial and adaptive pixel selection, because Euclidean distance is not working well for all images)
- Sajjad Shumaly
Labels:
src_PyThon_ContactAngle_CaMeasurer_main_base_function_process