2D size, position and shape definition of defects by B-scan image analysis