Threshold Segmentation and Length Measurement Algorithms for Irregular Curves in Complex Backgrounds

Sensors (Basel). 2022 Aug 2;22(15):5761. doi: 10.3390/s22155761.

Abstract

It is an urgent problem to know how to quickly and accurately measure the length of irregular curves in complex background images. To solve the problem, we first proposed a quasi-bimodal threshold segmentation (QBTS) algorithm, which transforms the multimodal histogram into a quasi-bimodal histogram to achieve a faster and more accurate segmentation of the target curve. Then, we proposed a single-pixel skeleton length measurement (SPSLM) algorithm based on the 8-neighborhood model, which used the 8-neighborhood feature to measure the length for the first time, and achieved a more accurate measurement of the curve length. Finally, the two algorithms were tested and analyzed in terms of accuracy and speed on the two original datasets of this paper. The experimental results show that the algorithms proposed in this paper can quickly and accurately segment the target curve from the neon design rendering with complex background interference and measure its length.

Keywords: irregular curves; length measurement; quasi-bimodal threshold segmentation; single-pixel skeleton.