change OpSegmentation to return uint8