- Mastering OpenCV 4 with Python
- Alberto Fernández Villán
- 128字
- 2021-07-02 12:07:14
Accessing and manipulating pixels in OpenCV
In this section, you will learn how to access and read pixel values with OpenCV and how to modify them. Additionally, you will learn how to access the image properties. If you want to work with many pixels at a time, you need to create Region of Image (ROI). In this section, you will learn how to do this. Finally, you will learn how to split and merge images.
Remember that in Python, images are represented as NumPy arrays. Therefore, most of the operations that are included in these examples are related to NumPy, so a good understanding about the NumPy package is required to both understand the code included in these examples and to write optimized code with OpenCV.
推薦閱讀
- C語(yǔ)言程序設(shè)計(jì)實(shí)踐教程(第2版)
- Cocos2D-X權(quán)威指南(第2版)
- 數(shù)據(jù)結(jié)構(gòu)(Java語(yǔ)言描述)
- The Computer Vision Workshop
- jQuery開發(fā)基礎(chǔ)教程
- 利用Python進(jìn)行數(shù)據(jù)分析(原書第3版)
- Building RESTful Python Web Services
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程
- INSTANT Yii 1.1 Application Development Starter
- C# and .NET Core Test Driven Development
- 深入實(shí)踐Kotlin元編程
- Arduino計(jì)算機(jī)視覺編程
- jQuery從入門到精通(微課精編版)
- Python機(jī)器學(xué)習(xí)開發(fā)實(shí)戰(zhàn)
- MongoDB Administrator’s Guide