cvtColor - optimized index calculations; usage of build-in functions