CN105654520B - Image processing method and electronic equipment - Google Patents

Image processing method and electronic equipment Download PDF

Info

Publication number
CN105654520B
CN105654520B CN201511001398.1A CN201511001398A CN105654520B CN 105654520 B CN105654520 B CN 105654520B CN 201511001398 A CN201511001398 A CN 201511001398A CN 105654520 B CN105654520 B CN 105654520B
Authority
CN
China
Prior art keywords
image
parameter
color
adjusted
color characteristic
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.)
Active
Application number
CN201511001398.1A
Other languages
Chinese (zh)
Other versions
CN105654520A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201511001398.1A priority Critical patent/CN105654520B/en
Publication of CN105654520A publication Critical patent/CN105654520A/en
Application granted granted Critical
Publication of CN105654520B publication Critical patent/CN105654520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • 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/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Abstract

The embodiment of the application provides an image processing method and electronic equipment, wherein the method comprises the following steps: determining at least two images to be synthesized; acquiring a parameter value of a color characteristic parameter of the image; synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image; determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary; and adjusting the image characteristic parameters in the image area to be adjusted based on the target parameter values. The method and the electronic equipment can reduce the operation complexity in the process of synthesizing the images and improve the synthesis effect of the synthesized images.

Description

Image processing method and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image processing method and an electronic device.
Background
With the development of image processing technology, image processing methods are increasing. For example, in daily life, one may need to combine two or more images to obtain a composite image.
When people synthesize two or more images, in order to improve the effect of synthesizing the images, the splicing boundary of two adjacent images in the synthesized images needs to be processed, so that the splicing boundary is in natural transition, and the images on two sides of the splicing boundary are prevented from being too abrupt. However, after two or more images are synthesized into a synthesized image, adjustment is generally performed mainly based on subjective feeling of a user at present, the adjustment process is complex, and poor transition effect of a stitching boundary in the synthesized image is easily caused.
Disclosure of Invention
In view of the above, the present application provides an image processing method and an electronic device to reduce the complexity of operations in the process of synthesizing an image and improve the synthesis effect of the synthesized image.
In order to achieve the above purpose, the present application provides the following technical solutions:
an image processing method comprising:
determining at least two images to be synthesized;
acquiring parameter values of color characteristic parameters of the image;
synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image;
determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary;
and adjusting the image characteristic parameters in the image area to be adjusted based on the target parameter values.
Preferably, the determining a target parameter value of the color feature parameter in an image region to be adjusted in the first image and the second image based on the parameter values of the color feature parameter of the first image and the second image includes:
and determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the color characteristic parameters in the specific areas in the first image and the second image.
Preferably, the specific region in the first image and the second image is a region within a specific range from the boundary line in the first image and the second image.
Preferably, the determining a target parameter value of the color feature parameter in the image area to be adjusted in the first image and the second image based on the color feature parameter in the specific area in the first image and the second image includes:
determining a first parameter value of the color characteristic parameter in the region to be adjusted in the first image at the current moment and a second parameter value of the color characteristic parameter in the region to be adjusted in the second image at the current moment based on the parameter values of the color characteristic parameters of the first image and the second image;
and determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image according to the first parameter value and the second parameter value.
Preferably, the color characteristic parameters include any one or more of:
color temperature or hue.
Preferably, the acquiring of the parameter value of the color characteristic parameter of the image includes:
obtaining a color value of a first color characteristic parameter in the image, wherein the first color characteristic parameter is a parameter for representing the color of the image through a specified number of color channels;
converting the color value of the first color feature parameter to a parameter value of a second color feature parameter of the image, wherein the second color feature parameter is different from the first color feature parameter;
the target parameter value is a second target parameter value of the second color characteristic parameter.
Preferably, the adjusting the image characteristic parameter in the image region to be adjusted based on the target parameter value includes:
converting a second target parameter value of a second color characteristic parameter in the image area to be adjusted into a first target parameter value corresponding to the first color characteristic parameter;
and adjusting the first color characteristic parameter in the image area to be adjusted to be the first target parameter value.
Preferably, the second color characteristic parameter is a color temperature or a hue;
the parameter value of the first color characteristic parameter is a numerical value expressed in an RGB color mode.
In another aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor and a memory connected with the processor;
wherein the processor is configured to determine at least two images to be synthesized; acquiring parameter values of color characteristic parameters of the image; synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image; determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary; adjusting the image characteristic parameters in the image area to be adjusted based on the target parameter values;
the memory is used for storing data required by the processor to run.
Preferably, the processor determines, based on the parameter values of the color characteristic parameters of the first image and the second image, target parameter values of the color characteristic parameters in an image region to be adjusted in the first image and the second image, specifically:
and determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the color characteristic parameters in the specific areas in the first image and the second image.
Preferably, the processor determines, based on the color feature parameters in the specific areas in the first image and the second image, target parameter values of the color feature parameters in the areas of the images to be adjusted in the first image and the second image, specifically:
determining a first parameter value of the color characteristic parameter in the region to be adjusted in the first image at the current moment and a second parameter value of the color characteristic parameter in the region to be adjusted in the second image at the current moment based on the parameter values of the color characteristic parameters of the first image and the second image; and determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image according to the first parameter value and the second parameter value.
Preferably, the processor obtains parameter values of the color characteristic parameters of the image, specifically: obtaining a color value of a first color characteristic parameter in the image, wherein the first color characteristic parameter is a parameter for representing the color of the image through a specified number of color channels; converting the color value of the first color feature parameter to a parameter value of a second color feature parameter of the image, wherein the second color feature parameter is different from the first color feature parameter;
the target parameter value is a second target parameter value of the second color characteristic parameter.
Preferably, the processor adjusts the image characteristic parameter in the image region to be adjusted based on the target parameter value, specifically:
converting a second target parameter value of a second color characteristic parameter in the image area to be adjusted into a first target parameter value corresponding to the first color characteristic parameter; and adjusting the first color characteristic parameter in the image area to be adjusted to be the first target parameter value.
Preferably, the second color characteristic parameter is a color temperature or a hue;
the parameter value of the first color characteristic parameter is a numerical value expressed in an RGB color mode.
According to the technical scheme, the color characteristic parameters of the images to be synthesized are obtained, the image area to be adjusted in the designated range of the boundary line is determined after the first image and the second image in the at least two images are synthesized, and the target parameter value to be adjusted by the color characteristic parameters of the image area to be adjusted is determined according to the parameter values of the color characteristic parameters of the first image and the second image, so that the parameter values of the color characteristic parameters of the image area to be adjusted can be automatically adjusted to the determined target parameter values, the color characteristics of the image area to be adjusted and the color characteristics of other areas in the first image and the second image are more coordinated, the situation that the splicing boundary of the two images is too abrupt is reduced, and the transition effect of the splicing boundary is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
FIG. 1 is a flow chart illustrating an embodiment of an image processing method according to the present application;
FIG. 2 is a schematic flow chart diagram illustrating a further embodiment of an image processing method of the present application;
fig. 3 shows a schematic structural diagram of an embodiment of an electronic device according to the present application.
Detailed Description
The embodiment of the application provides an image processing method and electronic equipment, so that the image synthesis effect is improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, an image processing method of the present application will be described.
Referring to fig. 1, which shows a schematic flowchart of an embodiment of an image processing method according to the present application, the method of the present embodiment may include:
101, at least two images to be combined are determined.
102, acquiring parameter values of color characteristic parameters of the image.
The images to be combined may be two or more, and are not limited herein.
For any one of at least two images to be synthesized, obtaining the parameter value of the color characteristic parameter of the image.
The color characteristic parameter is used to represent color-related characteristic information of the image, for example, the color characteristic parameter may be one or more of parameters such as color temperature or hue of the image. The parameter values of the color feature parameters of an image are actually the parameter values of the color feature parameters at the respective pixel points in the image. For example, the color temperature of an image may be a color temperature value of each pixel of the image.
103, combining a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image.
In image synthesis, two images are generally synthesized, and for the sake of convenience of distinction, the two images currently synthesized are referred to as a first image and a second image, respectively.
The boundary line is understood to be a composite line that is stitched or fused to each other in the two images. The boundary line may be a line or a boundary region covering a certain area.
And 104, determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image.
The image area to be adjusted is an image area within a specified range of a boundary line between the first image and the second image.
The target parameter value may be understood as a target value to which the color characteristic parameter of the image area to be adjusted needs to be adjusted.
According to specific parameter values of the color characteristic parameters of the first image and the second image, the color characteristic parameters of the image area to be adjusted in the area of the designated range of the boundary line are determined to be adjusted to target parameter values, so that the parameter values of the color characteristic parameters of the image area to be adjusted are reasonably determined, and the image area to be adjusted can be naturally transited with the color characteristics of other areas in the first image and the second image.
The target parameter value to which the color characteristic parameter of the image area to be adjusted needs to be adjusted can be understood as a target parameter value to which the color characteristic parameter of each pixel point in the image area to be adjusted needs to be adjusted, wherein the target parameter values of the color characteristic parameters corresponding to each pixel point in the image area to be adjusted can be the same or different.
And 105, adjusting the image characteristic parameters in the image area to be adjusted based on the target parameter value.
And adjusting the target value of the image characteristic parameter in the image area to be adjusted to be the determined target parameter value so that the image characteristic parameter of the area to be adjusted can be matched with the image characteristic parameters of other areas in the first image and the second image.
In the embodiment of the application, color characteristic parameters of images to be synthesized are obtained, after a first image and a second image of the at least two images are synthesized, an image area to be adjusted, which is located in a specified range of a boundary line, is determined, and a target parameter value to be adjusted by the color characteristic parameters of the image area to be adjusted is determined according to parameter values of the color characteristic parameters of the first image and the second image, so that the parameter value of the color characteristic parameter of the image area to be adjusted can be automatically adjusted to the determined target parameter value, the color characteristic of the image area to be adjusted is more coordinated with the color characteristics of other areas in the first image and the second image, the situation that the splicing boundary of the two images is too abrupt is reduced, and the transition effect of the splicing boundary is improved.
It can be understood that, according to the parameter values of the color characteristic parameters of the first image and the second image, there are various ways to determine the target parameter value of the color characteristic parameter of the region to be adjusted, as long as the coordination degree between the region to be adjusted and the adjacent region in the first image and the second image can be improved.
For example, an average value of the parameter values of the color characteristic parameters in the first image and the second image may be obtained, and the average value may be used as the parameter value of the color characteristic parameter of the image area to be adjusted.
For another example, an average value of the parameter values of the color feature parameters in the first image or the second image may be used as the parameter value of the color feature parameter of the image area to be adjusted.
For another example, the parameter value of the color characteristic parameter of each pixel in the image region to be adjusted may be determined according to the parameter values of the color characteristic parameters in the first image and the second image, the average value of the parameter values of the color characteristic parameters of each pixel may be calculated, and the parameter value of the color characteristic parameter of the image region to be adjusted may be adjusted to the average value.
For another example, the vertical distance between each pixel point in the image region to be adjusted and the boundary line may also be determined, and the target parameter value of the color characteristic parameter of each pixel point in the image region to be adjusted is determined by combining the vertical distance and the parameter value of the color characteristic parameter of each pixel point in the first image and the second image at the current time, where when the vertical distances between the pixel point in the image region to be adjusted and the boundary line are different, the target parameter values corresponding to the pixel points may also be different. For example, a corresponding relationship between the vertical distance and the coefficient is preset, a target coefficient is determined according to the vertical distance corresponding to the pixel point of the image area to be adjusted, and the target coefficient is multiplied by the specified average value, so that a target parameter value corresponding to the pixel point can be obtained. The specified average value may be an average value of parameter values of the color feature parameters in the first image and the second image.
Of course, the target parameter value may be determined in other manners, which are not limited herein.
It can be understood that, because the area regions of the first image and the second image are large, if the parameter value of the color feature of the image region to be adjusted is determined according to the parameter values of the color feature parameters of the whole of the first image and the second image, the adjusted image region to be adjusted may have poor transitivity with the first image and the second image.
Optionally, the target parameter values of the color feature parameters in the image areas to be adjusted in the first image and the second image may be determined based on the color feature parameters in the specific areas in the first image and the first image.
The specific area can be set as required, and the specific area in the first image and the second image can be an area in the specific range from the boundary line in the first image and the second image, considering that the transition effect of the spliced image is better when the color characteristic parameters of the image area to be adjusted and the adjacent area are close.
Further, the specific area may be the image area to be adjusted. The image area to be adjusted may be only a part of the image area in the first image, or may be only a part of the image area in the first image, and since the transition effect of the image is related to both of the two images to be stitched, the image area to be adjusted may include: the area to be adjusted in the first image is within the specified range of the boundary line; and the area to be adjusted in the second image is within the specified range of the boundary line.
Correspondingly, a first parameter value of the color characteristic parameter of the region to be adjusted in the first image and a second parameter value of the color characteristic parameter of the region to be adjusted in the second image may be respectively determined according to the parameter values of the color characteristic parameters of the first image and the second image.
Optionally, a first parameter value of the color feature parameter in the region to be adjusted in the first image at the current time and a second parameter value of the color feature parameter in the region to be adjusted in the second image at the current time may be determined first based on the parameter values of the color feature parameters of the first image and the second image. And then, according to the first parameter value and the second parameter value, determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image.
The first target parameter value and the second target parameter value may be the same or different. In order to better reflect the transition effect of the splicing part, the first target parameter values of all the pixel points in the region to be adjusted of the first image may also be different, and correspondingly, the second target parameter values of all the pixel points in the region to be adjusted of the second image may also be different.
The manner of determining the first target parameter value and the second target parameter value may also be various:
for example, the first parameter value and the second parameter value may be averaged, and the average may be used as the first target parameter value and the second target parameter value.
For another example, the product of the first parameter value and the specified coefficient is used as the first target parameter value, and the product of the second parameter value and the specified coefficient is used as the second target parameter value.
For another example, a coefficient corresponding to the distance may be determined according to the distance between each pixel point and the boundary line in the region to be adjusted in the first image, then a parameter value obtained by multiplying the coefficient by the average value of the first parameter value and the second parameter is calculated, and the parameter value is used as a first target parameter value of a pixel point corresponding to the distance; correspondingly, each pixel point in the region to be adjusted in the second image can also determine a second target parameter value according to the distance between the pixel point and the boundary line.
For another example, a target pixel pair of the region to be adjusted in the first image and the region to be adjusted in the second image may also be determined. The target pixel pair comprises a pixel point of a region to be adjusted in the first image and a pixel point of a region to be adjusted in the second image, and the vertical distances from the two pixel points of the target pixel pair to the boundary line are the same. Therefore, the average value of the parameter values of the color characteristic parameters of the two pixel points in the target pixel pair at the current moment can be calculated, and the average value is used as the target parameter value to which the parameter values of the color characteristic parameters of the two pixel points need to be adjusted.
Referring to fig. 2, which shows a schematic flow chart of another embodiment of the image processing method of the present application, the method of the present embodiment may include:
at least two images to be combined are determined 201.
202, obtaining a color value of a first color feature parameter in the image.
Wherein the first color feature parameter is a parameter representing a color of the image by a specified number of color channels. For example, the first color feature parameter may be a parameter representing the color of an image for three color channels, for example, an RGB color mode, i.e., a parameter representing the color change by the color change of three color channels of red (R), green (G), and blue (B).
And 203, converting the color value of the first color characteristic parameter into a parameter value of a second color characteristic parameter of the image.
Wherein the second color characteristic parameter is different from the first color characteristic parameter.
The first color characteristic is easier to extract from the image, and the second color characteristic parameter can more obviously reflect the matching degree between the image colors among different pixel points. For example, the first color characteristic parameter may be an RGB color parameter, and the second color characteristic parameter may be a color temperature or a hue.
It can be understood that different color characteristic parameters have specific corresponding relations, different corresponding relations may be preset, and according to the corresponding relations, the parameter value of the second color characteristic parameter corresponding to the color value of the first color characteristic is determined.
204, combining a first image and a second image of the at least two images, and determining a boundary line between the first image and the second image.
205, determining a second target parameter value of a second color characteristic parameter in the image area to be adjusted in the first image and the second image based on the parameter values of the second color characteristic parameter of the first image and the second image.
The process of determining the second target parameter value of the second color characteristic parameter in the image region to be adjusted may be similar to the process of determining the target parameter value of the color characteristic parameter in the image region to be adjusted in any of the foregoing embodiments, and specific reference may be made to the related description of the foregoing embodiments.
206, converting the second target parameter value of the second color characteristic parameter in the image area to be adjusted into the first target parameter value corresponding to the first color characteristic parameter.
And 207, adjusting the first color characteristic parameter in the image area to be adjusted to the first target parameter value.
If the second color characteristic parameter of the image area to be adjusted is the second target parameter value, the transition effect between the image area to be adjusted and the first image and other image areas except the second image is better, and because the second color characteristic participates in the first color characteristic parameter and has a corresponding relation, the effect presented by the second color characteristic parameter in the image area to be adjusted can be changed by adjusting the first color characteristic parameter, therefore, after the second target parameter value is determined, the first target parameter value of the first color characteristic parameter corresponding to the second target parameter value of the second color characteristic can be determined.
And adjusting the parameter value of the first color characteristic parameter in the image area to be adjusted to be the first target parameter value, so that the image area to be adjusted can be naturally transited with other areas in the spliced image.
It can be understood that, when the second target parameter value of the second color characteristic parameter in the image region to be adjusted is the second target parameter value of the second color characteristic parameter of each pixel point in the image region to be adjusted, the first target parameter value of the first color characteristic parameter of each pixel point in the image region to be adjusted may be determined, and then the parameter value of the first color characteristic parameter of each pixel point in the image region to be adjusted is adjusted to the first target parameter value.
For ease of understanding, the parameter value of the first color characteristic parameter is an RGB color value represented by an RGB color pattern, and the second color characteristic parameter is a color temperature.
The RGB color values of all pixel points in each image in a plurality of images to be spliced can be acquired respectively, and the RGB color values of all the pixel points are converted into the color temperature values of all the pixel points. In this way, for any two spliced first images and second images, the boundary line of the two images and the region to be adjusted within the specified range of the boundary line can be determined, for example, the region to be adjusted may be the boundary line, or may be an image region composed of points whose distance from the boundary line is a specified distance.
In this way, the color temperature value of each pixel point in the to-be-adjusted region at the current moment is determined according to the converted color temperature value of each pixel point, and then the target color temperature value to which each pixel point in the to-be-adjusted image region needs to be adjusted is determined. After the target color temperature value is determined, the target color temperature value is converted into a corresponding target RGB color value, so that the RGB color value of each pixel point in the image area to be adjusted is adjusted to be the target color value, and therefore the color temperature of the border line in the spliced first image and the spliced second image can be in more natural transition.
On the other hand, the embodiment of the application also provides an electronic device to execute the operation corresponding to the image processing method.
Referring to fig. 3, which shows a schematic structural diagram of an embodiment of an electronic device according to the present application, an apparatus of the embodiment may include: a processor 301 and a memory 302 connected to the processor;
wherein, the processor 301 is configured to determine at least two images to be synthesized; acquiring parameter values of color characteristic parameters of the image; synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image; determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary; and adjusting the image characteristic parameters in the image area to be adjusted based on the target parameter values.
The memory 302 is used for storing data required by the processor to operate.
Of course, the electronic device may further include a communication bus connecting the memory and the processor, and may further include a display, a video module, a camera unit, and the like, which are not limited herein.
Optionally, the processor determines, based on the parameter values of the color characteristic parameters of the first image and the second image, target parameter values of the color characteristic parameters in an image region to be adjusted in the first image and the second image, specifically:
and determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the color characteristic parameters in the specific areas in the first image and the second image.
Optionally, the specific area may be an area within a specific range from the boundary line in the first image and the second image.
Further, the processor determines, based on the color feature parameters in the specific areas in the first image and the second image, target parameter values of the color feature parameters in the image areas to be adjusted in the first image and the second image, which may specifically be:
determining a first parameter value of the color characteristic parameter in the region to be adjusted in the first image at the current moment and a second parameter value of the color characteristic parameter in the region to be adjusted in the second image at the current moment based on the parameter values of the color characteristic parameters of the first image and the second image; and determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image according to the first parameter value and the second parameter value.
Optionally, in any one of the above embodiments, the obtaining, by the processor, a parameter value of a color characteristic parameter of the image specifically includes: obtaining a color value of a first color characteristic parameter in the image, wherein the first color characteristic parameter is a parameter for representing the color of the image through a specified number of color channels; converting the color value of the first color feature parameter to a parameter value of a second color feature parameter of the image, wherein the second color feature parameter is different from the first color feature parameter;
correspondingly, the target parameter value is a second target parameter value of the second color feature parameter.
Optionally, the processor adjusts the image characteristic parameter in the image region to be adjusted based on the target parameter value, specifically:
converting a second target parameter value of a second color characteristic parameter in the image area to be adjusted into a first target parameter value corresponding to the first color characteristic parameter; and adjusting the first color characteristic parameter in the image area to be adjusted to be the first target parameter value.
Optionally, the second color characteristic parameter is a color temperature or a hue;
the parameter value of the first color characteristic parameter is a numerical value expressed in an RGB color mode.
For the embodiments of the electronic device, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the electronic device are merely illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In the several embodiments provided in the present application, it should be understood that the disclosed electronic device and method may be implemented in other ways without departing from the spirit and scope of the present application. The present embodiment is an exemplary example only, and should not be taken as limiting, and the specific disclosure should not be taken as limiting the purpose of the application. For example, the division of the unit or the sub-unit is only one logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or a plurality of sub-units are combined together. In addition, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
Additionally, the systems and methods described, as well as the illustrations of various embodiments, can be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the application. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The foregoing is directed to embodiments of the present invention, and it is understood that various modifications and improvements can be made by those skilled in the art without departing from the spirit of the invention.

Claims (10)

1. An image processing method, comprising:
determining at least two images to be synthesized;
acquiring parameter values of color characteristic parameters of the image; wherein the parameter value of the color characteristic parameter of the image refers to the parameter value of the color characteristic parameter at each pixel point in the image;
synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image;
determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary;
adjusting the color characteristic parameters in the image area to be adjusted based on the target parameter values;
the acquiring of the parameter value of the color characteristic parameter of the image includes:
obtaining a color value of a first color characteristic parameter in the image, wherein the first color characteristic parameter is a parameter for representing the color of the image through a specified number of color channels;
converting the color value of the first color feature parameter to a parameter value of a second color feature parameter of the image, wherein the second color feature parameter is different from the first color feature parameter;
the target parameter value is a second target parameter value of the second color feature parameter;
the second color characteristic parameter is color temperature or tone;
the parameter value of the first color characteristic parameter is a numerical value expressed in an RGB color mode.
2. The method according to claim 1, wherein the determining a target parameter value of the color feature parameter in the image region to be adjusted in the first image and the second image based on the parameter values of the color feature parameter of the first image and the second image comprises:
and determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the color characteristic parameters in the specific areas in the first image and the second image.
3. The method according to claim 2, wherein the specific region in the first image and the second image is a region in the first image and the second image within a specific range from the boundary line.
4. The method according to claim 2, wherein the determining the target parameter value of the color feature parameter in the image area to be adjusted in the first image and the second image based on the color feature parameter in the specific area in the first image and the second image comprises:
determining a first parameter value of the color characteristic parameter in the region to be adjusted in the first image at the current moment and a second parameter value of the color characteristic parameter in the region to be adjusted in the second image at the current moment based on the parameter values of the color characteristic parameters of the first image and the second image;
and determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image according to the first parameter value and the second parameter value.
5. The method of claim 1, wherein the color characterization parameters include any one or more of:
color temperature or hue.
6. The method according to claim 1, wherein the adjusting the image characteristic parameter within the image region to be adjusted based on the target parameter value comprises:
converting a second target parameter value of a second color characteristic parameter in the image area to be adjusted into a first target parameter value corresponding to the first color characteristic parameter;
and adjusting the first color characteristic parameter in the image area to be adjusted to be the first target parameter value.
7. An electronic device, comprising: the system comprises a processor and a memory connected with the processor;
wherein the processor is configured to determine at least two images to be synthesized; acquiring parameter values of color characteristic parameters of the image; wherein the parameter value of the color characteristic parameter of the image refers to the parameter value of the color characteristic parameter at each pixel point in the image; synthesizing a first image and a second image in the at least two images, and determining a boundary line between the first image and the second image; determining target parameter values of the color characteristic parameters in image areas to be adjusted in the first image and the second image based on the parameter values of the color characteristic parameters of the first image and the second image, wherein the image areas to be adjusted are image areas within the specified range of the boundary; adjusting the color characteristic parameters in the image area to be adjusted based on the target parameter values;
the memory is used for storing data required by the processor to run;
the processor obtains parameter values of the color characteristic parameters of the image, specifically: obtaining a color value of a first color characteristic parameter in the image, wherein the first color characteristic parameter is a parameter for representing the color of the image through a specified number of color channels; converting the color value of the first color feature parameter to a parameter value of a second color feature parameter of the image, wherein the second color feature parameter is different from the first color feature parameter;
the target parameter value is a second target parameter value of the second color feature parameter;
the second color characteristic parameter is color temperature or tone;
the parameter value of the first color characteristic parameter is a numerical value expressed in an RGB color mode.
8. The electronic device according to claim 7, wherein the processor determines, based on the parameter values of the color feature parameters of the first image and the second image, target parameter values of the color feature parameters in an image region to be adjusted in the first image and the second image, specifically:
and determining target parameter values of the color characteristic parameters in the image areas to be adjusted in the first image and the second image based on the color characteristic parameters in the specific areas in the first image and the second image.
9. The electronic device according to claim 8, wherein the processor determines, based on color feature parameters in specific areas in the first image and the second image, target parameter values of the color feature parameters in the areas of the first image and the second image to be adjusted, specifically:
determining a first parameter value of the color characteristic parameter in the region to be adjusted in the first image at the current moment and a second parameter value of the color characteristic parameter in the region to be adjusted in the second image at the current moment based on the parameter values of the color characteristic parameters of the first image and the second image; and determining a first target parameter value of the area to be adjusted in the first image and a second target parameter value of the area to be adjusted in the second image according to the first parameter value and the second parameter value.
10. The electronic device according to claim 7, wherein the processor adjusts the image characteristic parameter in the image region to be adjusted based on the target parameter value, specifically:
converting a second target parameter value of a second color characteristic parameter in the image area to be adjusted into a first target parameter value corresponding to the first color characteristic parameter; and adjusting the first color characteristic parameter in the image area to be adjusted to be the first target parameter value.
CN201511001398.1A 2015-12-28 2015-12-28 Image processing method and electronic equipment Active CN105654520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001398.1A CN105654520B (en) 2015-12-28 2015-12-28 Image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001398.1A CN105654520B (en) 2015-12-28 2015-12-28 Image processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105654520A CN105654520A (en) 2016-06-08
CN105654520B true CN105654520B (en) 2021-09-14

Family

ID=56476998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001398.1A Active CN105654520B (en) 2015-12-28 2015-12-28 Image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105654520B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312108B (en) * 2019-08-02 2022-09-13 浙江宇视科技有限公司 White balance abnormity determining method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800907A (en) * 2010-04-14 2010-08-11 北京伟景行数字城市科技有限公司 Method and device for displaying three-dimensional image

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009851B (en) * 2007-01-19 2010-07-07 北京中星微电子有限公司 Image processing method and its device
CN101441763B (en) * 2008-11-11 2012-05-16 浙江大学 Multiple-colour tone image unity regulating method based on color transfer
KR101295092B1 (en) * 2011-12-28 2013-08-09 현대자동차주식회사 Color Detector for vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800907A (en) * 2010-04-14 2010-08-11 北京伟景行数字城市科技有限公司 Method and device for displaying three-dimensional image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱述龙 等.遥感影像镶嵌时拼接缝的消除方法.《遥感学报》.2002,第6卷(第3期),第183-187页. *
遥感影像镶嵌时拼接缝的消除方法;朱述龙 等;《遥感学报》;20020531;第6卷(第3期);第183-187页 *

Also Published As

Publication number Publication date
CN105654520A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
EP3416369B1 (en) Image processing method and apparatus for terminal, and terminal
US20090009525A1 (en) Color Adjustment Device and Method
EP2498499A2 (en) Interpolation of color gamut for display on target display
KR20070090224A (en) Method of electronic color image saturation processing
CN110111245A (en) Image processing method, device, terminal and computer readable storage medium
WO2007007798A1 (en) Image processing device, image processing program, and image processing method
CN113132696B (en) Image tone mapping method, image tone mapping device, electronic equipment and storage medium
CN105657247A (en) Secondary exposure photographing method and apparatus for electronic device
US9654756B1 (en) Method and apparatus for interpolating pixel colors from color and panchromatic channels to color channels
CN111464800B (en) Image processing apparatus, system, method, and computer-readable storage medium
CN110930932B (en) Display screen correction method and system
CN105654520B (en) Image processing method and electronic equipment
WO2013083080A1 (en) Color correction for multiple video objects in telepresence applications
CN113556504A (en) Video conference display image processing method and device and video conference system
CN106454101A (en) Image processing method and terminal
US20070076014A1 (en) Universal color decoder an method for decoding input signal for a multiple primary color display system
CN115550575B (en) Image processing method and related device
CN112831982A (en) Processing method, device and equipment for clothes color identification and storage medium
JP6887824B2 (en) Image processing equipment, image processing methods and programs
WO2018082130A1 (en) Salient map generation method and user terminal
CN110809145B (en) Image brightness conversion method, device and equipment based on Craik-O' Brien effect
KR20180124539A (en) Chroma key remote synthesis synchronization system and method
CN113962850A (en) Image processing method, computer terminal and storage medium
EP3942790B1 (en) Camera color image processing
US9355471B2 (en) Color balancing apparatus for multiple image synthesis and method therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant