Exploring the effectiveness of RMSE, PSNR, SSIM and FOM for evaluation edge detection for coastline extraction
This repository contains the code required to reproduce the results in the conference paper:
C. O'Sullivan, S. Coveney, X. Monteys and S. Dev, "The Effectiveness of Edge Detection Evaluation Metrics for Automated Coastline Detection," 2023 Photonics & Electromagnetics Research Symposium (PIERS), 2023, pp. 31-40, doi: 10.1109/PIERS59004.2023.10221292. available here
This code is only for academic and research purposes. Please cite the above paper if you intend to use whole/part of the code.
We have used the following dataset in our analysis:
- Sentinel-2 Water Edges Dataset (SWED) from UK Hydrographic Office.
The data is available under the Geospatial Commission Data Exploration license.
You can find the following files in the src folder:
comparison-metrics.ipynbThe main analysis file used to apply Canny edge detection, calculate evaluation metrics and create all figures in the research paper. The file is also used to display the figures used to perform the visual analysis.utils.pyHelper file containing functions used to perform the analysis in the main analysis file.test-image-issues.ipynbDisplay the images in the SWED test set that had erroneous segmentation masks
You can find the following files used in the analysis:
Visual Analysis.xlsxContains the results of the visual analysiscanny_evaluation_metrics.csvContains the values for RMSE, PSNR, SSIM and FOM and confusion matrix measures at different hysteresis thresholds