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

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);
主站蜘蛛池模板: 桦甸市| 奇台县| 大足县| 保康县| 灵宝市| 长武县| 博罗县| 墨江| 安多县| 枞阳县| 宜良县| 女性| 潼南县| 鄂州市| 原阳县| 灵台县| 杭锦后旗| 云龙县| 高台县| 通辽市| 永福县| 石屏县| 陈巴尔虎旗| 东兰县| 玉龙| 腾冲县| 韩城市| 博湖县| 铁岭县| 乌兰浩特市| 东乡县| 祁阳县| 漯河市| 和顺县| 敦化市| 瑞昌市| 云霄县| 阳城县| 临城县| 贵德县| 青海省|