A general framework for image sequence processing