CN109191406A - Image processing method, device and equipment - Google Patents

Image processing method, device and equipment Download PDF

Info

Publication number
CN109191406A
CN109191406A CN201811095966.2A CN201811095966A CN109191406A CN 109191406 A CN109191406 A CN 109191406A CN 201811095966 A CN201811095966 A CN 201811095966A CN 109191406 A CN109191406 A CN 109191406A
Authority
CN
China
Prior art keywords
pixel
image
processed
original
weight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811095966.2A
Other languages
Chinese (zh)
Other versions
CN109191406B (en
Inventor
孙岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201811095966.2A priority Critical patent/CN109191406B/en
Publication of CN109191406A publication Critical patent/CN109191406A/en
Application granted granted Critical
Publication of CN109191406B publication Critical patent/CN109191406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/10Image enhancement or restoration using non-spatial domain filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

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

Abstract

This application discloses a kind of image processing method, device and equipment.The described method includes: obtaining image to be processed;For each pixel of the image to be processed, the adjustment weight of the pixel is calculated according to the original luminance value of the pixel in the pixel and its preset range and the pixel original chrominance;The image to be processed is filtered according to the original chrominance of each pixel, obtains the high fdrequency component and low frequency component of original chrominance in image to be processed;The high fdrequency component of the pixel is adjusted according to the adjustment weight of each pixel;Treated image is obtained according to the low frequency component, high fdrequency component adjusted and original luminance value.The case where this method can be adjusted the high fdrequency component of image chroma component, avoid image fault after adjusting appearance.

Description

Image processing method, device and equipment
Technical field
This application involves technical field of image processing, in particular to a kind of image processing method, device and equipment.
Background technique
Pseudo- coloured silk phenomenon is mainly derived from two aspects, in a first aspect, being the color difference phenomenon in optical imagery;Different waves There are difference for refractive index of the long light component in lens, cause imaging picture to there is local colour cast in high frequency region, marginal zone and show As, such as the purple boundary phenomenon at light and shade edge, color spot phenomenon etc..
Second aspect is the color aliasing (color generated during discrete sampling from color image sensor Aliasing) phenomenon;This color aliasing phenomenon generally occurs within high frequency detail region or strong edge region in the picture, leads to The methods of conventional image interpolation, recovery is crossed to be difficult to completely eliminate.That is, pseudo- coloured silk phenomenon is primarily present in cromogram Local high-frequency region as in, these high-frequency regions include the regions such as strong edge, strong texture.
Pseudo- coloured silk phenomenon is a kind of problem generally existing in color image imaging, and this phenomenon can be to the vision of color image Effect causes more serious negative effect.
It is in the prior art to go pseudo- color method, it is that the chromatic value of image the processing such as be directly integrally filtered to, decayed, this In kind processing method, since the area Fei Weicai also has very, maximum probability is accidentally handled, this processing method will lead to color image Color distortion.
Summary of the invention
In order to overcome above-mentioned deficiency in the prior art, the application's is designed to provide a kind of image processing method, institute The method of stating includes:
Obtain image to be processed;
For each pixel of the image to be processed, according to the original of the pixel in the pixel and its preset range The original chrominance of beginning brightness value and the pixel calculates the adjustment weight of the pixel;
The image to be processed is filtered according to the original chrominance of each pixel, obtains image to be processed The high fdrequency component and low frequency component of middle original chrominance;
The high fdrequency component of the image to be processed is adjusted according to the adjustment weight of each pixel;
Treated image is obtained according to the low frequency component, high fdrequency component adjusted and original luminance value.
Optionally, each pixel for the image to be processed, according in the pixel and its preset range The original luminance value of pixel and the original chrominance of pixel the step of calculating the adjustment weight of the pixel include:
Calculate the luminance difference of original luminance value between other pixels in the pixel and the pixel preset range Parameter;
The saturation degree of the pixel is calculated according to the original chrominance of the pixel;
According to the adjustment weight of pixel described in the luminance difference parameter and the saturation computation.
Optionally, the adjustment weight of the pixel according to the luminance difference parameter and the saturation computation The step of include:
The first weight of the pixel is calculated according to the luminance difference parameter of the pixel;
According to the second weight of the saturation computation pixel of the pixel;
The adjustment weight is obtained according to first weight and second weight.
Optionally, the luminance difference parameter according to the pixel calculates the first weight of the pixel Step includes,
According to the luminance difference parameter and preset first luminance difference threshold value and preset second luminance difference threshold The relationship of value calculates first weight.
Optionally, the step of the second weight of pixel described in the saturation computation according to the pixel is wrapped It includes,
Second weight is calculated according to the relationship between the saturation degree and preset saturation degree threshold value.
Optionally, original luminance value between the calculating pixel and other interior pixels of the pixel preset range Luminance difference parameter the step of include:
Calculate the original luminance value of each pixel in the original luminance value and the pixel preset range of the pixel Mean square error or average absolute value error;
The mean square error or the average absolute value error are set by the luminance difference parameter.
Optionally, before the acquisition image to be processed the step of, the method also includes,
The image to be processed is transformed into luminance component and the mutually independent color space of chromatic component.
Optionally, the method also includes treated that image is transformed into preset color space by described, obtains target Image.
The another object of the application is to provide a kind of image processing apparatus, and described image processing unit includes obtaining mould Block, weight calculation module, color processing module, adjustment module and image generation module:
The acquisition module is for obtaining image to be processed;
The weight calculation module is used for each pixel for the image to be processed, according to the pixel and its in advance If the original luminance value of the pixel in range and the original chrominance of the pixel calculate the adjustment weight of the pixel;
The color processing module obtains to be processed for being filtered according to original chrominance to the image to be processed The high fdrequency component and low frequency component of original chrominance in image;
The adjustment module is used to adjust the high frequency of the image to be processed according to the adjustment weight of each pixel Component;
Described image generation module according to the low frequency component, high fdrequency component adjusted and original luminance value for obtaining Treated image.
The another object of the application is to provide a kind of image processing equipment, described image processing equipment include processor and Memory, the memory are stored with machine executable instruction and promote institute when the processor calls or executes described instruction State image processing equipment:
Obtain image to be processed;
For each pixel of the image to be processed, according to the original of the pixel in the pixel and its preset range The original chrominance of beginning brightness value and the pixel calculates the adjustment weight of the pixel;
The image to be processed is filtered according to the original chrominance of each pixel, obtains image to be processed The high fdrequency component and low frequency component of middle original chrominance;
The high fdrequency component of the image to be processed is adjusted according to the adjustment weight of each pixel;
Treated image is obtained according to the low frequency component, high fdrequency component adjusted and original luminance value.
In terms of existing technologies, the application has the advantages that
In the embodiment of the present application, each pixel is calculated by the original chrominance and original luminance value of image to be processed Adjustment weight, calculate the low frequency component and high fdrequency component of image to be processed, according to adjustment weight high fdrequency component is adjusted It is whole, to obtain treated image according to low frequency component, high fdrequency component adjusted and original luminance value.The present embodiment In, high fdrequency component is extracted from the original chrominance of image to be processed, when handling image, only high fdrequency component is carried out Adjustment, can be avoided color distortion.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural schematic diagram of image processing equipment provided by the embodiments of the present application;
Fig. 2 is the flow diagram of image processing method provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of calculation flow one of adjustment weight provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of calculation flow two of adjustment weight provided by the embodiments of the present application;
Fig. 5 is the structural block diagram of image processing apparatus provided by the embodiments of the present application.
Icon: 110- memory;120- processor;130- image capture device;210- obtains module;220- weight calculation Module;230- color processing module;240- adjusts module;250- image generation module.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, it is not understood to indicate or imply Relative importance.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.
Fig. 1 is please referred to, Fig. 1 is that the embodiment of the present application provides the structural schematic diagram of image processing equipment.Described image processing Equipment may include processor 120 and memory 110, and the processor 120 and the memory 110 are electrically connected to realize number According to interaction, for example, can be realized by one or more communication bus or signal wire between processor 120 and memory 110 It is electrically connected.
In the image processing equipment of the present embodiment, the memory 110 be may be, but not limited to, random access memory Device (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), may be programmed read-only storage Device (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, for storing executable instruction, the processor 120 is connecing memory 110 After receiving executable instruction, the instruction is executed.
In the present embodiment, the memory 110 or the processor 120 can also be with external image capture devices 130 are electrically connected, for carrying out data interaction between described image acquisition equipment 130.
Referring to figure 2., Fig. 2 is the stream that can be applied to a kind of image processing method of image processing equipment shown in FIG. 1 Cheng Tu below will be described in detail each step that the method includes.A kind of image processing method, the method packet It includes:
Step S110 obtains image to be processed.
In the present embodiment, it needs to adjust image to be processed according to the chromatic component and luminance component of image to be processed It is whole, it is therefore desirable to which that it is bright not to be that image to be processed that chromatic component and the mutually independent color space of luminance component indicate is transformed into Spending component and the mutually independent color space of chromatic component indicates.
Such as when described image is RGB image, i.e., RGB image is transformed into mutually only with luminance component and chromatic component The vertical color space indicated, obtains the image to be processed.For example, image to be transformed into the side in the space YIQ from rgb color space Method are as follows:
Wherein Y represents luminance component, and I, Q respectively represent I chromatic component, Q chromatic component.R, G, B respectively represent it is red, green, The chromatic component of blue three colors.
The image to be processed can be passed through into brightness and the separable color space of coloration, i.e. brightness through the above steps The color space that component, chromatic component indicate independently of each other indicates.Brightness and the separable color space of coloration can be, but not It is limited to the color space of brightness and chrominance separation that YUV, YIQ, Lab, HSL or HSV etc. have standard to define.Brightness and coloration can The color space that isolated color space is also possible to customized luminance component, chromatic component indicates independently of each other.This implementation In example, luminance component and chromatic component are not that the color space indicated independently of each other may be, but not limited to, rgb space.
Step S120, for each pixel of the image to be processed, according in the pixel and its preset range The original chrominance of the original luminance value of pixel and the pixel calculates the adjustment weight of the pixel.
In the present embodiment, the original luminance value and original chrominance of each pixel of available image to be processed, Then according to the original luminance value of other pixels in the original luminance value of the pixel, the pixel preset range and should The original chrominance of pixel calculates the adjustment weight of the pixel.The original luminance value of each pixel, that is, image to be processed exists When being indicated using chromatic component and the mutually independent color space of luminance component, the luminance component of the pixel.Each pixel Original chrominance, that is, image to be processed when being indicated using chromatic component and the mutually independent color space of luminance component, the picture The chromatic component of vegetarian refreshments.
Referring to figure 3., specifically, step S120 may include step S121 to step S123:
Step S121 calculates original luminance value between the pixel and other interior pixels of the pixel preset range Luminance difference parameter.
Optionally, original luminance value between the calculating pixel and other interior pixels of the pixel preset range Luminance difference parameter the step of include:
Calculate the original luminance value of each pixel in the original luminance value and the pixel preset range of the pixel Mean square error or average absolute value error.
The mean square error or the average absolute value error are set by the luminance difference parameter.
It, can will be in the original luminance value of the pixel and the pixel preset range that is, in the present embodiment The mean square error of the original luminance value of each pixel is as luminance difference parameter.
The original luminance value of the pixel in the pixel preset range original luminance value of each pixel it is equal The calculation formula of square error are as follows:
Wherein, (x, y) represents pixel position, and D (x, y) represents the luminance difference parameter of (x, y) point, Ω (x, y) A certain size the neighborhood centered on pixel (x, y) is represented, i.e. pixel (x, y) preset range, N is represented in the neighborhood Number of pixels,Represent average value of the Y-component in neighborhood Ω.
In the present embodiment, the difference of original luminance value between the pixel and other interior pixels of the pixel preset range The luminance component and other pixels in the pixel preset range that the calculation method of different parameter is also possible to the pixel The average absolute value error of luminance component.
The original luminance value of the pixel in the pixel preset range original luminance value of each pixel it is equal The calculation formula of square error:
In the present embodiment, the luminance difference parameter can also original luminance value, original colorimetric according to the pixel The original luminance value of other pixels, original chrominance are calculated in value and the pixel preset range.
Illustrate the method based on mean square error and based on average absolute value error below in conjunction with specific example:
Original luminance value between other pixels in the pixel and the pixel preset range based on mean square error Luminance difference parameter calculation method are as follows: calculate the pixel luminance component and the pixel preset range in other pictures The mean square error A1 of the luminance component of vegetarian refreshments.The chromatic component and other pictures in the pixel preset range for calculating the pixel The mean square error A2 of the chromatic component of vegetarian refreshments.The sum of A1 and A2 are set by luminance difference parameter.
It is original between other pixels in the pixel and the pixel preset range based on average absolute value error The calculation method of the luminance difference parameter of brightness value are as follows: calculate in luminance component and pixel preset range of the pixel The average absolute value error B1 of the luminance component of other pixels.The chromatic component and the pixel for calculating the pixel preset model The average absolute value error B2 of the chromatic component of other pixels in enclosing.The sum of B1 and B2 are set by luminance difference parameter.
Step S122 calculates the saturation degree of the pixel according to the original chrominance of the pixel.
In the present embodiment, the saturation degree can calculate according to the following formula:
Step S123, according to the adjustment weight of pixel described in the luminance difference parameter and the saturation computation.
Referring to figure 4., specifically, the step S123 of the present embodiment may include step S1231 to step S1233:
Step S1231 calculates the first weight of the pixel according to the luminance difference parameter of the pixel.
Optionally, the luminance difference parameter according to the pixel calculates the first weight of the pixel Step includes,
According to the luminance difference parameter and preset first luminance difference threshold value and preset second luminance difference threshold The relationship of value calculates first weight.
Wherein, W1Indicate the first weight, DTh1Indicate the first luminance difference threshold value, DTh2Indicate the second luminance difference threshold value, DTh1With DTh2Meet DTh2>DTh1,1, MINIMUM WEIGHT weight values W1 minMeet 0≤W1 min≤ 1.Threshold parameter the first luminance difference threshold value DTh1, the second luminance difference threshold value DTh2With MINIMUM WEIGHT weight values W1 minValue need to according to real image effect determine.Schemed with 8bit As for, W is taken respectively1 min=0.2, DTh1=15, DTh2=100.
Step S1232, according to the second weight of the saturation computation pixel of the pixel.
Optionally, the step of the second weight of pixel described in the saturation computation according to the pixel is wrapped It includes,
Second weight is calculated according to the relationship between the saturation degree and preset saturation degree threshold value.
Wherein, W2Indicate the second weight, MINIMUM WEIGHT weight values W2 minMeet 0≤W2 min≤ 1.Threshold parameter SThWith MINIMUM WEIGHT Weight values W2 minValue rule of thumb formula is calculated, by taking 8bit image as an example, take W respectively2 min=0.5, STh=80.
Step S1233 obtains the adjustment weight according to first weight and second weight.
Optionally, first weight and second multiplied by weight are obtained into the adjustment weight in the present embodiment, That is using the result of first weight and second multiplied by weight as adjustment weight.At this point, the calculating of adjustment weight Formula are as follows:
Wc=W1·W2
Wherein, weight W is adjustedcMeet 0≤Wc≤ 1.
Optionally, in the present embodiment, the sum of first weight and second weight is averaging, the adjustment is obtained Weight, that is to say, that using the average value of the sum of first weight and second weight as adjustment weight.
Step S130 is filtered the image to be processed according to the original chrominance of each pixel, obtains The high fdrequency component and low frequency component of the original chrominance of image to be processed.
This step is used to carry out layered shaping to image, to obtain the low frequency component and high fdrequency component of image to be processed.
In the present embodiment, to image carry out layered shaping when, can to image to be processed carry out low-pass filtering, obtain to Then the low frequency component for handling image removes high fdrequency component in the original chrominance components of image to be processed, obtain high fdrequency component. High-pass filtering can also be carried out to image to be processed, the high fdrequency component of image to be processed be obtained, then in the original of image to be processed High fdrequency component is removed in beginning chromatic component, obtains low frequency component.Wherein, each pixel corresponding chromatic value in high fdrequency component For the high frequency color angle value of the pixel, each pixel corresponding chromatic value in low frequency component is the low frequency coloration of the pixel Value.
In the present embodiment, the filter that step S130 is used to be filtered can be such as mean filter, Gauss low frequency filter The low-pass filters such as wave, wavelet filtering median filtering, bilateral filtering, Steerable filter, are also possible to the high-pass filterings such as Laplce Device.Below by taking mean filter as an example, image layered implementation process is introduced:
Firstly, defining the mean filter template mask of a 5*5 size:
Secondly, being filtered in conjunction with above-mentioned 5*5 template and the chromatic component of image to be processed to image, to include I color It spends for the space YIQ of component, Q chromatic component, in the space YIQ, chromatic component includes I chromatic component, Q chromatic component.Pass through The result of the low frequency chromatic value of each pixel can be calculated in following formula:
Wherein, I, Q respectively indicate the size of I chromatic component in the original chrominance of pixel, the size of Q chromatic component,Represent convolution algorithm.Ibase、QbaseThe low frequency of the low frequency component of I chromatic component, Q chromatic component that are obtained after respectively filtering Component.
After obtaining low frequency component, the pixel is calculated according to the original chrominance components of each pixel in image to be processed High fdrequency component, in other words, as removing low frequency component in the original chrominance components of image to be processed.
Specifically, when low frequency component in the original chrominance components for removing image to be processed, each picture can be directed to The high frequency color angle value of the calculating of the vegetarian refreshments pixel, the calculation formula of the high frequency color angle value of a pixel are as follows:
Idet=I-Ibase
Qdet=Q-Qbase
IdetFor removal low frequency component after the pixel I chromatic component size, the size of Q chromatic component, that is, It says, IdetI chromatic component for the original chrominance of the pixel subtracts IbaseValue afterwards, QdetIt is the original chrominance of pixel Subtract the Q of the pixelbaseValue afterwards.In this way, can obtain by each pixel after removal low frequency component in image to be processed The high fdrequency component that corresponding chromatic component (i.e. high frequency color angle value, including I chromatic component, Q chromatic component) is constituted.
Step S140 adjusts the high fdrequency component of the image to be processed according to the adjustment weight of each pixel.
The present embodiment can obtain high fdrequency component adjusted.
Step S150, according to the acquisition of the low frequency component, high fdrequency component adjusted and original luminance value, treated Image.
In this step, according to the adjustment weight W of step S120 acquisitioncAdjust chromatic component high fdrequency component, and according to Low frequency component, high fdrequency component adjusted and the original luminance value of processing image are rebuild to obtain the image after Pseudo-color technology. By taking the space YIQ used in the present embodiment as an example: before and after the processing, luminance component image remains unchanged, the low frequency point of chromatic component Amount also remains unchanged, and chromatic component high fdrequency component presses adjustment weight WcDo local attenuation processing.
By taking a pixel as an example, the original luminance value Y of pixel is remained unchanged, the corresponding chromatic component of low frequency component Ibase、QbaseAlso it remains unchanged, the corresponding chromatic component I of high fdrequency componentdet、QdetBy adjustment weight WcLocal attenuation processing is done, most Treated image Y'I'Q' eventually are as follows:
Y'=Y
I'=Ibase+Idet*Wc
Q'=Qbase+Qdet*Wc
Wherein, Y' is the luminance component of pixel in treated image, the I coloration point in I' is that treated image Amount, Q' are the Q chromatic component in treated image.
Optionally, the method also includes treated that image is transformed into preset color space by described, obtains target Image.
This step is in the actual process, and by treated, image is transformed into the color space of needs is indicated. For example, can image be transformed into the color space indicated with rgb space, specific method for transformation by treated are as follows:
The another object of the application is to provide a kind of image processing apparatus, referring to figure 5., described image processing unit packet It includes and obtains module 210, weight calculation module 220, color processing module 230, adjustment module 240 and image generation module 250, Described image processing unit include one can be stored in the memory 110 or be solidificated in the form of software or firmware it is described Software function module in the operating system (operating system, OS) of image processing equipment.
The acquisition module 210 is for obtaining image to be processed.
Acquisition module 210 in the present embodiment is for executing step S110 shown in Fig. 2, about the acquisition module 210 Specific descriptions can refer to the description to the step S110.
The weight calculation module 220 is used for each pixel for the image to be processed, according to the pixel and The original luminance value of pixel in its preset range and the original chrominance of the pixel calculate the adjustment power of the pixel Weight.
Weight calculation module 220 in the present embodiment is for executing step S120 shown in Fig. 2, about the acquisition module 210 specific descriptions can refer to the description to the step S120.
The color processing module 230 for being filtered according to original chrominance to the image to be processed, obtain to Handle the high fdrequency component and low frequency component of original chrominance in image;
Color processing module 230 in the present embodiment is for executing step S130 shown in Fig. 2, about the acquisition module 210 specific descriptions can refer to the description to the step S130.
The adjustment module 240 is used to adjust the height of the image to be processed according to the adjustment weight of each pixel Frequency component.
Adjustment module 240 in the present embodiment is for executing step S140 shown in Fig. 2, about the acquisition module 210 Specific descriptions can refer to the description to the step S140.
Described image generation module 250 is for the low frequency component according to image to be processed, high fdrequency component adjusted And original luminance value obtains treated image.
Image generation module 250 in the present embodiment is for executing step S150 shown in Fig. 2, about the acquisition module 210 specific descriptions can refer to the description to the step S150.
In conclusion the embodiment of the present application sheet is calculated often by the original chrominance and original luminance value of image to be processed The adjustment weight of a pixel calculates the low frequency component and high fdrequency component of image to be processed, according to adjustment weight to be processed The high fdrequency component of image is adjusted, thus according to low frequency component, high fdrequency component adjusted and original brightness before adjustment Value obtains treated image.In the present embodiment, high fdrequency component is extracted, when handling image, only to high fdrequency component into Row adjustment, can image avoid color distortion.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown According to device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the application And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
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.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of image processing method, which is characterized in that the described method includes:
Obtain image to be processed;
For each pixel of the image to be processed, according to the original bright of the pixel in the pixel and its preset range Angle value and the pixel original chrominance calculate the adjustment weight of the pixel;
The image to be processed is filtered according to the original chrominance of each pixel, obtains image Central Plains to be processed The high fdrequency component and low frequency component of beginning chromatic value;
The high fdrequency component of the image to be processed is adjusted according to the adjustment weight of each pixel;
Treated image is obtained according to the low frequency component, high fdrequency component adjusted and original luminance value.
2. image processing method according to claim 1, which is characterized in that described for each of described image to be processed Pixel calculates the pixel according to the original luminance value of the pixel in the pixel and its preset range and original chrominance Point adjustment weight the step of include:
Calculate the luminance difference parameter of original luminance value between other pixels in the pixel and the pixel preset range;
The saturation degree of the pixel is calculated according to the original chrominance of the pixel;
According to the adjustment weight of pixel described in the luminance difference parameter and the saturation computation.
3. image processing method according to claim 2, which is characterized in that it is described according to the luminance difference parameter and The step of adjustment weight of pixel described in the saturation computation includes:
The first weight of the pixel is calculated according to the luminance difference parameter of the pixel;
According to the second weight of the saturation computation pixel of the pixel;
The adjustment weight is obtained according to first weight and second weight.
4. image processing method according to claim 3, which is characterized in that the brightness according to the pixel Difference parameter calculates the step of the first weight of the pixel and includes,
According to the luminance difference parameter and preset first luminance difference threshold value and preset second luminance difference threshold value Relationship calculates first weight.
5. image processing method according to claim 3, which is characterized in that the saturation according to the pixel Degree calculates the step of the second weight of the pixel and includes,
Second weight is calculated according to the relationship between the saturation degree and preset saturation degree threshold value.
6. according to the described in any item image processing methods of claim 2-5, which is characterized in that it is described calculate the pixel with Include: the step of the luminance difference parameter of original luminance value between other pixels in the pixel preset range
Calculate the original luminance value of the pixel in the pixel preset range original luminance value of each pixel it is equal Square error or average absolute value error;
The mean square error or the average absolute value error are set by the luminance difference parameter.
7. image processing method according to claim 1, which is characterized in that the acquisition image to be processed the step of Before, the method also includes,
The image to be processed is transformed into luminance component and the mutually independent color space of chromatic component.
8. image processing method according to claim 5, which is characterized in that the method also includes after the processing Image be transformed into preset color space, obtain target image.
9. a kind of image processing apparatus, which is characterized in that described image processing unit include obtain module, weight calculation module, Color processing module, adjustment module and image generation module:
The acquisition module is for obtaining image to be processed;
The weight calculation module is used for each pixel for the image to be processed, according to the pixel and its default model The original luminance value of pixel and the original chrominance of the pixel in enclosing calculate the adjustment weight of the pixel;
The color processing module obtains image to be processed for being filtered according to original chrominance to the image to be processed The high fdrequency component and low frequency component of middle original chrominance;
The adjustment module is used to adjust the high fdrequency component to be processed according to the adjustment weight of each pixel;
Described image generation module is used at according to the low frequency component, high fdrequency component adjusted and original luminance value acquisition Image after reason.
10. a kind of image processing equipment, which is characterized in that described image processing equipment includes processor and memory, described to deposit Reservoir is stored with the executable instruction of machine, when the processor calls or executes described instruction, described image processing is promoted to set It is standby:
Obtain image to be processed;
For each pixel of the image to be processed, according to the original bright of the pixel in the pixel and its preset range Angle value and the original chrominance of the pixel calculate the adjustment weight of the pixel;
The image to be processed is filtered according to the original chrominance of each pixel, obtains image Central Plains to be processed The high fdrequency component and low frequency component of beginning chromatic value;
The high fdrequency component of the image to be processed is adjusted according to the adjustment weight of each pixel;
Treated image is obtained according to the low frequency component, high fdrequency component adjusted and original luminance value.
CN201811095966.2A 2018-09-19 2018-09-19 Image processing method, device and equipment Active CN109191406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811095966.2A CN109191406B (en) 2018-09-19 2018-09-19 Image processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811095966.2A CN109191406B (en) 2018-09-19 2018-09-19 Image processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN109191406A true CN109191406A (en) 2019-01-11
CN109191406B CN109191406B (en) 2021-03-09

Family

ID=64908703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811095966.2A Active CN109191406B (en) 2018-09-19 2018-09-19 Image processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN109191406B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829864A (en) * 2019-01-30 2019-05-31 北京达佳互联信息技术有限公司 Image processing method, device, equipment and storage medium
CN110727810A (en) * 2019-10-15 2020-01-24 联想(北京)有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN111080559A (en) * 2019-12-30 2020-04-28 上海富瀚微电子股份有限公司 Image purple border eliminating device and method
CN111311711A (en) * 2020-02-16 2020-06-19 拉扎斯网络科技(上海)有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111654686A (en) * 2020-06-09 2020-09-11 广州市百果园信息技术有限公司 Method for removing color noise of image, method for removing color noise of video and related device
CN114205572A (en) * 2021-11-04 2022-03-18 西安诺瓦星云科技股份有限公司 Image format conversion method and device and video processing equipment
CN114494036A (en) * 2021-12-28 2022-05-13 东莞市金锐显数码科技有限公司 Image saturation adjusting method and device, computer equipment and storage medium
CN114723613A (en) * 2021-01-05 2022-07-08 北京小米移动软件有限公司 Image processing method and device, electronic device and storage medium
WO2023082859A1 (en) * 2021-11-09 2023-05-19 深圳Tcl新技术有限公司 Image processing method, image processor, electronic device, and storage medium
CN116665615A (en) * 2023-07-27 2023-08-29 深圳市安立信电子有限公司 Medical display control method, system, equipment and storage medium thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412448A (en) * 2016-02-03 2017-02-15 周彩章 Single-frame image based wide dynamic range processing method and system
CN106682611A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Image processing method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412448A (en) * 2016-02-03 2017-02-15 周彩章 Single-frame image based wide dynamic range processing method and system
CN106682611A (en) * 2016-12-26 2017-05-17 浙江宇视科技有限公司 Image processing method and apparatus

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829864A (en) * 2019-01-30 2019-05-31 北京达佳互联信息技术有限公司 Image processing method, device, equipment and storage medium
CN109829864B (en) * 2019-01-30 2021-05-18 北京达佳互联信息技术有限公司 Image processing method, device, equipment and storage medium
CN110727810A (en) * 2019-10-15 2020-01-24 联想(北京)有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN111080559A (en) * 2019-12-30 2020-04-28 上海富瀚微电子股份有限公司 Image purple border eliminating device and method
CN111080559B (en) * 2019-12-30 2023-08-25 上海富瀚微电子股份有限公司 Image purple fringing eliminating device and method
CN111311711A (en) * 2020-02-16 2020-06-19 拉扎斯网络科技(上海)有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111311711B (en) * 2020-02-16 2023-03-31 拉扎斯网络科技(上海)有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111654686A (en) * 2020-06-09 2020-09-11 广州市百果园信息技术有限公司 Method for removing color noise of image, method for removing color noise of video and related device
CN111654686B (en) * 2020-06-09 2022-05-31 广州市百果园信息技术有限公司 Method for removing color noise of image, method for removing color noise of video and related device
CN114723613A (en) * 2021-01-05 2022-07-08 北京小米移动软件有限公司 Image processing method and device, electronic device and storage medium
CN114205572A (en) * 2021-11-04 2022-03-18 西安诺瓦星云科技股份有限公司 Image format conversion method and device and video processing equipment
WO2023082859A1 (en) * 2021-11-09 2023-05-19 深圳Tcl新技术有限公司 Image processing method, image processor, electronic device, and storage medium
CN114494036A (en) * 2021-12-28 2022-05-13 东莞市金锐显数码科技有限公司 Image saturation adjusting method and device, computer equipment and storage medium
CN116665615A (en) * 2023-07-27 2023-08-29 深圳市安立信电子有限公司 Medical display control method, system, equipment and storage medium thereof
CN116665615B (en) * 2023-07-27 2023-11-14 深圳市安立信电子有限公司 Medical display control method, system, equipment and storage medium thereof

Also Published As

Publication number Publication date
CN109191406B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN109191406A (en) Image processing method, device and equipment
CN112767289B (en) Image fusion method, device, medium and electronic equipment
RU2658874C1 (en) Fog remover device and method of forming images
CN106355563B (en) A kind of image defogging method and device
CN111784603B (en) RAW domain image denoising method, computer device and computer readable storage medium
US20160080626A1 (en) Computational Camera Using Fusion of Image Sensors
CN111784605B (en) Image noise reduction method based on region guidance, computer device and computer readable storage medium
CN110246087B (en) System and method for removing image chroma noise by referring to multi-resolution of multiple channels
CN111429370B (en) Underground coal mine image enhancement method, system and computer storage medium
CN110730336B (en) Demosaicing method and device
CN110517206B (en) Method and device for eliminating color moire
CN112887693B (en) Image purple border elimination method, equipment and storage medium
EP3452980A1 (en) Methods and apparatus for automated noise and texture optimization of digital image sensors
CN111915535A (en) Image denoising method and device
US8471933B2 (en) Image processing apparatus, image processing method and computer program
WO2019015553A1 (en) Image color correction method, device, storage medium and computer equipment
CN110619612B (en) Method and device for eliminating image noise
CN105427265B (en) A kind of method for enhancing color image contrast ratio and system
CN105979233B (en) Demosaicing methods, image processor and imaging sensor
CN110728647A (en) Underwater image enhancement method and device, storage medium and terminal
CN111429381B (en) Image edge enhancement method and device, storage medium and computer equipment
KR101373471B1 (en) Apparatus and method for compensation of stereo image
CN110298812B (en) Image fusion processing method and device
CN107786857B (en) A kind of image restoring method and device
CN112734679A (en) Fusion defogging method for medical operation video images

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