Updated ColorDetector.cpp to not use contrast