You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: checkerboard5x5.m
    path of file: ./repos/Stereo-Odometry-SOFT/code/functions/featureProcessing/filters
    
    the code of the file until where you have to start completion: function out = checkerboard5x5(img)
%SOBEL5X5 Apply checkerboard filter over input image. Filter is given by:
%
%   -1 -1  0  1  1
%   -1 -1  0  1  1
%    0  0  0  0  0
%    1  1  0 -1 -1
%    1  1  0 -1 -1
%
% INPUT:
%   - img(image): Given input image
%
% OUTPUT:
%   - out: convolved output image 


    
function out = checkerboard5x5(img)
%SOBEL5X5 Apply checkerboard filter over input image. Filter is given by:
%
%   -1 -1  0  1  1
%   -1 -1  0  1  1
%    0  0  0  0  0
%    1  1  0 -1 -1
%    1  1  0 -1 -1
%
% INPUT:
%   - img(image): Given input image
%
% OUTPUT:
%   - out: convolved output image 

checkerboard_filter = [-1 -1  0  1  1; ...
                       -1 -1  0  1  1; ...
                        0  0  0  0  0; ...
                        1  1  0 -1 -1; ...
                        1  1  0 -1 -1];
% convolve image with filter
out = conv2(img, checkerboard_filter, 'same');

end