Fast computation of rectangular histogram of oriented gradients (R-HOG) features using integral histogram