Automated Underground Pipe Inspection Using a Unified Image Processing and Artificial Intelligence Methodology