Nondestructive inspection of patterns formed on inner surfaces of small diameter pipes