I have this code:
bPlane = myImage[:,:,0] - 0.5*(myImage[:,:,2]) - 0.5*(myImage[:,:,1]);
purple = bPlane > 20
purple2 = morphology.remove_small_objects(BW_2, 400);
where myImage is a BGR.
How can I convert "purple2" to a grayscale image in Python 3.6?