To avoid having a conditional expression which is constant
Adding the cv::is_same function to compare types