Fixed assert throws with cvtColor