The implementation of the sad algorithm, can run, you need to add pictures yourself