OpenCV morphological operation (open, close, gradient, top hat, black hat)

Basic concepts of morphology Image morphology, that is, Mathematical morphology, is an image analysis discipline based on Glenn and topology. It is the basic theory of Mathematical morphology image processing; Common image morphological operations: corrosion, expansion, open operation, close operation, skeleton extraction, polar corrosion, ...

Added by Jay_Seagrave on Fri, 12 Nov 2021 00:18:44 +0200

OpenCV Basic Tutorial (11) - HighGUI GUI

11. HighGUI GUI Creation and use of 11.1 slider bar 11.1,1 Create slider: createTrackbar() function The createTrackbar function creates a slider bar that can adjust values: int cv::createTrackbar(const cv::String &trackbarname, const cv::String &winname, int *value, int count, cv::TrackbarCallback onChange = (cv::TrackbarCallback)0, ...

Added by feckless on Tue, 09 Nov 2021 19:07:13 +0200

[medical image processing] 4 image denoising / smoothing

1 image noise    noise generation: some pixels in the middle of the image suddenly change, resulting in disharmony with the surrounding pixels   denoising: replace disharmonious points with harmonious points. Homogenize the change of gray value.    denoising method:    (1) convolution based methods: Gauss ...

Added by jeff21 on Sat, 06 Nov 2021 20:11:22 +0200

Pure C + + realizes the reading and modification of 24 bit bmp format pictures

Problem: there is an existing bmp picture. It is required to read it into the program and perform one of the four effects of graying, horizontal flip, blur and Tan filter, and output a new picture, as shown below: Command line input:   Of which: Parameter 1: - b/g/s/r, indicating blur, gray, sepia and row reverse successively ...

Added by PartyMarty on Sat, 06 Nov 2021 03:22:42 +0200

Matlab realizes sift feature detection and feature point matching of two images (D. Lowe)

1, Introduction to sift algorithm Scale invariant feature transform (SIFT) is a computer vision algorithm used to detect and describe local features in images. It looks for extreme points in spatial scale and extracts their position, scale and rotation invariants. This algorithm was published by David Lowe in 1999 and summarized in 2004. Its ...

Added by Rheves on Sat, 23 Oct 2021 05:12:38 +0300

Python OpenCV extract object contour

Usually, when extracting the contour of an object, there is noise in the image, and the extraction effect is not ideal. As shown in the following figure, Extract code: import cv2 img = cv2.imread("mouse.png") cv2.imshow("origin",img) gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) ret,binary = cv2.threshold(gray,128,255,cv2.THRESH_BINARY) cv2. ...

Added by Fizzgig on Thu, 21 Oct 2021 08:30:05 +0300

OpenCV-Python Tutorial: Image Gradients (Sobel,Scharr,Laplacian)

Original Link:http://www.juzicode.com/opencv-python-image-gradient Return to the Opencv-Python tutorial Gaussian smoothing, bilateral smoothing And Mean Smoothing, Median Smoothing The smoothing described can be seen as a "low-pass filter" of the image, which filters out the "high frequency" part of the image to make it ...

Added by Square1 on Thu, 14 Oct 2021 19:27:49 +0300

Basic Python Software Design Section 4 - Image Processing

Catalog 1. Audio and Video Processing Software ffmpeg (1) Introduction of software (2) Common tools and commands 1,ffplay 2. ffmpeg main program (3) Case Practice in Class - Converting Multiple Pictures into Videos 1. Picture preparation, cutting video into pictures 2. Run ffmpeg program (4) Self-study expansion Use software to add bl ...

Added by blizzard on Thu, 14 Oct 2021 19:06:21 +0300

Detailed explanation of camera model and de distortion method

We are all familiar with cameras, which can map point sets in 3D space to 2D planes. This mapping process needs to be described by geometric model. The simplest and most basic model is the pinhole camera model, which describes the basic projection and imaging inertia of the camera. However, our commonly used cameras have lenses. Because o ...

Added by travelerBT on Sat, 09 Oct 2021 12:19:16 +0300

Opencv implementation of image encryption and decryption

1. Basic: image encryption and decryption based on XOR operation Generally, the process of image encryption and decryption is realized by bitwise XOR operation. The encryption can be realized by bitwise XOR between the original image and the key image, and the decryption process can be realized by bitwise XOR between the encrypted image and th ...

Added by adige72 on Thu, 07 Oct 2021 09:14:27 +0300