cvtColor and some math