CN105631821A - Interface chromatic aberration diffusion method and device - Google Patents

Interface chromatic aberration diffusion method and device Download PDF

Info

Publication number
CN105631821A
CN105631821A CN201510994138.2A CN201510994138A CN105631821A CN 105631821 A CN105631821 A CN 105631821A CN 201510994138 A CN201510994138 A CN 201510994138A CN 105631821 A CN105631821 A CN 105631821A
Authority
CN
China
Prior art keywords
image
color
piecemeal
chromatic aberration
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.)
Pending
Application number
CN201510994138.2A
Other languages
Chinese (zh)
Inventor
谭慧斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201510994138.2A priority Critical patent/CN105631821A/en
Publication of CN105631821A publication Critical patent/CN105631821A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The application discloses an interface chromatic aberration diffusion method. A target image under diffusion processing is cut into multiple image blocks, and the chromatic aberration attributes of each image block are acquired; the image blocks for comparison are selected by using at least two modes, the deviation value of the chromatic aberration attributes of the selected image blocks is respectively calculated as for each selection mode, no processing is performed if the deviation value is in a preset target section, and interpolation processing is performed on the color value of the image blocks if the deviation value is not in the preset target section so that the deviation value of the chromatic aberration attributes is enabled to be in the target section; a processed image is obtained as for each selection mode; and weighted normalized summation is performed on all the processed images so that a final processing result is obtained. The application also discloses an interface chromatic aberration diffusion device.

Description

A kind of method of interfacial color difference softening and device
Technical field
The application relates to technical field of image processing, particularly relates to method and the device of a kind of interfacial color difference softening.
Background technology
The object of interfacial color difference soften handled is the acute variation reduced between different interface edge value so that the transition nature at different interface in image.
In prior art, by color distortion value or certain order, Iamge Segmentation being become multiple region, the color distortion based on different zones carries out the softening that interpolation carries out color. The defect of this kind of softening method is: Local handover local often can re-treatment or drain process, the color of this part there will be exception, compares the difficult consistent smooth excessiveness effect of reaching.
Summary of the invention
This application provides a kind of method of interfacial color difference softening and device, it is possible to ensure to reach smooth excessiveness effect.
The method of a kind of interfacial color difference softening that the embodiment of the present application provides, it would be desirable to the target image carrying out soften handled cuts into multiple image piecemeal, obtains the chromatic aberration properties of each image piecemeal;
Adopt the image piecemeal that at least two kinds of way selection compare, for often kind of selection mode, calculate the deviation value of the chromatic aberration properties of selected image piecemeal respectively, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; For often kind of selection mode obtain respectively one process after image;
Image after all process is carried out weighting normalization method summation, obtains final result.
Can selection of land, described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
Can selection of land, described reference color be middle degree ash, or by adjustment color balance parameters be set to specific color style.
Can selection of land, the obtain manner of described reference drawing is: by adding up each field color distribution of target image, be averaged acquisition reference drawing to the color in each region.
Can selection of land, select the mode of image piecemeal compared to comprise: random to select two adjacent image piecemeals as the image piecemeal compared.
Can selection of land, select the mode of image piecemeal compared to comprise: selecting x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared, the distance between described two image piecemeals is less than the value set in advance.
Can selection of land, select the mode of image piecemeal compared to comprise: random to select two image piecemeals as the image piecemeal compared, the distance between described two image piecemeals is less than the value set in advance.
The embodiment of the present application additionally provides the device of a kind of interfacial color difference softening, and this device comprises: segmentation module, at least two adjusting modules, and summation module;
Segmentation module, for by needing the target image carrying out soften handled to cut into multiple image piecemeal, obtaining the chromatic aberration properties of each image piecemeal;
Each adjusting module described adopts the image piecemeal that a kind of way selection compares, and calculate the selected deviation value of chromatic aberration properties of image piecemeal, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; Obtain the image after a process;
Summation module, carries out weighting normalization method summation for the image after being processed by all adjusting modules, obtains final result.
Can selection of land, described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
Can selection of land, described reference color be middle degree ash, or by adjustment color balance parameters be set to specific color style.
Can selection of land, the obtain manner of described reference drawing is: by adding up each field color distribution of target image, be averaged acquisition reference drawing to the color in each region.
Can selection of land, an adjusting module in described adjusting module selects adjacent two image piecemeal as the image piecemeal compared at random.
Can selection of land, adjusting module in described adjusting module selects x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared, and the distance between described two image piecemeals is less than the value set in advance.
Can selection of land, an adjusting module in described adjusting module selects two image piecemeals as the image piecemeal compared at random, and the distance between described two image piecemeals is less than the value set in advance.
As can be seen from the above technical solutions, adopt the image piecemeal that at least two kinds of way selection compare, calculate the deviation value of the chromatic aberration properties of selected image piecemeal respectively, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; Weighting normalization method summation is carried out for image after the process that often kind of selection mode obtains. The program can effectively reduce the local re-treatment of Local handover or drain process for the impact of softening effect, ensures to reach smooth excessiveness effect.
Accompanying drawing explanation
The method flow schematic diagram of a kind of interfacial color difference softening that Fig. 1 provides for the embodiment of the present application.
Embodiment
For making the know-why of technical scheme, feature and technique effect clearly, below in conjunction with specific embodiment, technical scheme is described in detail.
The method of a kind of interfacial color difference softening that the embodiment of the present application provides, its flow process as shown in Figure 1, comprises the steps:
Step 101: reference color or reference drawing are set, the region cutting standard of setting image, and the target interval of the deviation value of chromatic aberration properties. Reference color is a certain color specified, and reference drawing is a two-dimensional color figure;
Step 102: cut standard according to region, it would be desirable to the target image carrying out soften handled cuts into multiple image piecemeal, obtains the chromatic aberration properties of each image piecemeal.
Described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
Step 103: adopt the image piecemeal that at least two kinds of way selection compare, for often kind of selection mode, calculate the deviation value of the chromatic aberration properties of selected image piecemeal respectively, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; For often kind of selection mode obtain respectively one process after image.
Step 104: the image after all process is carried out weighting normalization method summation, obtains final result.
Below in conjunction with embody rule example, the application's scheme is described in detail.
Reference color and reference drawing can be specified arbitrarily, but if get some particular color or image can reach preferably implementation result. Some embodiments according to the application, reference color generally can be set to middle degree ash; Other embodiments according to the application, the implementation of reference color is set to specific color style by adjustment color balance parameters, such as specifies image partially in vain or partially yellow; Or pending target image is collected the color distribution of each position, the color being averaged is as with reference to look.
Some embodiments according to the application, the generating mode of reference drawing is: by adding up each field color distribution of target image, the color in each region be averaged. The region cutting of image can artificially be selected interval or cut by standard of fixing length and width rectangle. Can artificially specify between the correction zone of aberration or preset a desired value by carrying out the color distribution of target image analyzing.
In step 102, target image is cut into multiple image piecemeal, obtain and chromatic aberration properties between reference color or reference drawing simultaneously. Simultaneously, it is also possible to add other attributes, such as transparency etc. Taking each image piecemeal position coordinate as key value, setting up index tree, its format sample is as follows:
map(pos1(posx,posy),atb1(color1,...))��
In step 103, it is exactly that two adjacent image piecemeals of random selection are as the image piecemeal compared that index tree carries out point-to-point process, it is possible in the following way:
In index tree, the location parameter (pos) of each element is divided into X-coordinate and Y-coordinate, to identical X-coordinate, the chromatic aberration properties of 2 elements of adjacent Y-coordinate, or identical Y-coordinate, the chromatic aberration properties value calculation deviation value of 2 elements of adjacent X-coordinate, if deviation value is not in default target interval, then carry out the color value of interpolation processing amendment image piecemeal so that deviation value controls in default target interval.
Such as, two element: E1 and E2 adjacent on index tree, the rgb value of its color is respectively: (a1, b1, c1) and (a2, b2, C2)
For R passage,
K1 is the R passage color value of reference color,
D1=abs (k1-a1) computing reference look is to the chromatic aberration properties of E1;
D2=abs (a2-k1) computing reference look is to the chromatic aberration properties of E2;
G1=abs (a1-a2) obtains the difference of 2 colors;
F1=(((D1/G1) ^2+ (D2/G1) ^2)))/2 acquisition chromatic aberration properties deviation value;
By the mean value of deviation value that calculates with upper type between 0 to 1, according to different demands, it is interval that this is artificially set, naturally it is also possible to reference to normal distribution, design algorithm.
Such as the deviation value of the chromatic aberration properties calculated is 0.3, but the interval arranged is at 0.4-0.6, the most simply process is that interpolation obtains a1 ' between a1 and a2, replaces a1 with a1 ' so that the deviation value of the chromatic aberration properties calculated meets between 0.4-0.6.
It is exactly select x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared that index tree carries out line process, and the distance between described two image piecemeals is less than the value set in advance.
Index tree carries out face process can in the following way: random selects two image piecemeals as the image piecemeal compared, and the distance between described two image piecemeals is less than the value set in advance.
During line process and face process, the mode of calculation deviation value and mode and the aforementioned manner of adjustment color value are similar.
In step 104, the bias contribution dealt by point-line-surface is analyzed, and is adjusted the proportion of 3 kinds of process by adjustment weighted value, allows bias contribution more meet desired result. Such as, it is (R1, G1, B1) that the color of element E1 is received in some process, and after line process, color is (R2, G2, B2), after the process of face, color is (R3, G3, B3), 3 weights are 0.6,0.1,0.3, and the R value of that final color value is R1*0.3+R2*0.1+R3*0.3. Other two Color Channels are also similar.
The embodiment of the present application additionally provides the device of a kind of interfacial color difference softening, and this device comprises: segmentation module, at least two adjusting modules, and summation module;
Segmentation module, for by needing the target image carrying out soften handled to cut into multiple image piecemeal, obtaining the chromatic aberration properties of each image piecemeal;
Each adjusting module described adopts the image piecemeal that a kind of way selection compares, and calculate the selected deviation value of chromatic aberration properties of image piecemeal, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; Obtain the image after a process;
Summation module, carries out weighting normalization method summation for the image after being processed by all adjusting modules, obtains final result.
Can selection of land, described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
Can selection of land, described reference color be middle degree ash, or by adjustment color balance parameters be set to specific color style.
Can selection of land, the obtain manner of described reference drawing is: by adding up each field color distribution of target image, be averaged acquisition reference drawing to the color in each region.
Can selection of land, an adjusting module in described adjusting module selects adjacent two image piecemeal as the image piecemeal compared at random.
Can selection of land, adjusting module in described adjusting module selects x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared, and the distance between described two image piecemeals is less than the value set in advance.
Can selection of land, an adjusting module in described adjusting module selects two image piecemeals as the image piecemeal compared at random, and the distance between described two image piecemeals is less than the value set in advance.
It is to be understood that, although this specification sheets describes according to each enforcement mode, but not each enforcement mode only comprises an independent technical scheme, this kind of narrating mode of specification sheets is only for clarity sake, those skilled in the art should by specification sheets integrally, technical scheme in each enforcement mode through appropriately combined, can also form other enforcement modes that it will be appreciated by those skilled in the art that.
Through the above description of the embodiments, the technician of this area can be well understood to the present invention and can realize by the mode that software adds required hardware platform, can certainly all be implemented by hardware, but in a lot of situation, the former is better enforcement mode. Based on such understanding, what background technology was contributed by the technical scheme of the present invention can embody with the form of software product in whole or in part, this computer software product can be stored in storage media, such as ROM/RAM, magnetic disc, CD etc., comprise some instructions with so that a computer equipment (can be Personal Computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The foregoing is only the better embodiment of the application; not in order to limit the protection domain of the application; within all spirit in technical scheme and principle, any amendment of making, equivalent replacements, improvement etc., all should be included within the scope that the application protects.

Claims (14)

1. the method for an interfacial color difference softening, it is characterised in that,
By needing the target image carrying out soften handled to cut into multiple image piecemeal, obtain the chromatic aberration properties of each image piecemeal;
Adopt the image piecemeal that at least two kinds of way selection compare, for often kind of selection mode, calculate the deviation value of the chromatic aberration properties of selected image piecemeal respectively, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; For often kind of selection mode obtain respectively one process after image;
Image after all process is carried out weighting normalization method summation, obtains final result.
2. method according to claim 1, it is characterised in that, described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
3. method according to claim 2, it is characterised in that, described reference color is middle degree ash, or is set to specific color style by adjustment color balance parameters.
4. method according to claim 2, it is characterised in that, the obtain manner of described reference drawing is: by adding up each field color distribution of target image, be averaged acquisition reference drawing to the color in each region.
5. method according to claim 1, it is characterised in that, select the mode of the image piecemeal compared to comprise: to select two adjacent image piecemeals as the image piecemeal compared at random.
6. method according to claim 1, it is characterized in that, the mode of image piecemeal compared is selected to comprise: selecting x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared, the distance between described two image piecemeals is less than the value set in advance.
7. method according to claim 1, it is characterised in that, select the mode of the image piecemeal compared to comprise: random selection two image piecemeals are as the image piecemeal compared, and the distance between described two image piecemeals is less than the value set in advance.
8. the device of an interfacial color difference softening, it is characterised in that, this device comprises: segmentation module, at least two adjusting modules, and summation module;
Segmentation module, for by needing the target image carrying out soften handled to cut into multiple image piecemeal, obtaining the chromatic aberration properties of each image piecemeal;
Each adjusting module described adopts the image piecemeal that a kind of way selection compares, and calculate the selected deviation value of chromatic aberration properties of image piecemeal, if this deviation value is in default target interval, then do not deal with, if deviation value is not in default target interval, then the color value of described image piecemeal is carried out interpolation processing so that the deviation value of chromatic aberration properties is in target interval; Obtain the image after a process;
Summation module, carries out weighting normalization method summation for the image after being processed by all adjusting modules, obtains final result.
9. device according to claim 8, it is characterised in that, described chromatic aberration properties is the color value of image piecemeal pixel and the difference of reference color, or the difference of the color value of the image piecemeal pixel of same coordinate in target image and reference drawing.
10. device according to claim 9, it is characterised in that, described reference color is middle degree ash, or is set to specific color style by adjustment color balance parameters.
11. devices according to claim 9, it is characterised in that, the obtain manner of described reference drawing is: by adding up each field color distribution of target image, be averaged acquisition reference drawing to the color in each region.
12. devices according to claim 8, it is characterised in that, an adjusting module in described adjusting module selects adjacent two image piecemeal as the image piecemeal compared at random.
13. devices according to claim 8, it is characterized in that, adjusting module in described adjusting module selects x coordinate or identical two the image piecemeals of y-coordinate as the image piecemeal compared, and the distance between described two image piecemeals is less than the value set in advance.
14. devices according to claim 8, it is characterised in that, an adjusting module in described adjusting module selects two image piecemeals as the image piecemeal compared at random, and the distance between described two image piecemeals is less than the value set in advance.
CN201510994138.2A 2015-12-25 2015-12-25 Interface chromatic aberration diffusion method and device Pending CN105631821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510994138.2A CN105631821A (en) 2015-12-25 2015-12-25 Interface chromatic aberration diffusion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510994138.2A CN105631821A (en) 2015-12-25 2015-12-25 Interface chromatic aberration diffusion method and device

Publications (1)

Publication Number Publication Date
CN105631821A true CN105631821A (en) 2016-06-01

Family

ID=56046709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510994138.2A Pending CN105631821A (en) 2015-12-25 2015-12-25 Interface chromatic aberration diffusion method and device

Country Status (1)

Country Link
CN (1) CN105631821A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259996A (en) * 2018-02-26 2018-07-06 郑州航空工业管理学院 A kind of video data handling procedure and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156982A (en) * 2011-03-18 2011-08-17 北京中星微电子有限公司 Analytical method and device of noisy degree of image
CN103942543A (en) * 2014-04-29 2014-07-23 Tcl集团股份有限公司 Image recognition method and device
CN104350735A (en) * 2012-05-28 2015-02-11 富士胶片株式会社 Image-processing device, imaging device and image-processing method, as well as program
CN104966092A (en) * 2015-06-16 2015-10-07 中国联合网络通信集团有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156982A (en) * 2011-03-18 2011-08-17 北京中星微电子有限公司 Analytical method and device of noisy degree of image
CN104350735A (en) * 2012-05-28 2015-02-11 富士胶片株式会社 Image-processing device, imaging device and image-processing method, as well as program
CN103942543A (en) * 2014-04-29 2014-07-23 Tcl集团股份有限公司 Image recognition method and device
CN104966092A (en) * 2015-06-16 2015-10-07 中国联合网络通信集团有限公司 Image processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259996A (en) * 2018-02-26 2018-07-06 郑州航空工业管理学院 A kind of video data handling procedure and device

Similar Documents

Publication Publication Date Title
US9483835B2 (en) Depth value restoration method and system
US8774503B2 (en) Method for color feature extraction
TWI427555B (en) Image enhancement methods and image enhancement apparatuses utilizing the same
JP6052902B2 (en) Methods for processing highlight and saturation areas in digital images
CN109658330B (en) Color development adjusting method and device
CN108564541B (en) Image processing method and device
CN104050004B (en) interface icon color setting method, device and terminal
SE542050C2 (en) Method for merging superpixels
CN113301409B (en) Video synthesis method and device, electronic equipment and readable storage medium
CN109408562A (en) A kind of grouping recommended method and its device based on client characteristics
Kamiyama et al. HSI color space with same gamut of RGB color space
KR20160069453A (en) Image proccessing apparatus and image proccessing method
CN105631821A (en) Interface chromatic aberration diffusion method and device
CN115272180A (en) Method for acquiring production parameters of printed circuit board, optical detection equipment, electronic equipment and storage medium
CN106067933A (en) Image processing apparatus and image processing method
CN113168698B (en) Small batch learning device, working program and working method thereof
CN112434547B (en) User identity auditing method and device
CN116861835A (en) Well region planning method for simulated layout design
JP4967045B2 (en) Background discriminating apparatus, method and program
Zou et al. Geodesic-based pavement shadow removal revisited
Xiu et al. Edge extraction based on memristor cell neural network with fractional order template
CN105224938B (en) The modification method of remote sensing images land use classes result
CN114926008A (en) Data quality evaluation method and system
CN111476810B (en) Image edge detection method and device, electronic equipment and storage medium
CN113139975B (en) Road feature-based pavement segmentation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160601

RJ01 Rejection of invention patent application after publication