connecting RGB segmentation together