An algorithmic model for correcting scan converter distortion