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

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);
主站蜘蛛池模板: 雷山县| 靖宇县| 苗栗市| 临安市| 类乌齐县| 南丰县| 彭山县| 北票市| 中牟县| 古蔺县| 东乌珠穆沁旗| 萨嘎县| 古交市| 思茅市| 交口县| 台州市| 青阳县| 新昌县| 宿迁市| 灵璧县| 阜阳市| 吉水县| 建阳市| 土默特左旗| 长顺县| 乌恰县| 双柏县| 深圳市| 东兰县| 桂阳县| 东辽县| 新和县| 丹寨县| 会昌县| 静乐县| 安岳县| 穆棱市| 岐山县| 太湖县| 石屏县| 卢湾区|