Edge detection in pipe images using classification of haar wavelet transforms