[Opencv-Python] Digital image processing (3) – Spatial image processing (2)

? >Article navigation 1 Experimental purposes and requirements 2 Experimental environment and configuration 3 Spatial filtering 3.1 Image smoothing (mean filter, median filter, Gaussian filter) 3.2 Image sharpening (1) Laplacian template (linear) 4 Experimental experiences and thoughts 4.1 Summary of experimental experience 4.2 Experimental problems and solutions 1 Experiment purpose and requirements (1) Master the […]

[Opencv-Python] Digital image processing (2) – Spatial image processing (1)

>Article navigation 1 Experimental purposes and requirements 2 Experimental environment and configuration 3 Experimental content and experimental results 3.1 Grayscale transformation 3.1.1 Binarization of grayscale images 3.1.2 Image inversion 3.1.3 Logarithmic transformation (1) Try different values of scale proportionality constant c (the above program sets c=42), compare and analyze the differences in the resulting images. […]

Solving cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215) s

Table of Contents Solve cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215) s error wrong reason Solution Sample code: Implementing an image scaling application grammar Parameter Description return value Interpolation method Example Solution to cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215) s error When we use the ??cv2.resize()?? function of the OpenCV library to resize the image, sometimes we may encounter the […]

OpenCV-Python code implementation of Sobel edge detection

Table of Contents I. Introduction 2. Main parameters 3. Code implementation and effect display 1. Foreword In Computer Vision and Image Processing, edges often contain important information about the outline and structure of an object. OpenCV is a popular computer vision library that provides many tools for edge detection, one of which is the Sobel […]

Solving cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error

Table of Contents Solve cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error problem wrong reason Solution 1. Check the image path 2. Check image format 3. Check image color space conversion 4. Update OpenCV version 5. Install OpenCV-contrib in conclusion RGB color space HSV color space YCrCb color space Solve cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error problem When using the OpenCV […]

Camera calibration OpenCV-Python v4.7.0

Goals In this section we will learn about Types of distortion caused by cameras How to Find the Intrinsic and Extrinsic Characteristics of a Camera How to remove image distortion based on these characteristics Basics Some pinhole cameras produce significant distortion in the image. Radial distortion and tangential distortion are the two main types of […]

Image Processing in OpenCV-Python – Image Features

Image processing in OpenCV-Python – image features image features Harris corner detection Corner detection with sub-pixel accuracy Shi-Tomasi corner detection SIFT (Scale-Invariant Feature Transfrom) SURF (Speeded-Up Robust Features) FAST algorithm BRIEF (Binary Robust Independent Elementary Features) Algorithm ORB (Oriented FAST and Rotated BRIEF) algorithm feature matching Brute-Force brute force matching Brute force matching against ORB […]

Image processing in OpenCV-Python – image histogram

Image processing in OpenCV-Python – image histogram image histogram Statistical histogram draw histogram Matplotlib draws grayscale histogram Matplotlib draws RGB histogram Statistical histogram using mask Histogram equalization Numpy image histogram equalization Histogram equalization in OpenCV CLAHE Finite Contrast Adaptive Histogram Equalization 2D histogram 2D histogram in OpenCV 2D histogram in Numpy Histogram reflection projection Histogram […]