Grayscale Image Colorization Using an Adaptive Weighted Average Method