NORMALIZING GRADIENT IN IMAGE PYRAMID