Thickness and width measurement