Skip to content

Anderson-Wu/opencv_MFC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opencv_MFC

a. About

Learning image processing by using opencv

b. UI

Using MFC to build UI

UI

c. function

Image Processing

Load Image

Open a new window to show the image (dog.bmp) Show the height and width of the image in console mode 1.1

Color Conversior

Exchange 3 channels of the image BGR to RBG

Image Flipping

Flip the image (dog.bmp) and open a new window to show the result.

Image Blemnding

Combine two images (dog.bmp and the its flip image) and Use Trackbar to change the weights and show the result in the new window. Blending

Adaptive threshold

Global Threshold

Show the result after applying global threshold.(Threshold value is 80) Global

local Threshold

Show the result after applying local threshold.(blockSize = 19, offset = -1) local

Image transformation

Transforms: Rotation, Scaling, Translation

rotate, scale and translate the small squared image with parameters entering in GUI Rotation, Scaling, Translation

Perspective transform

Click 4 points showed in console window. (start from top-left corner of the original image, and then click clock-wise) Warp the original image to the location (20,20), (20,450), (450,450), (450,20). Open second window to show the result.

Convolution

Gaussian

Convert the RGB image to grayscale image and then smooth the grayscale image by using 3x3 Gaussian smoothing filter and show the result.

Sobel x

Sobel edge detection to detect vertical edge

Sobel y

Sobel edge detection to detect horizon edge

magnitude

Use result(sobel x and sobel y) to calculate the magnitude and show.

About

Learning image processing by using opencv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published