The median can give a good estimate of the background value in moderately crowded fields (ie no more than 50 percent of the pixels used are contaminated by sources).