CN108495108B - Image conversion method and device, terminal, storage medium - Google Patents
Image conversion method and device, terminal, storage medium Download PDFInfo
- Publication number
- CN108495108B CN108495108B CN201810175569.XA CN201810175569A CN108495108B CN 108495108 B CN108495108 B CN 108495108B CN 201810175569 A CN201810175569 A CN 201810175569A CN 108495108 B CN108495108 B CN 108495108B
- Authority
- CN
- China
- Prior art keywords
- image
- dynamic illumination
- data
- input data
- display
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 120
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005286 illumination Methods 0.000 claims abstract description 135
- 238000009877 rendering Methods 0.000 claims abstract description 119
- 238000012937 correction Methods 0.000 claims abstract description 56
- 238000013507 mapping Methods 0.000 claims description 29
- 238000012545 processing Methods 0.000 claims description 18
- 238000007781 pre-processing Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 19
- 238000004364 calculation method Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000000087 stabilizing effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000011426 transformation method Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/68—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/646—Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/68—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
- H04N9/69—Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits for modifying the colour signals by gamma correction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The embodiment of the invention discloses a kind of image conversion methods and device, terminal, storage medium, wherein and carrying out gamma correction this method comprises: obtain the input data of standard dynamic illumination rendering image;Input data after gamma correction is converted into the corresponding linear luminance data of high dynamic illumination rendering picture format;According to linear luminance data, the display brightness data of high dynamic illumination rendering image are obtained, so that the image after formatting is shown.The embodiment of the present invention may be implemented to stablize the display contrastive feature in image conversion process and reduce the effect of computation complexity, and improve Showing Effectiveness On Screen.
Description
Technical Field
The embodiment of the invention relates to the technical field of display, in particular to an image conversion method and device, a terminal and a storage medium.
Background
Compared with Standard-Dynamic Range (SDR) display, the HDR display technology can bring users with more vivid and outstanding image quality impression.
Because the inherent contrast of the SDR image is limited, a dynamic contrast algorithm is added in the SDR display, and a method for obtaining higher contrast effect on a liquid crystal television platform is generally adopted. However, it is shown by studying the characteristics of rec.709 and rec.1886 that the above two Gamma (Gamma) functions are focused on the display characteristics of the analog Cathode Ray Tube (CRT), rather than compensating the contrast deficiency of the lcd tv. Particularly, due to the characteristics of insufficient contrast of brightness of a dark part and high contrast of a picture of a bright part of a Gamma function in SDR display, when a dynamic contrast algorithm operates based on the Gamma function, the brightness of the dark part and the brightness of the bright part of the picture need to be dynamically adjusted in real time to a greater extent, which easily causes the situation of unstable picture contrast.
Therefore, the conventional method for converting the SDR image into the HDR image based on the dynamic contrast algorithm easily causes the problem of unstable image display contrast, affects the display effect, and has complicated image conversion calculation.
Disclosure of Invention
The embodiment of the invention provides an image conversion method and device, a terminal and a storage medium, which are used for achieving the effects of stabilizing the display contrast characteristic in the image conversion process and reducing the calculation complexity.
In a first aspect, an embodiment of the present invention provides an image conversion method, where the method includes:
acquiring input data of a standard dynamic illumination rendering image, and performing gamma correction;
converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
and obtaining display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
In a second aspect, an embodiment of the present invention further provides an image conversion apparatus, including:
the input data preprocessing module is used for acquiring input data of a standard dynamic illumination rendering image and performing gamma correction;
the data conversion module is used for converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
and the display brightness data generation module is used for obtaining the display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement an image conversion method as in any embodiment of the invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the image conversion method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the input data of the standard dynamic illumination rendering image is obtained, the gamma correction is carried out, the input data after the gamma correction is converted into the linear brightness data corresponding to the format of the high dynamic illumination rendering image, and then the display brightness data of the high dynamic illumination rendering image is obtained, so that the image after the format conversion is displayed. The embodiment of the invention solves the problems of unstable display contrast and complex image conversion calculation in the conventional image conversion process, realizes the effects of stabilizing the display contrast characteristic and reducing the calculation complexity in the image conversion process, and improves the screen display effect.
Drawings
FIG. 1 is a flowchart of an image transformation method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an image transformation method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of an image transformation method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image conversion apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an image conversion method according to an embodiment of the present invention, where the embodiment is applicable to image conversion, and the method may be executed by an image conversion apparatus, and the apparatus may be implemented in a software and/or hardware manner, and may be integrated in a terminal supporting interface display, such as a television, a computer, and a mobile terminal. As shown in fig. 1, the method specifically includes:
and S110, acquiring input data of the standard dynamic illumination rendering image, and performing gamma correction.
The acquired input data of the standard dynamic illumination rendering image comprises content data of image display and electro-optical conversion (EOTF) or optoelectronic conversion (OETF) data of a terminal supporting the standard dynamic illumination rendering image display. The electro-optical conversion or the photo-electric conversion data of the terminal affects the display brightness characteristics of the terminal screen. On a terminal supporting standard dynamic illumination rendering image display, better display effect can be obtained by adjusting the brightness of a bright part and the brightness of a dark part of a display picture based on the electro-optical conversion characteristic or the photoelectric conversion characteristic. In addition, it should be noted that the image conversion apparatus for acquiring the input data of the standard dynamic illumination rendering image may be integrated on a terminal supporting the display of the standard dynamic illumination rendering image or a terminal supporting the display of the high dynamic illumination rendering image.
In this embodiment, the gamma correction is mainly performed on the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the display of the standard dynamic illumination rendering image, that is, the acquired input data of the standard dynamic illumination rendering image may be directly the electro-optical conversion data or the photoelectric conversion data of the terminal supporting the display of the standard dynamic illumination rendering image. Because the high dynamic illumination rendering image can provide more dynamic range and image details, the dark part of the image is darker, the brightness gain is more intense, the brightness gain of the bright part is slower, the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the high dynamic illumination rendering image display is different from that of the terminal supporting the standard dynamic illumination rendering image display, so that the electro-optical conversion characteristic or the photoelectric conversion characteristic of the two types of terminals cannot be directly mapped to achieve the effect of display conversion, otherwise, the problem of low average brightness of the display picture and the like can be caused. Before the display conversion of the image is realized, the electro-optic conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the display of the standard dynamic illumination rendering image is subjected to the gamma correction preprocessing, so that the problem of influencing the display picture effect can be preliminarily avoided.
Alternatively, the input data after gamma correction is specifically represented as Lc:
Wherein L iscCan be used forThe standard dynamic illumination rendering image display method comprises the steps that electro-optical conversion data of a terminal supporting standard dynamic illumination rendering image display after gamma correction are obtained, V is normalized input data of the standard dynamic illumination rendering image, and concretely comprises normalized input video signal levels corresponding to the standard dynamic illumination rendering image; parameters a and c represent user gain variables, parameters b and d represent user minimum brightness boost variables, and parameters a, c, b and d are all equal to gamma1And gamma2Corresponding gamma value dependence, gamma1And gamma2The corresponding gamma value and the value of t can be set according to the correction requirement.
Illustratively, for better gamma correction results, γ1Can take 2.8, gamma2May take on a value of 1.9, t may take on a value of 0.16, LcSpecifically, the following are shown:
wherein,
LWrepresenting the maximum luminance, L, of a standard dynamic illumination rendered imageBRepresenting the minimum brightness of a standard dynamic lighting rendered image. Different gamma1And gamma2And the value of t corresponds to different gamma correction results, so that the display effect of converting the standard dynamic illumination rendering image into the high dynamic illumination rendering image is influenced. The better the gamma correction is, the closer the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the display of the standard dynamic illumination rendering image is to the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the display of the high dynamic illumination rendering image.
And S120, converting the input data after gamma correction into linear brightness data corresponding to the high-dynamic illumination rendering image format.
The standard dynamic illumination rendering image and the high dynamic illumination rendering image belong to two different types of display images, and the formats of corresponding display related data are different, so that the format of the display related data of the standard dynamic illumination rendering image needs to be converted into the format of the display related data of the high dynamic illumination rendering image, so as to ensure the successful display of a subsequent conversion image.
And S130, obtaining display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
And mapping the linear brightness data corresponding to the format of the obtained high-dynamic illumination rendering image to obtain the final display brightness data of the high-dynamic illumination rendering image, and completing the conversion process of converting the standard dynamic illumination rendering image into the high-dynamic illumination rendering image.
According to the technical scheme, the input data of the standard dynamic illumination rendering image is obtained, gamma correction is carried out, the input data after the gamma correction is converted into linear brightness data corresponding to the format of the high dynamic illumination rendering image, then display brightness data of the high dynamic illumination rendering image is obtained, and display conversion from the standard dynamic illumination rendering image to the high dynamic illumination rendering image is achieved. In the embodiment, from the perspective of changing the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the standard dynamic illumination rendering image display, the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the high dynamic illumination rendering image display is simulated to realize the display conversion of the image, an image conversion method based on a dynamic contrast algorithm is abandoned, the problems that the display contrast is unstable and the image conversion calculation is complex due to dynamic adjustment in the existing image conversion process are solved, the effects of stabilizing the display contrast characteristic in the image conversion process and reducing the calculation complexity are realized, and the screen display effect is improved.
Example two
Fig. 2 is a flowchart of an image conversion method according to a second embodiment of the present invention, which is further optimized based on the above-mentioned embodiments. As shown in fig. 2, the method includes:
s210, acquiring input data of the standard dynamic illumination rendering image, and performing gamma correction.
And S220, mapping the input data after gamma correction.
And S230, obtaining linear brightness data corresponding to the high dynamic illumination rendering image format based on the data after the mapping processing.
The mapping processing of the input data after the gamma correction is a basis for the format conversion of the image data, and specifically, the mapping processing of the input data after the gamma correction to the data before the gamma correction can be performed, and the mapping processing can ensure that the corresponding relationship between the data of two image types is not disordered, thereby avoiding the display picture information error after the conversion.
And S240, obtaining display brightness data of the high-dynamic illumination rendering image by utilizing a mixed logarithm gamma formula according to the linear brightness data.
Obtaining display brightness data F by referring to a Hybrid Log-Gamma (HLG) formulaDSpecifically, the following are shown:
FD=OOTF[E]=α′Eγ+β′,
α′=(LW-LB)/12γ,
β′=LB,
and E is linear brightness data corresponding to the high dynamic illumination rendering image format. Illustratively, γ may take a value of 2.2.
And S250, mapping the obtained display brightness data and the input data of the standard dynamic illumination rendering image to obtain the display data of the high dynamic illumination rendering image.
Display luminance data FDThe mapping process of the input data of the standard dynamic illumination rendering image can be determined by a system gamma, and the BT.1886 standard can be referred to. Specifically, the display data comprises the normalized input video signal level of the terminal supporting the high-dynamic illumination rendering image display, and can be input to the terminal supporting the high-dynamic illumination rendering image display for display. Through the mapping processing, the display data which can be displayed as a high-dynamic illumination rendering image is obtained, and the integrity of the content information of the display image after image conversion and the texture of the display picture are ensured.
According to the technical scheme, the input data of the standard dynamic illumination rendering image is obtained, gamma correction and mapping processing are carried out, linear brightness data corresponding to the format of the high dynamic illumination rendering image is obtained according to the data after mapping processing, the display brightness data of the high dynamic illumination rendering image is obtained by using a mixed logarithm gamma formula, display conversion from the standard dynamic illumination rendering image to the high dynamic illumination rendering image is finally achieved, the problems that the display contrast is unstable in the existing image conversion process and the image conversion calculation is complex are solved, the effects of stabilizing the display contrast characteristic in the image conversion process and reducing the calculation complexity are achieved, and the completeness, the accuracy and the texture of the display image content information after the image conversion are guaranteed.
EXAMPLE III
Fig. 3 is a flowchart of an image conversion method according to a third embodiment of the present invention, and this embodiment is further optimized based on the above-mentioned embodiments. As shown in fig. 3, the method includes:
s310, acquiring input data of the standard dynamic illumination rendering image, and performing gamma correction.
And S320, performing first adjustment on input data of the standard dynamic illumination rendering image based on the first gamma value.
The input data after the first adjustment can be represented as:
L1=Vγ11(LW-LB)+LB,0≤V≤1,
L1may be the first adjusted electro-optical conversion data of the terminal supporting the display of the standard dynamic illumination rendering image, where V is the normalized input data of the standard dynamic illumination rendering image, and optionally, the first gamma value γ11It may be taken as 2.2.
S330, mapping the input data after gamma correction to the input data after first adjustment.
And S340, performing second adjustment on the input data of the standard dynamic illumination rendering image based on the second gamma value.
The input data after the second adjustment can be expressed as:
L2=Vγ22(LW-LB)+LB,0≤V≤1,
L2the second adjusted electro-optical conversion data of the terminal supporting the display of the standard dynamic illumination rendering image can be selected, and the second gamma value gamma is selected22It may be taken as 2.4.
And S350, obtaining linear brightness data corresponding to the high dynamic illumination rendering image format based on the data after the mapping processing and the input data after the second adjustment.
A first gamma value gamma11And a second gamma value gamma22Whether the value is proper or not affects the accuracy of conversion from the data format of the standard dynamic illumination rendering image to the high dynamic illumination rendering image, and the error in the image data format conversion process can be reduced by further processing the data on the basis of twice adjustment of the input data of the standard dynamic illumination rendering image.
Optionally, the linear luminance data is specifically represented as E:
E=(Lc/L1)·(L2/a′)1/m-b′,
wherein L isWRepresenting the maximum luminance, L, of a standard dynamic illumination rendered imageBMinimum luminance, L, representing standard dynamic illumination rendered image1Representing the input data after the first adjustment, L2Representing the input data after the second adjustment, LcIs input data after gamma correction, and m is a second gamma value gamma22. E has a value range of [0,12 ]]This is determined by the mixed logarithmic gamma formula used in the subsequent operations.
Illustratively, the first gamma value γ11Take as 2.2, the second gamma value gamma22Taken as 2.4, then L1、L2Specific expressions of a 'and b' are as follows:
L1=V2.2(Lw-LB)+LB,0≤V≤1,
L2=V2.4(LW-LB)+LB,0≤V≤1,
as is apparent from the expression result of the linear luminance data E, the linear luminance data E is directly related to the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the standard dynamic illumination rendering image, and can be used to represent the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting the display of the high dynamic illumination rendering image. Illustratively, the electro-optic conversion characteristics of the terminal may alternatively be considered, with the above parameters such as L1、L2And a 'and b', and the like, the more appropriate the selection is, the closer the electro-optical conversion characteristic of the terminal represented by the linear brightness data E is to the real electro-optical conversion characteristic of the terminal supporting the display of the high-dynamic illumination rendering image, and the closer the image display effect after the image conversion is to the display effect of the high-dynamic illumination rendering image.
And S360, obtaining display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
The technical scheme of the embodiment includes that input data of a standard dynamic illumination rendering image is obtained, gamma correction is performed, linear brightness data corresponding to a format of the high dynamic illumination rendering image is obtained based on a first gamma value, a second gamma value and the input data after the gamma correction, and display brightness data of the high dynamic illumination rendering image is further obtained, that is, from the viewpoint of changing an electro-optical conversion characteristic or a photoelectric conversion characteristic of a terminal supporting display of the standard dynamic illumination rendering image, the electro-optical conversion characteristic or the photoelectric conversion characteristic of the terminal supporting display of the high dynamic illumination rendering image is simulated, display conversion from the standard dynamic illumination rendering image to the high dynamic illumination rendering image is realized, an image conversion result is accurate, concise and intuitive, and the problems of unstable display contrast and complex image conversion calculation in the conventional image conversion process are solved, the effects of stabilizing the display contrast characteristic in the image conversion process and reducing the calculation complexity are realized, and the screen display effect is improved.
Example four
Fig. 4 is a schematic structural diagram of an image conversion apparatus according to a fourth embodiment of the present invention, which is applicable to image conversion. The image conversion device provided by the embodiment of the invention can execute the image conversion method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus includes an input data preprocessing module 410, a data conversion module 420, and a display luminance data generating module 430, wherein:
and an input data preprocessing module 410, configured to obtain input data of a standard dynamic illumination rendered image, and perform gamma correction.
And the data conversion module 420 is configured to convert the input data after the gamma correction into linear brightness data corresponding to the high-dynamic illumination rendered image format.
The display brightness data generating module 430 is configured to obtain display brightness data of the high dynamic illumination rendered image according to the linear brightness data, so as to perform image display after format conversion.
Optionally, the input data preprocessing module 410 is specifically configured to:
acquiring input data of a standard dynamic illumination rendering image, performing gamma correction, and performing a specific table of the input data after the gamma correctionShown as Lc:
Where V is normalized input data of a standard dynamic illumination rendered image, parameters a and c represent user gain variables, parameters b and d represent user minimum brightness boost variables, γ1And gamma2The corresponding gamma value and the value of t are set according to the correction requirement.
Optionally, the data conversion module 420 includes a mapping processing unit and a linear luminance data conversion unit, wherein:
a mapping processing unit for performing mapping processing on the input data after gamma correction;
and the linear brightness data conversion unit is used for obtaining linear brightness data corresponding to the high-dynamic illumination rendering image format based on the data after the mapping processing.
Optionally, the display brightness data generating module 430 is specifically configured to:
and obtaining display brightness data of the high-dynamic illumination rendering image by utilizing a mixed logarithm gamma formula according to the linear brightness data.
On the basis of the above technical solution, optionally, the mapping processing unit includes a first adjusting subunit and a first mapping subunit, where:
the first adjusting subunit is used for performing first adjustment on input data of the standard dynamic illumination rendering image based on the first gamma value;
and the first mapping subunit is used for mapping the input data after gamma correction to the input data after first adjustment.
Further, the linear luminance data conversion unit includes a second adjusting subunit and a linear conversion subunit, wherein:
the second adjusting subunit is used for performing second adjustment on the input data of the standard dynamic illumination rendering image based on the second gamma value;
and the linear conversion subunit is used for obtaining linear brightness data corresponding to the high-dynamic illumination rendering image format based on the data after the mapping processing and the input data after the second adjustment.
Specifically, the linear luminance data is specifically represented as E:
E=(Lc/L1)·(L2/a′)1/m-b′,
wherein L isWRepresenting the maximum luminance, L, of a standard dynamic illumination rendered imageBMinimum luminance, L, representing standard dynamic illumination rendered image1Representing the input data after the first adjustment, L2Representing the second adjusted input data and m is the second gamma value.
Optionally, the apparatus further comprises a display module, configured to:
and mapping the obtained display brightness data and the input data of the standard dynamic illumination rendering image to obtain the display data of the high dynamic illumination rendering image.
According to the technical scheme, the input data of the standard dynamic illumination rendering image is obtained, the gamma correction is carried out, the input data after the gamma correction is converted into the linear brightness data corresponding to the format of the high dynamic illumination rendering image, the display brightness data of the high dynamic illumination rendering image is further obtained, the display conversion from the standard dynamic illumination rendering image to the high dynamic illumination rendering image is realized, the problems of unstable display contrast and complex image conversion and calculation in the existing image conversion process are solved, the effects of stabilizing the display contrast characteristic in the image conversion process and reducing the calculation complexity are realized, and the screen display effect is improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary terminal 512 suitable for use in implementing embodiments of the present invention. The terminal 512 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the terminal 512 is represented in the form of a general-purpose terminal. The components of the terminal 512 may include, but are not limited to: one or more processors 516, a storage device 528, and a bus 518 that couples the various system components including the storage device 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The terminal 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal 512 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 528 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 530 and/or cache Memory 532. The terminal 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Storage 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in storage 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The terminal 512 may also communicate with one or more external terminals 514 (e.g., keyboard, pointing terminal, display 524, etc.), with one or more terminals that enable a user to interact with the terminal 512, and/or with any terminals (e.g., network card, modem, etc.) that enable the terminal 512 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 522. Also, the terminal 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the internet) via the Network adapter 520. As shown in fig. 5, the network adapter 520 communicates with the other modules of the terminal 512 via the bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the terminal 512, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 516 executes various functional applications and data processing by executing programs stored in the storage device 528, for example, implementing an image conversion method provided by an embodiment of the present invention, the method including:
acquiring input data of a standard dynamic illumination rendering image, and performing gamma correction;
converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
and obtaining display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an image conversion method provided in an embodiment of the present invention, where the method includes:
acquiring input data of a standard dynamic illumination rendering image, and performing gamma correction;
converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
and obtaining display brightness data of the high-dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (9)
1. An image conversion method, comprising:
acquiring input data of a standard dynamic illumination rendering image, and performing gamma correction;
converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
obtaining display brightness data of a high dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion;
wherein the input data after the gamma correction is specifically represented as Lc:
Wherein V is normalized input data of the standard dynamic illumination rendering image, parameters a and c represent user gain variables, parameters b and d represent user minimum brightness improvement variables, and gamma is1And gamma2The corresponding gamma value and the value of t are set according to the correction requirement.
2. The method of claim 1, wherein converting the input data after the gamma correction into linear luminance data corresponding to a high dynamic illumination rendering image format comprises:
mapping the input data after the gamma correction;
and obtaining linear brightness data corresponding to the high dynamic illumination rendering image format based on the data after the mapping processing.
3. The method of claim 2, wherein mapping the input data after the gamma correction comprises:
performing a first adjustment on input data of the standard dynamic illumination rendered image based on a first gamma value;
and mapping the input data after the gamma correction to the input data after the first adjustment.
4. The method according to claim 3, wherein obtaining linear luminance data corresponding to the high dynamic illumination rendered image format based on the data after the mapping process comprises:
performing a second adjustment on the input data of the standard dynamic illumination rendered image based on a second gamma value;
and obtaining linear brightness data corresponding to the high dynamic illumination rendering image format based on the data after the mapping processing and the input data after the second adjustment.
5. The method according to claim 4, wherein the linear luminance data is specifically represented as E:
E=(Lc/L1)·(L2/a′)1/m-b′,
wherein L isWRepresenting a maximum luminance, L, of the standard dynamic illumination rendered imageBRepresenting a minimum luminance, L, of the standard dynamic illumination rendered image1Representing said first adjusted input data, L2Representing said second adjusted input data, m being said secondThe gamma value.
6. The method of claim 1, wherein obtaining display luminance data for a high dynamic illumination rendered image from the linear luminance data comprises:
and obtaining the display brightness data of the high-dynamic illumination rendering image by utilizing a mixed logarithm gamma formula according to the linear brightness data.
7. An image conversion apparatus characterized by comprising:
the input data preprocessing module is used for acquiring input data of a standard dynamic illumination rendering image and performing gamma correction;
the data conversion module is used for converting the input data after gamma correction into linear brightness data corresponding to a high-dynamic illumination rendering image format;
the display brightness data generation module is used for obtaining display brightness data of a high dynamic illumination rendering image according to the linear brightness data so as to display the image after format conversion;
the input data preprocessing module is specifically configured to:
acquiring input data of a standard dynamic illumination rendering image, and performing gamma correction, wherein the input data after the gamma correction is specifically represented as Lc:
Where V is normalized input data of a standard dynamic illumination rendered image, parameters a and c represent user gain variables, parameters b and d represent user minimum brightness boost variables, γ1And gamma2The corresponding gamma value and the value of t are set according to the correction requirement.
8. A terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the image conversion method of any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out an image conversion method according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810175569.XA CN108495108B (en) | 2018-03-02 | 2018-03-02 | Image conversion method and device, terminal, storage medium |
PCT/CN2018/112129 WO2019165791A1 (en) | 2018-03-02 | 2018-10-26 | Image conversion method and apparatus, terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810175569.XA CN108495108B (en) | 2018-03-02 | 2018-03-02 | Image conversion method and device, terminal, storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108495108A CN108495108A (en) | 2018-09-04 |
CN108495108B true CN108495108B (en) | 2019-11-05 |
Family
ID=63341237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810175569.XA Active CN108495108B (en) | 2018-03-02 | 2018-03-02 | Image conversion method and device, terminal, storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108495108B (en) |
WO (1) | WO2019165791A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495108B (en) * | 2018-03-02 | 2019-11-05 | 深圳创维-Rgb电子有限公司 | Image conversion method and device, terminal, storage medium |
CN109274985B (en) * | 2018-10-12 | 2020-04-28 | 腾讯科技(深圳)有限公司 | Video transcoding method and device, computer equipment and storage medium |
CN116072059A (en) * | 2023-02-27 | 2023-05-05 | 卡莱特云科技股份有限公司 | Image display method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105336290A (en) * | 2015-11-18 | 2016-02-17 | 青岛海信电器股份有限公司 | Gamma correction method and device |
WO2016092759A1 (en) * | 2014-12-09 | 2016-06-16 | パナソニックIpマネジメント株式会社 | Transmission method, reception method, transmitting device, and receiving device |
CN106097948A (en) * | 2015-04-29 | 2016-11-09 | 乐金显示有限公司 | Image processing method, image processing circuit and use its display device |
CN106101679A (en) * | 2016-08-23 | 2016-11-09 | 青岛海信电器股份有限公司 | The processing method of high dynamic range signal and processing system |
CN106416216A (en) * | 2014-05-16 | 2017-02-15 | 松下知识产权经营株式会社 | Conversion method and conversion device |
CN106791865A (en) * | 2017-01-20 | 2017-05-31 | 杭州当虹科技有限公司 | The method of the self adaptation form conversion based on high dynamic range video |
CN107154059A (en) * | 2017-06-26 | 2017-09-12 | 杭州当虹科技有限公司 | A kind of high dynamic range video processing method |
CN107590780A (en) * | 2017-08-09 | 2018-01-16 | 深圳Tcl新技术有限公司 | Method for displaying image, terminal and computer-readable recording medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8050511B2 (en) * | 2004-11-16 | 2011-11-01 | Sharp Laboratories Of America, Inc. | High dynamic range images from low dynamic range images |
WO2016038950A1 (en) * | 2014-09-11 | 2016-03-17 | ソニー株式会社 | Image-processing device, and image-processing method |
CN104463820A (en) * | 2014-10-29 | 2015-03-25 | 广东工业大学 | Reverse tone mapping algorithm based on frequency domain |
CN106210921B (en) * | 2016-08-12 | 2019-10-11 | 深圳创维-Rgb电子有限公司 | A kind of image effect method for improving and its device |
CN108495108B (en) * | 2018-03-02 | 2019-11-05 | 深圳创维-Rgb电子有限公司 | Image conversion method and device, terminal, storage medium |
-
2018
- 2018-03-02 CN CN201810175569.XA patent/CN108495108B/en active Active
- 2018-10-26 WO PCT/CN2018/112129 patent/WO2019165791A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106416216A (en) * | 2014-05-16 | 2017-02-15 | 松下知识产权经营株式会社 | Conversion method and conversion device |
WO2016092759A1 (en) * | 2014-12-09 | 2016-06-16 | パナソニックIpマネジメント株式会社 | Transmission method, reception method, transmitting device, and receiving device |
CN106097948A (en) * | 2015-04-29 | 2016-11-09 | 乐金显示有限公司 | Image processing method, image processing circuit and use its display device |
CN105336290A (en) * | 2015-11-18 | 2016-02-17 | 青岛海信电器股份有限公司 | Gamma correction method and device |
CN106101679A (en) * | 2016-08-23 | 2016-11-09 | 青岛海信电器股份有限公司 | The processing method of high dynamic range signal and processing system |
CN106791865A (en) * | 2017-01-20 | 2017-05-31 | 杭州当虹科技有限公司 | The method of the self adaptation form conversion based on high dynamic range video |
CN107154059A (en) * | 2017-06-26 | 2017-09-12 | 杭州当虹科技有限公司 | A kind of high dynamic range video processing method |
CN107590780A (en) * | 2017-08-09 | 2018-01-16 | 深圳Tcl新技术有限公司 | Method for displaying image, terminal and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN108495108A (en) | 2018-09-04 |
WO2019165791A1 (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109783178B (en) | Color adjusting method, device, equipment and medium for interface component | |
CN109300179B (en) | Animation production method, device, terminal and medium | |
CN108495108B (en) | Image conversion method and device, terminal, storage medium | |
CN100508572C (en) | Apparatus, method, and program for processing image | |
CN111526350A (en) | Adaptive video processing | |
CN113099201B (en) | Video signal processing method and device and electronic equipment | |
WO2003003300A2 (en) | Automatic digital picture enhancement | |
US20190355313A1 (en) | Driving method and driving device of display device, and related device | |
US20240046538A1 (en) | Method for generating face shape adjustment image, model training method, apparatus and device | |
US20220237754A1 (en) | Image processing method and apparatus | |
EP4135305A1 (en) | Method and apparatus for acquiring mapping curve parameter | |
JP2017502353A (en) | Method and device for tone mapping high dynamic range images | |
CN108495054B (en) | Method and device for processing high dynamic range signal and computer storage medium | |
CN113096035A (en) | High dynamic range image generation method and device, intelligent terminal and storage medium | |
CN113079362B (en) | Video signal processing method and device and electronic equipment | |
US20210358087A1 (en) | A method and device for enhancing video image quality | |
US11710220B2 (en) | Compressing dynamic range in images using darkness gamma transfer function | |
US20230298303A1 (en) | Video processing method, electronic device, and storage medium | |
CN111833262A (en) | Image noise reduction method and device and electronic equipment | |
CN116489377A (en) | Image processing method and electronic device | |
WO2022247680A1 (en) | Image display method, processing device, and medium | |
CN115801969A (en) | Video data processing method, video display method and device, electronic equipment and readable storage medium | |
CN108495053B (en) | Metadata processing method and device for high dynamic range signal | |
CN112887597A (en) | Image processing method and device, computer readable medium and electronic device | |
CN113822940B (en) | Flat field correction calibration method, device and system, computer equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |