I've used below tutorial to do background subtraction, http://docs.opencv.org/master/d1/dc5/tutorial_background_subtraction.html#gsc.tab=0
But using pMOG2->apply( frame, fgMaskMOG2 )
method return output as a binary image.
Is there any method to get only color objects after removing the background or get color image using binary image?