CN118101913A - Image processing method, device, electronic equipment, storage medium and chip - Google Patents
Image processing method, device, electronic equipment, storage medium and chip Download PDFInfo
- Publication number
- CN118101913A CN118101913A CN202211506669.9A CN202211506669A CN118101913A CN 118101913 A CN118101913 A CN 118101913A CN 202211506669 A CN202211506669 A CN 202211506669A CN 118101913 A CN118101913 A CN 118101913A
- Authority
- CN
- China
- Prior art keywords
- color gamut
- image
- information
- wide color
- gamut data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 28
- 238000012546 transfer Methods 0.000 claims abstract description 34
- 238000000034 method Methods 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims abstract description 10
- 238000006243 chemical reaction Methods 0.000 claims description 67
- 230000006870 function Effects 0.000 claims description 46
- 239000011159 matrix material Substances 0.000 claims description 25
- 238000012545 processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 18
- 238000004891 communication Methods 0.000 description 10
- 238000004422 calculation algorithm Methods 0.000 description 8
- 239000003086 colorant Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000007613 environmental effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
Abstract
The present disclosure relates to an image processing method, apparatus, electronic device, storage medium, and chip, the method comprising: generating an initial image in response to image acquisition operation of user equipment, determining configuration description information of the initial image, wherein the configuration description information comprises a color gamut type, image tone scale information and image transfer function information, generating wide color gamut data information of the initial image under a preset wide color gamut data space according to the color gamut type and the image tone scale information, generating target wide color gamut data information of the user equipment corresponding to a display device according to the wide color gamut data information and the image transfer function information, and displaying the adjusted initial image through the display device according to the target wide color gamut data information. Therefore, the effect display of globally supporting a wide color gamut from photographing to screen photo display is realized, the effect obtained immediately after the display is realized, the problem of non-uniform effect from photographing to display is solved, and better use experience is brought to users.
Description
Technical Field
The present disclosure relates to the field of image processing, and in particular, to an image processing method, an image processing device, an electronic device, a storage medium, and a chip.
Background
In the related art, the most common color space is sRGB (STANDARD RED GREEN Blue, a general color standard), which is also the most used color gamut standard, and sRGB color gamut standard is almost used in common network resources. However, in some scenes there will be colors that exceed sRGB, which will create color errors when the sRGB gamut is replaced with a closer color. Therefore, a color gamut standard of DCI-P3 is proposed, the DCI-P3 is a color gamut applied to a digital cinema, the color gamut standard takes human visual experience as a dominant color gamut standard, and the DCI-P3 is matched with all color gamuts which can be displayed in a film scene as much as possible, so that the human visual experience can be better satisfied. The terminal screen quality is higher and higher, the color gamut of the display screen is wider, most terminals can achieve nearly 100% DCI-P3 color gamut coverage, but how to realize accurate expression of content becomes a technical problem to be solved urgently.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an image processing method, apparatus, electronic device, storage medium, and chip.
According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method including:
responding to the operation of image acquisition of user equipment, and generating an initial image;
determining configuration description information of the initial image, wherein the configuration description information comprises a color gamut type, image tone scale information and image transfer function information;
Generating wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information;
Generating target wide color gamut data information of a display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information;
and displaying the adjusted initial image through the display device according to the target wide color gamut data information.
Optionally, the generating wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information includes:
under the condition that the color gamut type is determined to be a preset wide color gamut, taking the image tone scale information as the wide color gamut data information;
And under the condition that the color gamut type is not the preset wide color gamut, performing color gamut conversion on the image tone scale information according to the preset wide color gamut so as to generate the wide color gamut data information in the preset wide color gamut data space.
Optionally, the image tone scale information includes image white point information and conversion matrix information, and performing color gamut conversion on the image tone scale information according to the preset wide color gamut to generate the wide color gamut data information in the preset wide color gamut data space, including:
Determining target image white point information and target conversion matrix information of the initial image in the preset wide color domain according to the image white point information and the conversion matrix information;
And generating the wide color gamut data information according to the target image white point information and the target conversion matrix information.
Optionally, the initial image includes a plurality of live images, and the determining the configuration description information of the initial image includes:
Determining a target live image to be displayed from the plurality of live images;
The target live image is parsed to determine the configuration description information.
Optionally, the generating wide color gamut data information of the initial image in a preset wide color gamut data space includes:
acquiring a preset conversion function under the preset wide color gamut data space;
And converting the image tone scale information into the wide color gamut data information according to the preset conversion function.
Optionally, displaying, by the display device, the adjusted initial image according to the target wide color gamut data information includes:
Transmitting the target wide color gamut data information to a display driving chip of the user equipment to generate a target display image;
The target display image is displayed in the display device in response to a selected operation on the initial image.
Optionally, the generating the target wide color gamut data information of the display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information includes:
Performing color gamut conversion on the wide color gamut data information according to a color gamut conversion module of the user equipment so as to generate initial wide color gamut data information under a preset wide color gamut;
And converting the initial wide color gamut data information into the target wide color gamut data information through a color gamut calibration module of the user equipment according to the image transfer function information.
According to a second aspect of the embodiments of the present disclosure, there is provided an image processing apparatus including:
the first generation module is configured to respond to the operation of image acquisition of the user equipment and generate an initial image;
A determining module configured to determine configuration description information of the initial image, the configuration description information including a color gamut type, image tone scale information, and image transfer function information;
The second generation module is configured to generate wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information;
A third generation module configured to generate target wide color gamut data information of the display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information;
And the execution module is configured to display the adjusted initial image through the display device according to the target wide color gamut data information.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image processing method provided by the first aspect of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
A processor;
A memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the method of any one of the first aspects of the present disclosure when executing the executable instructions.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any of the first aspects of the present disclosure.
According to a sixth aspect of embodiments of the present disclosure, there is provided a chip comprising a processor and an interface; the processor is configured to read instructions to perform the method of any of the first aspects of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
By the method, the initial image is generated in response to the image acquisition operation of the user equipment, configuration description information of the initial image is determined, the configuration description information comprises color gamut type, image tone information and image transfer function information, wide color gamut data information of the initial image in a preset wide color gamut data space is generated according to the color gamut type and the image tone information, target wide color gamut data information of the display device corresponding to the user equipment is generated according to the wide color gamut data information and the image transfer function information, and the adjusted initial image is displayed through the display device according to the target wide color gamut data information. Therefore, the effect display of globally supporting a wide color gamut from photographing to screen photo display is realized, the effect obtained immediately after the display is realized, the problem of non-uniform effect from photographing to display is solved, and better use experience is brought to users.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a diagram showing a comparative example of an sRGB color gamut and a DCI-P3 color gamut according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an image processing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating an image processing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating an image processing method according to an exemplary embodiment.
Fig. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, all actions of acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
In order to bring better product experience to users, the common network resources almost adopt the sRGB standard, and adopt the DCI-P3 color gamut standard in some terminal devices to display a wider color gamut for users, fig. 1 is a diagram showing a comparison example of an sRGB color gamut and a DCI-P3 color gamut according to an exemplary embodiment, as shown in fig. 1, where a hatched portion is all colors that can be captured by human eyes, and a dashed triangle area is a color distribution area that can be presented to users by some user devices through a display device, and on the basis of the sRGB color gamut, the color distribution area displayed by the user devices can be converted from the sRGB color gamut into the DCI-P3 color gamut by adjusting the configuration of the display device of the user devices and the configuration of the internal color management area. The color gamut richness is improved, so that a user can observe more colors through the display device of the user equipment, and better product experience is brought to the user.
However, in the related art, the user equipment satisfying the DCI-P3 color gamut cannot well realize accurate expression of the content. For the user equipment, when capturing an environmental image through the image capturing device of the user equipment, the environmental image displayed on the display device of the user equipment through the image capturing device is the DCI-P3 color gamut image information, but after the user operates the shutter to generate an environmental photo, the user equipment generates the sRGB color gamut photo information in the album of the user equipment based on a preset photo generation algorithm, so that the DCI-P3 color gamut image information is displayed when the image is acquired, but after photographing is completed, the sRGB color gamut image information is generated, so that the display effect of photographing preview and photo display has color difference, the problem of non-uniform display effect is caused, and the product experience of the user is affected.
In view of this, the present embodiment provides an image processing method, and fig. 2 is a flowchart of an image processing method according to an exemplary embodiment, and the processing method is used in a user equipment, as shown in fig. 2, and includes the following steps.
In step S101, an initial image is generated in response to an operation of image acquisition by the user device.
It should be noted that, the present embodiment is applied to a user device, where the user device supports a preset wide color gamut coverage, where the preset wide color gamut is, with respect to the sRGB color gamut standard, in a color gamut range that can be captured by a user through the naked eye, a color gamut range corresponding to the preset wide color gamut can fully cover a color gamut range corresponding to the sRGB color gamut, and the color gamut range corresponding to the preset wide color gamut is greater than the color gamut range corresponding to the sRGB color gamut, and as illustrated in fig. 1, the preset wide color gamut may be a DCI-P3 color gamut. When the user equipment takes a picture through the camera device, the environment image captured by the camera device can be previewed through the display device, and the environment image is displayed to the user in the display device, so that the user can collect the environment photo by referring to the environment image. When the environment image preview is performed, the user equipment displays the environment image under the DCI-P3 color gamut to the user through the display device based on the configuration of the DCI-P3 color gamut.
After the user determines the environmental image to be acquired through the display device, the user equipment performs image acquisition operation to generate a corresponding initial picture, and the initial picture can be generated in the user equipment by clicking a shutter operation.
In step S102, configuration description information of the initial image is determined, the configuration description information including a color gamut type, image tone scale information, and image transfer function information.
For example, in this embodiment, the initial image generated in the above step is identified, and configuration description information of the initial image is determined, where the configuration description information is used to describe the color gamut type, the image tone scale information, and the image transfer function information of the initial image. Wherein the gamut type is used to describe the image based on which gamut standard the initial image was generated; the image tone information is image tone information of each pixel point in the initial image under the color gamut type, and the image tone information can comprise white point information, tone conversion matrix information and the like of the initial image under the color gamut type; the image transfer function information may convert the initial image into a display image on the display device according to the image tone scale information.
It should be noted that, in this embodiment, although the image capturing and the image displaying of the user equipment support the preset wide color gamut, the initial image captured and generated by the image capturing device may include multiple types of color gamut types, for example, when the original camera APP (Application program) of the user equipment captures and photographs, the color gamut type corresponding to the generated initial image is the initial image of the preset wide color gamut; when photographing through some of the three-party cameras APP of the user equipment, an initial image of the sRGB color gamut type may be generated based on an image generation algorithm of the three-party cameras APP. Therefore, the color gamut type of the initial image needs to be identified.
In step S103, wide color gamut data information of the initial image in a preset wide color gamut data space is generated according to the color gamut type and the image gradation information.
It should be noted that, in this embodiment, by analyzing the color gamut type of the initial image, when the color gamut type is determined to be the preset wide color gamut, the image tone scale information is directly written into the preset wide color gamut data space for data conversion, and the image tone scale information is converted into the wide color gamut data information through the preset data conversion algorithm in the preset wide color gamut data space. When the color gamut type is determined not to be the preset wide color gamut, the color gamut range corresponding to the color gamut type can be compared with the color gamut range of the preset wide color gamut, a color gamut conversion algorithm between the color gamut type and the preset wide color gamut is determined through an experimental mode of biological simulation, the image tone scale information under the color gamut type is converted into the target image tone scale information under the preset wide color gamut according to the color gamut conversion algorithm, the target image tone scale information is written into a preset wide color gamut data space, and the target image tone scale information is converted into the wide color gamut data information through a preset data conversion algorithm in the preset wide color gamut data space. For example, the preset wide color gamut may be DCI-P3, and when the color gamut type of the initial image is determined to be DCI-P3, P3 information in the DCI-P3 data space may be generated according to the image tone information.
In step S104, target wide color gamut data information of the display device corresponding to the user equipment is generated according to the wide color gamut data information and the image transfer function information.
It should be noted that the wide color gamut data information determined by the calculation in the above steps is the wide color gamut value of each pixel point of the initial image under the preset wide color gamut, where the wide color gamut value corresponds to the color coordinates of each pixel point that can be captured by the naked human eye in fig. 1. For the user equipment, the color coordinates are required to be converted into signal data which can be displayed in corresponding colors by the display device by combining with a preset wide color gamut, so that the image in the corresponding colors is displayed at the corresponding positions of the display device. Therefore, in this embodiment, after the wide color gamut data information of the initial image in the preset wide color gamut data space is determined through the above steps, the wide color gamut data information is converted into the target wide color gamut data information corresponding to the display device through the image transfer function information. By way of example, the image transfer function information may be EOTF (Electro-optical-Optical Transfer Function, electro-optical conversion function) by which wide color gamut data information is converted into target wide color gamut data information for image display in a display device.
Optionally, in one embodiment, step S104 includes:
And performing color gamut conversion on the wide color gamut data information according to a color gamut conversion module of the user equipment so as to generate initial wide color gamut data information under a preset wide color gamut.
And converting the initial wide color gamut data information into target wide color gamut data information through a color gamut calibration module of the user equipment according to the image transfer function information.
For example, in this embodiment, a color gamut conversion module and a color gamut calibration module are configured in the user device, where the color gamut conversion module is configured to convert color gamut data, and the color gamut calibration module is configured to convert color gamut data corresponding to an image into color gamut data corresponding to a screen. After the wide color gamut data information corresponding to the image is generated through the steps, the color gamut conversion module performs color gamut data conversion on the wide color gamut data information, and initial wide color gamut data information under a preset wide color gamut is generated. And converting the initial wide color gamut data information into target wide color gamut data information through the image transfer function information by applying a color gamut calibration module.
In step S105, the adjusted initial image is displayed by the display device according to the target wide color gamut data information.
For example, in this embodiment, after the target wide color gamut data information is generated through the above steps, the target wide color gamut data information is transferred to the DDIC (DISPLAY DRIVER IC, display driver chip) of the user device, and the DDIC displays the initial image in the display device of the user device according to the target wide color gamut data information. Wherein the color gamut type corresponding to the initial image displayed in the display device at this time is a preset wide color gamut. Therefore, the display effects of the initial image in the camera shooting stage and the image display stage are unified, the richness of the image display colors in the user equipment is enhanced, and better use experience is brought to the user.
Alternatively, in another embodiment, the step S105 includes:
And transmitting the target wide color gamut data information to a display driving chip of the user equipment to generate a target display image.
In response to a selection operation of the initial image, a target display image is displayed in the display device.
In this embodiment, the target wide color gamut data information is sent to a display driver chip of the user device, and the display driver chip generates a target display image according to the target wide color gamut data information. And storing the target display image in a preset storage space, and displaying the target display image in a display device when a user clicks the user equipment to view the initial image.
In the above manner, in response to the image acquisition operation of the user equipment, an initial image is generated, configuration description information of the initial image is determined, and the configuration description information comprises the color gamut type and the image tone information
And image transfer function information, generating wide color gamut data information of the initial image in a preset 5 wide color gamut data space according to the color gamut type and the image tone scale information, generating target wide color gamut data information of a display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information, and displaying the adjusted initial image through the display device according to the target wide color gamut data information. Therefore, the effect display of globally supporting a wide color gamut from photographing to screen photo display is realized, the effect obtained immediately after the display is realized, the problem of non-uniform effect from photographing to display is solved, and better use experience is brought to users.
Fig. 3 is a flowchart illustrating an image processing method according to an exemplary embodiment, which is applied to a user equipment as shown in fig. 3, the method including the following steps.
In step S201, an initial image is generated in response to an operation of image acquisition by the user device.
For example, in this embodiment, the manner of generating the initial image is the same as that in step S101, and reference may be made to step S201, which is not described in detail.
5 In step S202, configuration description information of the initial image is determined, the configuration description information including the color gamut type, the image tone scale information, and the image transfer function information.
For example, the manner of determining the configuration description information in this embodiment is the same as that in step S202, and reference may be made to step S202, which is not described in detail.
Optionally, in one embodiment, the initial image includes a plurality of live images, and step 0S202 includes:
a target live image to be displayed is determined from a plurality of live images.
The target live image is parsed to determine configuration description information.
It should be noted that, in this embodiment, the user equipment has a live collection function, and the user passes through the user
When the image capturing device of the device captures an environmental image, after the image capturing operation is performed, the environmental image identified by the image capturing device is subjected to multi-frame capturing within a short period of time 5, a plurality of live images are generated, one frame of target live image is selected from the plurality of live images based on a preset selection rule, the target live image is displayed in an album APP of the user device, and in order to achieve visual unification, in the embodiment, after the target live image is determined from the plurality of live images, the target live image is analyzed, and configuration description information corresponding to the target live image is generated.
In step S203, in the case where it is determined that the color gamut type is the preset wide color gamut, the image tone scale information is taken as the wide color gamut data information.
For example, in this embodiment, when the color gamut type is determined to be the preset wide color gamut, the image tone scale information is used as the wide color gamut data information, where the manner of using the image tone scale information as the wide color gamut data information is the same as that in the step S103, reference may be made to the step S103, and details are not repeated.
In step S204, in the case where it is determined that the color gamut type is not the preset wide color gamut, the image tone scale information is subjected to color gamut conversion according to the preset wide color gamut to generate wide color gamut data information in the preset wide color gamut data space.
For example, in this embodiment, when it is determined that the color gamut type corresponding to the initial image is not the preset wide color gamut, the color gamut conversion is performed on the image color gamut information according to a color gamut conversion algorithm between the color gamut type corresponding to the initial image and the preset wide color gamut, so as to generate wide color gamut data information in the preset wide color gamut data space.
Optionally, in one embodiment, the image tone scale information includes image white point information and conversion matrix information, and the step S204 includes:
And determining target image white point information and target conversion matrix information of the initial image in a preset wide color domain according to the image white point information and the conversion matrix information.
And generating wide color gamut data information according to the target image white point information and the target conversion matrix information.
The image tone scale information in this embodiment includes image white point information and conversion matrix information, where the image white point information is used to represent a color of a white point in an initial image within a color gamut range corresponding to naked eyes under a color gamut type corresponding to the initial image, and the target conversion matrix information is a tone scale value of each pixel point of the initial image under the color gamut type corresponding to the initial image. And converting the image white point information and the conversion matrix information corresponding to the initial image to generate target image white point information and target conversion matrix information in a preset wide color gamut. And according to the target image white point information and the target conversion matrix information, a preset data conversion algorithm is applied to generate wide color gamut data information of the initial image under the preset wide color gamut.
Optionally, in another embodiment, step S204 includes:
a preset conversion function under a preset wide color gamut data space is acquired.
And converting the image tone scale information into wide color gamut data information according to a preset conversion function.
For example, in this embodiment, corresponding conversion functions are corresponding to different data spaces, and image tone information corresponding to an image can be converted into color gamut data information of different color gamut types through the conversion functions. In this embodiment, a preset conversion function in a preset wide color gamut data space is obtained, and the image tone scale information is subjected to data conversion by the preset conversion function, so as to generate the wide color gamut data information of the initial image in the preset wide color gamut data space.
In step S205, target wide color gamut data information of the display device corresponding to the user equipment is generated according to the wide color gamut data information and the image transfer function information.
For example, in this embodiment, the generation manner of the target wide color gamut data information is the same as that in step S104, and reference may be made to step S104, which is not repeated.
In step S206, the adjusted initial image is displayed by the display device according to the target wide color gamut data information.
For example, in the embodiment, the manner of displaying the adjusted initial image is the same as that in the step S105, and reference may be made to the step S105, which is not repeated.
By the method, the effect display of globally supporting a wide color gamut from photographing to screen photo display is realized, the effect obtained by the user is realized, the problem of non-uniform effect from photographing to display is solved, and better use experience is brought to users.
Fig. 4 is a flowchart illustrating an image processing method according to an exemplary embodiment, which is applied to a user equipment, as shown in fig. 4, including the following steps.
(1) After an initial picture is generated by camera shooting of the user equipment, a DCI-P3 color gamut type, white point information, conversion matrix information and transfer function information are marked in Profile Description (configuration description) information of the initial picture.
(2) When the image needs to be displayed in the album APP of the user equipment based on the click of the user, a display layer is needed to be displayed for acquiring the initial image in the album APP, and the display layer and corresponding configuration description information are transmitted to the DPU (Data Processing Unit, data center processor) through Surface Flinger (graphics management system).
(3) And the configuration description information identification of the display layer in the DPU comprises color gamut type information identification, white point information identification, conversion matrix information identification and transfer function information identification.
(4) When the color gamut type of the display layer is DCI-P3, the data space of the display layer is set as DCI-P3 data space.
(5) And identifying the current color gamut type as DCI-P3 through a color gamut conversion module of the user equipment, and keeping the original conversion matrix information as P3 information of the picture without performing color gamut conversion processing.
(6) And calibrating the P3 information of the picture through a color gamut calibration module of the user equipment, and converting the P3 information of the picture into the P3 information of the screen.
(7) The converted P3 information is transmitted to the DDIC to be displayed on a screen, thereby displaying an accurate image color to a user.
By the method, the effect display of globally supporting a wide color gamut from photographing to screen photo display is realized, the effect obtained by the user is realized, the problem of non-uniform effect from photographing to display is solved, and better use experience is brought to users.
Fig. 5 is a block diagram of an image processing apparatus according to an exemplary embodiment. Referring to fig. 5, the apparatus 100 includes a first generation module 110, a determination module 120, a second generation module 130, a third generation module 140, and an execution module 150.
The first generation module 110 is configured to generate an initial image in response to an operation of image acquisition by the user equipment.
The determining module 120 is configured to determine configuration description information of the initial image, the configuration description information including a color gamut type, image tone scale information, and image transfer function information.
The second generation module 130 is configured to generate wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information.
The third generation module 140 is configured to generate target wide color gamut data information of the display device corresponding to the user device according to the wide color gamut data information and the image transfer function information.
The execution module 150 is configured to display the adjusted initial image via the display device according to the target wide color gamut data information.
Optionally, the second generating module 130 includes:
The judging submodule is configured to take the image tone scale information as wide color gamut data information under the condition that the color gamut type is determined to be a preset wide color gamut.
And the generation submodule is configured to perform color gamut conversion on the image tone scale information according to the preset wide color gamut to generate wide color gamut data information in the preset wide color gamut data space when the color gamut type is determined not to be the preset wide color gamut.
Optionally, the image tone scale information includes image white point information and conversion matrix information, and the generating sub-module is configured to:
And determining target image white point information and target conversion matrix information of the initial image in a preset wide color domain according to the image white point information and the conversion matrix information.
And generating wide color gamut data information according to the target image white point information and the target conversion matrix information.
Optionally, the determining module 120 is configured to:
a target live image to be displayed is determined from a plurality of live images.
The target live image is parsed to determine configuration description information.
Optionally, the second generating module 130 is configured to:
a preset conversion function under a preset wide color gamut data space is acquired.
And converting the image tone scale information into wide color gamut data information according to a preset conversion function.
Optionally, the execution module 150 is configured to:
And transmitting the target wide color gamut data information to a display driving chip of the user equipment to generate a target display image.
In response to a selection operation of the initial image, a target display image is displayed in the display device.
Optionally, the third generating module 140 is configured to:
And performing color gamut conversion on the wide color gamut data information according to a color gamut conversion module of the user equipment so as to generate initial wide color gamut data information under a preset wide color gamut.
And converting the initial wide color gamut data information into target wide color gamut data information through a color gamut calibration module of the user equipment according to the image transfer function information.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the image processing method provided by the present disclosure.
Fig. 6 is a block diagram of an electronic device 600, according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, an electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 606, an audio component 610, an input/output interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 606 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the electronic device 600. The power supply components 606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 606 includes a screen between the electronic device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 606 includes a front-facing camera and/or a rear-facing camera. When the electronic device 600 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The input/output interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor assembly 614 may detect an on/off state of the electronic device 600, a relative positioning of the components, such as a display and keypad of the electronic device 600, the sensor assembly 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of a user's contact with the electronic device 600, an orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices, either wired or wireless. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the image processing methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of electronic device 600 to perform the above-described image processing method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The electronic device may be a stand-alone electronic device or may be part of a stand-alone electronic device, for example, in one embodiment, the electronic device may be an integrated circuit (INTEGRATED CIRCUIT, IC) or a chip, where the integrated circuit may be an IC or a set of ICs; the chip may include, but is not limited to, the following: GPU (Graphics Processing Unit, graphics Processor), CPU (Central Processing Unit ), FPGA (Field Programmable GATE ARRAY, programmable logic array), DSP (DIGITAL SIGNAL Processor ), ASIC (Application SPECIFIC INTEGRATED Circuit), SOC (System on Chip, SOC, system on Chip or System on Chip), and the like. The integrated circuits or chips described above may be used to execute executable instructions (or code) to implement the image processing methods described above. The executable instructions may be stored on the integrated circuit or chip or may be retrieved from other electronic devices or devices, such as the integrated circuit or chip including a processor, memory, and interface for communicating with other electronic devices. The executable instructions may be stored in the memory, which when executed by the processor implement the image processing method described above; or the integrated circuit or the chip can receive the executable instructions through the interface and transmit the executable instructions to the processor for execution, so as to realize the image processing method.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable electronic device, the computer program having code portions for performing the above-mentioned image processing method when being executed by the programmable electronic device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (11)
1. An image processing method, comprising:
responding to the operation of image acquisition of user equipment, and generating an initial image;
determining configuration description information of the initial image, wherein the configuration description information comprises a color gamut type, image tone scale information and image transfer function information;
Generating wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information;
Generating target wide color gamut data information of a display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information;
and displaying the adjusted initial image through the display device according to the target wide color gamut data information.
2. The processing method according to claim 1, wherein the generating wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information includes:
under the condition that the color gamut type is determined to be a preset wide color gamut, taking the image tone scale information as the wide color gamut data information;
And under the condition that the color gamut type is not the preset wide color gamut, performing color gamut conversion on the image tone scale information according to the preset wide color gamut so as to generate the wide color gamut data information in the preset wide color gamut data space.
3. The processing method according to claim 2, wherein the image tone scale information includes image white point information and conversion matrix information, performing color gamut conversion on the image tone scale information according to the preset wide color gamut to generate the wide color gamut data information in the preset wide color gamut data space, comprising:
Determining target image white point information and target conversion matrix information of the initial image in the preset wide color domain according to the image white point information and the conversion matrix information;
And generating the wide color gamut data information according to the target image white point information and the target conversion matrix information.
4. The processing method of claim 1, wherein the initial image comprises a plurality of live images, and the determining configuration description information of the initial image comprises:
Determining a target live image to be displayed from the plurality of live images;
The target live image is parsed to determine the configuration description information.
5. The method of processing according to claim 1, wherein the generating wide color gamut data information of the initial image in a preset wide color gamut data space comprises:
acquiring a preset conversion function under the preset wide color gamut data space;
And converting the image tone scale information into the wide color gamut data information according to the preset conversion function.
6. The processing method according to any one of claims 1 to 5, wherein the displaying the adjusted initial image by the display device according to the target wide color gamut data information includes:
Transmitting the target wide color gamut data information to a display driving chip of the user equipment to generate a target display image;
The target display image is displayed in the display device in response to a selected operation on the initial image.
7. The processing method according to any one of claims 1 to 5, wherein the generating the target wide color gamut data information of the corresponding display device of the user equipment according to the wide color gamut data information and the image transfer function information includes:
Performing color gamut conversion on the wide color gamut data information according to a color gamut conversion module of the user equipment so as to generate initial wide color gamut data information under a preset wide color gamut;
And converting the initial wide color gamut data information into the target wide color gamut data information through a color gamut calibration module of the user equipment according to the image transfer function information.
8. An image processing apparatus, comprising:
the first generation module is configured to respond to the operation of image acquisition of the user equipment and generate an initial image;
A determining module configured to determine configuration description information of the initial image, the configuration description information including a color gamut type, image tone scale information, and image transfer function information;
The second generation module is configured to generate wide color gamut data information of the initial image in a preset wide color gamut data space according to the color gamut type and the image tone scale information;
A third generation module configured to generate target wide color gamut data information of the display device corresponding to the user equipment according to the wide color gamut data information and the image transfer function information;
And the execution module is configured to display the adjusted initial image through the display device according to the target wide color gamut data information.
9. An electronic device, comprising:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to implement the steps of the method of any one of claims 1-7 when executing the executable instructions.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1-7.
11. A chip, comprising a processor and an interface; the processor is configured to read instructions to perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211506669.9A CN118101913A (en) | 2022-11-28 | 2022-11-28 | Image processing method, device, electronic equipment, storage medium and chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211506669.9A CN118101913A (en) | 2022-11-28 | 2022-11-28 | Image processing method, device, electronic equipment, storage medium and chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118101913A true CN118101913A (en) | 2024-05-28 |
Family
ID=91156839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211506669.9A Pending CN118101913A (en) | 2022-11-28 | 2022-11-28 | Image processing method, device, electronic equipment, storage medium and chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118101913A (en) |
-
2022
- 2022-11-28 CN CN202211506669.9A patent/CN118101913A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2630167C1 (en) | Method and device for switching colour range mode | |
CN107038037B (en) | Display mode switching method and device | |
CN108986053B (en) | Screen display method and device | |
CN112116888B (en) | Screen calibration method, calibration device and storage medium | |
CN111338743B (en) | Interface processing method and device and storage medium | |
CN110876014B (en) | Image processing method and device, electronic device and storage medium | |
CN112669231B (en) | Image processing method, training method, device and medium of image processing model | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
CN112033527B (en) | Ambient brightness detection method, device, equipment and storage medium | |
EP3975548B1 (en) | Photographing method and apparatus, terminal, and storage medium | |
CN114067739B (en) | Color gamut mapping method and device, electronic equipment and storage medium | |
CN116453459A (en) | Screen display method and device, readable storage medium and electronic equipment | |
CN110874829B (en) | Image processing method and device, electronic device and storage medium | |
CN118101913A (en) | Image processing method, device, electronic equipment, storage medium and chip | |
CN111835977B (en) | Image sensor, image generation method and device, electronic device, and storage medium | |
CN113296644B (en) | Display control method and device, electronic equipment and computer readable storage medium | |
CN110876013B (en) | Method and device for determining image resolution, electronic equipment and storage medium | |
CN110876015B (en) | Method and device for determining image resolution, electronic equipment and storage medium | |
CN110933300B (en) | Image processing method and electronic terminal equipment | |
CN118096508A (en) | Color mapping method, device, equipment and storage medium | |
CN118118789A (en) | Image generation method, device and storage medium | |
CN117392245A (en) | Image processing method, device, storage medium and chip | |
CN117369615A (en) | Electronic equipment control method and device, storage medium and electronic equipment | |
CN116801112A (en) | Color calibration method, device, storage medium and display equipment | |
CN118102080A (en) | Image shooting method, device, terminal and storage medium |
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 |