当前位置:网站首页>Briefly summarize the concepts in image processing
Briefly summarize the concepts in image processing
2022-07-22 02:53:00 【wzw12315】
- Two valued
The two methods , Global fixed threshold binarization and local adaptive threshold binarization
The global fixed threshold is easy to understand , That is to binarize the whole image with a unified threshold ;
The local adaptive threshold is to determine the binarization threshold of the pixel position according to the pixel value distribution of the neighborhood block of the pixel .
- Discrete Fourier transform
The high frequency part of the image represents the details of the image 、 Texture information ; The low frequency represents the contour information of the image .
- Lowpass -》 Fuzzy
- qualcomm -》 sharpening
- Corrosion and expansion are aimed at the white part ( Highlight part ) In terms of the . Dilation is to make the highlight of the image “ Domain expansion ”, The rendering has a larger highlight area than the original ; Erosion is the erosion of highlighted areas in the original image , The effect image has a smaller highlight area than the original image .
- Open operation : Corrosion before expansion , To eliminate small objects
- Closed operation : Expand before corrode , Used to exclude small black holes
- Morphological gradients : Is the difference between the expansion view and the top view , Used to preserve the edge contour of an object .
- Top hat : The difference between the original image and the operation diagram , It is used to separate patches that are lit up next to each other .
- Black hat : The difference between the closed operation and the original image , Used to separate patches darker than adjacent points .
opencv There is a good function in getStructuringElement, We just need to pass the corresponding processing parameters to this function , Then you can carry out the corresponding operation , It is very convenient to use .
The following lists the corresponding operation macro definitions .
- Histogram equalization
After equalization, the contrast of the image becomes higher , Become brighter
- Filter processing
There are two main categories : Linear filtering and nonlinear filtering .OpenCV There are these filtering functions in , It is very convenient to use , Now briefly introduce how to use it .
Linear filtering : Box filtering boxFilter、 Mean filtering Blur、 Gauss filtering GaussianBlur
Nonlinear filtering : median filtering 、 Bilateral filtering
median filtering In removing impulse noise 、 Salt and pepper noise while preserving the details of the image ( There will be no blurring of edges )
The most important feature of bilateral filtering is edge preservation
The general steps of edge detection :
- wave filtering —— Eliminate noise
- enhance —— Make the boundary more obvious
- testing —— Pick the edge
Canny Algorithm
Canny Edge detection algorithm is praised as the best edge detection algorithm by many people .
Sobel Algorithm
Laplacian Algorithm
How to quickly recognize circles and lines in images ? A very effective method is the Hough transform , It is one of the basic algorithms for recognizing various geometric shapes in images .
Hoff line transformation
Hough line transform is a method of finding straight lines in an image .OpenCV Three Hough line transformations are supported in , Namely Standard Hough transform 、 Multiscale Hough line transform 、 Cumulative probability Hough line transformation .
stay OpenCV You can call functions in HoughLines To call Standard Hough line transform and multi-scale Hough line transform .HoughLinesP The function is used to call the cumulative probability Hough line transformation .
We all know Cartesian coordinates , An equation representing a straight line on a two-dimensional coordinate axis y = a*x + b, If we want to find a straight line, we have to find out a and b Value . If expressed in polar coordinates, it is
theta Is the angle between the straight line and the horizontal line , and rho It's the radius of the circle ( It can also be understood as the distance from the origin to the straight line ), similarly , These two parameters are also important parameters to characterize a straight line , Make sure they're both , It determines a straight line . As shown in the figure below .
Remap It is the process of placing pixels at a certain position in one image to a specified position in another image .
stay OpenCV in , It's using remap Function to realize remapping .
Affine transformation
Affine transformation refers to a linear transformation of a vector space followed by a translation , The process of transforming into another vector space .
After affine transformation of the image , It has the following characteristics :
The relative position relationship between two-dimensional graphics remains unchanged , Parallel lines are still parallel lines , And the position order of the points on the line remains unchanged .
An arbitrary affine transformation can be expressed as multiplying by a matrix ( linear transformation ) Then add a vector ( translation ) In the form of .
Three common forms :
- rotate ,rotation( linear transformation )
- translation ,translation( Vector plus )
- The zoom ,scale( linear transformation )
Affine transformation is essentially a 2* 3 Matrix M Multiply by each coordinate of the original graph , Get the coordinates of the corresponding points of the target graph .2*3 matrix M Medium 2 Representing the coordinates of the target point x And y,3 The third dimension in is the translation component . So what we need to do is find the matrix M,OpenCV Provide getAffineTransform Find the affine transformation , getRotationMatrix2D To get the rotation matrix .
Here is a brief talk about how affine transformation is done .
Now there are two images ( Here's the picture ), Image 2 is obtained from image 1 through radioactive changes . That's the question , How can we mine the mapping relationship between two images from these two image information ?
It's simple , Just take out three points in the image (1,2,3), Image 2 also takes out the corresponding three points (1,2,3), Then we can find the mapping relationship between the two graphs !
OpenCV Affine transformation is realized by the combination of two functions :
- Use warpAffine To implement simple remapping
- Use getRotationMatrix2D To get the rotation matrix
OpenCV That's the use of inpaint() This function is used to realize the repair function
边栏推荐
- 阿里云技术专家杨泽强:弹性计算云上可观测能力构建
- Baiyuechen research group of Fudan University is looking for postdoctoral and scientific research assistants
- bootloader系列一——Arm处理器启动流程解析
- Code representation pre training language model learning guide: principles, analysis and code
- unity3d-EventSystem(事件)
- OpenCV:如何去除票据上的印章
- Network address translation (NAT)
- MySQL performance optimization (II): select the optimized data type
- Why does a very simple function crash
- The convolution kernel is expanded to 51x51, and the new CNN architecture slak counterattacks the transformer
猜你喜欢
Two ways to implement topn with Flink application case statistics
工程效能CI/CD之流水线引擎的建设实践
WDK开发入门1-基础环境搭建和第一个驱动程序(VS2010)
有一说一,要搞明白优惠券架构是如何演化的,只需10张图!
duilib实战1-模仿百度网盘登录界面
2019杭电多校 第六场 6641(原1008) TDL(规律题)
Flink应用案例统计实现TopN的两种方式
Ali Er Mian: what is MMAP? (not MMP)
卷积核扩大到51x51,新型CNN架构SLaK反击Transformer
阿里二面:什么是mmap ?(不是mmp)
随机推荐
pytorch入门二 使用pyplot动态展示函数拟合过程
VC字符串与时间戳相互转换
2019牛客暑期多校训练营(第七场)B-Irreducible Polynomial 【数论】
多进程单线程多端口TCPUDP三层协议转发
Switch DHCP server configuration method (command line version)
pytorch入门三 数据类型与函数
驱动开发之双机调试环境搭建(VS2017)
bootloader系列二——arm920t--bootloader架构设计
45W性能释放+2.8K OLED全面屏 华硕灵耀X 14 2022精英气质高效利器
阿里云技术专家杨泽强:弹性计算云上可观测能力构建
函数之递归[通俗易懂]
图像矫正 + 文本矫正 技术深入探讨
OpenCV:如何去除票据上的印章
unity3d-EventSystem(事件)
Implementing DDD based on ABP -- domain service, application service and dto practice
手把手教您上传NCBI 数据,免费课程包您学会!
网页监控----Mjpg‐streamer移植
函数 之装饰器
MySQL性能优化(一):MySQL架构与核心问题
2019牛客暑期多校训练营(第六场)D-Move 【暴力枚举】