CN108009994A - A kind of bad wire restoration method, apparatus and equipment - Google Patents
A kind of bad wire restoration method, apparatus and equipment Download PDFInfo
- Publication number
- CN108009994A CN108009994A CN201711009556.7A CN201711009556A CN108009994A CN 108009994 A CN108009994 A CN 108009994A CN 201711009556 A CN201711009556 A CN 201711009556A CN 108009994 A CN108009994 A CN 108009994A
- Authority
- CN
- China
- Prior art keywords
- repaired
- bad
- complex pattern
- grid shadow
- line
- 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 53
- 239000006185 dispersion Substances 0.000 claims description 27
- 230000008439 repair process Effects 0.000 claims description 27
- 230000001629 suppression Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 14
- 238000001228 spectrum Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Classifications
-
- G06T5/77—
Abstract
The present invention discloses a kind of bad wire restoration method, apparatus and equipment, the described method includes:Determine that there are grid shadow on complex pattern to be repaired;Obtain the directional information of the grid shadow;According to the directional information of the grid shadow, bad line consistent with the directional information of the grid shadow on the complex pattern to be repaired is determined;Acquisition is located at the bad line both sides, and is separated by with the bad line average gray of the pixel of predetermined number;Using the average gray, the bad line on the complex pattern to be repaired is repaired.Influenced due to being separated by the pixel of predetermined number with bad line by grid shadow smaller, so, bad line is repaired using the gray average for being separated by the pixel of predetermined number positioned at bad line both sides and with bad line, there can be preferable repairing effect to the bad line on low-density grid image.
Description
Technical field
This application involves data processing field, and in particular to a kind of bad wire restoration method, apparatus and equipment.
Background technology
Due to the relation of detector technique, bad line is usually there will be on its image exported, have impact on the quality of image, is needed
It is repaired.
Under normal conditions, detector itself automatically can be repaired the bad line on the image of output according to bad point figure.But
It is that the image for having used low-density grid, due to the presence of grid shadow on image, even have passed through detector itself
Repair, the bad wire restoration effect consistent with grid shadow direction be not still good enough on image, as shown in Figure 1, to be repaiied by detector itself
The repairing effect schematic diagram of multiple low-density grid image, wherein, the bad wire restoration effect outlined is poor.
For this reason, there is an urgent need for a kind of bad wire restoration method, there can be preferable reparation to the bad line on low-density grid image
Effect.
The content of the invention
In view of this, can be to low-density grid figure this application provides a kind of bad wire restoration method, apparatus and equipment
As upper bad line has preferable repairing effect.
In a first aspect, the present invention provides a kind of bad wire restoration method, the described method includes:
Determine that there are grid shadow on complex pattern to be repaired;
Obtain the directional information of the grid shadow;
According to the directional information of the grid shadow, determine consistent with the directional information of the grid shadow on the complex pattern to be repaired
Bad line;
Acquisition is located at the bad line both sides, and is separated by with the bad line average gray of the pixel of predetermined number;
Using the average gray, the bad line on the complex pattern to be repaired is repaired.
Optionally, it is described to determine on complex pattern to be repaired there are grid shadow, including:
The frequency curve of horizontal direction and the frequency curve of vertical direction on complex pattern to be repaired are obtained respectively;
The frequency curve of the horizontal direction and the frequency curve of the vertical direction are calculated, respectively in the grid obtained in advance
Dispersion degree in the range of shadow frequency distribution;
According to the dispersion degree, judge to whether there is grid shadow on the complex pattern to be repaired;
If the dispersion degree is more than predetermined threshold value, it is determined that there are grid shadow on the complex pattern to be repaired.
Optionally, the directional information for obtaining the grid shadow, including:
The direction of frequency curve according to corresponding to the dispersion degree more than preset first threshold value, obtains the grid shadow
Directional information.
Optionally, the method further includes:
It is described to utilize the average gray, after being repaired to the bad line on the complex pattern to be repaired, to institute
The grid shadow stated on complex pattern to be repaired is suppressed.
Optionally, the method further includes:
Grid shadow is not present on the complex pattern to be repaired is determined, alternatively, the average gray is utilized described, to described
After the bad line on complex pattern to be repaired is repaired,
For any bad point on the bad line, following steps are performed both by:
Using the bad point in the predeterminable area in the center of circle, to calculate respectively on other directions in addition to the direction of the bad line
The gray value standard of pixel is poor;
Calculate the average gray of each pixel on the minimum corresponding direction of gray value standard difference;
Using the average gray, the bad point is repaired.
Optionally, the method further includes:
Grid shadow is not present on the complex pattern to be repaired is determined, alternatively, the average gray is utilized described, to described
After the bad line on complex pattern to be repaired is repaired, for any bad point on the bad line, following steps are performed both by:
Using the bad point in the predeterminable area in the center of circle, to calculate respectively on other directions in addition to the direction of the bad line
The gray value standard of pixel is poor;
If the gray value standard difference of the pixel in either direction is less than default second threshold, the gray value is calculated
The average gray of each pixel on the corresponding direction of standard deviation;
Using the average gray, the bad point is repaired.
Second aspect, the present invention provides a kind of bad wire restoration device, described device includes:
First determining module, for determining that there are grid shadow on complex pattern to be repaired;
First acquisition module, for obtaining the directional information of the grid shadow;
Second determining module, for the directional information according to the grid shadow, determine on the complex pattern to be repaired with the grid
The consistent bad line of the directional information of shadow;
Second acquisition module, is located at the bad line both sides for obtaining, and is separated by the pixel of predetermined number with the bad line
The average gray of point;
First repair module, for utilizing the average gray, carries out the bad line on the complex pattern to be repaired
Repair.
Optionally, first determining module includes:
Acquisition submodule, for obtaining the frequency of the frequency curve of horizontal direction and vertical direction on complex pattern to be repaired respectively
Curve;
Calculating sub module, for calculating the frequency curve of the horizontal direction and the frequency curve of the vertical direction, point
Dispersion degree not in the range of the grid shadow frequency distribution obtained in advance;
Judging submodule, for according to the dispersion degree, judging to whether there is grid shadow on the complex pattern to be repaired;
Determination sub-module, for when the dispersion degree is more than predetermined threshold value, determining exist on the complex pattern to be repaired
Grid shadow.
Optionally, first acquisition module, is specifically used for:
The direction of frequency curve according to corresponding to the dispersion degree more than predetermined threshold value, obtains the side of the grid shadow
To information.
Optionally, described device further includes:
Suppression module, for utilizing the average gray, repaiies the bad line on the complex pattern to be repaired
After multiple, the grid shadow on the complex pattern to be repaired is suppressed.
Optionally, described device further includes:
First computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, described in the utilization
Average gray, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line,
Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively
Gray value standard is poor;
Second computing module, the gray scale for calculating each pixel on the minimum corresponding direction of gray value standard difference are put down
Average;
Second repair module, for utilizing the average gray, repairs the bad point.
Optionally, described device further includes:
3rd computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, described in the utilization
Average gray, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line,
Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively
Gray value standard is poor;
4th computing module, the gray value standard difference for the pixel in either direction are less than default second threshold
When, calculate the average gray of each pixel on the corresponding direction of gray value standard difference;
3rd repair module, for utilizing the average gray, repairs the bad point.
The third aspect, the present invention provides a kind of bad wire restoration equipment, the equipment includes:Memory and processor,
The memory is used for store program codes, and said program code is transferred to the processor;
The processor is used for the instruction in said program code, performs following steps:Determine on complex pattern to be repaired
There are grid shadow;Obtain the directional information of the grid shadow;According to the directional information of the grid shadow, determine on the complex pattern to be repaired with
The consistent bad line of the directional information of the grid shadow;Acquisition is located at the bad line both sides, and is separated by predetermined number with the bad line
The average gray of pixel;Using the average gray, the bad line on the complex pattern to be repaired is repaired.
The present invention provides a kind of bad wire restoration method, there are grid movie queen on complex pattern to be repaired is determined, according to grid shadow
Directional information, determines bad line consistent with grid shadow direction on complex pattern to be repaired, and utilizes positioned at bad line both sides and be separated by with bad line
The gray average of the pixel of predetermined number repairs bad line.Due to being separated by the pixel of predetermined number with bad line by grid shadow
Influence it is smaller, so, using positioned at bad line both sides and with bad line be separated by the gray average of the pixel of predetermined number to bad line into
Row is repaired, and can have preferable repairing effect to the bad line on low-density grid image.
Brief description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of repairing effect schematic diagram for the low-density grid image repaired by detector itself;
Fig. 2 is a kind of flow chart of bad wire restoration method provided by the embodiments of the present application;
Fig. 3 a are the schematic diagram of the frequency curve of the horizontal direction of complex pattern A to be repaired;
Fig. 3 b are the schematic diagram of the frequency curve of the vertical direction of complex pattern A to be repaired;
Fig. 4 is the bad point figure of complex pattern to be repaired;
Fig. 5 is the schematic diagram of the complex pattern to be repaired there are grid shadow;
Fig. 6 a are the design sketch repaired by detector of the prior art itself;
Fig. 6 b are the design sketch Jing Guo bad wire restoration method reparation provided in an embodiment of the present invention;
Fig. 7 is schematic diagram of the line to card graphic for tilting 45 ° of placements;
Fig. 8 is the flow chart of another bad wire restoration method provided by the embodiments of the present application;
Fig. 9 is the image schematic diagram there are the bad line of vertical direction;
Figure 10 is the design sketch repaired using bad wire restoration method provided in an embodiment of the present invention to bad line;
Figure 11 is a kind of structure diagram of bad wire restoration device provided in an embodiment of the present invention;
Figure 12 also provides a kind of structure diagram of bad wire restoration equipment for the embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art are obtained every other without making creative work
Embodiment, shall fall in the protection scope of this application.
Based on the reason for the detector technique, bad line is usually there will be on its image exported.In order to ensure the quality of image,
Usually the bad line on image is repaired by detector itself, still, inventor has found to have used the figure of low-density grid
Picture, even across the reparation of detector itself, there is also the not good enough situation of repairing effect.
Using would generally occur regular equally distributed bar shadow (hereinafter referred to as grid in the image of low-density grid
Shadow), direction is consistent with the distribution of leads in low-density grid.The present invention determines that image is by identifying the grid shadow in image
No is low-density grid image, and then the bad line of image is repaired.
For this reason, the present invention provides a kind of bad wire restoration method, there are grid movie queen on complex pattern to be repaired is determined, according to grid
The directional information of shadow, determines bad line consistent with grid shadow direction on complex pattern to be repaired, and using positioned at bad line both sides and with bad line
It is separated by the average gray of the pixel of predetermined number, bad line is repaired.Due to being separated by the pixel of predetermined number with bad line
Point influenced by grid shadow it is smaller, so, utilize the gray average for the pixel for being separated by predetermined number positioned at bad line both sides and with bad line
Bad line is repaired, there can be preferable repairing effect to the bad line on low-density grid image.
Specifically, an embodiment of the present invention provides a kind of bad wire restoration method, with reference to figure 2, provided for the embodiment of the present invention
A kind of bad wire restoration method flow chart, this method includes:
S201:Determine that there are grid shadow on complex pattern to be repaired.
Due to the use of on the image of low-density grid there are grid shadow, so, the present invention by identifying on complex pattern to be repaired
Grid shadow, it may be determined that whether the complex pattern to be repaired has used low-density grid.In addition, the figure of low-density grid is used
The direction of grid shadow is horizontally or vertically as present on.
In practical application, since the direction of grid shadow is horizontally or vertically, so respectively along horizontal and vertical directions
Image to be repaired is traveled through, obtains frequency curve horizontally and vertically.
Specifically, when being traveled through along horizontal direction to image to be repaired, Fu is carried out to the pixel value of every row pixel
In leaf transformation, the corresponding Fourier spectrum of every row pixel is obtained, by the corresponding Fourier spectrum phase of often row pixel of horizontal direction
Add rear averaged, log conversion finally is carried out to the average value, obtains the frequency curve in horizontal direction.
Similar, when being traveled through along vertical direction to image to be repaired, Fu is carried out to the pixel value of each column pixel
In leaf transformation, the corresponding Fourier spectrum of each column pixel is obtained, by the corresponding Fourier spectrum phase of often row pixel of vertical direction
Add rear averaged, log conversion finally is carried out to the average value, obtains the frequency curve in vertical direction.
After the frequency curve horizontally and vertically of complex pattern to be repaired is obtained, the frequency in difference calculated level direction
The frequency curve of rate curve and vertical direction, the respectively dispersion degree in the range of the grid shadow frequency distribution obtained in advance.Wherein,
Dispersion degree can as judge in complex pattern to be repaired whether there is grid shadow standard, dispersion degree it is bigger represent there are grid shadow
Possibility is bigger, and the situation from frequency curve reflection is that dispersion degree is bigger, then frequency curve is in the range of grid shadow frequency distribution
The amplitude of frequency is bigger.In addition, grid shadow frequency distribution scope is used to represent the scope that grid shadow frequency is mainly concentrated, can be according to defeated
Installation between the low-density grid specification, detector and the grid that go out the detector resolution of the complex pattern to be repaired, use
Distance and bulb are determined to factors such as the distance between detectors.
In practical application, the frequency curve of the frequency curve of horizontal direction and vertical direction is being obtained respectively in grid shadow frequency
After dispersion degree in distribution, judge whether the dispersion degree in both direction (is such as set as less than predetermined threshold value
0.06), if it is, determining that grid shadow is not present on the complex pattern to be repaired, otherwise, it determines there are grid shadow on the complex pattern to be repaired.
S202:Obtain the directional information of the grid shadow.
In the embodiment of the present invention, if can be determined discrete in the complex pattern to be repaired there are grid shadow in complex pattern to be repaired
There are grid shadow on more direction.
As shown in Figure 3a and Figure 3b shows, Fig. 3 a are the frequency curve schematic diagram of the horizontal direction of complex pattern A to be repaired, and Fig. 3 b are to treat
Repair the schematic diagram of the frequency curve of the vertical direction of image A.It can be seen from the figure that the vertical direction of complex pattern A to be repaired
Frequency curve is larger in the dispersion degree of grid shadow frequency distribution scope (0.85~0.95), and is more than predetermined threshold value, then explanation is treated
Repair in the vertical direction of image A there are grid shadow, i.e. the directional information of grid shadow is vertical direction.
S203:According to the directional information of the grid shadow, the directional information with the grid shadow on the complex pattern to be repaired is determined
Consistent bad line.
In the embodiment of the present invention, after the directional information of grid shadow is determined, according to the directional information of grid shadow, to image to be repaired
Bad point figure be scanned, determine bad line consistent with the directional information of the grid shadow on the complex pattern to be repaired.
As shown in figure 4, be the bad point figure of complex pattern to be repaired, wherein, the pixel value of the bad point position on bad point figure is 1, its
The pixel value of his position is 0.If the directional information of grid shadow is vertical direction, along the vertical direction of bad point figure to bad point figure
It is scanned, if the pixel value of certain row, which is the number of 1 bad point, accounts for the certain proportion of the row sum of all pixels, can determines this
It is classified as bad line.If the directional information of grid shadow is horizontal direction, bad point figure is scanned along the horizontal direction of bad point figure,
If the pixel value of certain row, which is 1 bad point number, accounts for the certain proportion of the row sum of all pixels, the behavior bad line can be determined.
In the embodiment of the present invention, the bad line position in bad point figure is identical with the bad line position on complex pattern to be repaired, so,
After determining the bad line in bad point figure, you can determine the bad line on complex pattern to be repaired.
S204:Acquisition is located at the bad line both sides, and the gray scale for being separated by with the bad line pixel of predetermined number is averaged
Value.
In the embodiment of the present invention, after the bad line in determining complex pattern to be repaired, calculating is located at the bad line both sides, at the same with this
Bad line is separated by the average gray of the pixel of predetermined number.As shown in figure 5, for there are the signal of the complex pattern to be repaired of grid shadow
Figure, wherein, 1 represents the bad line consistent with grid shadow direction, and 2 represent the pixel for being separated by predetermined number with bad line.Calculate at 2
The average gray of pixel, for being pointed to the reparation of bad line at 1.
In addition, in practical application, can be according to the resolution ratio for the detector for exporting the complex pattern to be repaired, and use low
The relevant parameter of density grid, determines the predetermined number being separated by.Specifically, can also be as shown in figure 5, directly determining what is be separated by
Predetermined number is 1, that is, calculates and be located at bad line both sides, and be separated by the average gray of 1 pixel with bad line.
S205:Using the average gray, the bad line on the complex pattern to be repaired is repaired.
In the embodiment of the present invention, after average gray is obtained, by with the pixel for repairing the bad line position on image
Gray value is arranged to the average gray, completes the reparation to bad line.
As shown in figures 6 a and 6b, Fig. 6 a are by the design sketch of detector of the prior art itself reparation, Ke Yifa
Now bad line treatment effect is poor, and bad line position still suffers from artifact;Fig. 6 b are to pass through bad wire restoration side provided in an embodiment of the present invention
Artifact is not present in the design sketch of method reparation, bad line position, and repairing effect is preferable.
As it can be seen that in bad point restorative procedure provided by the invention, there are grid movie queen on complex pattern to be repaired is determined, according to grid shadow
Directional information, determine bad line consistent with grid shadow direction on complex pattern to be repaired, and using positioned at bad line both sides and with bad line phase
Bad line is repaired every the gray average of the pixel of predetermined number.Due to being separated by the pixel of predetermined number with bad line by grid
Shadow influence is smaller, so, it is separated by the gray average of the pixel of predetermined number to bad line using positioned at bad line both sides and with bad line
Repaired, there can be preferable repairing effect to the bad line on low-density grid image.
Further, since there are grid shadow in complex pattern to be repaired, and the presence of grid shadow also influences picture quality, so, the present invention
Embodiment can also suppress the grid shadow on image to be repaired.
In practical application, it can set and fix according to the frequency curve horizontally and vertically of complex pattern to be repaired
Wave filter grid shadow is suppressed.Specifically, the method for setting fixed filters can be the rule according to the grid used
The information such as lattice and experience, sets V-arrangement frequency filtering curve, and image to be repaired is filtered using it, realizes to grid shadow
Suppress.
Alternatively, it is also possible to the frequency curve horizontally and vertically according to complex pattern to be repaired, it is automatic set and its
The wave filter of adaptation, realizes the suppression to grid shadow.
In addition, no matter whether there is grid shadow on complex pattern to be repaired, if exist in the complex pattern to be repaired intersect with bad line and
Straight line with certain angle, then generally go through bad line position after detector itself is repaired and artifact still occur.For example, tilt
There is image for tilting 45 ° of straight lines pair etc., as shown in fig. 7, to tilt the line of 45 ° of placements to card to card graphic in the line of 45 ° of placements
The schematic diagram of image, there are artifact for the position outlined.
In order to have preferable repairing effect to meeting the bad line on the complex pattern to be repaired of above-mentioned condition, the embodiment of the present invention is also
A kind of bad wire restoration method is provided, with reference to figure 8, for the flow of another bad wire restoration method provided in an embodiment of the present invention
Figure, this method specifically include:
S801:Judge to whether there is grid shadow on complex pattern to be repaired;If it is, performing S802, otherwise, S807 is performed.
S802:If there are grid shadow on the complex pattern to be repaired, the directional information of the grid shadow is obtained.
S803:According to the directional information of the grid shadow, the directional information with the grid shadow on the complex pattern to be repaired is determined
Consistent bad line.
S804:Acquisition is located at the bad line both sides, and the gray scale for being separated by with the bad line pixel of predetermined number is averaged
Value.
S805:Using the average gray, the bad line on the complex pattern to be repaired is repaired.
Above-mentioned S801-S805 is identical with S201-S205, may be referred to understand, details are not described herein.
S806:The grid shadow on the complex pattern to be repaired is suppressed.
In the embodiment of the present invention, grid shadow can be carried out by setting the wave filter of fixation or the wave filter of adaptability
Suppress.
Intersect in addition, usually existing on complex pattern to be repaired with bad line and during the straight line of (such as 30~60 degree) in a certain angle,
After the bad wire restoration of above-mentioned S801-S806, it still is able to substantially observe the presence of artifact on complex pattern to be repaired, institute
With in order to ensure the repairing effect to bad line, the embodiment of the present invention, which can also be given tacit consent to, continues to execute S807-S809, to treat
Image is repaired to continue to repair.
S807:For any bad point on the bad line, using the bad point in the predeterminable area in the center of circle, to calculate remove respectively
The gray value standard of the pixel on other directions outside the direction of the bad line is poor.
In the embodiment of the present invention, S807 can be directly performed when S801 determines that grid shadow is not present on complex pattern to be repaired, with
Just the bad line on image to be repaired is repaired, intersected even if existing on complex pattern to be repaired with bad line and in a certain angle straight
Line, can also ensure the repairing effect to bad line.
In addition, after S806 is performed, it can also give tacit consent to and continue to execute S807, so as to passing through above-mentioned S801-S806
Bad wire restoration after, the complex pattern to be repaired for still suffering from artifact continues to repair, and ensures the repairing effect to bad line.In S807,
For any bad point on bad line, following operation is performed both by:
First, predeterminable area is determined as the center of circle and to let R be radius in advance using the bad point.Secondly, in the predeterminable area,
The gray value standard for calculating the pixel on other directions in addition to bad line direction respectively is poor.As shown in figure 9, for there are Vertical Square
To bad line image schematic diagram, wherein, 0 position represents any bad point on bad line, and 1,2,3 position is represented except bad respectively
The pixel on other directions outside line direction.Specifically, the gray value standard of the pixel on the position of calculating 1 is poor, similarly,
The gray value standard for calculating the pixel on 2,3 positions is poor.
S808:Calculate the average gray of each pixel on the minimum corresponding direction of gray value standard difference.
Since gray value standard difference is smaller, illustrate that the gray value of each pixel in this direction differs smaller, in order to keep away
Exempt from bad line position and artifact occur, the average gray of each pixel on the minimum corresponding direction of gray value standard difference is used
Repaired in bad point.
In the case of one kind, if the minimum direction of gray value standard difference has at least two, can calculate this at least two
The average gray of each pixel on direction, for being repaired to bad point.
S809:Using the average gray, the bad point is repaired.
In the embodiment of the present invention, the ash of each pixel on the corresponding direction of gray value standard difference for be calculated minimum
After spending average value, the gray value of the bad point is arranged to the average gray, completes the reparation to the bad point.
In another implementation, the present invention can also exist on complex pattern to be repaired is determined to intersect with bad line and with one
After the straight line at clamp angle, continue to repair the bad line on the complex pattern to be repaired.
Wherein it is determined that with the presence or absence of intersecting with bad line and the method for the straight line with certain angle can be with complex pattern to be repaired
Including for any bad point on bad line in the complex pattern to be repaired, using the bad point in the predeterminable area in the center of circle, to calculate remove respectively
The gray value standard of the pixel on other directions outside the direction of the bad line is poor, and then judges whether to be less than default second
The gray value standard of threshold value is poor, if it is present illustrate to exist on the corresponding direction of gray value standard difference intersect with bad line and
Straight line with certain angle.
In addition, determine with the presence or absence of the method for bad line intersecting and there is the straight line of certain angle may be used also on complex pattern to be repaired
Think, full figure scanning is carried out to the complex pattern to be repaired, intersects and has with bad line to determine to whether there is on the complex pattern to be repaired
The straight line of certain angle.
Exist on complex pattern to be repaired is determined and intersect with bad line and after the straight line with certain angle, calculating is less than the second threshold
The average gray of each pixel on the corresponding direction of gray value standard difference of value;Finally, using the average gray, to this
Bad point is repaired.
In practical application, it can perform when S801 determines that grid shadow is not present on complex pattern to be repaired and determine complex pattern to be repaired
Upper presence intersects with bad line and has the step of straight line of certain angle, to be repaired to the bad line on image to be repaired,
Intersect even if existing on complex pattern to be repaired with bad line and straight line in a certain angle, can also ensure the repairing effect to bad line.
It can also give tacit consent to continue to execute to exist on definite complex pattern to be repaired after S806 is performed and intersect and have with bad line
There is the step of straight line of certain angle, so as to after the bad wire restoration of above-mentioned S801-S806, still suffering from the to be repaired of artifact
Image continues to repair, and ensures the repairing effect to bad line.
After each bad point in bad line completes reparation, it is not in artifact to obtain the bad line on image, such as Figure 10 institutes
Show, for the design sketch repaired using bad wire restoration method provided in an embodiment of the present invention to bad line, the puppet wherein on image
Shadow disappears, and repairing effect is obvious.
In addition, the embodiment of the present invention additionally provides a kind of bad wire restoration device, with reference to figure 11, provided for the embodiment of the present invention
A kind of bad wire restoration device structure diagram, described device includes:
First determining module 1101, for determining that there are grid shadow on complex pattern to be repaired;
First acquisition module 1102, for obtaining the directional information of the grid shadow;
Second determining module 1103, for the directional information according to the grid shadow, determine on the complex pattern to be repaired with institute
State the consistent bad line of the directional information of grid shadow;
Second acquisition module 1104, is located at the bad line both sides for obtaining, and is separated by predetermined number with the bad line
The average gray of pixel;
First repair module 1105, for utilizing the average gray, to the bad line on the complex pattern to be repaired
Repaired.
Wherein, first determining module can include:
Acquisition submodule, for obtaining the frequency of the frequency curve of horizontal direction and vertical direction on complex pattern to be repaired respectively
Curve;
Calculating sub module, for calculating the frequency curve of the horizontal direction and the frequency curve of the vertical direction, point
Dispersion degree not in the range of the grid shadow frequency distribution obtained in advance;
Judging submodule, for according to the dispersion degree, judging to whether there is grid shadow on the complex pattern to be repaired;
Determination sub-module, for when the dispersion degree is more than predetermined threshold value, determining exist on the complex pattern to be repaired
Grid shadow.
Wherein, first acquisition module, is specifically used for:
The direction of frequency curve according to corresponding to the dispersion degree more than predetermined threshold value, obtains the side of the grid shadow
To information.
Optionally, described device further includes:
Suppression module, for utilizing the average gray, repaiies the bad line on the complex pattern to be repaired
After multiple, the grid shadow on the complex pattern to be repaired is suppressed.
In order to further improve the repairing effect to bad line, described device can also include:
First computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, described in the utilization
Average gray, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line,
Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively
Gray value standard is poor;
Second computing module, the gray scale for calculating each pixel on the minimum corresponding direction of gray value standard difference are put down
Average;
Second repair module, for utilizing the average gray, repairs the bad point.
In another implementation, described device can also include:
3rd computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, described in the utilization
Average gray, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line,
Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively
Gray value standard is poor;
4th computing module, the gray value standard difference for the pixel in either direction are less than default second threshold
When, calculate the average gray of each pixel on the corresponding direction of gray value standard difference;
3rd repair module, for utilizing the average gray, repairs the bad point.
In bad point prosthetic device provided in an embodiment of the present invention, there are grid movie queen on complex pattern to be repaired is determined, according to grid
The directional information of shadow, determines bad line consistent with grid shadow direction on complex pattern to be repaired, and using positioned at bad line both sides and with bad line
The gray average for being separated by the pixel of predetermined number repairs bad line.Due to be separated by with bad line the pixel of predetermined number by
The influence of grid shadow is smaller, so, it is separated by the gray average of the pixel of predetermined number to bad using positioned at bad line both sides and with bad line
Line is repaired, and can have preferable repairing effect to the bad line on low-density grid image.
In addition, the embodiment of the present invention is put down using the gray scale of pixel on the minimum direction of gray value standard difference in predeterminable area
Average, repairs the bad line on card graphic on the line for such as tilting 45 ° of placements so that bad line obtains preferable repairing effect.
Correspondingly, the embodiment of the present invention also provides a kind of bad wire restoration equipment, and it is shown in Figure 12, it can include:
Processor 1201, memory 1202, input unit 1203 and output device 1204.The quantity of processor 1201 can be with
One or more, in Figure 12 by taking a processor as an example.In some embodiments of the invention, processor 1201, memory
1202nd, input unit 1203 and output device 1204 can be connected by bus or other means, wherein, to pass through bus in Figure 12
Exemplified by connection.
Memory 1202 can be used for storage software program and module, and processor 1201 is stored in memory by operation
1202 software program and module, so as to perform various function application and the data processing of bad wire restoration equipment.Memory
1202 can mainly include storing program area and storage data field, wherein, storing program area can storage program area, at least one work(
Application program needed for energy etc..In addition, memory 1202 can include high-speed random access memory, can also include non-volatile
Property memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.Input unit
1203 can be used for receiving the numeral inputted or character information, and produce and the user setting of bad wire restoration equipment and function control
It is formed with the signal input of pass.
Specifically in the present embodiment, processor 1201 can apply journey according to following instruction by one or more
The corresponding executable file of process of sequence is loaded into memory 1202, and is stored in memory by processor 1201 to run
Application program in 1202, so as to fulfill various functions:
Determine that there are grid shadow on complex pattern to be repaired;
Obtain the directional information of the grid shadow;
According to the directional information of the grid shadow, determine consistent with the directional information of the grid shadow on the complex pattern to be repaired
Bad line;
Acquisition is located at the bad line both sides, and is separated by with the bad line average gray of the pixel of predetermined number;
Using the average gray, the bad line on the complex pattern to be repaired is repaired.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation may or may not be physically separate, can be as the component that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed in multiple network unit.Can be according to reality
Need to select some or all of module therein to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not
In the case of making the creative labor, you can to understand and implement.
It should be noted that herein, 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 this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there are other identical element in process, method, article or equipment including the key element.
A kind of the bad wire restoration method, apparatus and equipment provided above the embodiment of the present application is described in detail,
Specific case used herein is set forth the principle and embodiment of the application, and the explanation of above example is simply used
Understand the present processes and its core concept in help;Meanwhile for those of ordinary skill in the art, according to the application's
Thought, there will be changes in specific embodiments and applications, in conclusion this specification content should not be construed as
Limitation to the application.
Claims (13)
- A kind of 1. bad wire restoration method, it is characterised in that the described method includes:Determine that there are grid shadow on complex pattern to be repaired;Obtain the directional information of the grid shadow;According to the directional information of the grid shadow, determine consistent with the directional information of the grid shadow bad on the complex pattern to be repaired Line;Acquisition is located at the bad line both sides, and is separated by with the bad line average gray of the pixel of predetermined number;Using the average gray, the bad line on the complex pattern to be repaired is repaired.
- 2. bad wire restoration method according to claim 1, it is characterised in that described to determine that there are grid on complex pattern to be repaired Shadow, including:The frequency curve of horizontal direction and the frequency curve of vertical direction on complex pattern to be repaired are obtained respectively;The frequency curve of the horizontal direction and the frequency curve of the vertical direction are calculated, respectively in the grid shadow frequency obtained in advance Dispersion degree in rate distribution;According to the dispersion degree, judge to whether there is grid shadow on the complex pattern to be repaired;If the dispersion degree is more than predetermined threshold value, it is determined that there are grid shadow on the complex pattern to be repaired.
- 3. bad wire restoration method according to claim 2, it is characterised in that the directional information for obtaining the grid shadow, Including:The direction of frequency curve according to corresponding to the dispersion degree more than preset first threshold value, obtains the side of the grid shadow To information.
- 4. bad wire restoration method according to any one of claim 1-3, it is characterised in that the method further includes:It is described to utilize the average gray, after being repaired to the bad line on the complex pattern to be repaired, treated to described The grid shadow repaired on image is suppressed.
- 5. bad wire restoration method according to claim 1, it is characterised in that the method further includes:Grid shadow is not present on the complex pattern to be repaired is determined, alternatively, the average gray is utilized described, to described to be repaired After the bad line on complex pattern is repaired,For any bad point on the bad line, following steps are performed both by:Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively The gray value standard of point is poor;Calculate the average gray of each pixel on the minimum corresponding direction of gray value standard difference;Using the average gray, the bad point is repaired.
- 6. bad wire restoration method according to claim 1, it is characterised in that the method further includes:Grid shadow is not present on the complex pattern to be repaired is determined, alternatively, the average gray is utilized described, to described to be repaired After the bad line on complex pattern is repaired, for any bad point on the bad line, following steps are performed both by:Using the bad point in the predeterminable area in the center of circle, to calculate the pixel on other directions in addition to the direction of the bad line respectively The gray value standard of point is poor;If the gray value standard difference of the pixel in either direction is less than default second threshold, the gray value standard is calculated The average gray of each pixel on the corresponding direction of difference;Using the average gray, the bad point is repaired.
- 7. a kind of bad wire restoration device, it is characterised in that described device includes:First determining module, for determining that there are grid shadow on complex pattern to be repaired;First acquisition module, for obtaining the directional information of the grid shadow;Second determining module, for the directional information according to the grid shadow, determine on the complex pattern to be repaired with the grid shadow The consistent bad line of directional information;Second acquisition module, is located at the bad line both sides for obtaining, and is separated by the pixel of predetermined number with the bad line Average gray;First repair module, for utilizing the average gray, repairs the bad line on the complex pattern to be repaired.
- 8. bad wire restoration device according to claim 7, it is characterised in that first determining module includes:Acquisition submodule, it is bent for obtaining the frequency of the frequency curve of horizontal direction and vertical direction on complex pattern to be repaired respectively Line;Calculating sub module, for calculating the frequency curve of the horizontal direction and the frequency curve of the vertical direction, exists respectively The dispersion degree in the range of grid shadow frequency distribution obtained in advance;Judging submodule, for according to the dispersion degree, judging to whether there is grid shadow on the complex pattern to be repaired;Determination sub-module, for when the dispersion degree is more than predetermined threshold value, determining that there are grid shadow on the complex pattern to be repaired.
- 9. bad wire restoration device according to claim 8, it is characterised in that first acquisition module, is specifically used for:The direction of frequency curve according to corresponding to the dispersion degree more than predetermined threshold value, obtains the direction letter of the grid shadow Breath.
- 10. according to claim 7-9 any one of them bad wire restoration devices, it is characterised in that described device further includes:Suppression module, for utilizing the average gray, carries out repairing it to the bad line on the complex pattern to be repaired Afterwards, the grid shadow on the complex pattern to be repaired is suppressed.
- 11. bad wire restoration device according to claim 7, it is characterised in that described device further includes:First computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, utilizing the gray scale described Average value, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line, with institute State in the predeterminable area that bad point is the center of circle, calculate the gray scale of the pixel on other directions in addition to the direction of the bad line respectively It is worth standard deviation;Second computing module, the gray scale for calculating each pixel on the minimum corresponding direction of gray value standard difference are averaged Value;Second repair module, for utilizing the average gray, repairs the bad point.
- 12. bad wire restoration device according to claim 7, it is characterised in that described device further includes:3rd computing module, for grid shadow to be not present on the complex pattern to be repaired is determined, alternatively, utilizing the gray scale described Average value, after being repaired to the bad line on the complex pattern to be repaired, for any bad point on the bad line, with institute State in the predeterminable area that bad point is the center of circle, calculate the gray scale of the pixel on other directions in addition to the direction of the bad line respectively It is worth standard deviation;4th computing module, for when the gray value standard difference of the pixel in either direction is less than default second threshold, counting Calculate the average gray of each pixel on the corresponding direction of the gray value standard difference;3rd repair module, for utilizing the average gray, repairs the bad point.
- 13. a kind of bad wire restoration equipment, it is characterised in that the equipment includes:Memory and processor,The memory is used for store program codes, and said program code is transferred to the processor;The processor is used for the instruction in said program code, performs following steps:Determine exist on complex pattern to be repaired Grid shadow;Obtain the directional information of the grid shadow;According to the directional information of the grid shadow, determine on the complex pattern to be repaired with it is described The consistent bad line of the directional information of grid shadow;Acquisition is located at the bad line both sides, and is separated by the pixel of predetermined number with the bad line The average gray of point;Using the average gray, the bad line on the complex pattern to be repaired is repaired.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711009556.7A CN108009994B (en) | 2017-10-25 | 2017-10-25 | Bad line repairing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711009556.7A CN108009994B (en) | 2017-10-25 | 2017-10-25 | Bad line repairing method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108009994A true CN108009994A (en) | 2018-05-08 |
CN108009994B CN108009994B (en) | 2020-08-04 |
Family
ID=62051035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711009556.7A Active CN108009994B (en) | 2017-10-25 | 2017-10-25 | Bad line repairing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009994B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111275639A (en) * | 2020-01-17 | 2020-06-12 | 深圳市安健科技股份有限公司 | Method and terminal for correcting line pixel defect of X-ray image |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0962888A2 (en) * | 1998-06-02 | 1999-12-08 | General Electric Company | Method for removing grid line artifacts in x-ray images |
CN101795349A (en) * | 2010-03-24 | 2010-08-04 | 深圳迈瑞生物医疗电子股份有限公司 | Method for processing faulty wire of x-ray flat panel detector image and device thereof |
US20140241496A1 (en) * | 2013-02-22 | 2014-08-28 | Naoki Hasegawa | Radiographic apparatus and method for the same |
EP1505540B1 (en) * | 2003-08-07 | 2014-11-19 | Canon Kabushiki Kaisha | Removal of gridlines in radiographic image |
CN104915930A (en) * | 2014-03-14 | 2015-09-16 | 深圳迈瑞生物医疗电子股份有限公司 | Method and device for carrying out gray scale compensation and noise suppression on image |
CN105574816A (en) * | 2014-10-13 | 2016-05-11 | Ge医疗系统环球技术有限公司 | Method and device for eliminating grid shadows of X-ray images as well as X-ray machine updating package |
CN106651814A (en) * | 2017-01-12 | 2017-05-10 | 沈阳东软医疗系统有限公司 | Image processing method and apparatus |
CN107145832A (en) * | 2017-04-11 | 2017-09-08 | 江苏邦融微电子有限公司 | A kind of scaling method and its self-repair method of capacitance type fingerprint acquisition system bad line |
-
2017
- 2017-10-25 CN CN201711009556.7A patent/CN108009994B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0962888A2 (en) * | 1998-06-02 | 1999-12-08 | General Electric Company | Method for removing grid line artifacts in x-ray images |
EP1505540B1 (en) * | 2003-08-07 | 2014-11-19 | Canon Kabushiki Kaisha | Removal of gridlines in radiographic image |
CN101795349A (en) * | 2010-03-24 | 2010-08-04 | 深圳迈瑞生物医疗电子股份有限公司 | Method for processing faulty wire of x-ray flat panel detector image and device thereof |
US20140241496A1 (en) * | 2013-02-22 | 2014-08-28 | Naoki Hasegawa | Radiographic apparatus and method for the same |
CN104915930A (en) * | 2014-03-14 | 2015-09-16 | 深圳迈瑞生物医疗电子股份有限公司 | Method and device for carrying out gray scale compensation and noise suppression on image |
CN105574816A (en) * | 2014-10-13 | 2016-05-11 | Ge医疗系统环球技术有限公司 | Method and device for eliminating grid shadows of X-ray images as well as X-ray machine updating package |
CN106651814A (en) * | 2017-01-12 | 2017-05-10 | 沈阳东软医疗系统有限公司 | Image processing method and apparatus |
CN107145832A (en) * | 2017-04-11 | 2017-09-08 | 江苏邦融微电子有限公司 | A kind of scaling method and its self-repair method of capacitance type fingerprint acquisition system bad line |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111275639A (en) * | 2020-01-17 | 2020-06-12 | 深圳市安健科技股份有限公司 | Method and terminal for correcting line pixel defect of X-ray image |
CN111275639B (en) * | 2020-01-17 | 2023-06-20 | 深圳市安健科技股份有限公司 | Line pixel defect correction method and terminal for X-ray image |
Also Published As
Publication number | Publication date |
---|---|
CN108009994B (en) | 2020-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260713B (en) | A kind of method for detecting lane lines and device | |
CN107622501B (en) | Boundary detection method for medical image | |
CN111957040A (en) | Method and device for detecting shielding position, processor and electronic device | |
CN110400271A (en) | A kind of striped asymmetric correction method, device, electronic equipment and storage medium | |
KR20190007481A (en) | Failure analysis apparatus and method | |
CN108009994A (en) | A kind of bad wire restoration method, apparatus and equipment | |
CN108419015A (en) | A kind of focus method and device | |
CN108830923A (en) | Image rendering method, device and storage medium | |
CN111539238A (en) | Two-dimensional code image restoration method and device, computer equipment and storage medium | |
CN105243662B (en) | The determination method and terminal device of a kind of terminal position | |
CN113034447A (en) | Edge defect detection method and device | |
CN115317916A (en) | Method and device for detecting overlapped objects in virtual scene and electronic equipment | |
CN110889072A (en) | Screenshot method and device for removing webpage advertisements, computer equipment and storage medium | |
CN112581374A (en) | Speckle sub-pixel center extraction method, system, device and medium | |
CN106303153B (en) | A kind of image processing method and device | |
US10404931B2 (en) | Method for detecting defective pixels | |
CN106569643A (en) | Method and apparatus for positioning infrared touch screen pointing stick | |
CN102567954B (en) | Method and device for suppressing noise of flat panel detector | |
CN113117334B (en) | Method and related device for determining visible area of target point | |
CN111340811B (en) | Resolution method, device and computer storage medium for violation synthetic graph | |
CN105551006B (en) | A kind of restorative procedure and system of depth image missing pixel | |
CN108038744A (en) | Sports lottery ticket is prevented buying method and device on behalf | |
CN111340715B (en) | Grid pattern weakening method and device of image and electronic equipment | |
CN107346543A (en) | Processing method and processing device, terminal and the storage medium of vessel centerline | |
CN115984390A (en) | Image processing method, related device, storage medium and program product |
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 | ||
CB02 | Change of applicant information |
Address after: 110179 No. 177-1 Innovation Road, Hunnan District, Shenyang City, Liaoning Province Applicant after: DongSoft Medical System Co., Ltd. Address before: 110179 No. 177-1 Innovation Road, Hunnan District, Shenyang City, Liaoning Province Applicant before: Dongruan Medical Systems Co., Ltd., Shenyang |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |