function J = display_best_corners(I, C, n)
[h, w] = size(I);
J = cat(3,I,I,I);
for i = 1:n
    [rows, cols] = find(C == max(C(:)));
    for j = max(1, rows(1)-2):min(rows(1)+2, h)
        for k = max(1, cols(1)-2):min(cols(1)+2,w)
            J(j,k,2:3) = 0;
            J(j,k,1) = 255;
            C(j,k) = 0;
        end
    end
end
