test_rgb_colors.cpp
Go to the documentation of this file.
2 #include <opencv2/opencv.hpp>
3 #include <gtest/gtest.h>
4 
5 
6 TEST(RGBColors, testGetRGBColor){
7  cv::Vec3d color;
8  // red
10  EXPECT_EQ(1, color[0]);
11  EXPECT_EQ(0, color[1]);
12  EXPECT_EQ(0, color[2]);
13  // gray
15  EXPECT_EQ(0.502, color[0]);
16  EXPECT_EQ(0.502, color[1]);
17  EXPECT_EQ(0.502, color[2]);
18 }
19 
20 int main(int argc, char **argv){
21  testing::InitGoogleTest(&argc, argv);
22  return RUN_ALL_TESTS();
23 }
cv::Vec3d getRGBColor(const int color)
get rgb color with enum.
Definition: rgb_colors.cpp:43
TEST(RGBColors, testGetRGBColor)
int main(int argc, char **argv)


jsk_recognition_utils
Author(s):
autogenerated on Mon May 3 2021 03:03:03