lbp histogram composition impl-d