function [out_img] = apply_gabor_kernel(in_img, gb_r, gb_i)

conv_img_r = conv2(in_img, gb_r, 'valid');
conv_img_i = conv2(in_img, gb_i, 'valid');

out_img = sqrt((conv_img_r.^2 + conv_img_i.^2)/2);

end
