2 #include <opencv2/opencv.hpp>
6 TEST(CvUtils, testLabelToRGB){
7 cv::Mat label_image = cv::Mat::zeros(1, 2, CV_32SC1);
8 label_image.at<
int>(0, 1) = 1;
12 EXPECT_EQ(0, cv::norm(rgb_image.at<cv::Vec3b>(0, 0)));
14 EXPECT_NE(0, cv::norm(rgb_image.at<cv::Vec3b>(0, 1)));
17 int main(
int argc,
char **argv){