CN102663395A - A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform - Google Patents

A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform Download PDF

Info

Publication number
CN102663395A
CN102663395A CN2012100549537A CN201210054953A CN102663395A CN 102663395 A CN102663395 A CN 102663395A CN 2012100549537 A CN2012100549537 A CN 2012100549537A CN 201210054953 A CN201210054953 A CN 201210054953A CN 102663395 A CN102663395 A CN 102663395A
Authority
CN
China
Prior art keywords
image
edge
block
beamlet
self
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.)
Granted
Application number
CN2012100549537A
Other languages
Chinese (zh)
Other versions
CN102663395B (en
Inventor
李映
韩晓宇
崔杨杨
李潇
张艳宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Anmeng Intelligent Technology Co ltd
Original Assignee
Northwestern Polytechnical University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN 201210054953 priority Critical patent/CN102663395B/en
Publication of CN102663395A publication Critical patent/CN102663395A/en
Application granted granted Critical
Publication of CN102663395B publication Critical patent/CN102663395B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention belongs to the technical field of image processing, and particularly relates to a straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform. Technical features of the method rest with following details: an edge detection image E is obtained by carrying out edge detection on an image I using a Canny operator, gradient direction angles of edge pixel points on the edge detection image E are calculated and the edge contour is divided into various linearity regions based on a gradient direction angle of two edge points, and fast discrete Beamlet transform is carried out on a current self-adaptation partition subblock through linearity region screening to detect straight lines. The method reduces calculation amount by a certain degree because the scale of an AMFDBT algorithm initial blockette is in a self-adaptation set by the region where a target point is] in the image. At the same time, the initial Beamlet transform can easily cause straight lines to be truncated while the self-adaptive change in partition sub-block makes result of the detected straight line more complete with no truncation of straight lines.

Description

The line detection method converted based on self-adapting multi-dimension fast discrete Beamlet
Technical field
The invention belongs to image procossing, more particularly to a kind of line detection method converted based on self-adapting multi-dimension fast discrete Beamlet.
Background technology
The extraction of line feature is always a study hotspot in image procossing and area of pattern recognition, although traditional line detection algorithm can detect straight line quickly, all because being accurately positioned for line segment can not be realized without the length information for providing line segment and the beginning and end information of line segment.
Beamlet conversion is one of effective tool of multi-scale geometric analysis, for recovering straight line from noisy image, curve and boxed area, it easily realizes being accurately positioned and to the multiple dimensioned approximate of line segment, obvious advantage and potentiality being suffered from the detection of noisy linear feature and fitting a straight line for line segment.But the amount of calculation of tradition Beamlet conversion is very big, many improved fast algorithms all waste many amounts of calculation because of to carry out substantial amounts of repeated work.And enter square because traditional Beamlet subregion block sizes converted are two, to then relatively cumbersome applied to general rectangular image.Simultaneously as algorithm two enter it is recursive on the basis of realize, easily cause the situation that straight line is truncated.
In summary, there is the deficiencies such as computationally intensive, testing result is imperfect in traditional Beamlet conversion.
The content of the invention
The technical problem to be solved
In order to avoid in place of the deficiencies in the prior art, the present invention proposes a kind of line detection method converted based on self-adapting multi-dimension fast discrete Beamlet.
Technical scheme
A kind of line detection method converted based on self-adapting multi-dimension fast discrete Beamlet, it is characterised in that step is as follows:
Step 1:Rim detection is carried out to image I using Canny operators, edge-detected image E is obtained;
Step 2:Calculate the deflection of edge-detected image E top edge pixel gradients:When the gradient direction angle of two marginal points differs by more than predetermined threshold value threshold, disconnected herein at the marginal point, edge contour is divided into multiple ranges of linearity and given mark;In formula, GxAnd GyThe horizontal and vertical gradient component of marginal point is represented respectively;
Step 3:The line area that range of linearity inward flange is counted less than 20 is deleted, and obtains the image E ' after line area is screened, and regard the marginal point after rim detection as target point;
Step 4:With edge image E ' for initial subregion sub-block, the Minimum Area for finding target point presence is used as adaptive partition sub-block;If the sub-block performs step 5 when being more than or equal to defined threshold t ';Otherwise step 6 is performed;
Step 5:Fast discrete Beamlet conversion, detection of straight lines are carried out to current adaptive partition sub-block.If finding beamlet straight lines, the end points and slope information of straight line are recorded, the straight line is then wiped under current sub-block;Otherwise, by the current bay block quartering, and as the initial size of next yardstick subregion sub-block, step 4 is repeated;
Step 6:If the quantity of beamlet straight lines is more than 0, according to the slope information of all straight lines, all straight lines of the straight slope difference within 1 degree are found as parallel lines.
Beneficial effect
A kind of line detection method converted based on self-adapting multi-dimension fast discrete Beamlet proposed by the present invention, because the yardstick of AMFDBT algorithm primary partition blocks is that the region adaptivity existed by target point in figure is set, target point can just spread all over full figure in the most extreme case, and this make it that amount of calculation obtains certain reduction.Meanwhile, initial Beamlet conversion easily causes the situation that straight line is truncated, and the change of subregion sub-block self adaptation make it that the result of final detection of straight lines is more complete, is not likely to produce and blocks phenomenon.
Brief description of the drawings
Fig. 1:Parallel lines overhaul flow chart based on AMFDBT
Embodiment
In conjunction with embodiment, accompanying drawing, the invention will be further described:
The present invention defines self adaptation tile on the basis that recursive partitioning algorithm is entered in traditional discrete Beamlet conversion two and returns subregion (Adaptive Tile Recursive Dyadic Partitioning, abbreviation ATRDP) algorithm.Here S is usedI, j, lEach subregion sub-block is represented, wherein (i, j) represents the x coordinate and y-coordinate of the sub-block upper left angle point in original image, l represents the length of side of sub-block, and k represents k-th of subregion sub-block, and J represents to carry out self adaptation tile recurrence subregion the J times.Then ATRDP algorithms are defined as follows:
①ATPJIt is an ATRDP.
If 2. ATP J = { S i 0 , j 0 , l 0 , . . . . S i k , j k , l k , . . . , S i n , j n , l n } It is an ATRDP, and
Figure BDA0000140613440000032
If meeting adaptive partition condition (refer to find beamlet b line segments in the blockette and eliminate the target point contained by b line segments from figure and can change the distributed areas of target point in blockette),
Figure BDA0000140613440000033
It is adjusted to by the region adaptivity existed by its intrapartition destination punctuate
Figure BDA0000140613440000034
Then
ATP J + 1 = { S i 0 , j 0 , l 0 , . . . , S i k , j k , l k , S ( adap ) i k , j k , l k , . . . , S i n , j n , l n }
It is also ATRDP.
If adaptive partition condition is unsatisfactory for, and
Figure BDA0000140613440000037
Four equal divisions sub-blocks can be subdivided into
Figure BDA0000140613440000038
Its yardstick is readjusted in the region then existed respectively by target point in this four sub- blockettes, is obtained
Figure BDA0000140613440000039
Then
ATP J + 1 = { S i 0 , j 0 , l 0 , . . . , S i k , j k , l k , . . . , S ( adap ) i k , j k , l k / 2 , S ( adap ) i k + l k / 2 , j k , l k / 2 , S ( adap ) i k , j k + l k / 2 , l k / 2 , S ( adap ) i k + l k / 2 , j k + l k / 2 , l k / 2 . . . , S i n , j n , l n } It is also ATRDP, wherein
Figure BDA00001406134400000312
It is
Figure BDA00001406134400000313
Figure BDA00001406134400000314
Father's block.
ATRDP partition methods and fast discrete Beamlet conversion (Fast Discrete Beamlet Transform, abbreviation FDBT) are combined, self-adapting multi-dimension fast discrete Beamlet is defined and is transformed to:
Figure BDA00001406134400000315
WhereinConvert, be defined as follows for fast discrete Beamlet:
Figure BDA0000140613440000042
G ( f ( x , y ) ) = 1 f ( x , y ) &GreaterEqual; t 0 f ( x , y ) < t - - - ( 3 )
Beamlet b are a line segment in subregion sub-block S in formula (1), and S is ATRDP subregion sub-blocks.AMFDBT cut set includes all energy functions
Figure BDA0000140613440000044
(wherein | | b | | it is the element number on beamlet b) exceed specified threshold t*Beamlet b, the beamlet b that sub-block has been present under last layer large scale will not be considered any further in the fine dimension sub-block that next stage is decomposed, and the decomposition of the beamlet b under large scale can be expressed as b=Ujbj, so AMFDBT cut set is:
B t * = { b | E ( b ) > t * , | b &Element; S , S &Element; ATP J , b &NotElement; D ~ t * } - - - ( 4 )
D ~ t * = { b j | b = U j b j , E ( b ) > t * , b &Element; P } - - - ( 5 )
Wherein P is S father's block.
(2) the parallel lines detection based on AMFDBT
AMFDBT is applied to carry out parallel lines detection to image by the present invention.
First have to carry out series of preprocessing to image before parallel detection, it is comprised the following steps that:
1. rim detection is carried out to image I using Canny operators, obtains edge-detected image E.
2. the range of linearity is screened, and rejects curve or compared with short straight line.Due in image I, in addition to target there are after substantial amounts of complex background, rim detection them toward contact mainly shows a little irregular or bending edge feature, and these edge features can cause large effect in straight-line detection process.Therefore before straight-line detection, edge contour screening first is carried out to edge image E, the more range of linearity of marginal point in the same direction is left behind, removed some and bend irregular or too short edge feature.
The present invention mainly uses the Gradient Phase information of edge pixel point, to realize the screening of the range of linearity.The deflection of edge pixel point gradient is calculated first:
Figure BDA0000140613440000047
In formula, GxAnd GyThe horizontal and vertical gradient component of marginal point is represented respectively.When the gradient direction angle of two marginal points differs by more than predetermined threshold value threshold, represent that edge contour direction transformation is larger, disconnected at this marginal point.Edge contour can be so divided into many ranges of linearity, these ranges of linearity are marked, statistically linear region inner margin points delete the less line area of marginal point, detection interference is reduced with further.Image after line area is screened is designated as E ' by us.
AMFDBT parallel detections are utilized on the basis of edge image E ', specific algorithm is described as follows:
1. traversing operation subgraph (initial operation subgraph is edge image E '), finds the region that target point in figure (i.e. marginal point of the image after rim detection) is present.If the area size is more than defined threshold t ', (t ' can be adjusted according to image size, generally picture traverse/100), perform next step;Otherwise step is performed 4..
2. the target point region 1. found using step is carried out fast discrete Beamlet conversion to the blockette, finds out all beamlet straight lines in the block of current bay, its slope is calculated according to straight line terminal point information as subregion sub-block.
If 3. step 2. in find beamlet straight lines, extract straight line information and simultaneously wipe the straight line;Otherwise, by the current bay block quartering, and it is used as the initial size of next yardstick subregion sub-block.Perform step 1..
If 4. detecting beamlet straight lines, according to the slope information of straight line, all parallel lines are found out.
Embodiment of the present invention reference flow sheet (1), the parallel lines detecting step converted based on self-adapting multi-dimension Beamlet is as follows:
AMFDBT is applied to carry out parallel lines detection to image by the present invention, and it is comprised the following steps that:
(1) image preprocessing
1. rim detection is carried out to image I using Canny operators, obtains edge-detected image E.
2. the range of linearity is screened, and rejects curve or compared with short straight line.Due in image I, in addition to target there are after substantial amounts of complex background, rim detection them toward contact mainly shows a little irregular or bending edge feature, and these edge features can cause large effect in straight-line detection process.Therefore before straight-line detection, edge contour screening first is carried out to edge image E, the more range of linearity of marginal point in the same direction is left behind, removed some and bend irregular or too short edge feature.
The present invention mainly uses the Gradient Phase information of edge pixel point, to realize the screening of the range of linearity.The deflection of edge pixel point gradient is calculated first:
In formula, GxAnd GyThe horizontal and vertical gradient component of marginal point is represented respectively.When the gradient direction angle of two marginal points differs by more than predetermined threshold value threshold (threshold=20 herein), represent that edge contour direction transformation is larger, disconnected at this marginal point.Edge contour can be so divided into many ranges of linearity, these ranges of linearity are marked, statistically linear region inner margin points delete the less line area of marginal point, detection interference is reduced with further.Image after line area is screened is designated as E ' by us.
(2) the parallel lines detection based on AMFDBT
1. traversing operation subgraph (initial operation subgraph is edge image E '), finds the region that target point in figure (i.e. marginal point of the image after rim detection) is present.If the area size is more than defined threshold t ', (t ' can be adjusted according to image size, generally picture traverse/100), perform next step;Otherwise step is performed 4..
2. the target point region 1. found using step is carried out fast discrete Beamlet conversion to the blockette, finds out all beamlet straight lines in the block of current bay, its slope is calculated according to straight line terminal point information as subregion sub-block.
If 3. step 2. in find beamlet straight lines, extract straight line information (end points and slope) and simultaneously wipe the straight line;Otherwise, by the current bay block quartering, and it is used as the initial size of next yardstick subregion sub-block.Perform step 1..
If 4. detecting beamlet straight lines, according to the slope information of straight line, all parallel lines are found out.

Claims (1)

1. a kind of line detection method converted based on self-adapting multi-dimension fast discrete Beamlet, it is characterised in that step is as follows:
Step 1:Rim detection is carried out to image I using Canny operators, edge-detected image E is obtained;
Step 2:Calculate the deflection of edge-detected image E top edge pixel gradients:
Figure FDA0000140613430000011
, when the gradient direction angle of two marginal points differs by more than predetermined threshold value threshold, disconnected herein at the marginal point, edge contour is divided into multiple ranges of linearity and given mark;In formula, GxAnd GyThe horizontal and vertical gradient component of marginal point is represented respectively;
Step 3:The line area that range of linearity inward flange is counted less than 20 is deleted, and obtains the image E ' after line area is screened, and regard the marginal point after rim detection as target point;
Step 4:With edge image E ' for initial subregion sub-block, the Minimum Area for finding target point presence is used as adaptive partition sub-block;If the sub-block performs step 5 when being more than or equal to defined threshold t ';Otherwise step 6 is performed;
Step 5:Fast discrete Beamlet conversion, detection of straight lines are carried out to current adaptive partition sub-block.If finding beamlet straight lines, the end points and slope information of straight line are recorded, the straight line is then wiped under current sub-block;Otherwise, by the current bay block quartering, and as the initial size of next yardstick subregion sub-block, step 4 is repeated;
Step 6:If the quantity of beamlet straight lines is more than 0, according to the slope information of all straight lines, all straight lines of the straight slope difference within 1 degree are found as parallel lines.
CN 201210054953 2012-03-05 2012-03-05 A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform Expired - Fee Related CN102663395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210054953 CN102663395B (en) 2012-03-05 2012-03-05 A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210054953 CN102663395B (en) 2012-03-05 2012-03-05 A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform

Publications (2)

Publication Number Publication Date
CN102663395A true CN102663395A (en) 2012-09-12
CN102663395B CN102663395B (en) 2013-11-06

Family

ID=46772879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210054953 Expired - Fee Related CN102663395B (en) 2012-03-05 2012-03-05 A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform

Country Status (1)

Country Link
CN (1) CN102663395B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9449245B2 (en) 2014-02-22 2016-09-20 Xiaomi Inc. Method and device for detecting straight line
CN110298845A (en) * 2019-06-17 2019-10-01 中国计量大学 It transmits electricity under a kind of complex background based on image procossing line detecting method
CN111047615A (en) * 2019-12-09 2020-04-21 Oppo广东移动通信有限公司 Image-based line detection method and device and electronic equipment
CN111445510A (en) * 2020-03-24 2020-07-24 杭州东信北邮信息技术有限公司 Method for detecting straight line in image

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159009A (en) * 2007-11-09 2008-04-09 西北工业大学 Method for detecting bridge from remote sense image
WO2008125663A2 (en) * 2007-04-13 2008-10-23 Institut Pasteur A feature adapted beamlet transform apparatus and associated methodology of detecting curvilenear objects of an image
CN101915764A (en) * 2010-08-10 2010-12-15 武汉武大卓越科技有限责任公司 Road surface crack detection method based on dynamic programming
CN102156882A (en) * 2011-04-14 2011-08-17 西北工业大学 Method for detecting airport target based on high-resolution remote sensing image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008125663A2 (en) * 2007-04-13 2008-10-23 Institut Pasteur A feature adapted beamlet transform apparatus and associated methodology of detecting curvilenear objects of an image
CN101159009A (en) * 2007-11-09 2008-04-09 西北工业大学 Method for detecting bridge from remote sense image
CN101915764A (en) * 2010-08-10 2010-12-15 武汉武大卓越科技有限责任公司 Road surface crack detection method based on dynamic programming
CN102156882A (en) * 2011-04-14 2011-08-17 西北工业大学 Method for detecting airport target based on high-resolution remote sensing image

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9449245B2 (en) 2014-02-22 2016-09-20 Xiaomi Inc. Method and device for detecting straight line
CN110298845A (en) * 2019-06-17 2019-10-01 中国计量大学 It transmits electricity under a kind of complex background based on image procossing line detecting method
CN111047615A (en) * 2019-12-09 2020-04-21 Oppo广东移动通信有限公司 Image-based line detection method and device and electronic equipment
CN111047615B (en) * 2019-12-09 2024-02-02 Oppo广东移动通信有限公司 Image-based straight line detection method and device and electronic equipment
CN111445510A (en) * 2020-03-24 2020-07-24 杭州东信北邮信息技术有限公司 Method for detecting straight line in image

Also Published As

Publication number Publication date
CN102663395B (en) 2013-11-06

Similar Documents

Publication Publication Date Title
CN101901343B (en) Remote sensing image road extracting method based on stereo constraint
CN107045634B (en) Text positioning method based on maximum stable extremum region and stroke width
CN103473785B (en) A kind of fast multi-target dividing method based on three-valued image clustering
CN107563379B (en) Method for positioning text in natural scene image
CN102693423A (en) Method for precise positioning of license plate in strong light conditions
CN104463870A (en) Image salient region detection method
CN102903108B (en) Edge detection method based on underwater image statistical property
CN103577828B (en) A kind of Approach for road detection based on edge feature
Wei et al. Beamlet transform based pavement image crack detection
CN105894487A (en) Steel material image number extraction and segmentation method
CN102663395A (en) A straight line detection method based on self-adaptation multi-scale fast discrete Beamlet transform
CN106875430B (en) Single moving target tracking method and device based on fixed form under dynamic background
CN106504247B (en) A kind of quick-fried automatic testing method of the insulator chain based on visible images and device
CN107909083A (en) A kind of hough transform extracting method based on outline optimization
CN112308872B (en) Image edge detection method based on multi-scale Gabor first derivative
CN104182728A (en) Vehicle logo automatic location and recognition method based on pattern recognition
CN102289810A (en) Quick rectangle detection method of images high resolution and high order of magnitude
CN104156722A (en) Airport target detection method based on high-resolution remote sensing image
CN108492306A (en) A kind of X-type Angular Point Extracting Method based on image outline
CN107529658A (en) Automatic detection micro-pipe method under strong noise micro-image
CN110473255A (en) A kind of ship bollard localization method divided based on multi grid
CN114241436A (en) Lane line detection method and system for improving color space and search window
Wu et al. Research on crack detection algorithm of asphalt pavement
CN106897989B (en) A kind of fingerprint image dividing method calculated based on line density
CN110490887B (en) 3D vision-based method for quickly identifying and positioning edges of rectangular packages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190226

Address after: 710075 Oak Constellation 1 Building 2 Unit 20301, North of Science and Technology Fifth Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Xu Yao Network Technology Co.,Ltd.

Address before: 710072 No. 127 Youyi West Road, Shaanxi, Xi'an

Patentee before: Northwestern Polytechnical University

TR01 Transfer of patent right

Effective date of registration: 20190425

Address after: 710000 Unit 2, Unit 3, Building 5, No. 2, Hongpu South Road, Yanta District, Xi'an City, Shaanxi Province

Patentee after: Zhao Feng

Address before: 710075 Oak Constellation 1 Building 2 Unit 20301, North of Science and Technology Fifth Road, Xi'an High-tech Zone, Shaanxi Province

Patentee before: Xi'an Xu Yao Network Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190917

Address after: 710075 Room 1005, Tongda International Building, 41 Tangyan Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Anmeng Intelligent Technology Co.,Ltd.

Address before: 710000 Unit 2, Unit 3, Building 5, No. 2, Hongpu South Road, Yanta District, Xi'an City, Shaanxi Province

Patentee before: Zhao Feng

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131106

CF01 Termination of patent right due to non-payment of annual fee