A Novel Global Energy and Local Energy-Based Legendre Polynomial Approximation for Image Segmentation. (5th October 2020)