I think theoretically you're right. But I think this type of operation an image processing package may already provide. Probably with proper error handling and optimization.
Topic:
Media Technologies
SubTopic:
General
Tags: