First time here? Check out the FAQ!
answered 2015-04-12 20:48:17 -0600
Why not just make that a python function?
def sample(img, retImg): retImg = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) return retImg