官术网_书友最值得收藏!

Scalar object type

The Scalar object type is a template class derived from Vec with four elements. The Scalar type is widely used in OpenCV to pass and read pixel values.

To access Vec and Scalar values, we use the [] operator, which can be initialized from another scalar, vector, or value by value, as in the following sample:

Scalar s0(0);
Scalar s1(0.0, 1.0, 2.0, 3.0);
Scalar s2(s1);
主站蜘蛛池模板: 忻城县| 徐闻县| 吐鲁番市| 修武县| 邯郸县| 绥芬河市| 化德县| 阿克陶县| 咸阳市| 白玉县| 佛山市| 花莲县| 吴川市| 武安市| 陆川县| 新绛县| 瓮安县| 武川县| 高清| 任丘市| 榆树市| 绥中县| 岳阳市| 那曲县| 九江市| 绿春县| 安溪县| 白水县| 安丘市| 秭归县| 科技| 呼和浩特市| 新郑市| 丹寨县| 江川县| 河津市| 鄯善县| 宾川县| 卓尼县| 礼泉县| 衡南县|