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

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);
主站蜘蛛池模板: 崇左市| 阳谷县| 大荔县| 九寨沟县| 沾益县| 米脂县| 宝鸡市| 中牟县| 台安县| 黔江区| 老河口市| 南陵县| 错那县| 旌德县| 若羌县| 太白县| 棋牌| 桐乡市| 巴中市| 汉沽区| 纳雍县| 唐山市| 建平县| 施甸县| 陆良县| 大英县| 曲靖市| 增城市| 红河县| 巫山县| 蓬溪县| 内乡县| 鹤山市| 乌拉特前旗| 藁城市| 毕节市| 海南省| 资溪县| 金门县| 安新县| 中山市|