CN109215046B - Laplacian operator edge detection method based on image interpolation operation - Google Patents
Laplacian operator edge detection method based on image interpolation operation Download PDFInfo
- Publication number
- CN109215046B CN109215046B CN201810886388.8A CN201810886388A CN109215046B CN 109215046 B CN109215046 B CN 109215046B CN 201810886388 A CN201810886388 A CN 201810886388A CN 109215046 B CN109215046 B CN 109215046B
- Authority
- CN
- China
- Prior art keywords
- image
- template
- laplacian
- edge detection
- laplace
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
Abstract
The invention provides a Laplace operator edge detection method based on image interpolation operation, which comprises the following steps of 1: inputting an original image H, inserting an average value between two adjacent pixel values in each row of the original image, and inserting an average value between two adjacent pixel values in each column on the image subjected to row interpolation to obtain an interpolated extended image H'; step 2: expanding the 3 x 3 laplace template L to obtain a 5 x 5 laplace template L'; and step 3: the resulting image H "was obtained by convolving the extended image H 'with a 5 x 5 laplacian template L'. The method has the advantages that the influence of noise on edge detection is reduced by carrying out interpolation on the original image, and the edge detection effect is improved by expanding the Laplace template.
Description
Technical Field
The invention relates to an image edge detection method, in particular to a Laplace operator edge detection method based on image interpolation operation.
Background
The digital image contains rich visual information, especially edge information in the image, such as edge information of rivers in the image, edge information of human bones in medical CT images, edge information of various zebra crossings in road traffic images, and the like. The extraction of the edge information is widely applied to modern life, such as medical auxiliary diagnosis, face recognition, target tracking, remote sensing monitoring and other different fields, and the edge information has very important significance for the recognition and detection of the target in the image. The second partial derivatives of the digital image element g (x, y) in the x-axis and y-axis directions are defined as:the Laplace edge detection operator is an edge detection operator based on the zero crossing point of the second derivative on the edge, and has detection effect on isolated points and line endsThe fruit is better.
The 3 x 3 laplacian template L is a common laplacian edge detector template, and is characterized in that the coefficient of the element g (i, j) in the center position is negative, the coefficient of the element in the edge direction is positive, and the sum of the coefficients of all the elements is zero, i.e., the template is a common laplacian edge detector template
The template has the advantages of rotation invariance and displacement invariance, but has certain defects, such as the possibility of losing edge direction information in the edge detection process and the possibility of intensifying the adverse effect of noise on the edge detection result.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for detecting the edge of the laplacian operator, which can reduce the influence of noise on the edge detection effect and improve the edge detection effect.
In order to solve the technical problem, the invention is realized by the following technical scheme, and the method for detecting the edge of the laplacian operator based on the image interpolation operation comprises the following steps:
step 1: inputting an original image H, inserting the average value between two adjacent pixel values in each line of the original image, inserting the average value between two adjacent pixel values in each column on the image after line interpolation to obtain an interpolated expanded image H',
step 2: expanding the 3 × 3 laplacian template to obtain a 5 × 5 laplacian template L ', wherein the value of the central element of the 5 × 5 laplacian template is the opposite number of the sum of the 24 neighborhood elements, the value of the 5 × 5 laplacian template L ' is centrosymmetric with respect to the central element g (i, j), and the value of the element closer to the central element is larger than the value of the element farther away and is the same as the value of the element at the same distance from the central element, and L ' satisfies the formula:
and step 3: convolving the extended image H 'with a 5 x 5 Laplace template L' to obtain a result image H ",
further, in step 2, the laplace template L' is:
the method has the advantages that the influence of noise on edge detection is reduced by performing interpolation operation on the original image in two directions of rows and columns, the edge detection effect is improved by expanding the 3 x 3 Laplace template to the 5 x 5 Laplace template and endowing different proportion coefficients to elements in all directions.
Drawings
The following detailed description of embodiments of the invention is provided in conjunction with the appended drawings, in which:
FIG. 1 is a flow chart of an embodiment of the present invention;
FIG. 2 is an original image H according to the present invention;
FIG. 3 is an expanded image H' of the present invention;
fig. 4 is a result image of 3 × 3 laplacian template L processing;
fig. 5 is a resulting image H "of the L' processing of the laplace template used in the present invention.
Detailed Description
The invention will be further illustrated with reference to specific embodiments. Referring to fig. 1 to 5, the present invention provides a laplacian edge detection method based on image interpolation operation.
The Laplace operator is a second derivative operator, and is an edge detection operator defined based on second partial derivatives in two coordinate axis directions of the image. The second partial derivatives of the digital image element g (x, y) in the x-axis and y-axis directions are defined as:
the edge part of the image is often a part with large gray scale change and jump, so the first-order partial derivative corresponding to the edge part is often a local extreme value, and therefore the edge area of the image corresponds to the corresponding position when the second-order partial derivative crosses the zero point, and the edge of the image can be detected through the zero point of the second-order partial derivative of the image. In the application field of the laplacian, a commonly used laplacian can be defined as:
In order to reduce the influence of noise on the edge detection effect and improve the edge detection effect, the following operations are performed:
s1: inputting an original image H, inserting the average value between two adjacent pixel values in each line of the original image, and inserting the average value between two adjacent pixel values in each column on the image after line interpolation to obtain an expanded image H'.
In H ', g1, g2, g3, g4, g5, g6, g7, g8, g9 … … gn, gm, gt respectively represent pixel values in the original image H, and k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15, k16 … … are pixel values in an extended image H' obtained by extension interpolation of the original image H.
The MATLAB code of the interpolation operation is:
s2: expanding the 3 x 3 Laplace template L to obtain 5 x 5 Laplace template L',
l' satisfies the formula:
the value of the central element of the 5 x 5 laplacian template is the opposite of the sum of the 24 neighborhood elements, the value of the 5 x 5 laplacian template L' is centrosymmetric with respect to the central element g (i, j), and the value of the element closer to the central element is larger than the value of the element farther away, and is the same as the value of the element at the same distance from the central element.
S3: and (5) convolving the extended image with a 5 by 5 Laplace template to obtain a result image H'.
The 3 × 3 laplacian template L before improvement only considers the horizontal direction and the vertical direction, the 5 × 5 laplacian template L ' after improvement can detect edge information in more directions, different weights are distributed to edges in different directions, the weight of the edge in the direction closer to the center point of the template is larger, the edge of the image H ' after interpolation is detected by using the template L ', a result image H ″ is obtained, and the comparison between the attached diagram 4 and the attached diagram 5 shows that the edge detection effect is improved.
The above examples only show one embodiment of the present invention, and the description thereof is more specific and detailed, but should not be construed as limiting the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, the protection scope of the present patent shall be subject to the claims.
Claims (2)
1. A Laplacian edge detection method based on image interpolation operation is characterized by comprising the following steps:
step 1: inputting an original image H, inserting the average value between two adjacent pixel values in each line of the original image, inserting the average value between two adjacent pixel values in each column on the image after line interpolation to obtain an interpolated expanded image H',
g1, g2, g3, g4, g5, g6, g7, g8, g9 … … gn, gm, gt in H 'respectively represent pixel values in the original image H, and k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k11, k12, k13, k14, k15, k16 … … are pixel values in an extended image H' obtained by extension interpolation of the original image H;
step 2: expanding the 3 × 3 laplacian template to obtain a 5 × 5 laplacian template L ', wherein the value of the central element of the 5 × 5 laplacian template is the opposite number of the sum of the 24 neighborhood elements, the values on the 5 × 5 laplacian template L ' are centrosymmetric with respect to the central element g (i, j), and the value of the element closer to the central element is larger than the value of the element farther from the central element and is the same as the value of the element with the same distance from the central element, and L ' satisfies the formula:
and step 3: convolving the extended image H 'with a 5 x 5 Laplace template L' to obtain a result image H ",
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810886388.8A CN109215046B (en) | 2018-08-06 | 2018-08-06 | Laplacian operator edge detection method based on image interpolation operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810886388.8A CN109215046B (en) | 2018-08-06 | 2018-08-06 | Laplacian operator edge detection method based on image interpolation operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109215046A CN109215046A (en) | 2019-01-15 |
CN109215046B true CN109215046B (en) | 2021-05-21 |
Family
ID=64987563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810886388.8A Active CN109215046B (en) | 2018-08-06 | 2018-08-06 | Laplacian operator edge detection method based on image interpolation operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109215046B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113132725A (en) * | 2021-03-26 | 2021-07-16 | 中山大学 | Deblocking filtering optimization method, device, equipment and medium |
CN113763392B (en) * | 2021-11-10 | 2022-03-18 | 北京中科慧眼科技有限公司 | Model prediction method and system for road surface flatness detection and intelligent terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567979A (en) * | 2012-01-20 | 2012-07-11 | 南京航空航天大学 | Vehicle-mounted infrared night vision system and multi-source images fusing method thereof |
CN102770887A (en) * | 2010-01-28 | 2012-11-07 | 耶路撒冷希伯来大学伊森姆研究发展有限公司 | Method and system for generating an output image of increased pixel resolution from an input image |
CN103440662A (en) * | 2013-09-04 | 2013-12-11 | 清华大学深圳研究生院 | Kinect depth image acquisition method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7856150B2 (en) * | 2007-04-10 | 2010-12-21 | Arcsoft, Inc. | Denoise method on image pyramid |
US8537283B2 (en) * | 2010-04-15 | 2013-09-17 | Qualcomm Incorporated | High definition frame rate conversion |
US9589366B2 (en) * | 2014-06-27 | 2017-03-07 | Samsung Electronics Co., Ltd. | Dithered sampling patterns for temporal color averaging |
CN104881843A (en) * | 2015-06-10 | 2015-09-02 | 京东方科技集团股份有限公司 | Image interpolation method and image interpolation apparatus |
WO2016207875A1 (en) * | 2015-06-22 | 2016-12-29 | Photomyne Ltd. | System and method for detecting objects in an image |
CN105139391B (en) * | 2015-08-17 | 2018-01-30 | 长安大学 | A kind of haze weather traffic image edge detection method |
CN106469306B (en) * | 2016-09-28 | 2019-07-09 | 深圳市优象计算技术有限公司 | More people's image extract real-times and synthetic method based on infrared structure light |
-
2018
- 2018-08-06 CN CN201810886388.8A patent/CN109215046B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102770887A (en) * | 2010-01-28 | 2012-11-07 | 耶路撒冷希伯来大学伊森姆研究发展有限公司 | Method and system for generating an output image of increased pixel resolution from an input image |
CN102567979A (en) * | 2012-01-20 | 2012-07-11 | 南京航空航天大学 | Vehicle-mounted infrared night vision system and multi-source images fusing method thereof |
CN103440662A (en) * | 2013-09-04 | 2013-12-11 | 清华大学深圳研究生院 | Kinect depth image acquisition method and device |
Non-Patent Citations (5)
Title |
---|
Edge Detection: A Collection of Pixel based Approach;B O. Sadiq等;《International Journal of Computer Applications》;20150331;全文 * |
Study and Comparison of Different Edge Detectors for Image;Pinaki Pratim Acharjya等;《Global Journal of Computer Science and Technology》;20121231;全文 * |
一种新的基于Laplacian 算子的边缘检测方法;任文杰等;《电气电子教学学报》;20080630;第30卷(第3期);全文 * |
关于图像边缘检测的Laplace算子的改进;鲍宗泛;《中国计量学院学报》;20001231;第11卷(第2期);全文 * |
基于Laplacian算子的一种新的边缘检测方法;吕俊白;《小型微型计算机系统》;20020930;第23卷(第9期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109215046A (en) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9185382B2 (en) | Stereo image processor and stereo image processing method | |
CN107194408B (en) | Target tracking method of mixed block sparse cooperation model | |
CN109215046B (en) | Laplacian operator edge detection method based on image interpolation operation | |
US20090226097A1 (en) | Image processing apparatus | |
CN108154149B (en) | License plate recognition method based on deep learning network sharing | |
CN106934806B (en) | It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus | |
CN107169979A (en) | A kind of method for detecting image edge of improvement Canny operators | |
US20210366132A1 (en) | Image processing device, image processing method, and storage medium storing image processing program | |
EP3298770B1 (en) | Automatic detection of panoramic gestures | |
CN108447016B (en) | Optical image and SAR image matching method based on straight line intersection point | |
CN105793892A (en) | Image processing method and apparatus and photographing device | |
CN106791279B (en) | Motion compensation method and system based on occlusion detection | |
US20120002902A1 (en) | Image interpolating method based on direction detection and device thereof | |
WO2005071614A1 (en) | Human face detection position shift correction method, correction system, and correction program | |
CN110874827A (en) | Turbulent image restoration method and device, terminal equipment and computer readable medium | |
CN114331951A (en) | Image detection method, image detection device, computer, readable storage medium, and program product | |
CN114663374A (en) | Tunnel wall crack detection method based on bilateral filtering and gamma conversion | |
CN110288026B (en) | Image segmentation method and device based on metric relation graph learning | |
CN105608689A (en) | Method and device for eliminating image feature mismatching for panoramic stitching | |
CN112215079A (en) | Global multistage target tracking method | |
CN106022337A (en) | Planar object detection method based on continuous edge characteristic | |
CN110706254B (en) | Target tracking template self-adaptive updating method | |
CN101917624A (en) | Method for reconstructing high resolution video image | |
CN108537810B (en) | Improved Zernike moment sub-pixel edge detection method | |
CN111860161B (en) | Target shielding detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |