CN102779342A - Edge detection method for voice coil motor magnet - Google Patents

Edge detection method for voice coil motor magnet Download PDF

Info

Publication number
CN102779342A
CN102779342A CN2012102010189A CN201210201018A CN102779342A CN 102779342 A CN102779342 A CN 102779342A CN 2012102010189 A CN2012102010189 A CN 2012102010189A CN 201210201018 A CN201210201018 A CN 201210201018A CN 102779342 A CN102779342 A CN 102779342A
Authority
CN
China
Prior art keywords
image
detection method
edge
edge detection
carrying
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.)
Pending
Application number
CN2012102010189A
Other languages
Chinese (zh)
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.)
Jiangnan University
Original Assignee
Jiangnan 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 Jiangnan University filed Critical Jiangnan University
Priority to CN2012102010189A priority Critical patent/CN102779342A/en
Publication of CN102779342A publication Critical patent/CN102779342A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention provides an edge detection method for a voice coil motor (VCM in short) magnet based on mathematical morphology and a canny operator, belonging to the field of computer image identification. The edge detection method comprises the following base steps of: (1), inputting a VCM image to carry out background removal and binarization processing, so as to obtain a binary image of the magnet; (2), firstly carrying out erosion operation and expansion operation on the binary image in sequence, and then carrying out expansion operation and erosion operation in sequence; (3), using a Gaussian filter to carry out smoothing on the image acquired in the step (2); (4), carrying out gradient computation to acquire a gradient value of each pixel point; (5), carrying out non-maxima suppression on each pixel point and gradient value to acquire a preliminary edge point; and (6), carrying out double-threshold computation on the preliminary edge point acquired in the step (5), so as to acquire a complete edge. The edge detection method provided by the invention can be used to stably and efficiently detect the edge of the VCM magnet.

Description

A kind of voice coil motor magnet edge detection method
Technical field
The present invention relates to a kind of voice coil motor magnet edge detection method, belong to the computer picture recognition field, be applicable to the edge extracting of voice coil motor magnet based on mathematical morphology and canny operator.
Background technology
Voice coil motor (Voice Coil Motor is called for short VCM) is an indispensable part in the hard disk; Magnet above it can form magnetic field; Utilize this magnetic field to drive the reading-writing arm in the hard disk, so the marginal information of VCM magnet is one of key factor that guarantees the hard disk quality.Yet in actual detected,, tend to occur false edge when gathering the magnet marginal information, cause location, magnet edge inaccurate because the VCM shape is comparatively complicated.
Mathematical morphology is that the basis is analyzed image with geometry; Structural element is applied to input picture; Thereby obtain and the equal big or small output image of input picture, its basic thought is usually to survey and extract characteristics of image to reach the purpose to graphical analysis and identification with the structural elements with certain form.Expansion, burn into open and closure is computing basic in the mathematical morphology.
The Canny operator is a multistage optimization operator with filtering, enhancing and detection.Canny provides 3 indexs that evaluation edge detects performance:
1) high s/n ratio criterion, promptly non-marginal point are mistaken for marginal point or marginal point to be mistaken for the probability of non-marginal point low, make the signal to noise ratio (S/N ratio) of output reach maximum;
2) high position precision criterion, promptly detected image border point will be as far as possible at the center at real image edge;
3) single skirt response criterion will guarantee that promptly single edge has only a pixel corresponding, and the response of false edge is inhibited to the full extent.
Summary of the invention
To the problems referred to above, the object of the present invention is to provide a kind of VCM magnet edge detection method based on mathematical morphology and canny operator, it can real-time stabilization detects the edge of VCM magnet efficiently.
VCM magnet edge detection method based on mathematical morphology and canny operator may further comprise the steps:
Step 1), the tiff image of input VCM is removed background and binary conversion treatment, obtains the bianry image of magnet;
Step 2), be that 15 collar plate shape structural element carries out the mathematical morphology computing of corrosion after expansion earlier to bianry image utilization radius, promptly open computing; And then the utilization radius is that 8 diamond structure element carries out the computing of first expansion post-etching, i.e. closure operation;
Step 3) adopts Gaussian filter to step 2) image that obtains carries out smoothing processing, the filtering image noise;
Step 4) adopts the canny operator to carry out gradient calculation, obtains the Grad of each pixel in the image;
Step 5), the Grad of each pixel in the image that the employing step 4) obtains carries out non-maximum value inhibition to each pixel and Grad, obtains preliminary image border point;
Step 6), the preliminary marginal point that step 5) is obtained carries out dual threshold calculating, and the marginal point of further refining is rejected false marginal point and completion emargintion, obtains complete edge.
The present invention adopts technique scheme; Utilize the mathematical morphology algorithm that the VCM image is carried out pre-service and image characteristics extraction and can effectively remove the detailed information of disturbing and keeping image, the image utilization canny operator after handling is carried out rim detection can obtain VCM magnet shape edge clearly.
Description of drawings
Fig. 1 is the process flow diagram based on the VCM magnet edge detection method of mathematical morphology and canny operator.
The VCM original graph of Fig. 2 for gathering.
Fig. 3 is the pretreated synoptic diagram as a result of mathematical morphology.
Fig. 4 is a magnet edge detection results synoptic diagram.
Embodiment
Further specify below in conjunction with the accompanying drawing specific embodiments of the invention.
1) input needs the VCM picture of detection, does the removal background process, extracts interested magnet part, does binary conversion treatment, obtains the bianry image X of magnet.
2) choose structural element S 1And S 2, S wherein 1For radius is 15 collar plate shape structure, S 2It for radius 8 diamond structure.Utilization S 1X is carried out the mathematical morphology computing of corrosion after expansion earlier, promptly open computing Obtain X 1, and then utilization S 2Carry out the mathematical morphology computing of first expansion post-etching, i.e. closure operation X 1 · S 2 = ( X 1 ⊕ S 2 ) Θ S 2 , Obtain X 2
3) adopt two-dimensional Gaussian function G ( x , y ) = 1 2 π σ 2 e ( - ( x 2 + y 2 ) 2 σ 2 ) Try to achieve first order derivative ∂ G ∂ x = - x 2 π σ 4 e ( - x 2 + y 2 2 σ 2 ) ,
Figure BSA00000735819400025
With X 2Carrying out convolution algorithm obtains
Figure BSA00000735819400026
With
Figure BSA00000735819400027
Calculate the Grad of each pixel in the image A ( i , j ) = E x 2 ( i , j ) + E y 2 ( i , j ) .
4) each pixel and Grad being carried out that non-maximum value suppresses is the ridge band of refinement gradient magnitude image; Only keep the maximum point of amplitude localized variation; If pixel (i; J) (i j) is not less than the gradient magnitude of two neighbor pixels on the gradient direction to edge strength A, judges that then this point is possible marginal point.
5) set two threshold tau 1And τ 2, non-maximum value is suppressed image carry out the dual threashold value, can obtain two testing results, be respectively with low threshold tau 1Cut apart the image T that obtains 1With with high threshold τ 2Cut apart the image T that obtains 2With image T 2Be basic adjoining edge profile, when being connected to end points, with image T 1Carry out the final rim detection design sketch of edge connection acquisition for replenishing.
More than being preferred embodiment of the present invention, is not that the present invention is done any pro forma restriction, and every foundation technical spirit of the present invention all belongs in the scope of inventing technical scheme any simple modification, equivalent variations and modification that above embodiment did.

Claims (2)

1. a voice coil motor magnet edge detection method is characterized in that: adopt mathematical morphology that voice coil motor magnet image is handled earlier, use the canny operator to detect magnet edge shape clearly again.
2. require described voice coil motor magnet edge detection method according to right 1; It is characterized in that: it is to be that 15 collar plate shape structural element carries out the mathematical morphology computing of corrosion after expansion earlier to bianry image utilization radius that the mathematical morphology that is adopted is handled image, promptly opens computing; And then the utilization radius is that 8 diamond structure element carries out the computing of first expansion post-etching, i.e. closure operation.
CN2012102010189A 2012-06-15 2012-06-15 Edge detection method for voice coil motor magnet Pending CN102779342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102010189A CN102779342A (en) 2012-06-15 2012-06-15 Edge detection method for voice coil motor magnet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102010189A CN102779342A (en) 2012-06-15 2012-06-15 Edge detection method for voice coil motor magnet

Publications (1)

Publication Number Publication Date
CN102779342A true CN102779342A (en) 2012-11-14

Family

ID=47124251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102010189A Pending CN102779342A (en) 2012-06-15 2012-06-15 Edge detection method for voice coil motor magnet

Country Status (1)

Country Link
CN (1) CN102779342A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407746A (en) * 2014-12-01 2015-03-11 湖北印象光电信息产业有限公司 Infrared photoelectric technology based multi-point touch system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040126013A1 (en) * 2002-12-30 2004-07-01 Teresa Olson Morphological based segmenter
CN101794372A (en) * 2009-11-30 2010-08-04 南京大学 Method for representing and recognizing gait characteristics based on frequency domain analysis
CN102289824A (en) * 2011-07-06 2011-12-21 湖南大学 Method for positioning plane centroid of pipe orifice image of condenser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040126013A1 (en) * 2002-12-30 2004-07-01 Teresa Olson Morphological based segmenter
CN101794372A (en) * 2009-11-30 2010-08-04 南京大学 Method for representing and recognizing gait characteristics based on frequency domain analysis
CN102289824A (en) * 2011-07-06 2011-12-21 湖南大学 Method for positioning plane centroid of pipe orifice image of condenser

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHAO YU-QIAN ET AL.: "Medical Images Edge Detection Based on Mathematical Morphology", 《PROCEEDINGS OF THE 2005 IEEE ENGINEERING IN MEDICINE AND BIOLOGY 27TH ANNUAL CONFERENCE》 *
欧先锋等: "多结构抗噪膨胀-腐蚀型数字灰度图像边缘检测的研究", 《激光杂志》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407746A (en) * 2014-12-01 2015-03-11 湖北印象光电信息产业有限公司 Infrared photoelectric technology based multi-point touch system

Similar Documents

Publication Publication Date Title
CN107392141B (en) Airport extraction method based on significance detection and LSD (least squares distortion) line detection
CN106815583B (en) Method for positioning license plate of vehicle at night based on combination of MSER and SWT
CN104680550A (en) Method for detecting defect on surface of bearing by image feature points
US9679354B2 (en) Duplicate check image resolution
CN103208004A (en) Automatic recognition and extraction method and device for bill information area
US9245194B2 (en) Efficient line detection method
CN111652825B (en) Edge tracking straight line segment rapid detection device and method based on gradient direction constraint
CN108009472A (en) A kind of finger back arthrosis line recognition methods based on convolutional neural networks and Bayes classifier
CN111739058B (en) Free liquid level recognition and extraction method based on watershed algorithm of Gaussian filtering
CN102750531B (en) Method for detecting handwriting mark symbols for bill document positioning grids
CN106504225A (en) A kind of recognition methodss of regular polygon and device
CN103226829A (en) Image edge detection method based on edge enhancement operator
CN103488998A (en) Identity card recognition method based on neural network and image processing technology
CN105447508A (en) Identification method and system for character image verification codes
CN106886988A (en) A kind of linear goal detection method and system based on unmanned aerial vehicle remote sensing
CN104732530A (en) Image edge detection method
CN102737230A (en) Non-local mean filtering method based on direction field estimation
CN102779342A (en) Edge detection method for voice coil motor magnet
CN114255352A (en) River channel extraction method and device and computer readable storage medium
CN111539312A (en) Method for extracting table from image
CN104103039A (en) Image noise estimation method
Sun et al. Research on image segmentation and extraction algorithm for bicolor water level gauge
CN112418123B (en) Hough transformation-based engineering drawing line and line type identification method
Wang et al. A robust vehicle model construction and identification system using local feature alignment
Li et al. Progressive probabilistic hough transform based nighttime lane line detection for micro-traffic road

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121114