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);
推薦閱讀
- 信息系統與數據科學
- Voice Application Development for Android
- 3D計算機視覺:原理、算法及應用
- OracleDBA實戰攻略:運維管理、診斷優化、高可用與最佳實踐
- 數據庫技術實用教程
- 網站數據庫技術
- 新基建:數據中心創新之路
- Solaris操作系統原理實驗教程
- Power BI智能數據分析與可視化從入門到精通
- Augmented Reality using Appcelerator Titanium Starter
- Unity 2018 By Example(Second Edition)
- 智慧城市中的大數據分析技術
- Filecoin原理與實現
- 掌中寶:電腦綜合應用技巧
- 零基礎學SQL