CN106934806A - It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus - Google Patents

It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus Download PDF

Info

Publication number
CN106934806A
CN106934806A CN201710135456.2A CN201710135456A CN106934806A CN 106934806 A CN106934806 A CN 106934806A CN 201710135456 A CN201710135456 A CN 201710135456A CN 106934806 A CN106934806 A CN 106934806A
Authority
CN
China
Prior art keywords
image
image block
block
fuzzy region
focus
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
CN201710135456.2A
Other languages
Chinese (zh)
Other versions
CN106934806B (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.)
Southeast University
Original Assignee
Southeast 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 Southeast University filed Critical Southeast University
Priority to CN201710135456.2A priority Critical patent/CN106934806B/en
Publication of CN106934806A publication Critical patent/CN106934806A/en
Application granted granted Critical
Publication of CN106934806B publication Critical patent/CN106934806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention disclose it is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus, comprise the following steps:(1) zoomed image, by about 1/4 times that image scaling is original image area;(2) definition difference is calculated, the text structure of image correspondence position image block after artwork and scaling is calculated respectively, and calculate the difference of the two;(3) fuzzy region is extracted, the noise of error image is filtered, fuzzy region is partitioned into using image segmentation algorithm, and the result after segmentation is up-sampled.For the fuzzy region out of focus segmentation of non-reference picture, the present invention constructs zoomed image using original image, the definition of zoomed image and original image is calculated respectively, and then obtains fuzziness distributed image, be finally fast and effeciently partitioned into image focus fuzzy region.

Description

It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus
Technical field
The present invention relates to Digital image technology, and in particular to it is a kind of based on text structure without with reference to figure confusion region out of focus Domain splitting method.
Background technology
Image blurring is exactly a kind of common image degradation process, it is usually because in exposure process the movement of camera, The movement or focusing of object are forbidden and are produced, and are artificially formed to pursue certain artistic effect in the case of also having, It is included in the image processing process in photography or later stage.It is out of focus it is fuzzy be it is a kind of common image blurring, mainly by focusing Caused by inaccurate.The image blurring loss that result in information in image, is that further treatment image causes difficulty.It is accurately high The fuzzy pixel of discovery of effect suffers from important and actual in fields such as image segmentation, object detection, scene classification, picture edittings Using.In with reference to artwork paste region segmentation application, only one input picture, current non-reference picture fuzzy region out of focus is divided Segmentation method mainly includes picture frequency domain method, Space domain and some methods for combining machine learning algorithm.But these Algorithm is primarily present two problems, and first, processing speed is slow, and practicality is not strong, and secondly, segmentation effect is not good.
One preferable image quality evaluation index can effectively distinguish fuzzy and picture rich in detail, therefore can be used to do Split image obscuring area.Without reference graph structure resolution chart as quality evaluation index (NRSS) is exactly that an effect is preferably schemed As quality evaluation index, it is realized without with reference to figure image quality evaluation on the basis of text structure (SSIM) index.But It is that the method for carrying out image obscuring area segmentation using NRSS at present is also fewer, even if there is last segmentation effect also poor.
The content of the invention
Goal of the invention:It is an object of the invention to solve the deficiencies in the prior art, there is provided one kind is clear based on structure Clear degree without with reference to figure fuzzy region dividing method out of focus.
Technical scheme:It is of the present invention it is a kind of based on text structure without with reference to figure fuzzy region segmentation side out of focus Method, comprises the following steps:
(1) original image is scaled:Original image equal proportion is scaled about 0.25 times of original image area, i.e. original graph The size of picture is M × N, and the size of image is after scalingUsing bilinear interpolation to the image after scaling Enter row interpolation, so as to the image after being scaled;
(2) image definition difference is calculated:
(2.1) piecemeal is carried out to the image after scaling in original image and step (1), so as to obtain original image set of blocks Image block set S after R and scaling;
(2.2) the clear journey for being used to weigh each image block without reference graph structure similitude of each image block is calculated respectively Degree;
(2.3) difference of each image block readability is calculated respectively, obtains matrix of differences;
(3) it is partitioned into fuzzy region:
(3.1) matrix of differences obtained in step (2) is filtered using Steerable filter and filters noise;
(3.2) image after denoising is split using Otsu threshold method, i.e., first finding out can maximize inter-class variance Gray value, and binaryzation is carried out with this gray value;
(3.3) image after segmentation is up-sampled, reverts to original image yardstick.
Further, the detailed process of the step (2.1) is:
First, image block is chosen from original image, step-length is (2,2), i.e.,:Since the upper left corner of image, first every time 2 pixels are moved along the x-axis, 2 pixels are moved then along Y, repeated the above steps, untill all image blocks of acquisition, choosing The image block set for taking is R, and each image block is designated as Ri,j
Wherein, i represents line flag, and j represents row mark, it is assumed that the size of image block is 2m × 2n, then
Then, image block is chosen from the image after scaling, step-length is (1,1), i.e.,:Since the upper left corner of image, first 1 pixel is moved along X-axis every time, 1 pixel is moved then along Y-axis, repeated the above steps, until obtaining all image blocks Untill;The image block sequence of selection is designated as S, and each image block is designated as Si,j
Wherein, i represents line flag, and j represents row mark, it is assumed that the size of image block is m × n, then
The number of image block should be consistent in set R and S.
Further, the detailed process of the step (2.2) is:
Assuming that given image block P, as follows without the calculation procedure with reference to graph structure similitude:Blurred picture block P, uses Gauss Obscure that image block obscure and obtain image Pb;Gradient is extracted, the horizontal and vertical side of Sobel operator extraction image blocks is used To gradient, image block P and PbGradient image be designated as G and G respectivelyb;Find out the most abundant N number of image of information in gradient image Block, the abundant degree of gradient information is weighed using the variance of image, that is, find out the wherein maximum N number of image block of variance;Calculate figure It is without the computing formula with reference to graph structure definition NRSS, NRSS as block P:
Wherein, image block is designated as G in Gi,GbMiddle image block is designated as Gi b;SSIM functions are used for calculating two knots of picture block Structure similitude, the function considers the correlation of the brightness, contrast and structural information between image block simultaneously.In given two figures In the case of as block a, b, SSIM functions can be expressed as:
SSIM (a, b)=[l (a, b)]α[c(a,b)]β[s(a,b)]γ
Wherein,
S (a, b)=(σab+C3)/(σaσb+C3),
ua,ubThe gradation of image average of image block a, b, σ are represented respectivelyabThe gradation of image of image block a, b is represented respectively Standard deviation, σabThe gradation of image covariance of image block a, b is represented, α, beta, gamma is parameter item, C1,C2,C3Constant term, with case Only denominator close to zero when there is the unstable situation of computing.
And then respectively obtain NRSS (Si,j) and NRSS (Ri,j)。
Further, the method for the step (2.3) is as follows:
Calculate the difference M ' of correspondence image block definition in image block set R and Si,j, so as to obtain matrix of differences M '= {M′i,j}:
M′i,j=NRSS (Si,j)-NRSS(Ri,j);
Matrix M ' is normalized and obtains matrix M={ Mi,j, normalized using max min:
Mi,j=(M 'i,j- min (M '))/(max (M ')-min (M ')), the maximum of element wherein in max (M ') representing matrix Value, the minimum value of element in min (M ') representing matrix.
Beneficial effect:Without loss of generality, after image down, originally fuzzy image can be apparent from the present invention, therefore can Using use reduce after image and original image poor definition as new discriminant criterion.Image can be obtained based on this method Fuzziness is distributed, and with reference to image segmentation algorithm, is finally effectively partitioned into image obscuring area.By image scale transform, institute The data volume that need to be processed is substantially reduced, so algorithm process speed of the invention is fast, meanwhile, segmentation effect is better than existing algorithm.
In sum, the present invention have the advantages that splitting speed is fast, segmentation effect is good, suitable for non-reference picture.
Brief description of the drawings
Fig. 1 is original-gray image in embodiment;
Fig. 2 is the image being manually partitioned into using other method in embodiment;
Fig. 3 is matrix of differences after the normalization drawn using the present invention in embodiment;
Fig. 4 is the segmentation result obtained using the present invention in embodiment;
Fig. 5 is effect contrast figure in embodiment.
Specific embodiment
Technical solution of the present invention is described in detail below, but protection scope of the present invention is not limited to the implementation Example.
Embodiment:
Step 1:Original color image is read, coloured image matrix is obtained;
Step 2:It is gray level image matrix by coloured image matrix conversion, so as to obtain gray level image as described in Figure 1, this When determine image size be 640x621;
Step 3:Zoomed image, it is determined that the size of image is 320x310 after scaling, using linear interpolation shown in Fig. 1 Image of the image scaling into above-mentioned size;
Step 4:Image block simultaneously calculates the definition of each image block.Image after original image and scaling is divided Block, in the process, the moving step length of original image is (2,2), and the moving step length of image is (1,1), original image after scaling Tile size be 32x32, after scaling the tile size of image be 16x16, obtain original picture block after the completion of this process Image block set S after set R and scaling.To setIn each image block calculate without refer to graph structure definition (NRSS), it is used to weigh the readability of each image block, original image definition matrix R is obtained after the completion of this processcAnd contracting Put rear image definition matrix Sc
Step 5:The difference of definition is calculated, according to the definition matrix R being calculated in step 4cAnd Sc, can obtain difference Matrix M '=Sc-Rc
Step 6:Matrix of differences M ' is normalized and obtains M, specific method for normalizing can be minimum using maximum Value method for normalizing, i.e. Mi,j=(M 'i,j- min (M '))/(max (M ')-min (M ')), the normalized image for obtaining such as Fig. 3 institutes Show.
Step 7:Steerable filter is carried out to matrix M, using M itself as reference picture;
Step 8:Matrix of differences M is split using Da-Jin algorithm;
Step 9:Enlarged drawing, is up-sampled to the result after segmentation and is entered row interpolation using linear interpolation algorithm, is obtained To final segmentation result, as shown in Figure 4.
In addition, obtaining image as shown in Figure 2 using artificial segmentation to the original-gray image in Fig. 1 again, then will adopt The structure split with two methods carries out Contrast on effect, as shown in figure 5, white is overlap clear area in figure, black is to overlap Fuzzy region, grey is erroneous judgement region.
It can thus be seen that segmentation effect of the present invention is good, more precisely.

Claims (4)

1. it is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus, comprise the following steps:
(1) original image is scaled:Original image equal proportion is scaled about 0.25 times of original image area, i.e. original image Size is M × N, and the size of image is after scalingThe image after scaling is carried out using bilinear interpolation Interpolation, so as to the image after being scaled;
(2) image definition difference is calculated:
(2.1) piecemeal is carried out to the image after scaling in original image and step (1), so as to obtain original image set of blocks R and Image block set S after scaling;
(2.2) readability for being used to weigh each image block without reference graph structure similitude of each image block is calculated respectively;
(2.3) difference of each image block readability is calculated respectively, obtains matrix of differences;
(3) it is partitioned into fuzzy region:
(3.1) matrix of differences obtained in step (2) is filtered using Steerable filter and filters noise;
(3.2) image after denoising is split using Otsu threshold method, i.e., first finding out can maximize the ash of inter-class variance Angle value, and binaryzation is carried out with this gray value;
(3.3) image after segmentation is up-sampled, reverts to original image yardstick.
2. it is according to claim 1 based on text structure without with reference to figure fuzzy region dividing method out of focus, its feature It is:The detailed process of the step (2.1) is:
First, image block is chosen from original image, step-length is (2,2), i.e.,:Since the upper left corner of image, first every time along X-axis Mobile 2 pixels, 2 pixels are moved then along Y, are repeated the above steps, untill all image blocks of acquisition, the figure of selection As set of blocks is R, each image block is designated as Ri,j
Wherein, i represents line flag, and j represents row mark, it is assumed that the size of image block is 2m × 2n, then
Then, image block is chosen from the image after scaling, step-length is (1,1), i.e.,:Since the upper left corner of image, first every time 1 pixel is moved along X-axis, 1 pixel is moved then along Y-axis, repeated the above steps, be until obtaining all image blocks Only;The image block sequence of selection is designated as S, and each image block is designated as Si,j
Wherein, i represents line flag, and j represents row mark, it is assumed that the size of image block is m × n, then
The number of image block should be consistent in set R and S.
3. it is according to claim 1 based on text structure without with reference to figure fuzzy region dividing method out of focus, its feature It is:The detailed process of the step (2.2) is:
Assuming that given image block P, as follows without the calculation procedure with reference to graph structure similitude:Blurred picture block P, uses Gaussian Blur Image block obscure and obtains image Pb;Extract gradient, using Sobel operator extraction image blocks both horizontally and vertically Gradient, image block P and PbGradient image be designated as G and G respectivelyb;Find out the most abundant N number of image block of information in gradient image, ladder The abundant degree of degree information is weighed using the variance of image, that is, find out the wherein maximum N number of image block of variance;Calculate image block P Be without the computing formula with reference to graph structure definition NRSS, NRSS:
N R S S ( P ) = 1 / N Σ 1 N S S I M ( G i , G b i ) ;
Wherein, image block is designated as G in Gi,GbMiddle image block is designated asThe structure that SSIM functions are used for calculating two picture blocks is similar Property, the function considers the correlation of the brightness, contrast and structural information between image block simultaneously.Given two image block a, In the case of b, SSIM functions can be expressed as:
SSIM (a, b)=[l (a, b)]α[c(a,b)]β[s(a,b)]γ
Wherein,
l ( a , b ) = ( 2 u a u b + C 1 ) / ( u a 2 + u b 2 + C 1 ) ,
c ( a , b ) = ( 2 σ a σ b + C 2 ) / ( σ a 2 + σ b 2 + C 2 ) ,
S (a, b)=(σab+C3)/(σaσb+C3),
ua,ubThe gradation of image average of image block a, b, σ are represented respectivelyabThe gradation of image standard of image block a, b is represented respectively Difference, σabThe gradation of image covariance of image block a, b is represented, α, beta, gamma is parameter item, C1,C2,C3It is constant term, is used to prevent point There is the unstable situation of computing when mother is close to zero;
And then respectively obtain NRSS (Si,j) and NRSS (Ri,j)。
4. it is according to claim 1 based on text structure without with reference to figure fuzzy region dividing method out of focus, its feature It is:The method of the step (2.3) is as follows:
Calculate the difference M ' of correspondence image block definition in image block set R and Si,j, so as to obtain matrix of differences M '= {M′i,j}:
M′i,j=NRSS (Si,j)-NRSS(Ri,j);
Matrix M ' is normalized and obtains matrix M={ Mi,j, normalized using max min:
Mi,j=(M'i,j- min (M'))/(max (M')-min (M')), the maximum of element in wherein max (M') representing matrix, The minimum value of element in min (M') representing matrix.
CN201710135456.2A 2017-03-09 2017-03-09 It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus Active CN106934806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710135456.2A CN106934806B (en) 2017-03-09 2017-03-09 It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710135456.2A CN106934806B (en) 2017-03-09 2017-03-09 It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus

Publications (2)

Publication Number Publication Date
CN106934806A true CN106934806A (en) 2017-07-07
CN106934806B CN106934806B (en) 2019-09-10

Family

ID=59432070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710135456.2A Active CN106934806B (en) 2017-03-09 2017-03-09 It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus

Country Status (1)

Country Link
CN (1) CN106934806B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292879A (en) * 2017-07-17 2017-10-24 电子科技大学 A kind of sheet metal surface method for detecting abnormality based on graphical analysis
CN107492078A (en) * 2017-08-14 2017-12-19 厦门美图之家科技有限公司 The black method made an uproar and computing device in a kind of removal image
WO2019173954A1 (en) * 2018-03-12 2019-09-19 华为技术有限公司 Method and apparatus for detecting resolution of image
CN111010556A (en) * 2019-12-27 2020-04-14 成都极米科技股份有限公司 Method and device for projection bi-directional defocus compensation and readable storage medium
CN111179259A (en) * 2019-12-31 2020-05-19 北京灵犀微光科技有限公司 Optical clarity test method and device
WO2020172999A1 (en) * 2019-02-28 2020-09-03 苏州润迈德医疗科技有限公司 Quality evaluation method and apparatus for sequence of coronary angiogram images
CN112017163A (en) * 2020-08-17 2020-12-01 中移(杭州)信息技术有限公司 Image blur degree detection method and device, electronic equipment and storage medium
CN112714246A (en) * 2019-10-25 2021-04-27 Tcl集团股份有限公司 Continuous shooting photo obtaining method, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030194119A1 (en) * 2002-04-15 2003-10-16 General Electric Company Semi-automatic segmentation algorithm for pet oncology images
CN101996406A (en) * 2010-11-03 2011-03-30 中国科学院光电技术研究所 No-reference structural sharpness image quality evaluation method
CN103955934A (en) * 2014-05-06 2014-07-30 北京大学 Image blurring detecting algorithm combined with image obviousness region segmentation
CN104200475A (en) * 2014-09-05 2014-12-10 中国传媒大学 Novel no-reference image blur degree estimation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030194119A1 (en) * 2002-04-15 2003-10-16 General Electric Company Semi-automatic segmentation algorithm for pet oncology images
CN101996406A (en) * 2010-11-03 2011-03-30 中国科学院光电技术研究所 No-reference structural sharpness image quality evaluation method
CN103955934A (en) * 2014-05-06 2014-07-30 北京大学 Image blurring detecting algorithm combined with image obviousness region segmentation
CN104200475A (en) * 2014-09-05 2014-12-10 中国传媒大学 Novel no-reference image blur degree estimation method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292879B (en) * 2017-07-17 2019-08-20 电子科技大学 A kind of sheet metal surface method for detecting abnormality based on image analysis
CN107292879A (en) * 2017-07-17 2017-10-24 电子科技大学 A kind of sheet metal surface method for detecting abnormality based on graphical analysis
CN107492078A (en) * 2017-08-14 2017-12-19 厦门美图之家科技有限公司 The black method made an uproar and computing device in a kind of removal image
CN107492078B (en) * 2017-08-14 2020-04-07 厦门美图之家科技有限公司 Method for removing black noise in image and computing equipment
WO2019173954A1 (en) * 2018-03-12 2019-09-19 华为技术有限公司 Method and apparatus for detecting resolution of image
CN111417981A (en) * 2018-03-12 2020-07-14 华为技术有限公司 Image definition detection method and device
WO2020172999A1 (en) * 2019-02-28 2020-09-03 苏州润迈德医疗科技有限公司 Quality evaluation method and apparatus for sequence of coronary angiogram images
CN112714246A (en) * 2019-10-25 2021-04-27 Tcl集团股份有限公司 Continuous shooting photo obtaining method, intelligent terminal and storage medium
CN111010556A (en) * 2019-12-27 2020-04-14 成都极米科技股份有限公司 Method and device for projection bi-directional defocus compensation and readable storage medium
US11934089B2 (en) 2019-12-27 2024-03-19 Chengdu Xgimi Technology Co., Ltd. Bidirectional compensation method and apparatus for projection thermal defocusing, and readable storage medium
CN111179259A (en) * 2019-12-31 2020-05-19 北京灵犀微光科技有限公司 Optical clarity test method and device
CN111179259B (en) * 2019-12-31 2023-09-26 北京灵犀微光科技有限公司 Optical definition testing method and device
CN112017163A (en) * 2020-08-17 2020-12-01 中移(杭州)信息技术有限公司 Image blur degree detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106934806B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN106934806B (en) It is a kind of based on text structure without with reference to figure fuzzy region dividing method out of focus
CN110827200B (en) Image super-resolution reconstruction method, image super-resolution reconstruction device and mobile terminal
CN109785291B (en) Lane line self-adaptive detection method
CN107507173A (en) A kind of full slice image without refer to intelligibility evaluation method and system
EP3798975A1 (en) Method and apparatus for detecting subject, electronic device, and computer readable storage medium
CN110852997B (en) Dynamic image definition detection method and device, electronic equipment and storage medium
DE112008001052T5 (en) Image segmentation and enhancement
CN114529459B (en) Method, system and medium for enhancing image edge
CN111161181A (en) Image data enhancement method, model training method, device and storage medium
CN113592776A (en) Image processing method and device, electronic device and storage medium
CN106156691A (en) The processing method of complex background image and device thereof
CN113609984A (en) Pointer instrument reading identification method and device and electronic equipment
CN109741273A (en) A kind of mobile phone photograph low-quality images automatically process and methods of marking
CN115713469A (en) Underwater image enhancement method for generating countermeasure network based on channel attention and deformation
Liu et al. Texture filtering based physically plausible image dehazing
CN116310420A (en) Image similarity measurement method and device based on neighborhood difference
CN105719251A (en) Compression and quality reduction image restoration method used for large image motion linear fuzziness
CN112801141B (en) Heterogeneous image matching method based on template matching and twin neural network optimization
DE102004026782A1 (en) Method and apparatus for computer-aided motion estimation in at least two temporally successive digital images, computer-readable storage medium and computer program element
EP4332879A1 (en) Method and apparatus for processing graphic symbol, and computer-readable storage medium
Bala et al. Image simulation for automatic license plate recognition
CN116385495A (en) Moving target closed-loop detection method of infrared video under dynamic background
CN114529715B (en) Image identification method and system based on edge extraction
Nieuwenhuizen et al. Dynamic turbulence mitigation with large moving objects
CN116703958B (en) Edge contour detection method, system, equipment and storage medium for microscopic image

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