c++ - Vector<Vec3b> difference with Vector<int> in OpenCV -
my project moving puck detection , location finding on hockey table. need use houghcircles detect circular form of puck. hough alghoritm need make vector. familiar vector concept , how working ( basic), there problem of differentiating example vector<int> vec , vector<vec3b> vec.
is possible let me know difference in meaning , application?
pay attention vector , vector different. vector std::vector, while vector cv::vector. if in practice difference minimal, different things.
i'll assume meant std::vector, in context valid cv::vector.
a vector<int> vector of integers. nothing fancy this.
a vector<vec3b> vector of cv::vec3b, opencv structure holds 3 uchar (unsigned char), i.e. type 8 bit can contain data 0 255. in fact defined cv::vec_<uchar, 3>. cv::vec template class represents short numerical vectors, 4 elements, not important here.
a vec3b used in opencv store color pixel, b,g,r triplet.
Comments
Post a Comment