The technique of "surface photometry" can also be used with extended objects like planets, comets, nebulae or galaxies that measures the apparent magnitude in terms of magnitudes per square arcsecond. Knowing the area of the object and the average intensity of light across the astronomical object determines the surface brightness in terms of magnitudes per square arcsecond, while integrating the total light of the extended object can then calculate brightness in terms of its total magnitude, energy output or luminosity per unit surface area.