A Noise-Robust Measuring Algorithm for Small Tubes Based on an Iterative Statistical Method