A method for compressing a sequence of digital images includes: comparing a reference
image of the sequence of digital images to a subsequent image of the sequence of
digital images. In response to the reference and subsequent images being the same
within a predetermined threshold, 1) a count of a number of images discarded is
incremented, 2) the subsequent image is discarded, and 3) the comparing step is
repeated with a next subsequent image. In response to the reference and subsequent
images not being within the predetermined threshold, 1) the count is initialized
and 2) the comparing step is repeated using the subsequent image as the reference
image. Rather than comparing whole images corresponding portions of the images
can be compared and compressed independently.