% x: original heart image
% y: broken heart image
% read in the original and broken heart images
x=imread('heart_orig.pbm');
y=imread('heart_broken.pbm');
% you need to finish the provied empty-body program repair.m
% before running the repair function
xx=repair(y);
% The lower score you get, the better (0 is the best)
% The best submission(s) will receive one extra credit point
score=sum(sum(x~=xx))