1. A method of image processing comprising the steps of: (a) determining a probability that an input pixel is one of a background and a foreground pixel of said image by comparing said input pixel to a background reference pixel model; and (b) revising said probability for said input pixel according to a probability that a neighboring pixel is a pixel of one of said background and said foreground and a relationship of said input pixel and a pixel structure included in said image.