CN110458789A - A kind of image definition evaluating method, device and electronic equipment - Google Patents
A kind of image definition evaluating method, device and electronic equipment Download PDFInfo
- Publication number
- CN110458789A CN110458789A CN201810411295.XA CN201810411295A CN110458789A CN 110458789 A CN110458789 A CN 110458789A CN 201810411295 A CN201810411295 A CN 201810411295A CN 110458789 A CN110458789 A CN 110458789A
- Authority
- CN
- China
- Prior art keywords
- image
- evaluated
- value
- altimetric
- initial value
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000011156 evaluation Methods 0.000 claims abstract description 256
- 238000012360 testing method Methods 0.000 claims abstract description 211
- 238000001914 filtration Methods 0.000 claims abstract description 120
- 238000004458 analytical method Methods 0.000 claims abstract description 49
- 241000023320 Luma <angiosperm> Species 0.000 claims description 40
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 claims description 40
- 238000004891 communication Methods 0.000 claims description 19
- 238000013507 mapping Methods 0.000 claims description 18
- 238000012876 topography Methods 0.000 claims description 17
- 230000001174 ascending effect Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000012163 sequencing technique Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 235000019646 color tone Nutrition 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- BTCSSZJGUNDROE-UHFFFAOYSA-N gamma-aminobutyric acid Chemical compound NCCCC(O)=O BTCSSZJGUNDROE-UHFFFAOYSA-N 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000013441 quality evaluation Methods 0.000 description 1
- VVNRQZDDMYBBJY-UHFFFAOYSA-M sodium 1-[(1-sulfonaphthalen-2-yl)diazenyl]naphthalen-2-olate Chemical compound [Na+].C1=CC=CC2=C(S([O-])(=O)=O)C(N=NC3=C4C=CC=CC4=CC=C3O)=CC=C21 VVNRQZDDMYBBJY-UHFFFAOYSA-M 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
-
- 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
-
- 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/30—Subject of image; Context of image processing
- G06T2207/30168—Image quality inspection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention provides a kind of image definition evaluating method, device and electronic equipments, this method comprises: obtaining altimetric image to be evaluated;Using the low-pass filter of different filter factors, image to be evaluated is filtered, obtains the corresponding filtering image of different filter factors;Based on the corresponding filtering image of different filter factors and altimetric image to be evaluated, the medium frequency image of altimetric image to be evaluated is determined, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising altimetric image to be evaluated;Horizontal analysis and vertical analysis are carried out to medium frequency image respectively, obtain lateral clarity evaluation and test initial value and vertical resolution evaluation and test initial value;Initial value is evaluated and tested based on lateral clarity and vertical resolution evaluates and tests initial value, determines the clarity evaluation result of altimetric image to be evaluated.To realize the evaluation and test for carrying out the higher clarity of accuracy to image.
Description
Technical field
The present invention relates to image quality evaluation technical fields, more particularly to a kind of image definition evaluating method, device
And electronic equipment.
Background technique
Altimetric image to be evaluated pushes away the common features that figure function is smart camera, for example face pushes away figure and license plate pushes away figure etc..It is right
In pushing away for figure function for smart camera, it is most important to release the high image of picture quality, and image definition is measurement image
One of index of quality.
Based on the variation that marginal information occurs after the filtering of sharp keen image, compared to fuzzy image edge after the filtering
What information occurred changes greatly this premise, the relevant technologies by the modes such as being filtered to obtained image, make acquisition figure
The marginal information of picture changes, and then the variable quantity of the marginal information based on obtained image, i.e. image medium-high frequency information
Variable quantity, to measure the clarity of obtained image, wherein the variable quantity of above-mentioned marginal information may include gradient magnitude variation
Amount or border width variable quantity etc..Specifically, being filtered to obtained image, filtered image is obtained, will be schemed
As being compared with filtered image, the variable quantity of the corresponding marginal information of obtained image is determined;Utilize above-mentioned edge
The variable quantity of information evaluates and tests the clarity of obtained image.
However, the variable quantity for the marginal information that the edge of different sharp keen degree is determined is different, when shooting obtains
In the scene of image, the edge of different sharp keen degree exists, and when ratio is relatively stable, passes through and calculate the corresponding edge of image
The variable quantity of information is capable of determining that relatively accurate clarity.And it is obtained in the scene of image when shooting, different sharp keen degree
The ratio at edge have greatly changed, such as when the personnel in image become not wear dark glasses from wear dark glasses, pass through image pair
The variable quantity for the marginal information answered, it is to measure image definition, then not accurate enough.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of image definition evaluating method, device and electronic equipment, with reality
The evaluation and test of the higher clarity of accuracy is now carried out to image.Specific technical solution is as follows:
On the one hand, the embodiment of the invention provides a kind of image definition evaluating methods, which comprises
Obtain altimetric image to be evaluated;
Using the low-pass filter for configuring different filter factors, the altimetric image to be evaluated is filtered respectively, is obtained not
The corresponding filtering image with filter factor;
Based on the obtained corresponding filtering image of different filter factors, the corresponding intermediate frequency figure of the altimetric image to be evaluated is determined
Picture, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain lateral clarity evaluation and test initial value and
Vertical resolution evaluates and tests initial value;
Initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, is determined described to be evaluated
The clarity evaluation result of altimetric image.
Optionally, the step of acquisition altimetric image to be evaluated, comprising:
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing the color image converts gray level image for the topography, as described to be evaluated
Altimetric image;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
Optionally, the different filter factors include the first filter factor and the second filter factor, first filtering system
Corresponding first filter operator of number, corresponding second filter operator of second filter factor;
The low-pass filter using the different filter factors of configuration, is respectively filtered the altimetric image to be evaluated, obtains
The step of filtering image corresponding to different filter factors, comprising:
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of the first filter factor is obtained;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of second filter factor is obtained.
Optionally, the different filter factors include the first filter factor and the second filter factor, wherein first filter
Wave system number is less than second filter factor;
It is described based on the obtained corresponding filtering image of different filter factors, determine the corresponding intermediate frequency of the altimetric image to be evaluated
The step of image, comprising:
Calculate the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Error image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor is determined as
Two error images;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor is determined as
Three error images;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
Optionally, described that horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, it obtains lateral clarity and comments
The step of surveying initial value and vertical resolution evaluation and test initial value, comprising:
The every a line pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from every a line pixel
Pixel, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from each column pixel
Pixel, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
It is optionally, described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution,
The step of determining the clarity evaluation result of the altimetric image to be evaluated, comprising:
The average value of all numerical value as positive number in the lateral clarity evaluation and test initial value is calculated, it is average as first
Value;
The average value of all numerical value as positive number in the vertical resolution evaluation and test initial value is calculated, it is average as second
Value;
Clarity by the maximum value in first average value and second average value, as the altimetric image to be evaluated
Evaluation result.
It is optionally, described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution,
The step of determining the clarity evaluation result of the altimetric image to be evaluated, comprising:
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculate all conducts filtered out
The average value of the numerical value of positive number, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculating is filtered out all
The average value of numerical value as positive number, as the 4th average value;
Clarity by the maximum value in the third average value and the 4th average value, as the altimetric image to be evaluated
Evaluation result.
Optionally, initial based on the lateral clarity evaluation and test initial value and vertical resolution evaluation and test described
Before the step of being worth, determining the clarity evaluation result of the altimetric image to be evaluated, the method also includes:
Obtain the corresponding luma component values of each pixel in the altimetric image to be evaluated;
It is described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, determine described in
The step of clarity evaluation result of altimetric image to be evaluated, comprising:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
For each numerical value in vertical resolution evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
On the other hand, the embodiment of the invention provides a kind of image definition evaluating apparatus, described device includes:
First obtains module, for obtaining altimetric image to be evaluated;
Filter module, for using the low-pass filter for configuring different filter factors, respectively to the altimetric image to be evaluated into
Row filtering obtains the corresponding filtering image of different filter factors;
First determining module, for determining described to be evaluated based on the obtained corresponding filtering image of different filter factors
The corresponding medium frequency image of image, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Analysis module obtains lateral clarity for carrying out horizontal analysis and vertical analysis to the medium frequency image respectively
It evaluates and tests initial value and vertical resolution evaluates and tests initial value;
Second determining module, for being evaluated and tested just based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value determines the clarity evaluation result of the altimetric image to be evaluated.
Optionally, described first module is obtained, be specifically used for
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing the color image converts gray level image for the topography, as described to be evaluated
Altimetric image;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
Optionally, the different filter factors include the first filter factor and the second filter factor, first filtering system
Corresponding first filter operator of number, corresponding second filter operator of second filter factor;
The filter module, is specifically used for
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of the first filter factor is obtained;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of second filter factor is obtained.
Optionally, the different filter factors include the first filter factor and the second filter factor, wherein first filter
Wave system number is less than second filter factor;
First determining module, is specifically used for
Calculate the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Error image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor is determined as
Two error images;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor is determined as
Three error images;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
Optionally, the analysis module, is specifically used for
The every a line pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from every a line pixel
Pixel, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from each column pixel
Pixel, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
Optionally, second determining module, is specifically used for
The average value of all numerical value as positive number in the lateral clarity evaluation and test initial value is calculated, it is average as first
Value;
The average value of all numerical value as positive number in the vertical resolution evaluation and test initial value is calculated, it is average as second
Value;
Clarity by the maximum value in first average value and second average value, as the altimetric image to be evaluated
Evaluation result.
Optionally, second determining module, is specifically used for
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculate all conducts filtered out
The average value of the numerical value of positive number, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculating is filtered out all
The average value of numerical value as positive number, as the 4th average value;
Clarity by the maximum value in the third average value and the 4th average value, as the altimetric image to be evaluated
Evaluation result.
Optionally, described device further include:
Second obtains module, for evaluating and testing initial value and the vertical resolution based on the lateral clarity described
Before the step of evaluating and testing initial value, determining the clarity evaluation result of the altimetric image to be evaluated, obtain in the altimetric image to be evaluated
The corresponding luma component values of each pixel;
Second determining module, is specifically used for:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
For each numerical value in vertical resolution evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
On the other hand, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and
Communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, is realized provided by the embodiment of the present invention
Any of the above-described image definition evaluating method step.
On the other hand, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storages
Dielectric memory contains computer program, is realized on provided by the embodiment of the present invention when computer program is executed by processor
State any image definition evaluating method step.
In the embodiment of the present invention, altimetric image to be evaluated is obtained;Using the low-pass filter of different filter factors, to figure to be evaluated
As being filtered, the corresponding filtering image of different filter factors is obtained;Based on the corresponding filtering image of different filter factors and
Altimetric image to be evaluated determines the medium frequency image of altimetric image to be evaluated, wherein the medium frequency image are as follows: the intermediate frequency letter comprising altimetric image to be evaluated
The image of breath;Horizontal analysis and vertical analysis are carried out to medium frequency image respectively, obtain lateral clarity evaluation and test initial value and indulged
Initial value is evaluated and tested to clarity;Initial value is evaluated and tested based on lateral clarity and vertical resolution evaluates and tests initial value, is determined to be evaluated
The clarity evaluation result of altimetric image.
In the embodiment of the present invention, using the medium frequency image of the intermediate frequency information comprising altimetric image to be evaluated, to determine mapping to be evaluated
The clarity evaluation result of picture, can overcome in altimetric image to be evaluated, and the ratio of sharpened edge varies widely, caused figure
Image sharpness evaluates and tests not accurate enough problem.High-frequency information of the intermediate frequency information relative to the edge and details for determining image,
The basic structure for determining image forms the major side structure of image, can be used as the secondary strong edge of image, is less susceptible to
It is influenced by noise, and it when the ratio of sharpened edge varies widely, compared to high-frequency information, institute is impacted smaller,
The image progress higher clarity of accuracy is commented so that it, when the ratio of sharpened edge varies widely, is still able to achieve
It surveys.And the embodiment of the present invention, horizontal analysis and vertical analysis, obtained transverse direction clarity evaluation and test are carried out using to medium frequency image
Initial value and vertical resolution evaluate and test initial value, determine the clarity evaluation result of altimetric image to be evaluated, can more fully base
In the information of altimetric image to be evaluated, the clarity evaluation result of altimetric image to be evaluated is determined, realize higher to image progress accuracy
The evaluation and test of clarity.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach above-described institute simultaneously
There is advantage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of image definition evaluating method provided by the embodiment of the present invention;
Fig. 2 is a kind of flow diagram that the medium frequency image of altimetric image to be evaluated is determined provided by the embodiment of the present invention;
Fig. 3 is a kind of exemplary diagram of altimetric image to be evaluated, the second error image, third error image and medium frequency image;
Fig. 4 is a kind of process signal that the clarity evaluation result of altimetric image to be evaluated is determined provided by the embodiment of the present invention
Figure;
Fig. 5 A and Fig. 5 B are respectively the clarity evaluation result based on altimetric image to be evaluated, are ranked up to image to be evaluated
A kind of schematic diagram;
Fig. 6 is a kind of structural schematic diagram of image definition evaluating apparatus provided by the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of image definition evaluating method, device and electronic equipments, to realize to image
Carry out the evaluation and test of the higher clarity of accuracy.
As shown in Figure 1, may include steps of the embodiment of the invention provides a kind of image definition evaluating method:
S101: altimetric image to be evaluated is obtained;
It is understood that image definition evaluating method provided by the embodiment of the present invention, can be applied to it is any can
To obtain the electronic equipment of image, which can be mobile phone, computer, video camera and camera etc..The present invention is implemented
In example, realize that the functional software of image definition evaluating method provided by the embodiment of the present invention can be soft with special client
The form of part exists, and can also exist in the form of the plug-in unit of relevant client software, this is all possible.
In one implementation, above-mentioned electronic equipment can directly acquire above-mentioned altimetric image to be evaluated, wherein above-mentioned to be evaluated
Altimetric image is the image comprising area-of-interest, and above-mentioned area-of-interest can be the region comprising interesting target, above-mentioned sense
Targets of interest can be with are as follows: face, license plate and animal etc..When above-mentioned altimetric image to be evaluated is gray level image, can directly hold
The subsequent image definition of row evaluates and tests process;It, can be first by above-mentioned mapping to be evaluated when above-mentioned altimetric image to be evaluated is color image
As being converted to gray level image, subsequent image definition evaluation and test process is then executed.
In the embodiment of the present invention, acquired altimetric image to be evaluated can be one or more, and when to be multiple, electronics is set
It is standby to be directed to each altimetric image to be evaluated, execute image definition evaluating method provided by the embodiment of the present invention.
S102: using the low-pass filter for configuring different filter factors, image to be evaluated is filtered respectively, is obtained not
The corresponding filtering image with filter factor;
In the embodiment of the present invention, in electronic equipment local or the storage equipment being connect with electronic equipment, it can prestore and match
Set the low-pass filter of different filter factors.Electronic equipment utilizes the different filter factors of configuration after obtaining altimetric image to be evaluated
Low-pass filter, image to be evaluated is filtered respectively, obtains the corresponding filtering image of different filter factors.
Low-pass filter by configuring different filter factors is filtered image to be evaluated, available different filter
Wave image, the information of image included in different filtering images exist different.Such as: in filtering image can only comprising to
The low-frequency information of image is evaluated and tested, alternatively, may include the low-frequency information and intermediate frequency information of altimetric image to be evaluated in filtering image, or
Person may include low-frequency information, intermediate frequency information and the part high-frequency information of altimetric image to be evaluated in filtering image, this is all can be with
's.It can be by the filter factor of setting low-pass filter, to control the information for including in obtained filtering image.
It is understood that the numerical value of filter factor is bigger, the low-pass filter of the filter factor is configured, allows to pass through
Signal frequency it is lower.
Wherein, the value range of the filter factor of above-mentioned low-pass filter can be (0,1).The filter of above-mentioned low-pass filter
Wave system number can be what staff was rule of thumb arranged.In one implementation, above-mentioned low-pass filter can be Gauss
Filter.
In one implementation, each filter is prestored in the storage equipment that electronic equipment local or electronic equipment are connected
The corresponding filter operator of wave system number, electronic equipment can be based on the corresponding filter operator of each filter factor, to above-mentioned to be evaluated
Image is filtered, and obtains the corresponding filtering image of different filter factors.
S103: based on the obtained corresponding filtering image of different filter factors, the corresponding intermediate frequency figure of altimetric image to be evaluated is determined
Picture;
Wherein, above-mentioned medium frequency image are as follows: the image of the intermediate frequency information comprising altimetric image to be evaluated.
It is understood that the intermediate frequency information of image determines the basic structure of image, the major side of image is formd
Structure.It, can be by the filter factor of setting low-pass filter, to control in obtained filtering image in the embodiment of the present invention
The information for including, in turn, electronic equipment can be based on the corresponding filtering image of different filter factors and altimetric image to be evaluated, obtain
The corresponding medium frequency image of altimetric image to be evaluated.
It in one implementation, only include altimetric image to be evaluated in the corresponding filtering image of obtained a kind of filter factor
Low-frequency information, for the convenience of description, referred to as first kind filtering image;Include in the corresponding filtering image of another kind of filter factor
The low-frequency information and intermediate frequency information of altimetric image to be evaluated, for the convenience of description, referred to as the second class filtering image.Wherein, above-mentioned first
Class filtering image may include one or more images, and above-mentioned second class filtering image may include one or more images.
Specifically, above-mentioned the included amount of images of first kind filtering image can be with above-mentioned the included amount of images of second class filtering image
It is identical.
At this point, by calculating the error image of the second class filtering image and first kind filtering image, i.e., will in a kind of situation
Second class filtering image and first kind filtering image are put pixel-by-pixel to be made poor, and the available image comprising intermediate frequency information is to get arriving
The corresponding medium frequency image of altimetric image to be evaluated.In another situation, by calculating altimetric image to be evaluated and above-mentioned first kind filtering image
Error image, the available error image comprising high-frequency information and intermediate frequency information, in turn, by calculate altimetric image to be evaluated and
The error image of above-mentioned second class filtering image, the available error image comprising high-frequency information, and then calculate and above-mentioned include
The error image of high-frequency information and intermediate frequency information, the error image between the error image comprising high-frequency information are available
Image comprising intermediate frequency information to get arrive the corresponding medium frequency image of altimetric image to be evaluated.
In one implementation, the corresponding numerical value of each pixel is all larger than or waits in obtained above-mentioned medium frequency image
In 0.For example, when calculating the error image of the second class filtering image and first kind filtering image, when pixel calculated
When the corresponding difference of point is negative, need for the corresponding difference of the pixel to be revised as 0, when the corresponding difference of pixel calculated
Value is 0 or positive number, retains the corresponding difference of the pixel, to obtain the corresponding medium frequency image of altimetric image to be evaluated.
S104: carrying out horizontal analysis and vertical analysis to medium frequency image respectively, obtain lateral clarity evaluation and test initial value with
And vertical resolution evaluates and tests initial value;
Wherein, horizontal analysis and vertical analysis are carried out to medium frequency image respectively, i.e., respectively to row pixel every in medium frequency image
Point is analyzed, and lateral clarity evaluation and test initial value is obtained;And column pixel each in medium frequency image is analyzed, it is indulged
Initial value is evaluated and tested to clarity.
In oneainstance, above-mentioned that row pixel every in medium frequency image is analyzed, obtain lateral clarity evaluation and test just
The process of initial value may is that for every a line pixel, be the pixel of positive number using corresponding numerical value in the row, which calculates
Corresponding average value will calculate resulting average value, by the sequencing of every row, determine and obtain lateral clarity evaluation and test initially
Value;Alternatively, may is that, for every a line pixel, determination obtains the corresponding maximum pixel of numerical value in the row pixel, it will
The corresponding numerical value of the corresponding maximum pixel of numerical value in every row determines that obtaining lateral clarity comments by the sequencing of every row
Initial value is surveyed, etc..
Above-mentioned to analyze column pixel each in medium frequency image, the process for obtaining vertical resolution evaluation and test initial value can
To be: being directed to each column pixel, be the pixel of positive number using corresponding numerical value in the column, the column count is corresponding average
Value, will calculate resulting average value, by the sequencing of each column, determine and obtain vertical resolution evaluation and test initial value;Alternatively, can be with
Be: for each column pixel, determination obtains the corresponding maximum pixel of numerical value in the column pixel, will be corresponding in each column
The corresponding numerical value of the maximum pixel of numerical value determines that obtaining vertical resolution evaluates and tests initial value by the sequencing of each column, etc..
In one implementation, the size of the medium frequency image is W*H, and obtained transverse direction clarity evaluation and test initial value can
To be identified as RowInf={ p1,p2,…,pH, obtained vertical resolution evaluation and test initial value can be identified as ColInf=
{q1,q2,…,qW}。
S105: initial value is evaluated and tested based on lateral clarity evaluation and test initial value and vertical resolution, determines altimetric image to be evaluated
Clarity evaluation result.
Wherein, clarity evaluation result is used to characterize the clarity of altimetric image to be evaluated.
In the embodiment of the present invention, electronic equipment obtains above-mentioned lateral clarity evaluation and test initial value and vertical resolution evaluation and test
After initial value, initial value can be evaluated and tested based on above-mentioned lateral clarity evaluation and test initial value and vertical resolution, determined to be evaluated
The clarity evaluation result of image.
The clarity evaluation result of altimetric image to be evaluated determined by above-mentioned can be specific evaluation and test value, such as pass through score
Characterization, wherein the clarity of score more hi-vision is higher;It is also possible to clear grade;Such as characterized by degree adverb, it can be with
Include: it is fuzzy, relatively fuzzy, than more visible, clear and very clear etc..
In one implementation, the corresponding average value of above-mentioned lateral clarity evaluation and test initial value can be calculated separately, with
And above-mentioned vertical resolution evaluates and tests the corresponding average value of initial value, and then the clarity of evaluation and test image is determined based on above-mentioned average value
Evaluation result.Wherein, clear merely with above-mentioned transverse direction when the corresponding average value of the above-mentioned lateral clarity evaluation and test initial value of above-mentioned calculating
The value as positive number in clear degree evaluation and test initial value calculates the corresponding average value of transverse direction clarity evaluation and test initial value.Above-mentioned meter
It counts in stating the corresponding average value of vertical resolution evaluation and test initial value, merely with the conduct in above-mentioned vertical resolution evaluation and test initial value
The value of positive number calculates the corresponding average value of vertical resolution evaluation and test initial value.
Such as: clarity evaluation result is specific evaluation and test value, by the biggish conduct of numerical value between above-mentioned two average value
Evaluate and test the clarity evaluation and test value of image;Alternatively, being evaluated and tested the average value of above-mentioned two average value as the clarity of evaluation and test image
Value.In another implementation, it may is that and calculate above-mentioned lateral clarity evaluation and test initial value and vertical resolution evaluation and test jointly
The corresponding average value of initial value will calculate resulting average value as the clarity evaluation and test value of evaluation and test image.Wherein, merely with upper
It states in lateral clarity evaluation and test initial value and vertical resolution evaluation and test initial value, as the value of positive number, calculates the rwo correspondence
Average value.
Another example is: clarity evaluation result is clear grade, wherein each corresponding value range of clear grade: from institute
The above-mentioned lateral clarity evaluation and test corresponding average value of initial value and above-mentioned vertical resolution evaluation and test initial value calculated is corresponding
In average value, determine that numerical value is biggish, as reference value, by above-mentioned reference value value range corresponding with each clear grade
It is matched, includes the clear grade of above-mentioned reference value by corresponding value range, the clarity as evaluation and test image evaluates and tests knot
Fruit.
It is subsequent, it, can be based on altimetric image to be evaluated after electronic equipment determines the clarity evaluation result of altimetric image to be evaluated
Clarity evaluation result carries out intelligence for user and pushes away figure, to release the higher image of clarity to user.In a kind of situation, when
When clarity evaluation result is specific evaluation and test value, electronic equipment can release evaluation and test value to user and be higher than a default clarity threshold
The image of value, in a kind of situation, when clarity evaluation result is clear grade, it is clear etc. that electronic equipment can be released to user
Grade is clear and gem-pure image.
In the embodiment of the present invention, using the medium frequency image of the intermediate frequency information comprising altimetric image to be evaluated, to determine mapping to be evaluated
The clarity evaluation result of picture, can overcome in altimetric image to be evaluated, and the ratio of sharpened edge varies widely, caused figure
Image sharpness evaluates and tests not accurate enough problem.High-frequency information of the intermediate frequency information relative to the edge and details for determining image,
The basic structure for determining image forms the major side structure of image, can be used as the secondary strong edge of image, is less susceptible to
It is influenced by noise, and it when the ratio of sharpened edge varies widely, compared to high-frequency information, institute is impacted smaller,
The image progress higher clarity of accuracy is commented so that it, when the ratio of sharpened edge varies widely, is still able to achieve
It surveys.And the embodiment of the present invention, horizontal analysis and vertical analysis, obtained transverse direction clarity evaluation and test are carried out using to medium frequency image
Initial value and vertical resolution evaluate and test initial value, determine the clarity evaluation result of altimetric image to be evaluated, can more fully base
In the information of altimetric image to be evaluated, the clarity evaluation result of altimetric image to be evaluated is determined, realize higher to image progress accuracy
The evaluation and test of clarity.
In one implementation, the step of above-mentioned acquisition altimetric image to be evaluated may include:
Obtain color image;
Gray level image is converted by color image, as altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing color image, converts gray level image for topography, as altimetric image to be evaluated;Or,
Obtain color image;
Gray level image is converted by color image, chooses local gray level image as altimetric image to be evaluated.
In the embodiment of the present invention, above-mentioned color image can be the image of any format, such as RGB (RedGreenBlue,
RGB) format and yuv format.
When the format of color image is rgb format, it can be based on preset conversion formula, convert ash for color image
Spend image, wherein above-mentioned preset conversion formula, it can be with are as follows:
I(i,j)=R(i,j)*a+G(i,j)*b+B(i,j)*c
Wherein, I(i,j)Identify the gray value of the pixel in altimetric image to be evaluated at (i, j), R(i,j)It identifies in color image
The red value of pixel at (i, j), G(i,j)Identify the green value of the pixel in color image at (i, j), B(i,j)Identify color
The blue valve of pixel in coloured picture picture at (i, j), wherein above-mentioned a, b and c are predetermined coefficient.In oneainstance, a=
0.299, and b=0.587, and c=0.114.
When the format of color image is yuv format, rgb format first can be converted from yuv format by color image, into
And it is based on above-mentioned preset conversion formula, gray level image is converted by color image.Exist alternatively, being directly based upon the pixel prestored
The transformational relation between pixel value and gray value under yuv format, converts gray level image for color image.
It is understood that YUV is also known as YCrCb, it is a kind of color coding mode used by eurovision system,
In, " Y " indicates brightness (Luminance or Luma), that is, grayscale value;And " U " and " V " indicate coloration (Chrominance or
Chroma), effect is description colors of image and saturation degree, the color for specified pixel point." brightness " is through RGB (Red
Green Blue, RGB) input signal come what is established, be that the specific part of RGB input signal is superimposed together." coloration "
In terms of two for then defining color -- tone and saturation degree are indicated with Cr and Cb respectively.Wherein, Cr reflects RGB input
Difference between signal RED sector and RGB input signal brightness value.And Cb reflection be RGB input signal blue portion with
Difference between RGB input signal brightness value.
In one implementation, the topography only chosen in color image, such as user's area-of-interest be may is that
Image gray level image is converted by the selected topography, as altimetric image to be evaluated in turn;Alternatively, being also possible to:
Gray level image first is converted by color image, and then chooses topography from gray level image, such as user's area-of-interest
Image, as altimetric image to be evaluated.
In one implementation, above-mentioned different filter factors include the first filter factor and the second filter factor, above-mentioned
First filter factor corresponds to the first filter operator, corresponding second filter operator of above-mentioned second filter factor;
The above-mentioned low-pass filter using the different filter factors of configuration, is respectively filtered image to be evaluated, obtains not
The step of filtering image corresponding with filter factor may include:
Based on the low-pass filter of corresponding first filter operator of the first filter factor of configuration, image to be evaluated is filtered
Wave obtains the corresponding filtering image of the first filter factor;
Based on the low-pass filter of corresponding second filter operator of the second filter factor of configuration, image to be evaluated is filtered
Wave obtains the corresponding filtering image of the second filter factor.
Calculation amount in image definition evaluation and test process is executed in order to reduce electronic equipment, above-mentioned difference filter factors can be with
Including the first filter factor and the second filter factor, wherein above-mentioned first filter factor and the second filter factor can be used respectively
σ1And σ2Mark.In one implementation, the low-pass filter of above-mentioned different filter factor can be Gaussian filter, can be with
The respectively Gaussian filter of the Gaussian filter of the first filter factor and the second filter factor.Above-mentioned first filter factor is corresponding
The first filter operator and the second filter factor point corresponding second filter operator can be with the operator of N*N, the embodiment of the present invention is simultaneously
The specification of above-mentioned first filter operator and the second filter operator is not defined, wherein for the ease of determining medium frequency image, the
The specification of one filter operator and the specification of the second filter operator can be identical.
In oneainstance, above-mentioned first filter factor σ10.5 can be taken, first filter factor σ1The filtering of corresponding 3x3
Operator K1, wherein
Above-mentioned second filter factor σ20.9 can be taken, second filter factor σ2The filter operator K of corresponding 3x32, wherein
In the above case said, the first filter factor σ10.4 can be taken, the second filter factor σ20.8 can be taken, electronic equipment
It can be based on the first filter factor σ1Corresponding filter operator when being 0.4, is filtered image to be evaluated, to obtain the first filter
Wave factor sigma1Corresponding filtering image when being 0.4;And it is based on the second filter factor σ2Corresponding filter operator when being 0.8, to be evaluated
Altimetric image is filtered, to obtain the second filter factor σ2Corresponding filtering image when being 0.8, and then based on obtained above-mentioned
Two filtering images execute subsequent image definition evaluation and test process.
Wherein, the operator that above-mentioned first filter operator and the second filter operator are 3x3, when the size of altimetric image to be evaluated is M*
When N, the size of subsequent obtained medium frequency image can be (M-2) * (N-2), can remove the nothing at edge in medium frequency image at this time
The pixel of effect, so that the clarity evaluation result of altimetric image to be evaluated is more acurrate based on determined by the medium frequency image.This be by
There is the possibility that cannot be filtered to the most marginal pixel of image to be evaluated in the operator of 3x3.
In one implementation, above-mentioned different filter factor may include the first filter factor and the second filter factor,
Wherein, the first filter factor is less than the second filter factor;
It is above-mentioned based on the obtained corresponding filtering image of different filter factors in a kind of situation, determine altimetric image pair to be evaluated
The step of medium frequency image answered, may include:
The error image of the corresponding filtering image of the first filter factor filtering image corresponding with the second filter factor is calculated,
It is determined as the first error image;
Based on the first error image, the corresponding medium frequency image of altimetric image to be evaluated is determined.
In another situation, as shown in Fig. 2, it is above-mentioned based on the obtained corresponding filtering image of different filter factors, it determines
The step of altimetric image to be evaluated corresponding medium frequency image, may include:
S201: the error image of altimetric image to be evaluated filtering image corresponding with the first filter factor is calculated, is determined as second
Error image;
S202: the error image of altimetric image to be evaluated filtering image corresponding with the second filter factor is calculated, third is determined as
Error image;
S203: the error image of third error image and the second error image is calculated, the 4th error image is determined as;
S204: it is based on the 4th error image, determines the corresponding medium frequency image of altimetric image to be evaluated.
In the embodiment of the present invention, pass through the low-pass filter of above-mentioned first filter factor and the low pass filtered of the second filter factor
Wave device is respectively filtered image to be evaluated, can respectively obtain the filtering image comprising low-frequency information and intermediate frequency information, and
Filtering image comprising low-frequency information.
In one implementation, can directly utilize the filtering image comprising low-frequency information and intermediate frequency information, with comprising
It is poor that the filtering image of low-frequency information is made, and to obtain the medium frequency image comprising intermediate frequency information, that is, it is corresponding to calculate the first filter factor
The error image of filtering image filtering image corresponding with the second filter factor, is determined as the first error image, and then based on the
One error image obtains medium frequency image.Wherein, the process for obtaining medium frequency image based on the first error image may is that for first
Each pixel in error image, compares the value of the pixel in the first error image and 0 size, when the first error image
In the pixel value be more than or equal to 0, then retain the value of the pixel in the first error image, when in the first error image
The pixel value less than 0, then the value of the pixel in first error image is replaced with 0.
Wherein, it is based on aforesaid way, the corresponding medium frequency image of altimetric image to be evaluated is determined, following formula (1) can be used;
FCSi,j=max (Ii,j*K1-Ii,j*K2,0)……(1)
Wherein, above-mentioned FCSi,jIdentify the value of the pixel in medium frequency image at the position (i, j), above-mentioned Ii,jMark to
Evaluate and test the gray value of the pixel in image at the position (i, j), above-mentioned K1The corresponding filtering of the first filter factor is identified to calculate
Son, above-mentioned K2Identify the corresponding filter operator of the second filter factor.Above-mentioned max (Ii,j*K1-Ii,j*K2, 0) mark take Ii,j*K1-
Ii,j*K2And the maximum value between 0.
In another implementation, altimetric image to be evaluated and the filter comprising low-frequency information and intermediate frequency information can directly be utilized
It is poor that wave image is made, and obtains the image comprising high-frequency information to get to the second error image, and utilization altimetric image to be evaluated with comprising low
It is poor that the filtering image of frequency information is made, and obtains the image comprising high-frequency information and intermediate frequency information to get third error image is arrived;Into
And the image comprising high-frequency information and intermediate frequency information and the image work comprising high-frequency information is poor, to obtain comprising intermediate frequency information
Image to get to the 4th error image, and then the corresponding medium frequency image of altimetric image to be evaluated is obtained based on the 4th error image.Such as
It is a kind of exemplary diagram of altimetric image to be evaluated, the second error image, third error image and medium frequency image shown in Fig. 3.Wherein,
" original image " shown in Fig. 3 characterizes altimetric image to be evaluated, and " high frequency figure " shown in Fig. 3 characterizes the second error image, shown in Fig. 3
" medium-high frequency figure " characterize third error image, " intermediate frequency figure " shown in Fig. 3 characterizes medium frequency image.
It is above-mentioned that the process of the corresponding medium frequency image of altimetric image to be evaluated is obtained based on the 4th error image in the embodiment of the present invention
May is that compare for each pixel in the 4th error image the value of the pixel in the 4th error image with 0 it is big
It is small, when the value of the pixel in the 4th error image is more than or equal to 0, then retain the pixel in the 4th error image
Value, when the value of the pixel in the 4th error image is less than 0, then by the value replacement of the pixel in the 4th error image
It is 0.
Wherein, it is based on aforesaid way, the corresponding medium frequency image of altimetric image to be evaluated is determined, following formula (2) can be used;
FCSi,j=max ((Ii,j-Ii,j*K2)-(Ii,j-Ii,j*K1),0)……(2)
Wherein, above-mentioned FCSi,jIdentify the value of the pixel in medium frequency image at the position (i, j), above-mentioned Ii,jMark to
Evaluate and test the gray value of the pixel in image at the position (i, j), above-mentioned K1The corresponding filtering of the first filter factor is identified to calculate
Son, above-mentioned K2Identify the corresponding filter operator of the second filter factor.Above-mentioned max ((Ii,j-Ii,j*K2)-(Ii,j-Ii,j*K1), 0) mark
Knowledge takes (Ii,j-Ii,j*K2)-(Ii,j-Ii,j*K1) and 0 between maximum value.
It in one implementation, can in order to more preferably obtain the accurate clarity evaluation result to image to be evaluated
To carry out horizontal analysis and vertical analysis respectively to above-mentioned medium frequency image, to obtain lateral clarity evaluation and test initial value and longitudinal direction
Clarity evaluates and tests initial value.Specifically, above-mentioned carry out horizontal analysis and vertical analysis to medium frequency image respectively, it is laterally clear to obtain
The step of degree evaluation and test initial value and vertical resolution evaluation and test initial value, may include:
The every a line pixel for traversing medium frequency image determines the maximum pixel of corresponding numerical value from every a line pixel
Point, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing medium frequency image determines the maximum pixel of corresponding numerical value from each column pixel
Point, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
In one implementation, electronic equipment obtains above-mentioned lateral clarity evaluation and test initial value and vertical resolution is commented
It, can be corresponding based on above-mentioned lateral clarity evaluation and test initial value and vertical resolution evaluation and test initial value after surveying initial value
Average value determines the clarity evaluation result of altimetric image to be evaluated.Specifically, it is above-mentioned based on lateral clarity evaluation and test initial value and
Vertical resolution evaluates and tests initial value, the step of determining the clarity evaluation result of altimetric image to be evaluated, may include:
The average value for calculating all numerical value as positive number in lateral clarity evaluation and test initial value, as the first average value;
The average value for calculating all numerical value as positive number in vertical resolution evaluation and test initial value, as the second average value;
Clarity evaluation result by the maximum value in the first average value and the second average value, as altimetric image to be evaluated.
In another implementation, it is tied to preferably obtain the accurate clarity evaluation and test to image to be evaluated
Fruit, can be from above-mentioned lateral clarity evaluation and test initial value and vertical resolution evaluation and test initial value, and filtering out part respectively can
The higher value of reliability, and then based on the higher value of confidence level filtered out, determine the clarity evaluation result of altimetric image to be evaluated.Tool
Body, as shown in figure 4, above-mentioned evaluate and test initial value based on lateral clarity evaluation and test initial value and vertical resolution, determine to be evaluated
The step of clarity evaluation result of altimetric image, may include:
S401: ascending or descending order sequence is carried out to all numerical value in lateral clarity evaluation and test initial value, obtains First ray;
S402: from filtering out all numerical value in preset range in First ray;Calculate all works filtered out
For the average value of the numerical value of positive number, as third average value;
S403: ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
S404: all numerical value in preset range are filtered out from the second sequence;Calculate all works filtered out
For the average value of the numerical value of positive number, as the 4th average value;
S405: by the maximum value in third average value and the 4th average value, the clarity as altimetric image to be evaluated evaluates and tests knot
Fruit.
In the embodiment of the present invention, above-mentioned preset range can foundation: lateral clarity evaluation and test initial value and vertical resolution
The collating sequence of evaluation and test initial value is configured.Specifically, above-mentioned transverse direction clarity evaluation and test initial value and vertical resolution evaluation and test
When initial value carries out ascending sort, corresponding preset range is commented with above-mentioned lateral clarity evaluation and test initial value and vertical resolution
When surveying initial value progress descending sort, corresponding preset range be may be the same or different.In one implementation, on
Stating preset range can be independently arranged according to demand for staff, be also possible to electronic equipment default setting, wherein above-mentioned silent
Recognizing setting can characterize: setting when above-mentioned electronic equipment dispatches from the factory.For example, above-mentioned preset range can for [20%,
80%], or it is [0,95%], or is [5%, 100%] etc..
Wherein, above-mentioned third average value can be identified as RowClarity, and above-mentioned 4th average value can be identified as
ColClarity。
In the embodiment of the present invention, the process of the process of above-mentioned determining third average value and determining 4th average value can be parallel
It executes, can also sequentially execute, this is all possible.
In one implementation, initial based on lateral clarity evaluation and test initial value and vertical resolution evaluation and test above-mentioned
Before the step of being worth, determining the clarity evaluation result of altimetric image to be evaluated, the method can also include:
Obtain the corresponding luma component values of each pixel in altimetric image to be evaluated;
It is above-mentioned that initial value is evaluated and tested based on lateral clarity evaluation and test initial value and vertical resolution, determine altimetric image to be evaluated
The step of clarity evaluation result, may include:
For each numerical value in lateral clarity evaluation and test initial value, numerical value luma component values corresponding with the numerical value are calculated
Quotient, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: brightness corresponding to the corresponding pixel of the numerical value
Component value;
For each numerical value in vertical resolution evaluation and test initial value, numerical value luma component values corresponding with the numerical value are calculated
Quotient, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: brightness corresponding to the corresponding pixel of the numerical value
Component value;
Based on the first quotient and the second quotient, the clarity evaluation result of altimetric image to be evaluated is determined.
In one implementation, according to the pixel value of pixel each in altimetric image to be evaluated, the pixel can be determined
The luma component values of the pixel value of point, the i.e. corresponding luma component values of pixel.In order to avoid illumination factor is to image definition
Lateral clarity in the embodiment of the present invention, can be evaluated and tested initial value and vertical resolution evaluates and tests initial value by the influence of evaluation and test
In each numerical value, divided by the corresponding luma component values of the numerical value, to remove the illumination factor i.e. influence of brightness in the numerical value.Into
And it is based on obtained quotient, the clarity evaluation result of altimetric image to be evaluated is determined, to obtain the higher clarity evaluation and test of accuracy
As a result.It is understood that in oneainstance, the corresponding luma component values of above-mentioned pixel can use the picture of the pixel
Y-component value characterization of the element value under yuv format, the range of the corresponding Y-component of pixel is 0-255, for the ease of subsequent calculating
Process, the case where avoiding the occurrence of 0 as denominator.In the embodiment of the present invention, 1, i.e. electronics can be set by the minimum value of Y-component
In the altimetric image to be evaluated that equipment can will acquire in the corresponding Y-component value of each pixel, the Y-component value less than 1 is respectively provided with
It is 1, retains the Y-component not less than 1 and be worth original value.
It is above-mentioned to be based on the first quotient and the second quotient in the embodiment of the present invention, determine the clarity evaluation result of altimetric image to be evaluated
Process, may is that the average value of the average value for calculating separately above-mentioned first quotient and above-mentioned second quotient, in turn, select it is above-mentioned
Numerical value is biggish in two average values, the clarity evaluation result as altimetric image to be evaluated.Alternatively, may is that will be above-mentioned two
The average value of average value, the clarity evaluation result as altimetric image to be evaluated.Alternatively, may is that will be in above-mentioned two average value
Numerical value is biggish, and as reference value, reference value value range corresponding with pre-stored each clear grade is carried out
Match, includes the clear grade of above-mentioned reference value, the clarity evaluation result as evaluation and test image by corresponding value range.
As fig. 5 a and fig. 5b, right respectively using image definition evaluating method provided by the embodiment of the present invention
After a series of acquired altimetric images to be evaluated carry out clarity evaluation and tests, commented based on the corresponding clarity of each altimetric image to be evaluated
It surveys as a result, the schematic diagram being ranked up to each altimetric image to be evaluated.Wherein, collating sequence more rearward, altimetric image to be evaluated it is clear
It spends higher.
Corresponding to above method embodiment, as shown in fig. 6, the embodiment of the invention provides a kind of evaluation and tests of image definition to fill
It sets, described device includes:
First obtains module 610, for obtaining altimetric image to be evaluated;
Filter module 620, for the low-pass filter using the different filter factors of configuration, respectively to the altimetric image to be evaluated
It is filtered, obtains the corresponding filtering image of different filter factors;
First determining module 630, for determining described to be evaluated based on the obtained corresponding filtering image of different filter factors
The corresponding medium frequency image of altimetric image, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Analysis module 640, for carrying out horizontal analysis and vertical analysis to the medium frequency image respectively, it is laterally clear to obtain
Degree evaluation and test initial value and vertical resolution evaluate and test initial value;
Second determining module 650, for being commented based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is surveyed, determines the clarity evaluation result of the altimetric image to be evaluated.
Wherein, the clarity evaluation result is used to characterize the clarity of the altimetric image to be evaluated.
In the embodiment of the present invention, using the medium frequency image of the intermediate frequency information comprising altimetric image to be evaluated, to determine mapping to be evaluated
The clarity evaluation result of picture, can overcome in altimetric image to be evaluated, and the ratio of sharpened edge varies widely, caused figure
Image sharpness evaluates and tests not accurate enough problem.High-frequency information of the intermediate frequency information relative to the edge and details for determining image,
The basic structure for determining image forms the major side structure of image, can be used as the secondary strong edge of image, is less susceptible to
It is influenced by noise, and it when the ratio of sharpened edge varies widely, compared to high-frequency information, institute is impacted smaller,
The image progress higher clarity of accuracy is commented so that it, when the ratio of sharpened edge varies widely, is still able to achieve
It surveys.And the embodiment of the present invention, horizontal analysis and vertical analysis, obtained transverse direction clarity evaluation and test are carried out using to medium frequency image
Initial value and vertical resolution evaluate and test initial value, determine the clarity evaluation result of altimetric image to be evaluated, can more fully base
In the information of altimetric image to be evaluated, the clarity evaluation result of altimetric image to be evaluated is determined, realize higher to image progress accuracy
The evaluation and test of clarity.
In one implementation, described first module 610 is obtained, be specifically used for
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing the color image converts gray level image for the topography, as described to be evaluated
Altimetric image;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
In one implementation, the different filter factors include the first filter factor and the second filter factor, described
First filter factor corresponds to the first filter operator, corresponding second filter operator of second filter factor;
The filter module 620, is specifically used for
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of the first filter factor is obtained;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of second filter factor is obtained.
In one implementation, the different filter factors include the first filter factor and the second filter factor, wherein
First filter factor is less than second filter factor;
First determining module 630, is specifically used for
Calculate the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Error image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor is determined as
Two error images;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor is determined as
Three error images;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
In one implementation, the analysis module 640, is specifically used for
The every a line pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from every a line pixel
Pixel, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from each column pixel
Pixel, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
In one implementation, second determining module 650, is specifically used for
The average value of all numerical value as positive number in the lateral clarity evaluation and test initial value is calculated, it is average as first
Value;
The average value of all numerical value as positive number in the vertical resolution evaluation and test initial value is calculated, it is average as second
Value;
Clarity by the maximum value in first average value and second average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, second determining module 650, is specifically used for
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculate all conducts filtered out
The average value of the numerical value of positive number, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculating is filtered out all
The average value of numerical value as positive number, as the 4th average value;
Clarity by the maximum value in the third average value and the 4th average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, described device further include:
Second obtains module, for evaluating and testing initial value and the vertical resolution based on the lateral clarity described
Before the step of evaluating and testing initial value, determining the clarity evaluation result of the altimetric image to be evaluated, obtain in the altimetric image to be evaluated
The corresponding luma component values of each pixel;
Second determining module 650, is specifically used for:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
For each numerical value in vertical resolution evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of electronic equipment, as shown in fig. 7, comprises
Processor 710, communication interface 720, memory 730 and communication bus 740, wherein processor 710, communication interface 720, storage
Device 730 completes mutual communication by communication bus 740,
Memory 730, for storing computer program;
Processor 710 when for executing the computer program stored on memory 730, realizes institute of the embodiment of the present invention
Any image definition evaluating method provided, may include step:
Obtain altimetric image to be evaluated;
Using the low-pass filter for configuring different filter factors, the altimetric image to be evaluated is filtered respectively, is obtained not
The corresponding filtering image with filter factor;
Based on the obtained corresponding filtering image of different filter factors, the corresponding intermediate frequency figure of the altimetric image to be evaluated is determined
Picture, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain lateral clarity evaluation and test initial value and
Vertical resolution evaluates and tests initial value;
Initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, is determined described to be evaluated
The clarity evaluation result of altimetric image.
Wherein, the clarity evaluation result is used to characterize the clarity of the altimetric image to be evaluated.
In the embodiment of the present invention, using the medium frequency image of the intermediate frequency information comprising altimetric image to be evaluated, to determine mapping to be evaluated
The clarity evaluation result of picture, can overcome in altimetric image to be evaluated, and the ratio of sharpened edge varies widely, caused figure
Image sharpness evaluates and tests not accurate enough problem.High-frequency information of the intermediate frequency information relative to the edge and details for determining image,
The basic structure for determining image forms the major side structure of image, can be used as the secondary strong edge of image, is less susceptible to
It is influenced by noise, and it when the ratio of sharpened edge varies widely, compared to high-frequency information, institute is impacted smaller,
The image progress higher clarity of accuracy is commented so that it, when the ratio of sharpened edge varies widely, is still able to achieve
It surveys.And the embodiment of the present invention, horizontal analysis and vertical analysis, obtained transverse direction clarity evaluation and test are carried out using to medium frequency image
Initial value and vertical resolution evaluate and test initial value, determine the clarity evaluation result of altimetric image to be evaluated, can more fully base
In the information of altimetric image to be evaluated, the clarity evaluation result of altimetric image to be evaluated is determined, realize higher to image progress accuracy
The evaluation and test of clarity.
It is in one implementation, described to obtain altimetric image to be evaluated, comprising:
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing the color image converts gray level image for the topography, as described to be evaluated
Altimetric image;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
In one implementation, the different filter factors include the first filter factor and the second filter factor, described
First filter factor corresponds to the first filter operator, corresponding second filter operator of second filter factor;
The low-pass filter using the different filter factors of configuration, is respectively filtered the altimetric image to be evaluated, obtains
To the corresponding filtering image of different filter factors, comprising:
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of the first filter factor is obtained;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of second filter factor is obtained.
In one implementation, the different filter factors include the first filter factor and the second filter factor, wherein
First filter factor is less than second filter factor;
It is described based on the obtained corresponding filtering image of different filter factors, determine the corresponding intermediate frequency of the altimetric image to be evaluated
Image, comprising:
Calculate the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Error image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor is determined as
Two error images;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor is determined as
Three error images;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
In one implementation, described that horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain cross
Initial value is evaluated and tested to clarity and vertical resolution evaluates and tests initial value, comprising:
The every a line pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from every a line pixel
Pixel, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from each column pixel
Pixel, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
In one implementation, described to be commented based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is surveyed, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
The average value of all numerical value as positive number in the lateral clarity evaluation and test initial value is calculated, it is average as first
Value;
The average value of all numerical value as positive number in the vertical resolution evaluation and test initial value is calculated, it is average as second
Value;
Clarity by the maximum value in first average value and second average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, described to be commented based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is surveyed, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculate all conducts filtered out
The average value of the numerical value of positive number, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculating is filtered out all
The average value of numerical value as positive number, as the 4th average value;
Clarity by the maximum value in the third average value and the 4th average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, described based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is evaluated and tested, before the clarity evaluation result for determining the altimetric image to be evaluated, further includes:
Obtain the corresponding luma component values of each pixel in the altimetric image to be evaluated;
It is described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, determine described in
The clarity evaluation result of altimetric image to be evaluated, comprising:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
For each numerical value in vertical resolution evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
Corresponding to above method embodiment, the embodiment of the invention provides a kind of computer readable storage medium, the meter
It is stored with computer program in calculation machine readable storage medium storing program for executing, realizes that the present invention is implemented when the computer program is executed by processor
Any image definition evaluating method provided by example, may include step:
Obtain altimetric image to be evaluated;
Using the low-pass filter for configuring different filter factors, the altimetric image to be evaluated is filtered respectively, is obtained not
The corresponding filtering image with filter factor;
Based on the obtained corresponding filtering image of different filter factors, the corresponding intermediate frequency figure of the altimetric image to be evaluated is determined
Picture, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain lateral clarity evaluation and test initial value and
Vertical resolution evaluates and tests initial value;
Initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, is determined described to be evaluated
The clarity evaluation result of altimetric image.
Wherein, the clarity evaluation result is used to characterize the clarity of the altimetric image to be evaluated.
In the embodiment of the present invention, using the medium frequency image of the intermediate frequency information comprising altimetric image to be evaluated, to determine mapping to be evaluated
The clarity evaluation result of picture, can overcome in altimetric image to be evaluated, and the ratio of sharpened edge varies widely, caused figure
Image sharpness evaluates and tests not accurate enough problem.High-frequency information of the intermediate frequency information relative to the edge and details for determining image,
The basic structure for determining image forms the major side structure of image, can be used as the secondary strong edge of image, is less susceptible to
It is influenced by noise, and it when the ratio of sharpened edge varies widely, compared to high-frequency information, institute is impacted smaller,
The image progress higher clarity of accuracy is commented so that it, when the ratio of sharpened edge varies widely, is still able to achieve
It surveys.And the embodiment of the present invention, horizontal analysis and vertical analysis, obtained transverse direction clarity evaluation and test are carried out using to medium frequency image
Initial value and vertical resolution evaluate and test initial value, determine the clarity evaluation result of altimetric image to be evaluated, can more fully base
In the information of altimetric image to be evaluated, the clarity evaluation result of altimetric image to be evaluated is determined, realize higher to image progress accuracy
The evaluation and test of clarity.
It is in one implementation, described to obtain altimetric image to be evaluated, comprising:
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography for choosing the color image converts gray level image for the topography, as described to be evaluated
Altimetric image;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
In one implementation, the different filter factors include the first filter factor and the second filter factor, described
First filter factor corresponds to the first filter operator, corresponding second filter operator of second filter factor;
The low-pass filter using the different filter factors of configuration, is respectively filtered the altimetric image to be evaluated, obtains
To the corresponding filtering image of different filter factors, comprising:
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of the first filter factor is obtained;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the mapping to be evaluated
As being filtered, the corresponding filtering image of second filter factor is obtained.
In one implementation, the different filter factors include the first filter factor and the second filter factor, wherein
First filter factor is less than second filter factor;
It is described based on the obtained corresponding filtering image of different filter factors, determine the corresponding intermediate frequency of the altimetric image to be evaluated
Image, comprising:
Calculate the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Error image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor is determined as
Two error images;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor is determined as
Three error images;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
In one implementation, described that horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain cross
Initial value is evaluated and tested to clarity and vertical resolution evaluates and tests initial value, comprising:
The every a line pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from every a line pixel
Pixel, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines that corresponding numerical value is maximum from each column pixel
Pixel, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
In one implementation, described to be commented based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is surveyed, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
The average value of all numerical value as positive number in the lateral clarity evaluation and test initial value is calculated, it is average as first
Value;
The average value of all numerical value as positive number in the vertical resolution evaluation and test initial value is calculated, it is average as second
Value;
Clarity by the maximum value in first average value and second average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, described to be commented based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is surveyed, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculate all conducts filtered out
The average value of the numerical value of positive number, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculating is filtered out all
The average value of numerical value as positive number, as the 4th average value;
Clarity by the maximum value in the third average value and the 4th average value, as the altimetric image to be evaluated
Evaluation result.
In one implementation, described based on the lateral clarity evaluation and test initial value and the vertical resolution
Initial value is evaluated and tested, before the clarity evaluation result for determining the altimetric image to be evaluated, further includes:
Obtain the corresponding luma component values of each pixel in the altimetric image to be evaluated;
It is described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, determine described in
The clarity evaluation result of altimetric image to be evaluated, comprising:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
For each numerical value in vertical resolution evaluation and test initial value, numerical value brightness point corresponding with the numerical value is calculated
The quotient of magnitude, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: corresponding to the corresponding pixel of the numerical value
Luma component values;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (11)
1. a kind of image definition evaluating method, which is characterized in that the described method includes:
Obtain altimetric image to be evaluated;
Using the low-pass filter for configuring different filter factors, the altimetric image to be evaluated is filtered respectively, obtains different filters
The corresponding filtering image of wave system number;
Based on the obtained corresponding filtering image of different filter factors, the corresponding medium frequency image of the altimetric image to be evaluated is determined,
In, the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Horizontal analysis and vertical analysis are carried out to the medium frequency image respectively, obtain lateral clarity evaluation and test initial value and longitudinal direction
Clarity evaluates and tests initial value;
Initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, determines the mapping to be evaluated
The clarity evaluation result of picture.
2. the method according to claim 1, wherein the step of acquisition altimetric image to be evaluated, comprising:
Obtain color image;
Gray level image is converted by the color image, as the altimetric image to be evaluated;Or,
Obtain color image;
The topography is converted gray level image by the topography for choosing the color image, as the mapping to be evaluated
Picture;Or,
Obtain color image;
Gray level image is converted by the color image, chooses local gray level image as the altimetric image to be evaluated.
3. the method according to claim 1, wherein the difference filter factor includes the first filter factor and the
Two filter factors, corresponding first filter operator of first filter factor, corresponding second filter operator of second filter factor;
The low-pass filter using the different filter factors of configuration, is respectively filtered the altimetric image to be evaluated, obtains not
The step of filtering image corresponding with filter factor, comprising:
Based on the low-pass filter for configuring corresponding first filter operator of first filter factor, to the altimetric image to be evaluated into
Row filtering, obtains the corresponding filtering image of the first filter factor;
Based on the low-pass filter for configuring corresponding second filter operator of second filter factor, to the altimetric image to be evaluated into
Row filtering, obtains the corresponding filtering image of second filter factor.
4. the method according to claim 1, wherein the difference filter factor includes the first filter factor and the
Two filter factors, wherein first filter factor is less than second filter factor;
It is described based on the obtained corresponding filtering image of different filter factors, determine the corresponding medium frequency image of the altimetric image to be evaluated
The step of, comprising:
Calculate the difference of the corresponding filtering image of first filter factor filtering image corresponding with second filter factor
Image is determined as the first error image;
Based on first error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined;
Alternatively,
The error image for calculating the altimetric image to be evaluated filtering image corresponding with first filter factor, it is poor to be determined as second
It is worth image;
The error image for calculating the altimetric image to be evaluated filtering image corresponding with second filter factor, it is poor to be determined as third
It is worth image;
The error image for calculating the third error image Yu second error image, is determined as the 4th error image;
Based on the 4th error image, the corresponding medium frequency image of the altimetric image to be evaluated is determined.
5. method according to claim 1-4, which is characterized in that described to carry out cross to the medium frequency image respectively
To analysis and vertical analysis, the step of lateral clarity evaluates and tests initial value and vertical resolution evaluation and test initial value is obtained, comprising:
The every a line pixel for traversing the medium frequency image determines the maximum pixel of corresponding numerical value from every a line pixel
Point, as first kind pixel;
By the corresponding numerical value of identified all first kind pixels, it is determined as lateral clarity evaluation and test initial value;
The each column pixel for traversing the medium frequency image determines the maximum pixel of corresponding numerical value from each column pixel
Point, as the second class pixel;
By the corresponding numerical value of identified all second class pixels, it is determined as vertical resolution evaluation and test initial value.
6. according to the method described in claim 5, it is characterized in that, it is described based on the lateral clarity evaluation and test initial value and
The step of vertical resolution evaluates and tests initial value, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
The average value for calculating all numerical value as positive number in the lateral clarity evaluation and test initial value, as the first average value;
The average value for calculating all numerical value as positive number in the vertical resolution evaluation and test initial value, as the second average value;
By the maximum value in first average value and second average value, the clarity as the altimetric image to be evaluated is evaluated and tested
As a result.
7. according to the method described in claim 5, it is characterized in that, it is described based on the lateral clarity evaluation and test initial value and
The step of vertical resolution evaluates and tests initial value, determines the clarity evaluation result of the altimetric image to be evaluated, comprising:
Ascending or descending order sequence is carried out to all numerical value in the lateral clarity evaluation and test initial value, obtains First ray;
All numerical value in preset range are filtered out from the First ray;Calculating is filtered out all as positive number
Numerical value average value, as third average value;
Ascending or descending order sequence is carried out to all numerical value in vertical resolution evaluation and test initial value, obtains the second sequence;
All numerical value in the preset range are filtered out from second sequence;Calculate all conducts filtered out
The average value of the numerical value of positive number, as the 4th average value;
By the maximum value in the third average value and the 4th average value, the clarity as the altimetric image to be evaluated is evaluated and tested
As a result.
8. according to the method described in claim 5, it is characterized in that, it is described based on the lateral clarity evaluation and test initial value with
And the vertical resolution evaluates and tests initial value, it is described before the step of determining the clarity evaluation result of the altimetric image to be evaluated
Method further include:
Obtain the corresponding luma component values of each pixel in the altimetric image to be evaluated;
It is described that initial value is evaluated and tested based on the lateral clarity evaluation and test initial value and the vertical resolution, it determines described to be evaluated
The step of clarity evaluation result of altimetric image, comprising:
For each numerical value in the lateral clarity evaluation and test initial value, numerical value luma component values corresponding with the numerical value are calculated
Quotient, as the first quotient, wherein the corresponding luma component values of the numerical value are as follows: brightness corresponding to the corresponding pixel of the numerical value
Component value;
For each numerical value in vertical resolution evaluation and test initial value, numerical value luma component values corresponding with the numerical value are calculated
Quotient, as the second quotient, wherein the corresponding luma component values of the numerical value are as follows: brightness corresponding to the corresponding pixel of the numerical value
Component value;
Based on first quotient and second quotient, the clarity evaluation result of the altimetric image to be evaluated is determined.
9. a kind of image definition evaluating apparatus, which is characterized in that described device includes:
First obtains module, for obtaining altimetric image to be evaluated;
Filter module, for being filtered to the altimetric image to be evaluated respectively using the low-pass filter for configuring different filter factors
Wave obtains the corresponding filtering image of different filter factors;
First determining module, for determining the altimetric image to be evaluated based on the obtained corresponding filtering image of different filter factors
Corresponding medium frequency image, wherein the medium frequency image are as follows: the image of the intermediate frequency information comprising the altimetric image to be evaluated;
Analysis module obtains lateral clarity evaluation and test for carrying out horizontal analysis and vertical analysis to the medium frequency image respectively
Initial value and vertical resolution evaluate and test initial value;
Second determining module, for initial based on the lateral clarity evaluation and test initial value and vertical resolution evaluation and test
Value, determines the clarity evaluation result of the altimetric image to be evaluated.
10. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the computer program stored on memory, realizes any image of claim 1-8
Clarity evaluating method step.
11. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program realizes claim 1-8 any image definition evaluating method when the computer program is executed by processor
Step.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810411295.XA CN110458789B (en) | 2018-05-02 | 2018-05-02 | Image definition evaluating method and device and electronic equipment |
PCT/CN2019/071003 WO2019210707A1 (en) | 2018-05-02 | 2019-01-09 | Image sharpness evaluation method, device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810411295.XA CN110458789B (en) | 2018-05-02 | 2018-05-02 | Image definition evaluating method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110458789A true CN110458789A (en) | 2019-11-15 |
CN110458789B CN110458789B (en) | 2022-04-05 |
Family
ID=68386234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810411295.XA Active CN110458789B (en) | 2018-05-02 | 2018-05-02 | Image definition evaluating method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110458789B (en) |
WO (1) | WO2019210707A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111179259A (en) * | 2019-12-31 | 2020-05-19 | 北京灵犀微光科技有限公司 | Optical clarity test method and device |
CN113542796A (en) * | 2020-04-22 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Video evaluation method and device, computer equipment and storage medium |
CN117252783A (en) * | 2023-11-06 | 2023-12-19 | 上海为旌科技有限公司 | Definition computing method, device and equipment for defocus blurred image |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116506719B (en) * | 2023-06-21 | 2023-09-15 | 深圳华强电子网集团股份有限公司 | Transmission management method based on photodiode CMOS image sensor |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102881003A (en) * | 2012-08-30 | 2013-01-16 | 暨南大学 | Method for removing cosmic rays in charge-coupled device (CCD) astronomic image |
US20150363944A1 (en) * | 2014-06-12 | 2015-12-17 | Samsung Electronics Co., Ltd. | Low power supbixel rendering on rgbw display |
CN106127775A (en) * | 2016-06-28 | 2016-11-16 | 乐视控股(北京)有限公司 | Measurement for Digital Image Definition and device |
US9552506B1 (en) * | 2004-12-23 | 2017-01-24 | Cognex Technology And Investment Llc | Method and apparatus for industrial identification mark verification |
CN106548468A (en) * | 2016-10-13 | 2017-03-29 | 广州酷狗计算机科技有限公司 | The method of discrimination and device of image definition |
CN106934804A (en) * | 2017-03-13 | 2017-07-07 | 重庆贝奥新视野医疗设备有限公司 | Approach for detecting image sharpness and device |
CN107507173A (en) * | 2017-08-15 | 2017-12-22 | 上海交通大学 | A kind of full slice image without refer to intelligibility evaluation method and system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6004481B2 (en) * | 2010-06-30 | 2016-10-12 | 日本電気株式会社 | Color image processing method, color image processing apparatus, and color image processing program |
CN103034979B (en) * | 2012-11-30 | 2015-03-25 | 声泰特(成都)科技有限公司 | Ultrasonic image definition improving method |
-
2018
- 2018-05-02 CN CN201810411295.XA patent/CN110458789B/en active Active
-
2019
- 2019-01-09 WO PCT/CN2019/071003 patent/WO2019210707A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9552506B1 (en) * | 2004-12-23 | 2017-01-24 | Cognex Technology And Investment Llc | Method and apparatus for industrial identification mark verification |
CN102881003A (en) * | 2012-08-30 | 2013-01-16 | 暨南大学 | Method for removing cosmic rays in charge-coupled device (CCD) astronomic image |
US20150363944A1 (en) * | 2014-06-12 | 2015-12-17 | Samsung Electronics Co., Ltd. | Low power supbixel rendering on rgbw display |
CN106127775A (en) * | 2016-06-28 | 2016-11-16 | 乐视控股(北京)有限公司 | Measurement for Digital Image Definition and device |
CN106548468A (en) * | 2016-10-13 | 2017-03-29 | 广州酷狗计算机科技有限公司 | The method of discrimination and device of image definition |
CN106934804A (en) * | 2017-03-13 | 2017-07-07 | 重庆贝奥新视野医疗设备有限公司 | Approach for detecting image sharpness and device |
CN107507173A (en) * | 2017-08-15 | 2017-12-22 | 上海交通大学 | A kind of full slice image without refer to intelligibility evaluation method and system |
Non-Patent Citations (2)
Title |
---|
JING ZHANG 等: "Algorithm of Image Definition Evaluation Based on Lifting Scheme", 《CMES》 * |
薛万勋 等: "基于点锐度和平方梯度的图像清晰度评价方法", 《电子设计工程》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN113542796A (en) * | 2020-04-22 | 2021-10-22 | 腾讯科技(深圳)有限公司 | Video evaluation method and device, computer equipment and storage medium |
CN113542796B (en) * | 2020-04-22 | 2023-08-08 | 腾讯科技(深圳)有限公司 | Video evaluation method, device, computer equipment and storage medium |
CN117252783A (en) * | 2023-11-06 | 2023-12-19 | 上海为旌科技有限公司 | Definition computing method, device and equipment for defocus blurred image |
CN117252783B (en) * | 2023-11-06 | 2024-05-17 | 上海为旌科技有限公司 | Definition computing method, device and equipment for defocus blurred image |
Also Published As
Publication number | Publication date |
---|---|
WO2019210707A1 (en) | 2019-11-07 |
CN110458789B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110458789A (en) | A kind of image definition evaluating method, device and electronic equipment | |
CN105339951B (en) | Method for detecting document boundaries | |
CN109858461A (en) | A kind of method, apparatus, equipment and storage medium that dense population counts | |
CN106384117B (en) | A kind of vehicle color identification method and device | |
US20070103551A1 (en) | Method and system for measuring video quality | |
CN104052979B (en) | For device and the technology of image processing | |
CN107103606A (en) | A kind of image-recognizing method and device | |
CN108593645A (en) | A kind of testing result of Urine test paper determines method and determining device | |
CN108109145A (en) | Picture quality detection method, device, storage medium and electronic device | |
CN103813095B (en) | Test chart and its application method | |
CN110458803A (en) | Frame image color cast and brightness detection method and device based on colored ribbon calibration | |
CN107229560A (en) | A kind of interface display effect testing method, image specimen page acquisition methods and device | |
WO2021098486A1 (en) | Garment color recognition processing method, device, apparatus, and storage medium | |
CN106231295A (en) | A kind of display screen image quality automatic checkout system, detection method and application thereof | |
CN107292307A (en) | One kind is inverted Chinese character identifying code automatic identifying method and system | |
CN105913460A (en) | Skin color detection method and device | |
CN104000593A (en) | Color card and skin test method and system | |
CN113888542B (en) | Product defect detection method and device | |
CN106327436A (en) | Filtering method and device based on multichannel noise detection | |
CN111387932B (en) | Vision detection method, device and equipment | |
CN103200349B (en) | Scanned image color cast automatic detection method | |
CN108510474B (en) | Method and system for evaluating quality of tobacco leaf image, memory and electronic equipment | |
Patil et al. | Survey on approaches used for image quality assessment | |
CN105761282B (en) | The detection method and device of image color cast | |
CN105931249B (en) | A kind of test method and test device of Camera imaging |
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 |