function = HOGGradient(G) % here we defing the mask as , the edge of the image use = size(G); gradx = zeros(height, width); grady = zeros(height, width); % Process the Image edge gradx(:,1) = sum(G(:,1:2).*repmat( , height, 1), 2); gradx(:,width) = sum(G(:, width-1:width).*r ...