compute lbp over entire image