'Return a mask a video clip made from the clip.'

def to_mask(self, canal=0):

    if self.ismask:
        return self
    else:
        newclip = self.fl_image((lambda pic: ((1.0 * pic[:, :, canal]) / 255)))
        newclip.ismask = True
        return newclip
