PIPE DIAMETER MEASUREMENT

Can anyone suggest technology for underground laid pipeline diameter measurement system or any software ? Much appreciated!