Colour and mono equalization of image histogram