Variation of optical and infrared properties of galaxies with their surface brightness