CN106097317A - A kind of many spot detection based on discrete cosine phase information and localization method - Google Patents
A kind of many spot detection based on discrete cosine phase information and localization method Download PDFInfo
- Publication number
- CN106097317A CN106097317A CN201610392354.4A CN201610392354A CN106097317A CN 106097317 A CN106097317 A CN 106097317A CN 201610392354 A CN201610392354 A CN 201610392354A CN 106097317 A CN106097317 A CN 106097317A
- Authority
- CN
- China
- Prior art keywords
- image
- phase information
- discrete cosine
- spot detection
- follows
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a kind of many spot detection based on discrete cosine phase information and localization method, strengthen including the multiple target region using discrete cosine phase information, traversal threshold value maximum variance is used to carry out binarization segmentation and rim detection, and use many facula mass centers of image moment method to calculate, finally give edge and the barycenter of all hot spots.The present invention has taken into full account the phase information of discrete data, realizes image object detection.It is fast that the present invention calculates speed, and result is effective, reliably, it is adaptable to laser measurement, Robot visual location, the association area such as optical precision measurement.
Description
Technical field
The present invention relates to detection and the localization method of hot spot, a kind of spot detection based on digital picture and location
Method.
Background technology
Spot detection is a key in the accurate measurements such as laser collimator, laser measurement, optically measuring speeds, detection means
Technology, the precision of detection algorithm, calculate speed and directly affects the effect of optical measurement.Traditional spot detection has centroid method,
Median method and Hough transform method.The above two are the bigger error of easy generation in the case of light spot image skewness, and suddenly
Husband's conversion needs pointwise to vote, and record, amount of calculation is bigger, is also easily affected by noise.And the hot spot data in reality
It is easily subject to the interference of environment, there is the problems such as brightness irregularities, overexposure, noise.
Owing to image data information can be divided into useful information and redundancy, image is carried out discrete Fourier transform or
After person's discrete cosine transform, useful information and redundancy all presented in statistical information in frequency spectrum, and frequency spectrum is permissible
It is divided into amplitude spectrum and the form of phase spectrum sum.View data can be analyzed in terms of phase spectrum and amplitude spectrum two.
It is said that in general, phase spectrum comprises the texture information of image, and amplitude spectrum comprises the comparison of light and shade information of image.
Meanwhile, phase spectrum represents the positional information of data, and phase spectrum reconstruct can preserve the effective information of image, and amplitude spectrum reconstructs
The entire infrastructure feature of original image can be lost.
By the filtering of the phase spectrum of light spot image discrete message and reconstruct being realized the enhancing in common-denominator target region, enter
And use Binarization methods and centroid detection method, it may be determined that the shape of hot spot and position, thus provide number for accurate measurement
According to.
Summary of the invention
Goal of the invention: the problem existed for existing method, it is desirable to provide a kind of accurate, efficiently based on discrete
Many spot detection of cosine phase information and localization method.
Technical scheme: a kind of many spot detection based on discrete cosine phase information and localization method, comprises the steps:
S1: light spot image is carried out marking area based on phase spectrum and extracts pretreatment;
S2: pretreated light spot image is carried out binarization segmentation threshold calculations;
S3: the image obtaining step S2 carries out rim detection;
S4: the image obtaining step S3 carries out centroid calculation.
Further, marking area described in step S1 extract preprocess method particularly as follows:
S1.1: coloured image is carried out gray processing process;
S1.2: gray level image is carried out discrete cosine transform, extracts amplitude information and phase information;
S1.3: be filtered phase information, obtains the phase information difference before and after filtering;
S1.4: phase information difference amplitude information and S1.3 obtained carries out inverse discrete cosine transform, obtains reconstruct figure
Picture.
Further, the binarization segmentation threshold value calculation method described in S2 particularly as follows:
S2.1: setting gray level image gray level is L, then tonal range is [0, L-1], and the optimal threshold of image is:
T=Max [w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2]
Wherein, when the threshold value of segmentation is t, w0For background ratio, u0For background mean value, w1For prospect ratio, u1For prospect
Average, u is the average of entire image;
Make w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2The t that this transition formula evaluation is maximum, is segmentation image
Optimal threshold;
S2.2: the reconstruct image using this threshold value to obtain S1.4 is split, and obtains bianry image.
Further, the edge detection method described in S3 is particularly as follows: in bianry image, examine from left to right every a line
Survey, then detect every a line from top to bottom, find that the coordinate of pixel value change is i.e. designated as edge.
Further, the centroid computing method described in S4 is particularly as follows: calculate multiple connections of the bianry image that S2 obtains
The barycenter in territory, computational methods are as follows:
Zeroth order square:
First moment:
Wherein, V (i, j) represents coordinate i, the image pixel value at j, M and N representative image size, and the barycenter of image is designated as:
Beneficial effect: compared with prior art, a kind of based on discrete cosine phase information many hot spots that the present invention provides
Detection and localization method, calculate speed fast, it is possible to realize multiobject detection, strong interference immunity, it is adaptable to Laser Processing, man-machine
Interaction, the field such as optical detection.
Accompanying drawing explanation
Fig. 1 is the algorithm flow chart of the present invention.
Detailed description of the invention
Below by a most preferred embodiment and combine accompanying drawing the technical program is described in detail.
As it is shown in figure 1, a kind of many spot detection based on discrete cosine phase information and localization method, including walking as follows
Rapid:
S1: light spot image is carried out marking area based on phase spectrum and extracts pretreatment, specifically include following sub-step:
S1.1: coloured image is carried out gray processing process;
S1.2: gray level image is carried out discrete cosine transform, extracts amplitude information and phase information;
S1.3: be filtered phase information, obtains the phase information difference before and after filtering;
S1.4: phase information difference amplitude information and S1.3 obtained carries out inverse discrete cosine transform, obtains reconstruct figure
Picture.
S2: pretreated light spot image is carried out binaryzation calculating, specifically includes following sub-step:
S2.1: setting gray level image gray level is L, then tonal range is [0, L-1], and the optimal threshold of image is:
T=Max [w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2]
Wherein, when the threshold value of segmentation is t, w0For background ratio, u0For background mean value, w1For prospect ratio, u1For prospect
Average, u is the average of entire image;
Make w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2The t that this transition formula evaluation is maximum, is segmentation image
Optimal threshold;
S2.2: the reconstruct image using this threshold value to obtain S1.4 is split, and obtains bianry image;
S3: the image after step S2 is carried out rim detection, particularly as follows: in bianry image, to every a line from left to right
Detection, then detect every a line from top to bottom, find that the coordinate of pixel value change is i.e. designated as edge.
S4: image S3 carries out centroid calculation, calculates the barycenter of multiple connected domains of the bianry image that S2 obtains, calculating side
Method is as follows:
Zeroth order square:
First moment:
Wherein, (i, j) represents coordinate i to V, the image pixel value at j, M and N representative image size, and the barycenter of image is i.e. remembered
For:
Thus shape and the position of hot spot, the hot spot finally given in Fig. 1 is indicated by rim detection and centroid calculation
Shape and location, the shape of hot spot is edge, and location is the result of centroid calculation.
The present invention uses the centroid calculation of phase spectrum reconstruct and multiply connected domain to determine spot size and position, and algorithm is simple
Single, calculate speed fast, Detection results is good, and algorithm transplantability is good, can be effectively improved detection quality and the effect of hot spot.Below it is only
The preferred embodiment of the present invention, it should be pointed out that: for those skilled in the art, without departing from the present invention
On the premise of principle, it is also possible to make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (5)
1. many spot detection based on discrete cosine phase information and localization method, it is characterised in that comprise the steps:
S1: light spot image is carried out marking area based on phase spectrum and extracts pretreatment;
S2: pretreated light spot image is carried out binarization segmentation threshold calculations;
S3: the image obtaining step S2 carries out rim detection;
S4: the image obtaining step S3 carries out centroid calculation.
A kind of spot detection method based on phase information the most according to claim 1, it is characterised in that institute in step S1
The marking area stated extract preprocess method particularly as follows:
S1.1: coloured image is carried out gray processing process;
S1.2: gray level image is carried out discrete cosine transform, extracts amplitude information and phase information;
S1.3: be filtered phase information, obtains the phase information difference before and after filtering;
S1.4: phase information difference amplitude information and S1.3 obtained carries out inverse discrete cosine transform, obtains reconstructing image.
A kind of spot detection method based on phase information the most according to claim 2, it is characterised in that institute in step S2
The binarization segmentation threshold value calculation method stated particularly as follows:
S2.1: setting gray level image gray level is L, then tonal range is [0, L-1], and the optimal threshold of image is:
T=Max [w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2]
Wherein, when the threshold value of segmentation is t, w0For background ratio, u0For background mean value, w1For prospect ratio, u1For prospect average,
U is the average of entire image;
Make w0(t)·(u0(t)-u)2+w1(t)·(u1(t)-u)2The t that this transition formula evaluation is maximum, is the optimal of segmentation image
Threshold value;
S2.2: the reconstruct image using this threshold value to obtain S1.4 is split, and obtains bianry image.
A kind of spot detection method based on phase information the most according to claim 1, it is characterised in that institute in step S3
The edge detection method stated is particularly as follows: in bianry image, detect from left to right every a line, then detects each from top to bottom
OK, find that the coordinate of pixel value change is i.e. designated as edge.
A kind of spot detection method based on phase information the most according to claim 1, it is characterised in that institute in step S4
The centroid computing method stated particularly as follows:
Calculating the barycenter of multiple connected domains of the bianry image that S2 obtains, computational methods are as follows:
Zeroth order square:
First moment:
Wherein, V (i, j) represents coordinate i, the image pixel value at j, M and N representative image size, and the barycenter of image is designated as:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610392354.4A CN106097317A (en) | 2016-06-02 | 2016-06-02 | A kind of many spot detection based on discrete cosine phase information and localization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610392354.4A CN106097317A (en) | 2016-06-02 | 2016-06-02 | A kind of many spot detection based on discrete cosine phase information and localization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106097317A true CN106097317A (en) | 2016-11-09 |
Family
ID=57448160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610392354.4A Pending CN106097317A (en) | 2016-06-02 | 2016-06-02 | A kind of many spot detection based on discrete cosine phase information and localization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106097317A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107133627A (en) * | 2017-04-01 | 2017-09-05 | 深圳市欢创科技有限公司 | Infrared light spot center point extracting method and device |
CN107784669A (en) * | 2017-10-27 | 2018-03-09 | 东南大学 | A kind of method that hot spot extraction and its barycenter determine |
CN110132150A (en) * | 2019-05-10 | 2019-08-16 | 公安部第三研究所 | The system and method for visible light source spot size test |
CN110533601A (en) * | 2019-07-15 | 2019-12-03 | 江苏大学 | A kind of Position of Laser-Spot Center and profile acquisition methods |
CN111855158A (en) * | 2020-07-31 | 2020-10-30 | 武汉华工激光工程有限责任公司 | Multi-spot light beam analysis method and device |
CN112804447A (en) * | 2020-12-30 | 2021-05-14 | 北京石头世纪科技股份有限公司 | Method, device, medium and electronic equipment for detecting near-field object |
CN115205317A (en) * | 2022-09-15 | 2022-10-18 | 山东高速集团有限公司创新研究院 | Bridge monitoring photoelectric target image light spot center point extraction method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103548077A (en) * | 2011-05-19 | 2014-01-29 | 杜比实验室特许公司 | Forensic detection of parametric audio coding schemes |
CN103646398A (en) * | 2013-12-04 | 2014-03-19 | 山西大学 | Demoscopy focus automatic segmentation method |
CN104463911A (en) * | 2014-12-09 | 2015-03-25 | 上海新跃仪表厂 | Small infrared moving target detection method based on complicated background estimation |
CN104537681A (en) * | 2015-01-21 | 2015-04-22 | 北京联合大学 | Method and system for extracting spectrum-separated visual salient region |
-
2016
- 2016-06-02 CN CN201610392354.4A patent/CN106097317A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103548077A (en) * | 2011-05-19 | 2014-01-29 | 杜比实验室特许公司 | Forensic detection of parametric audio coding schemes |
CN103646398A (en) * | 2013-12-04 | 2014-03-19 | 山西大学 | Demoscopy focus automatic segmentation method |
CN104463911A (en) * | 2014-12-09 | 2015-03-25 | 上海新跃仪表厂 | Small infrared moving target detection method based on complicated background estimation |
CN104537681A (en) * | 2015-01-21 | 2015-04-22 | 北京联合大学 | Method and system for extracting spectrum-separated visual salient region |
Non-Patent Citations (1)
Title |
---|
潘泉等: "《现代目标跟踪与信息融合》", 31 October 2009, 国防工业出版社 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107133627A (en) * | 2017-04-01 | 2017-09-05 | 深圳市欢创科技有限公司 | Infrared light spot center point extracting method and device |
WO2018176938A1 (en) * | 2017-04-01 | 2018-10-04 | 深圳市欢创科技有限公司 | Method and device for extracting center of infrared light spot, and electronic device |
US10719954B2 (en) | 2017-04-01 | 2020-07-21 | Shenzhen Camsense Technologies Co., Ltd | Method and electronic device for extracting a center position of an infrared spot |
CN107784669A (en) * | 2017-10-27 | 2018-03-09 | 东南大学 | A kind of method that hot spot extraction and its barycenter determine |
CN110132150A (en) * | 2019-05-10 | 2019-08-16 | 公安部第三研究所 | The system and method for visible light source spot size test |
CN110533601A (en) * | 2019-07-15 | 2019-12-03 | 江苏大学 | A kind of Position of Laser-Spot Center and profile acquisition methods |
CN111855158A (en) * | 2020-07-31 | 2020-10-30 | 武汉华工激光工程有限责任公司 | Multi-spot light beam analysis method and device |
CN112804447A (en) * | 2020-12-30 | 2021-05-14 | 北京石头世纪科技股份有限公司 | Method, device, medium and electronic equipment for detecting near-field object |
CN112804447B (en) * | 2020-12-30 | 2023-01-17 | 北京石头创新科技有限公司 | Method, device, medium and electronic equipment for detecting near-field object |
CN115205317A (en) * | 2022-09-15 | 2022-10-18 | 山东高速集团有限公司创新研究院 | Bridge monitoring photoelectric target image light spot center point extraction method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106097317A (en) | A kind of many spot detection based on discrete cosine phase information and localization method | |
CN109816673B (en) | Non-maximum value inhibition, dynamic threshold value calculation and image edge detection method | |
KR101985689B1 (en) | Line distance calculation method and apparatus | |
CN103900494B (en) | For the homologous points fast matching method of binocular vision 3 D measurement | |
CN106530281B (en) | Unmanned plane image fuzzy Judgment method and system based on edge feature | |
Song et al. | DOE-based structured-light method for accurate 3D sensing | |
CN103955939A (en) | Boundary feature point registering method for point cloud splicing in three-dimensional scanning system | |
CN101326549B (en) | Method for detecting streaks in digital images | |
CN104764407B (en) | A kind of fine measuring method of thickness of cable sheath | |
CN105931232A (en) | High-precision sub-pixel extraction method for centers of light bars of structured light | |
CN103440644A (en) | Multi-scale image weak edge detection method based on minimum description length | |
CN110555908A (en) | three-dimensional reconstruction method based on indoor moving target background restoration | |
Budianto et al. | Marker encoded fringe projection profilometry for efficient 3D model acquisition | |
CN103679167A (en) | Method for processing CCD images | |
CN103136525A (en) | Hetero-type expanded goal high-accuracy positioning method with generalized Hough transposition | |
CN106682674B (en) | A kind of pointer instrument automatic reading method based on intelligent inspection robot | |
CN106682678A (en) | Image angle point detection and classification method based on support domain | |
CN109461132A (en) | SAR image automatic registration method based on feature point geometric topological relation | |
Chen et al. | A color-guided, region-adaptive and depth-selective unified framework for Kinect depth recovery | |
CN103914829A (en) | Method for detecting edge of noisy image | |
CN109493362A (en) | A kind of human body foreground segmentation algorithm of neural network jointing edge detection | |
CN105488802A (en) | Fingertip depth detection method and system | |
CN105488798A (en) | SAR image similarity measuring method based on point set contrast | |
CN109084675A (en) | Center of circle positioning device and method based on Embedded geometrical characteristic in conjunction with Zernike square | |
Song et al. | Depth reconstruction of translucent objects from a single time-of-flight camera using deep residual networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161109 |
|
RJ01 | Rejection of invention patent application after publication |