WO2022012330A1 - Color correction method and apparatus, color correction device, and storage medium - Google Patents
Color correction method and apparatus, color correction device, and storage medium Download PDFInfo
- Publication number
- WO2022012330A1 WO2022012330A1 PCT/CN2021/103488 CN2021103488W WO2022012330A1 WO 2022012330 A1 WO2022012330 A1 WO 2022012330A1 CN 2021103488 W CN2021103488 W CN 2021103488W WO 2022012330 A1 WO2022012330 A1 WO 2022012330A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- vertex
- color
- lut
- mapping
- tetrahedron
- 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.)
- Ceased
Links
Images
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
-
- 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
Definitions
- the present invention relates to the field of color correction, in particular to a color correction method and device, a color correction device and a storage medium.
- LED display Light Emitting Diode
- LED display is more and more favored by users for its advantages of energy saving, environmental protection and high efficiency.
- different LED display cannot achieve The range of displayed colors (that is, color gamut) is the same, which leads to differences when different LED displays display the same color.
- Large-sized LED displays are often spliced by multiple small LED displays due to technology and other reasons.
- the effect of a small LED display on the same color display is inconsistent, so the display effect of the entire LED display is very poor.
- the current solution is to find out the common color gamut (reference color gamut) of different LED displays, that is, the color range that can be displayed by different LED displays, and then achieve the same displayed colors through the color gamut mapping method.
- the color gamut mapping method is The color gamut of the input color is mapped to the common color gamut, and each input color can find a corresponding color in the common color gamut, so as to achieve the color correction function of multiple LED displays, and then achieve display consistency.
- 3D-LUT 3D Look-Up-Table, 3D color look-up table
- 3D-LUT 3D Look-Up-Table, 3D color look-up table
- It is often used for color calibration and toning.
- 3D-LUT one 3D matrix transformation and two 2D matrix transformations are used to calculate the weight coefficient principle, and the calculation is very complicated; and a large number of multiplications are required for volume calculation.
- complex circuits are required for hardware implementation, which consumes a lot of hardware multipliers and RAM resources, and has great restrictions on some systems with strong real-time performance and large amount of data processing, such as the LED display of 8K@60fps video signals.
- the hardware circuit has high requirements, and a solution to optimize the calculation speed is proposed.
- a color correction method includes: inputting and storing 3D-LUT correction reference color data; inputting original color RGB data to perform 3D-LUT mapping, and obtaining a 3D-LUT mapping
- the color data after the 3D-LUT mapping is corrected by using the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain the corrected color data.
- a color correction device includes: a storage module, a mapping module, and a correction module, wherein: the storage module is used to input and store a 3D-LUT correction reference color Data; the mapping module is used to input the original color RGB data to carry out 3D-LUT mapping, and obtain the color data after the 3D-LUT mapping; the correction module is used to use the four-sided color data after the 3D-LUT mapping.
- the volume interpolation algorithm and the 3D-LUT correction reference color data are corrected to obtain corrected color data.
- a color correction apparatus comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being When the processor is executed, the steps of implementing the color correction method provided in the embodiment of the present invention are realized.
- a computer-readable storage medium where a program of a color correction method is stored on the computer-readable storage medium, and the program of the color correction method is executed by a processor When implementing the steps of the color correction method provided by the embodiment of the present invention.
- FIG. 1 is a schematic flowchart of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm provided by an embodiment of the present invention.
- FIG. 2 is a schematic diagram of inputting original color RGB data for 3D-LUT mapping according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of correcting color data after 3D-LUT mapping using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of a tetrahedral interpolation provided by an embodiment of the present invention.
- FIG. 5 is a schematic diagram of a cube cutting provided by an embodiment of the present invention.
- FIG. 6 is a schematic diagram of an A'C direction top view according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of a tetrahedral V4 interpolation provided by an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a color correction apparatus according to an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a color correction device according to an embodiment of the present invention.
- the present invention provides a 3D-LUT color correction method based on a tetrahedral interpolation algorithm, the method comprising:
- the 3D-LUT color correction method based on tetrahedral interpolation is adopted, that is, the input original color data is 3D-LUT mapped and then corrected by the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data, and the correction is obtained.
- the obtained color data can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, and greatly reduce the hardware circuit.
- the realization difficulty is improved, and the real-time performance of circuit data processing is improved, thereby solving the problem of complicated tetrahedral interpolation calculation and complex interpolation coefficients in the prior art, which complicates hardware circuit implementation.
- the method before the step S2, the method further includes: reading original color data for correcting the color gamut input display.
- the input original color (RGB) data is subjected to 3D-LUT mapping to obtain the color data after 3D-LUT mapping, including: reading a color gamut input display for correcting the color gamut.
- Raw color data including: reading a color gamut input display for correcting the color gamut.
- the integer part is used to determine the address of the mapping point at the 8 vertices of the smallest cube of the 3D-LUT.
- the fractional part is the position of the mapping point inside the smallest cube determined by the integer part. It determines which tetrahedron's four vertex addresses and the interpolation formula the input color value is in the smallest cube, and also participates in the calculation of the interpolation coefficient.
- the 3D-LUT is essentially a 3D (three-dimensional) color lookup table (also called a three-dimensional color map), and any color input can be matched and output from the 3D-LUT table.
- 3D-LUT color correction is to find the corrected color in the color-corrected 3D color look-up table by inputting color data values, and map the color gamut of the input color to the 3D-LUT.
- the color data after the 3D-LUT mapping is obtained, so that the mapped color can be used to determine the mapping point in the smallest cube of the 3D-LUT.
- the addresses of the 8 vertices and the addresses of the four vertices of the tetrahedron, as well as the determination of the interpolation formula and interpolation coefficient, help to effectively simplify the calculation of the interpolation coefficient of the tetrahedron, and only four multipliers are required for specific circuit applications.
- the tetrahedral interpolation algorithm is optimized, the realization of the hardware circuit is simplified, the realization difficulty of the hardware circuit is reduced to a great extent, and the real-time performance of the circuit data processing is improved, so that the complex interpolation coefficient of the tetrahedral interpolation calculation in the prior art can be solved and the realization of the hardware circuit is complicated. ization problem.
- step S3 the 3D-LUT-mapped color data is corrected using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain a corrected post color data.
- Step S31 Determine the interpolation coefficient and the interpolation formula of the tetrahedral interpolation algorithm according to the fractional part in the color data mapped by the 3D-LUT.
- Step S32 Determine the addresses of the four vertices of the tetrahedral interpolation algorithm according to the integer part in the color data mapped by the 3D-LUT.
- Step S33 Search the 3D-LUT correction reference color data according to the four vertex addresses to obtain the color values of the four vertex addresses of the tetrahedron where the original color is located.
- Step S34 according to the color values of the addresses of the four vertices of the tetrahedron and the interpolation coefficients of the four vertices of the tetrahedron, use the interpolation formula to perform weighted calculation to obtain the color values (R 1 , G 1 , B 1 ) after interpolation correction, and finally Output corrected color values (R 1 , G 1 , B 1 ).
- the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm are determined by the fractional part in the color data mapped by the 3D-LUT, and the addresses of the four vertices of the tetrahedral interpolation algorithm are determined by the integer part.
- the four vertex addresses are searched in the 3D-LUT correction reference color data to obtain the color value of the four vertex addresses of the tetrahedron where the original color is located, and then the color value of the four vertex addresses of the tetrahedron where it is located is based on the interpolation of the four vertices of the tetrahedron.
- the coefficients are weighted by the interpolation formula to obtain the color value after interpolation correction; that is, the input original color data is mapped by 3D-LUT, and then the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data are used for correction, and the corrected color data is obtained.
- the interpolation formula which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, greatly reduce the difficulty of hardware circuit implementation, and improve the The real-time performance of circuit data processing can solve the problem of complicated tetrahedral interpolation calculation interpolation coefficients and complicated hardware circuit implementation in the prior art.
- the application of the tetrahedral interpolation algorithm in color gamut scaling is to calculate the ratio of the volume of the four small tetrahedra formed by mapping points to the four faces of the large tetrahedron to the volume of the large tetrahedron as the interpolation coefficient, and take the tetrahedron as the interpolation coefficient.
- the color values of the four vertices of the body are weighted with the corresponding interpolation coefficients to obtain the color values of the mapping points.
- the mapping point P is in the tetrahedron ABCD, then the mapping point P and each face of the large tetrahedron can form a small tetrahedron, PBCD, PACD, PABD and PABC, and then Let A', B', C', D', P' be the RGB color values corresponding to the five points of ABCDP, a, b, c, d are the four tetrahedrons PBCD, PACD, PABD, The volume ratio (ie the interpolation coefficient) of PABC and the large tetrahedron ABCD respectively, then the calculation formula of the color value of the mapping point P (ie the interpolation formula) can be expressed as:
- the relationship between the interpolation coefficient and the multiplied vertex is the color value of the vertex multiplied by the ratio of the tetrahedron volume formed by the opposite face of the vertex and the mapping point P to the large tetrahedron (ie, the interpolation coefficient).
- the tetrahedral interpolation algorithm involves the volume calculation formula of the tetrahedron, and the formula is:
- V represents the volume of the desired tetrahedron
- h represents the vertical distance from any vertex to the plane where the vertex is opposite to the plane of the triangle
- S is the area of the triangle on the vertex opposite.
- the tetrahedron interpolation algorithm is to cut the cube into 6 congruent tetrahedrons.
- the way of cutting the tetrahedron is to pass through (0,0,0) and (1,1,1) to make the square diagonal of the three pairs of parallel faces of the cube. wire cutting.
- the A'BCD' section is made through the parallel planes ABB'A' and DCC'D', and A'C must be on the section, so it can only be A'BCD'; similarly, make the section ACC'A' and A'B'CD, the intersection line of these three tangent planes is A'C, at this time, the three tangent planes cut the cube into 6 congruent tetrahedra A'ABC(V1), A'DAC(V2), A' D'DC(V3), A'C'D'C(V4), A'B'C'C(V5), A'BB'C(V6), the content in brackets represents the abbreviation of the tetrahedron, such as shown in Figure 6.
- Figure 6 is the top view of Figure 5 in the direction of A'C.
- the cube is divided into 6 equal parts. It can be seen from Figure 4 that each tetrahedron has two faces on two of the cube faces, and the other two faces. on two of the three cut planes. The two faces on the cube have the same area (1/2 ⁇ 1 ⁇ 1), and the two faces on the tangent have the same area Each area of the tetrahedron can be calculated.
- the fractional parts f R , f G and f B calculated by the aforementioned scaling mapping the volume of the mapping point P to the two faces on the cube can be obtained, as long as the mapping point P is calculated to The height of the two cut planes can be used to find all volumes.
- determining the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm according to the fractional part in the color data mapped by the 3D-LUT includes:
- Step S311 compare the size relationship between f R , f G and f B of the fractional part to determine the tetrahedron where the mapping point P is located and the relative position of the tetrahedron vertex on the cube.
- Step S312 Determine the interpolation coefficients and interpolation formulas of the four vertices of the tetrahedron where the mapping point P is located according to f R , f G and f B of the fractional part.
- the comparison of the size relationship between f R , f G and f B of the fractional part determines the tetrahedron where the mapping point P is located and the relative position of the tetrahedron vertex on the cube; Including: using the three-dimensional projection dimension reduction method to determine the tetrahedron where the mapping point P is located, including:
- the line is above or below the straight line, so as to exclude the tetrahedron on both sides of the tangent plane formed by the straight line in the direction and the angle line as the two sides; wherein, it is judged that the mapping point P is in order to form the direction of the tetrahedron.
- the diagonal line formed by the other vertex on the plane is above or below the straight line, which is determined by comparing the magnitude relationship between the two related values of the fractional part, thereby determining the tetrahedron where the mapping point P is located;
- mapping point P is projected along another direction with the first vertex as the starting point to a plane perpendicular to the direction, and the above steps are repeated until the mapping point P is determined. tetrahedron.
- Step S3111 select the first vertex of the cube, project the mapping point P along the first direction from the first vertex to the first plane perpendicular to the first direction, and determine that the mapping point P is in order to form the first direction.
- the second vertex is above or below the diagonal line formed by the first plane as the first straight line, so as to exclude the two planes formed by the straight line in the first direction and the plane formed by the two sides as the tangent plane. side tetrahedron.
- judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
- Step S3112 then project the mapping point P along the second direction with the first vertex as the starting point to the second plane perpendicular to the second direction, and determine that the mapping point P is in the third vertex to form the second direction.
- the diagonal formed by the second plane is above or below the second straight line, so as to exclude the tetrahedron with the two sides of the tangent plane formed by the straight line in the second direction and the second straight line as two sides.
- judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
- Step S3113 project the mapping point P to the third plane perpendicular to the third direction along the third direction of the first vertex as the starting point, and judge that the mapping point P is in the fourth vertex to form the third direction in the third direction.
- the diagonal line formed by the three planes is above or below the third straight line, so as to exclude the tetrahedron whose two sides of the tangent plane are formed by the straight line in the third direction and the third straight line as the two sides.
- judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
- the tetrahedron where the mapping point P is located can be determined.
- the vertex A' of the cube is selected as an example to further illustrate the tetrahedron where the mapping point P is located.
- mapping point P Project the mapping point P on the plane DCC'D' along the A'D' direction, and determine whether the mapping point P is above or below the straight line CD', so as to exclude half of the tetrahedrons on both sides of the tangent plane A'BCD'.
- mapping point P projects the mapping point P to the plane BB'C'C along the A'B' direction, and judge whether the mapping point P is above or below the straight line B'C, so as to exclude one or two of the remaining three tetrahedra .
- the tetrahedron where the mapping point P is located can be determined only by comparing the size relationship among f R , f G and f B .
- the interpolation coefficients and interpolation formulas of the four vertices of the tetrahedron where the mapping point P is located are determined according to f R , f G and f B of the fractional part.
- the interpolation coefficient and the interpolation formula for determining the four vertices of the tetrahedron where the mapping point P is located are described by taking the mapping point P in the tetrahedron A'C'D'C(V4) as an example.
- step S311 the tetrahedron where the mapping point P is located has been determined, and the next step is to determine the volumes of the four small tetrahedra formed by the mapping point P to the four faces of the large tetrahedron.
- Six have been given above.
- the interpolation coefficient can be obtained as long as the height of the mapping point P to the four faces is calculated.
- the distance between the mapping point P and the plane A'CD' can be projected on the tangent plane CDD'C' for calculation, because the plane A'CD' is in the tangent plane A' On BCD' and perpendicular to the tangent plane CDD'C', the projected plane A'CD' becomes a straight line CD', and the mapping point P is projected into a point P1, then the distance from the mapping point P to the plane A'CD' can be converted
- the distance from the mapping point P to the four faces is expressed as da1, dc1, dd1 and dc, which can be obtained according to the previous calculation:
- the color values corresponding to the four vertices CA'C'D' of the large tetrahedron A'CC'D' are Pc, Pa1, Pc1, and Pd1.
- the interpolation formula of each tetrahedron can be calculated.
- Set the color values corresponding to the 8 vertices ABCDA'B'C'D' of the cube to Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, Pd1, and the final interpolation formula is organized as the following table:
- the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm are determined by the fractional part in the color data mapped by the 3D-LUT, and the addresses of the four vertices of the tetrahedral interpolation algorithm are determined by the integer part.
- the four vertex addresses are searched in the 3D-LUT correction reference color data to obtain the color value of the four vertex addresses of the tetrahedron where the original color is located, and then the color value of the four vertex addresses of the tetrahedron where it is located is based on the interpolation of the four vertices of the tetrahedron.
- the coefficients are weighted by the interpolation formula to obtain the color value after interpolation correction; that is, the input original color data is mapped by 3D-LUT, and then the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data are used for correction, and the corrected color data is obtained.
- the interpolation formula which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, greatly reduce the difficulty of hardware circuit implementation, and improve the The real-time performance of circuit data processing can solve the problem of complicated tetrahedral interpolation calculation interpolation coefficients and complicated hardware circuit implementation in the prior art.
- the determining the addresses of the four vertices of the tetrahedral interpolation algorithm according to the integer part of the color data mapped by the 3D-LUT includes:
- Step S321 determine the addresses of the eight vertices of the mapping point P in the smallest cube of the 3D-LUT.
- Step S322 Obtain four vertex addresses of the tetrahedron where the original color is located from the eight vertex addresses according to the relative position of the tetrahedron where the vertex of the tetrahedron is located determined by the fractional part from the eight vertex addresses.
- the determining of the eight vertex addresses of the mapping point P in the smallest cube of the 3D-LUT according to the integer part (R 0 , G 0 , B 0 ) includes:
- Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, and Pd1 are the integer part of the color value calculated by the previous color gamut mapping to obtain the coordinates of the corresponding A' point of the 3D-LUT, because the 3D-LUT
- the data storage is continuous, so the coordinates of the other 7 points of the minimum cube can be calculated according to the coordinates of the corresponding point A'.
- the addresses of the eight vertices of the mapping point P in the smallest cube of the 3D-LUT are as follows:
- the corresponding 3D-LUT color values are extracted from the 3D-LUT correction reference color data through the above coordinates to obtain Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, and Pd1.
- the interpolation formula can be substituted for the interpolation weighting calculation to obtain the color value after interpolation correction.
- step S322 the four vertex addresses of the tetrahedron where the original color is located are obtained from the 8 vertex addresses at the relative position of the cube where the vertex of the tetrahedron determined by the fractional part is located, including:
- the four vertices of the large tetrahedron A'CC'D' (V4) where the mapping point P is located are A', C, C', and D'.
- the number of 3D-LUT sampling points is M
- the RGB integer parts of the mapping point P are R 0 , G 0 and B 0 respectively
- the four vertex addresses of the tetrahedron where the original color is obtained from the eight vertex addresses are respectively :
- the addresses of the four vertices of the tetrahedral interpolation algorithm are determined for the integer part in the color data mapped by the 3D-LUT, and the 3D-LUT correction reference color data is searched according to the four vertex addresses.
- the input original color data is 3D-LUT mapped and then corrected using the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain the corrected color data, which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the In specific circuit applications, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of hardware circuits, greatly reduce the difficulty of hardware circuit implementation, and improve the real-time performance of circuit data processing, thereby solving the problems in the prior art.
- the tetrahedral interpolation calculation of the interpolation coefficient is complex, and the hardware circuit is complicated to realize the problem.
- the method further includes: outputting the corrected color values (R1, G1, B1) to the LED display screen for display.
- the method further includes: collecting color data of the LED display screen to detect the color gamut.
- the color gamut detection is performed by sequentially collecting the display data of each LED display screen to detect whether the color gamut of each display screen is consistent. If they are consistent, the calibration is successful; if they are inconsistent, the calibration is unsuccessful.
- the present invention provides a color correction device, the device includes: a storage module 10, a mapping module 20, and a correction module 30, wherein:
- the storage module 10 is used for inputting and storing 3D-LUT calibration reference color data
- Described mapping module 20 is used for inputting original color RGB data to carry out 3D-LUT mapping, obtains the color data after 3D-LUT mapping;
- the correction module 30 is configured to correct the color data mapped by the 3D-LUT using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain corrected color data.
- the 3D-LUT color correction method based on tetrahedral interpolation is adopted, that is, the input original color data is 3D-LUT mapped and then corrected by the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data, and the correction is obtained.
- the obtained color data can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, and greatly reduce the hardware circuit.
- the realization difficulty is improved, and the real-time performance of circuit data processing is improved, thereby solving the problem of complicated tetrahedral interpolation calculation and complex interpolation coefficients in the prior art, which complicates hardware circuit implementation.
- an embodiment of the present invention also provides a 3D-LUT color correction device, as shown in FIG. 9 , including: a memory, a processor, and one or more computer programs stored in the memory and executable on the processor , when the one or more computer programs are executed by the processor to implement the following steps of the 3D-LUT color correction method based on the tetrahedral interpolation algorithm provided by the embodiment of the present invention:
- the methods disclosed in the above embodiments of the present invention may be applied to the processor 901 or implemented by the processor 901 .
- the processor 901 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 901 or an instruction in the form of software.
- the processor 901 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
- the processor 901 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present invention.
- a general purpose processor may be a microprocessor or any conventional processor or the like.
- the steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
- the software module may be located in a storage medium, and the storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the foregoing method in combination with its hardware.
- the memory 902 in this embodiment of the present invention may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
- the non-volatile memory can be a read-only memory (ROM, Read-Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, Ferromagnetic Random Access Memory), Flash Memory (Flash Memory) or other memory technologies, CD-ROM Read-Only Memory (CD-ROM, Compact Disk Read-Only Memory), Digital Versatile Disk (DVD, Digital Video Disk) or other optical disk storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage device; volatile memory may be random access Access memory (RAM, Random Access Memory),
- an embodiment of the present invention further provides a computer-readable storage medium, where a program of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm is stored on the computer-readable storage medium.
- a program of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm is stored on the computer-readable storage medium.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
Description
本申请要求于2020年7月14日提交的申请号为202010673324.7、名称为“一种色彩校正方法和装置、色彩校正设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202010673324.7 and titled "A Color Correction Method and Device, Color Correction Device and Storage Medium" filed on July 14, 2020, the entire contents of which are incorporated by reference in in this application.
本发明涉及色彩校正领域,特别涉及一种色彩校正方法和装置、色彩校正设备和存储介质。The present invention relates to the field of color correction, in particular to a color correction method and device, a color correction device and a storage medium.
LED显示屏(Light Emitting Diode,发光二极管)作为新型的显示技术,以其节能、环保、高效等优点越来越受到用户的青睐,但是由于LED屏生产工艺的影响,不同的LED显示屏无法达到显示色彩的范围(即色域)一致,导致不同的LED显示屏显示相同色彩时会有差异,而尺寸大的LED显示屏受技术等原因往往由多个小LED显示屏拼接而成,若每个小的LED显示屏对相同色彩显示的效果不一致,那么整个LED显示屏的显示效果就非常差了。As a new type of display technology, LED display (Light Emitting Diode) is more and more favored by users for its advantages of energy saving, environmental protection and high efficiency. However, due to the influence of the production process of LED display, different LED display cannot achieve The range of displayed colors (that is, color gamut) is the same, which leads to differences when different LED displays display the same color. Large-sized LED displays are often spliced by multiple small LED displays due to technology and other reasons. The effect of a small LED display on the same color display is inconsistent, so the display effect of the entire LED display is very poor.
目前的解决方案是找出不同LED显示屏的公共色域(基准色域),即不同LED显示屏都能显示的颜色范围,然后通过色域映射方法达到显示的色彩一致,色域映射方法就是将输入颜色的色域映射到公共色域,每输入一个颜色都能在公共色域中找到一个颜色与之对应,从而达到多个LED显示屏色彩校正功能,然后实现显示一致性。The current solution is to find out the common color gamut (reference color gamut) of different LED displays, that is, the color range that can be displayed by different LED displays, and then achieve the same displayed colors through the color gamut mapping method. The color gamut mapping method is The color gamut of the input color is mapped to the common color gamut, and each input color can find a corresponding color in the common color gamut, so as to achieve the color correction function of multiple LED displays, and then achieve display consistency.
目前色域映射领域中3D-LUT(3D Look-Up-Table,3D色彩查找表)技术在LED影院屏上因其出色的图像处理效果以及优越的处理速度被推荐的应用,常用于色彩校准与调色。目前利用3D-LUT实现色彩校正的方法中,利用一次三维矩阵变换和两次二维矩阵变换去计算权值系数原理,其计算非常复杂;并且涉及到体积计算需要大量乘法。造成在硬件实现上需要复杂电路去实现,消耗较多的硬件乘法器和RAM资源,对一些实时性强且处理数据量大的系统有很大限制,例如8K@60fps视频信号的LED显示,对硬件电路有较高的要求,对此提出一种优化计算速度的解决方案。At present, 3D-LUT (3D Look-Up-Table, 3D color look-up table) technology in the field of color gamut mapping is recommended in the LED cinema screen because of its excellent image processing effect and superior processing speed. It is often used for color calibration and toning. In the current color correction method using 3D-LUT, one 3D matrix transformation and two 2D matrix transformations are used to calculate the weight coefficient principle, and the calculation is very complicated; and a large number of multiplications are required for volume calculation. As a result, complex circuits are required for hardware implementation, which consumes a lot of hardware multipliers and RAM resources, and has great restrictions on some systems with strong real-time performance and large amount of data processing, such as the LED display of 8K@60fps video signals. The hardware circuit has high requirements, and a solution to optimize the calculation speed is proposed.
发明内容SUMMARY OF THE INVENTION
根据本发明实施例的一个方面,提供的一种色彩校正方法,所述方法包括:输入并存储3D-LUT校正基准色彩数据;输入原始色彩RGB数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据;将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。According to an aspect of the embodiments of the present invention, a color correction method is provided, the method includes: inputting and storing 3D-LUT correction reference color data; inputting original color RGB data to perform 3D-LUT mapping, and obtaining a 3D-LUT mapping The color data after the 3D-LUT mapping is corrected by using the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain the corrected color data.
根据本发明实施例的另一个方面,提供的一种色彩校正装置,所述装置包括:存储模块、映射模块、校正模块,其中:所述存储模块,用于输入并存储3D-LUT校正基准色彩数据;所述映射模块,用于输入原始色彩RGB数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据;所述校正模块,用于将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。According to another aspect of the embodiments of the present invention, a color correction device is provided, the device includes: a storage module, a mapping module, and a correction module, wherein: the storage module is used to input and store a 3D-LUT correction reference color Data; the mapping module is used to input the original color RGB data to carry out 3D-LUT mapping, and obtain the color data after the 3D-LUT mapping; the correction module is used to use the four-sided color data after the 3D-LUT mapping. The volume interpolation algorithm and the 3D-LUT correction reference color data are corrected to obtain corrected color data.
根据本发明实施例的另一个方面,提供的一种色彩校正设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现本发明实施例提供的所述的一种色彩校正方法的步骤。According to another aspect of the embodiments of the present invention, a color correction apparatus is provided, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being When the processor is executed, the steps of implementing the color correction method provided in the embodiment of the present invention are realized.
根据本发明实施例的另一个方面,提供的一种计算机可读存储介质,所述计算机可读存储介质上存储有一种色彩校正方法的程序,所述一种色彩校正方法的程序被处理器执行时实现本发明实施例提供的所述的一种色彩校正方法的步骤。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a program of a color correction method is stored on the computer-readable storage medium, and the program of the color correction method is executed by a processor When implementing the steps of the color correction method provided by the embodiment of the present invention.
本发明的各个实施例的细节将在下面的附图和描述中进行说明。根据说明书、附图以及权利要求书的记载,本领域技术人员将容易理解本发明的其它特征、解决的问题以及有益效果。The details of various embodiments of the invention are set forth in the accompanying drawings and the description below. Those skilled in the art will easily understand other features, problems to be solved, and beneficial effects of the present invention from the description, drawings, and claims.
为了更好地描述和说明本申请的实施例,可参考一幅或多幅附图,但用于描述附图的附加细节或示例不应当被认为是对本申请的发明创造、目前所描述的实施例或优选方式中任何一者的范围的限制。In order to better describe and illustrate the embodiments of the present application, reference may be made to one or more drawings, but the additional details or examples used to describe the drawings should not be considered as invention-creations, presently described implementations of the present application A limitation of the scope of any one of the examples or preferred modes.
图1为本发明实施例提供的一种基于四面体插值算法的3D-LUT色彩校正方法的流程示意图。FIG. 1 is a schematic flowchart of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm provided by an embodiment of the present invention.
图2为本发明实施例提供的一种输入原始色彩RGB数据进行3D-LUT映射的示意图。FIG. 2 is a schematic diagram of inputting original color RGB data for 3D-LUT mapping according to an embodiment of the present invention.
图3为本发明实施例提供的一种将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正的流程示意图。FIG. 3 is a schematic flowchart of correcting color data after 3D-LUT mapping using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data according to an embodiment of the present invention.
图4为本发明实施例提供的一种四面体插值的示意图。FIG. 4 is a schematic diagram of a tetrahedral interpolation provided by an embodiment of the present invention.
图5为本发明实施例提供的一种正方体切割的示意图。FIG. 5 is a schematic diagram of a cube cutting provided by an embodiment of the present invention.
图6为本发明实施例提供的A’C方向俯视图的示意图。FIG. 6 is a schematic diagram of an A'C direction top view according to an embodiment of the present invention.
图7为本发明实施例提供的一种四面体V4插值的示意图。FIG. 7 is a schematic diagram of a tetrahedral V4 interpolation provided by an embodiment of the present invention.
图8为本发明实施例提供的一种色彩校正装置的结构示意图。FIG. 8 is a schematic structural diagram of a color correction apparatus according to an embodiment of the present invention.
图9为本发明实施例提供的一种色彩校正设备的结构示意图。FIG. 9 is a schematic structural diagram of a color correction device according to an embodiment of the present invention.
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and more comprehensible, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention, but not for limiting the present invention.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present invention and have no specific meaning per se. Thus, "module", "component" or "unit" may be used interchangeably.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
在一个实施例中,如图1所示,本发明提供一种基于四面体插值算法的3D-LUT色彩校正方法,所述方法包括:In one embodiment, as shown in FIG. 1 , the present invention provides a 3D-LUT color correction method based on a tetrahedral interpolation algorithm, the method comprising:
S1、输入并存储3D-LUT校正基准色彩数据。S1. Input and
S2、输入原始色彩(RGB)数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据。S2. Input original color (RGB) data to perform 3D-LUT mapping to obtain color data after 3D-LUT mapping.
S3、将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。S3. Correct the color data mapped by the 3D-LUT using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain corrected color data.
在本实施例中,通过采用基于四面体插值的3D-LUT色彩校正方法,即将输入原始色彩数据经3D-LUT映射后再采用四面体插值算法和3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据,能够有效的简化四面体插值系 数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现,很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, the 3D-LUT color correction method based on tetrahedral interpolation is adopted, that is, the input original color data is 3D-LUT mapped and then corrected by the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data, and the correction is obtained. The obtained color data can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, and greatly reduce the hardware circuit. The realization difficulty is improved, and the real-time performance of circuit data processing is improved, thereby solving the problem of complicated tetrahedral interpolation calculation and complex interpolation coefficients in the prior art, which complicates hardware circuit implementation.
在一个实施例中,在所述步骤S2之前,所述方法还包括:读取用于校正色域输入显示的原始色彩数据。In one embodiment, before the step S2, the method further includes: reading original color data for correcting the color gamut input display.
在一个实施例中,所述步骤S2中,所述输入原始色彩(RGB)数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据,包括:读取用于校正色域输入显示的原始色彩数据。In an embodiment, in the step S2, the input original color (RGB) data is subjected to 3D-LUT mapping to obtain the color data after 3D-LUT mapping, including: reading a color gamut input display for correcting the color gamut. Raw color data.
将所述原始色数数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据,包括:Perform 3D-LUT mapping on the original color number data to obtain color data after 3D-LUT mapping, including:
输入原始色彩(R,G,B)数据,将RGB三个分量分别乘以色域缩放比scale,得到映射后的色彩数据(R 0+f R,G 0+f G,B 0+f B),其中,3D-LUT映射缩放后的位置一般分为整数部分和小数部分,R 0、G 0和B 0是映射后的色彩在RGB分量上的整数部分,f R、f G和f B是映射后的色彩在RGB分量上的小数部分;色域缩放比scale=(M-1)/(2 n-1),n为输入色彩的位宽,M为3D-LUT的单维采样点数。 Input the original color (R, G, B) data, multiply the three RGB components by the color gamut scaling ratio scale, and obtain the mapped color data (R 0 +f R , G 0 +f G , B 0 +f B ) ), where the scaled position of the 3D-LUT mapping is generally divided into an integer part and a fractional part, R 0 , G 0 and B 0 are the integer parts of the mapped color on the RGB components, f R , f G and f B is the fractional part of the mapped color on the RGB component; the color gamut scaling ratio scale=(M-1)/(2 n -1), n is the bit width of the input color, and M is the number of single-dimensional sampling points of the 3D-LUT .
其中,整数部分用于确定映射点在3D-LUT的最小立方体的8个顶点的地址。小数部分是映射点在整数部分确定的最小立方体内部的位置,判断输入色彩值在最小立方体中哪个四面体的四个顶点地址以及插值公式,同时也参与插值系数的计算。Among them, the integer part is used to determine the address of the mapping point at the 8 vertices of the smallest cube of the 3D-LUT. The fractional part is the position of the mapping point inside the smallest cube determined by the integer part. It determines which tetrahedron's four vertex addresses and the interpolation formula the input color value is in the smallest cube, and also participates in the calculation of the interpolation coefficient.
如图2所示,3D-LUT本质是一个3D(三维)色彩查找表(也叫三维色彩映射表),输入任意一个色彩都可以从3D-LUT表中匹配输出一个色彩。3D-LUT色彩校正就是通过输入色彩数据值在色彩校正的3D色彩查找表中找到校正后的色彩,由输入色彩的色域映射到3D-LUT中,输入色彩的位宽n与3D-LUT的单维采样点数M进行计算缩放比,色域缩放比为scale=(M-1)/(2 n-1)。 As shown in Figure 2, the 3D-LUT is essentially a 3D (three-dimensional) color lookup table (also called a three-dimensional color map), and any color input can be matched and output from the 3D-LUT table. 3D-LUT color correction is to find the corrected color in the color-corrected 3D color look-up table by inputting color data values, and map the color gamut of the input color to the 3D-LUT. The single-dimensional sampling point number M is used to calculate the scaling ratio, and the color gamut scaling ratio is scale=(M-1)/(2 n -1).
在本实施例中,通过输入原始色彩RGB在3D-LUT中映射,从而得到经3D-LUT映射后的色彩数据,以使映射后的色彩可以应用于确定映射点在3D-LUT的最小立方体的8个顶点的地址及四面体的四个顶点地址,以及确定插值公式和插值系数,有助于有效的简化四面体插值系数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现, 很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, by inputting the original color RGB and mapping in the 3D-LUT, the color data after the 3D-LUT mapping is obtained, so that the mapped color can be used to determine the mapping point in the smallest cube of the 3D-LUT. The addresses of the 8 vertices and the addresses of the four vertices of the tetrahedron, as well as the determination of the interpolation formula and interpolation coefficient, help to effectively simplify the calculation of the interpolation coefficient of the tetrahedron, and only four multipliers are required for specific circuit applications. The tetrahedral interpolation algorithm is optimized, the realization of the hardware circuit is simplified, the realization difficulty of the hardware circuit is reduced to a great extent, and the real-time performance of the circuit data processing is improved, so that the complex interpolation coefficient of the tetrahedral interpolation calculation in the prior art can be solved and the realization of the hardware circuit is complicated. ization problem.
在一个实施例中,如图3所示,所述步骤S3中,所述将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。包括:In one embodiment, as shown in FIG. 3 , in step S3, the 3D-LUT-mapped color data is corrected using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain a corrected post color data. include:
步骤S31、根据经3D-LUT映射后的色彩数据中的小数部分确定四面体插值算法的插值系数和插值公式。Step S31: Determine the interpolation coefficient and the interpolation formula of the tetrahedral interpolation algorithm according to the fractional part in the color data mapped by the 3D-LUT.
步骤S32、根据经3D-LUT映射后的色彩数据中的整数部分确定四面体插值算法的四个顶点的地址。Step S32: Determine the addresses of the four vertices of the tetrahedral interpolation algorithm according to the integer part in the color data mapped by the 3D-LUT.
步骤S33、根据所述四个顶点地址在3D-LUT校正基准色彩数据中查找获得原始色彩所在四面体的四个顶点地址的色彩值。Step S33: Search the 3D-LUT correction reference color data according to the four vertex addresses to obtain the color values of the four vertex addresses of the tetrahedron where the original color is located.
步骤S34、根据所在四面体的四个顶点地址的色彩值与四面体四个顶点的插值系数利用插值公式进行加权计算,得到插值校正后的色彩值(R 1,G 1,B 1),最终输出校正后的色彩值(R 1,G 1,B 1)。 Step S34, according to the color values of the addresses of the four vertices of the tetrahedron and the interpolation coefficients of the four vertices of the tetrahedron, use the interpolation formula to perform weighted calculation to obtain the color values (R 1 , G 1 , B 1 ) after interpolation correction, and finally Output corrected color values (R 1 , G 1 , B 1 ).
在本实施例中,通过对经3D-LUT映射后的色彩数据中的小数部分确定四面体插值算法的插值系数和插值公式,整数部分确定四面体插值算法的四个顶点的地址,根据所述四个顶点地址在3D-LUT校正基准色彩数据中查找获得原始色彩所在四面体的四个顶点地址的色彩值,再根据所在四面体的四个顶点地址的色彩值与四面体四个顶点的插值系数利用插值公式进行加权计算,得到插值校正后的色彩值;即将输入原始色彩数据经3D-LUT映射后再采用四面体插值算法和3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据,能够有效的简化四面体插值系数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现,很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm are determined by the fractional part in the color data mapped by the 3D-LUT, and the addresses of the four vertices of the tetrahedral interpolation algorithm are determined by the integer part. The four vertex addresses are searched in the 3D-LUT correction reference color data to obtain the color value of the four vertex addresses of the tetrahedron where the original color is located, and then the color value of the four vertex addresses of the tetrahedron where it is located is based on the interpolation of the four vertices of the tetrahedron. The coefficients are weighted by the interpolation formula to obtain the color value after interpolation correction; that is, the input original color data is mapped by 3D-LUT, and then the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data are used for correction, and the corrected color data is obtained. , which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, greatly reduce the difficulty of hardware circuit implementation, and improve the The real-time performance of circuit data processing can solve the problem of complicated tetrahedral interpolation calculation interpolation coefficients and complicated hardware circuit implementation in the prior art.
在本实施例中,四面体插值算法在色域缩放的应用是通过计算映射点到大四面体四个面形成的四个小四面体体积与大四面体的体积占比作为插值系数,取四面体四个顶点的色彩值与对应的插值系数进行加权计算得到映射点色彩值。In this embodiment, the application of the tetrahedral interpolation algorithm in color gamut scaling is to calculate the ratio of the volume of the four small tetrahedra formed by mapping points to the four faces of the large tetrahedron to the volume of the large tetrahedron as the interpolation coefficient, and take the tetrahedron as the interpolation coefficient. The color values of the four vertices of the body are weighted with the corresponding interpolation coefficients to obtain the color values of the mapping points.
如图4所示,四面体四个顶点ABCD,映射点P在四面体ABCD内,则映射点P与大四面体每个面都能形成一个小四面体,PBCD、PACD、PABD和PABC, 再设A’、B’、C’、D’、P’为ABCDP五个点对应的RGB色彩值,a,b,c,d为被映射点P分割的四个四面体PBCD、PACD、PABD、PABC分别与大四面体ABCD的体积比值(即插值系数),那么映射点P的色彩值计算公式(即插值公式)就可以表示为:As shown in Figure 4, the four vertices ABCD of the tetrahedron, the mapping point P is in the tetrahedron ABCD, then the mapping point P and each face of the large tetrahedron can form a small tetrahedron, PBCD, PACD, PABD and PABC, and then Let A', B', C', D', P' be the RGB color values corresponding to the five points of ABCDP, a, b, c, d are the four tetrahedrons PBCD, PACD, PABD, The volume ratio (ie the interpolation coefficient) of PABC and the large tetrahedron ABCD respectively, then the calculation formula of the color value of the mapping point P (ie the interpolation formula) can be expressed as:
P’=a×A’+b×B’+c×C’+d×D’P’=a×A’+b×B’+c×C’+d×D’
从上述计算公式可以看出,插值系数与相乘顶点的关系是顶点的色彩值乘以该顶点相对面与映射点P形成的四面体体积与大四面体的占比(即插值系数)。It can be seen from the above calculation formula that the relationship between the interpolation coefficient and the multiplied vertex is the color value of the vertex multiplied by the ratio of the tetrahedron volume formed by the opposite face of the vertex and the mapping point P to the large tetrahedron (ie, the interpolation coefficient).
其中,四面体插值算法涉及到四面体的体积计算公式,公式为:Among them, the tetrahedral interpolation algorithm involves the volume calculation formula of the tetrahedron, and the formula is:
V=h×S/3V=h×S/3
上述公式中,V表示的就是所求四面体的体积,h表示以任意一个顶点到该顶点相对面三角形所在平面的垂直距离,S为该顶点相对面的三角形的面积。In the above formula, V represents the volume of the desired tetrahedron, h represents the vertical distance from any vertex to the plane where the vertex is opposite to the plane of the triangle, and S is the area of the triangle on the vertex opposite.
四面体插值算法是将正方体切割成6个全等四面体,四面体切割的方式是必须经过(0,0,0)和(1,1,1)做正方体的三对平行面的正方形对角线切割。如图5所示,过平行面ABB’A’和DCC’D’做A’BCD’切面,A’C必须在切面上所以只能是A’BCD’;同理做出切面ACC’A’和A’B’CD,这三个切面的相交线是A’C,此时三个切面将正方体切割成6个全等四面体A’ABC(V1)、A’DAC(V2)、A’D’DC(V3)、A’C’D’C(V4)、A’B’C’C(V5)、A’BB’C(V6),括号内的内容表示该四面体的简称,如图6所示。The tetrahedron interpolation algorithm is to cut the cube into 6 congruent tetrahedrons. The way of cutting the tetrahedron is to pass through (0,0,0) and (1,1,1) to make the square diagonal of the three pairs of parallel faces of the cube. wire cutting. As shown in Figure 5, the A'BCD' section is made through the parallel planes ABB'A' and DCC'D', and A'C must be on the section, so it can only be A'BCD'; similarly, make the section ACC'A' and A'B'CD, the intersection line of these three tangent planes is A'C, at this time, the three tangent planes cut the cube into 6 congruent tetrahedra A'ABC(V1), A'DAC(V2), A' D'DC(V3), A'C'D'C(V4), A'B'C'C(V5), A'BB'C(V6), the content in brackets represents the abbreviation of the tetrahedron, such as shown in Figure 6.
如图6是图5以A’C方向俯视图,将正方体分割成6等分,根据图4可以看出,每个四面体都有两个面在正方体的其中两个面上,另外两个面在三个切面其中两个面上。两个在正方体上的面面积相等(1/2×1×1),两个在切面上的面的面积相等 四面体的各个面积都可以计算出来,通过前述缩放映射计算的小数部分f R、f G和f B,可以求得映射点P到正方体上的两个面的体积,只要计算出映射点P到两个切面的高度,就可以求出所有体积。 Figure 6 is the top view of Figure 5 in the direction of A'C. The cube is divided into 6 equal parts. It can be seen from Figure 4 that each tetrahedron has two faces on two of the cube faces, and the other two faces. on two of the three cut planes. The two faces on the cube have the same area (1/2×1×1), and the two faces on the tangent have the same area Each area of the tetrahedron can be calculated. Through the fractional parts f R , f G and f B calculated by the aforementioned scaling mapping, the volume of the mapping point P to the two faces on the cube can be obtained, as long as the mapping point P is calculated to The height of the two cut planes can be used to find all volumes.
在一个实施例中,所述步骤S31中,所述根据经3D-LUT映射后的色彩数据中的小数部分确定四面体插值算法的插值系数和插值公式,包括:In one embodiment, in the step S31, determining the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm according to the fractional part in the color data mapped by the 3D-LUT includes:
步骤S311、比较所述小数部分的f R、f G和f B之间的大小关系确定映射点P所在的四面体以及四面体顶点在立方体相对位置。 Step S311 , compare the size relationship between f R , f G and f B of the fractional part to determine the tetrahedron where the mapping point P is located and the relative position of the tetrahedron vertex on the cube.
步骤S312、根据所述小数部分的f R、f G和f B确定映射点P所在四面体四个顶点的插值系数和插值公式。 Step S312: Determine the interpolation coefficients and interpolation formulas of the four vertices of the tetrahedron where the mapping point P is located according to f R , f G and f B of the fractional part.
重复上述步骤S311至步骤S312,确定所有6个四面体的插值系数和插值公式。Repeat the above steps S311 to S312 to determine the interpolation coefficients and interpolation formulas of all six tetrahedra.
在一个实施例中,所述步骤S311中,所述比较所述小数部分的f R、f G和f B之间的大小关系确定映射点P所在的四面体以及四面体顶点在立方体相对位置;包括:使用三维投影降维法确定映射点P所在的四面体,包括: In one embodiment, in the step S311, the comparison of the size relationship between f R , f G and f B of the fractional part determines the tetrahedron where the mapping point P is located and the relative position of the tetrahedron vertex on the cube; Including: using the three-dimensional projection dimension reduction method to determine the tetrahedron where the mapping point P is located, including:
选择立方体的第一顶点,将映射点P沿该第一顶点为起点的方向投影至与该方向垂直的平面上,判断映射点P在以形成该方向的另一顶点在该平面形成的对角线作为直线的上方或下方,以此排除以该方向所在的直线与该角线作为两侧边形成的所在平面作为切面的两侧的四面体;其中,判断映射点P在以形成该方向的另一顶点在该平面形成的对角线作为直线的上方或下方,是通过比较小数部分的两个相关值之间的大小关系来确定,从而确定映射点P所在的四面体;Select the first vertex of the cube, project the mapping point P on the plane perpendicular to the direction along the direction of the first vertex as the starting point, and determine that the mapping point P is at the opposite corner formed by the other vertex that forms the direction on the plane. The line is above or below the straight line, so as to exclude the tetrahedron on both sides of the tangent plane formed by the straight line in the direction and the angle line as the two sides; wherein, it is judged that the mapping point P is in order to form the direction of the tetrahedron. The diagonal line formed by the other vertex on the plane is above or below the straight line, which is determined by comparing the magnitude relationship between the two related values of the fractional part, thereby determining the tetrahedron where the mapping point P is located;
如经过上述步骤还无法确定映射点P所在的四面体,则将映射点P沿该第一顶点为起点的另一方向投影至与该方向垂直的平面上,重复上述步骤直至确定映射点P所在的四面体。If the tetrahedron where the mapping point P is located cannot be determined after the above steps, the mapping point P is projected along another direction with the first vertex as the starting point to a plane perpendicular to the direction, and the above steps are repeated until the mapping point P is determined. tetrahedron.
具体地包括:Specifically:
步骤S3111、选择立方体的第一顶点,将映射点P沿该第一顶点为起点的第一方向投影至与该第一方向垂直的第一平面上,判断映射点P在以形成该第一方向的第二顶点在该第一平面形成的对角线作为第一直线的上方或下方,以此排除以第一方向所在直线与第一直线作为两侧边形成的所在平面作为切面的两侧的四面体。其中,判断映射点P在以形成该第一方向的第二顶点在该第一平面形成的对角线作为第一直线的上方或下方,是通过比较小数部分的两个相关值之间的大小关系来确定。Step S3111, select the first vertex of the cube, project the mapping point P along the first direction from the first vertex to the first plane perpendicular to the first direction, and determine that the mapping point P is in order to form the first direction. The second vertex is above or below the diagonal line formed by the first plane as the first straight line, so as to exclude the two planes formed by the straight line in the first direction and the plane formed by the two sides as the tangent plane. side tetrahedron. Wherein, judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
步骤S3112、再将映射点P沿该第一顶点为起点的第二方向投影至与该第二方向垂直的第二平面上,判断映射点P在以形成该第二方向的第三顶点在该第二平面形成的对角线作为第二直线的上方或下方,以此排除以第二方向所在直线与第二直线作为两侧边形成的所在平面作为切面的两侧的四面体。其中,判断映射点P在以形成该第一方向的第二顶点在该第一平面形成的对角线作为第一直线的上方或下方,是通过比较小数部分的两个相关值之间的大小关系来确定。Step S3112, then project the mapping point P along the second direction with the first vertex as the starting point to the second plane perpendicular to the second direction, and determine that the mapping point P is in the third vertex to form the second direction. The diagonal formed by the second plane is above or below the second straight line, so as to exclude the tetrahedron with the two sides of the tangent plane formed by the straight line in the second direction and the second straight line as two sides. Wherein, judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
步骤S3113、将映射点P沿该第一顶点为起点的第三方向投影至与该第三方向垂直的第三平面上,判断映射点P在以形成该第三方向的第四顶点在该第三平面形成的对角线作为第三直线的上方或下方,以此排除以第三方向所在直线与第三直线作为两侧边形成的所在平面作为切面的两侧的四面体。其中,判断映射点P在以形成该第一方向的第二顶点在该第一平面形成的对角线作为第一直线的上方或下方,是通过比较小数部分的两个相关值之间的大小关系来确定。Step S3113, project the mapping point P to the third plane perpendicular to the third direction along the third direction of the first vertex as the starting point, and judge that the mapping point P is in the fourth vertex to form the third direction in the third direction. The diagonal line formed by the three planes is above or below the third straight line, so as to exclude the tetrahedron whose two sides of the tangent plane are formed by the straight line in the third direction and the third straight line as the two sides. Wherein, judging that the mapping point P is above or below the first straight line with the diagonal line formed by the second vertex forming the first direction on the first plane as the first straight line is by comparing the two correlation values of the fractional part. size relationship.
经过以上的步骤S3111至步骤S3113,就能确定映射点P所在的四面体。After the above steps S3111 to S3113, the tetrahedron where the mapping point P is located can be determined.
进一步,如图7所示,选择立方体的顶点A’为例对确定映射点P所在的四面体进行进一步说明。Further, as shown in Fig. 7, the vertex A' of the cube is selected as an example to further illustrate the tetrahedron where the mapping point P is located.
将映射点P沿A’D’方向投影至平面DCC’D’上,判断映射点P在直线CD’的上方或下方,以此排除以切面A’BCD’两侧中一半数量的四面体。通过比较f B和f G大小判断映射点P在直线CD’的上方还是下方,因为直线CD’在平面DCC’D’的直线y=x上,若x>y,则映射点P在直线CD’的下方,反之映射点P在直线CD’的上方。 Project the mapping point P on the plane DCC'D' along the A'D' direction, and determine whether the mapping point P is above or below the straight line CD', so as to exclude half of the tetrahedrons on both sides of the tangent plane A'BCD'. Determine whether the mapping point P is above or below the straight line CD' by comparing the sizes of f B and f G , because the straight line CD' is on the straight line y=x of the plane DCC'D', if x>y, then the mapping point P is on the straight line CD'', on the contrary, the mapping point P is above the straight line CD'.
再将映射点P沿A’B’方向投影至平面BB’C’C上,判断映射点P在直线B’C的上方或下方,以此排除剩下3个四面体中的一个或两个。此时,通过比较f B和f R大小判断映射点P在直线B’C的上方或下方,因为直线B’C也在直线y=x上。如果经过这一步骤后只能排除一个四面体,则需要再将映射点P沿AA’方向再做一次投影处理就能确定映射点P所在的四面体。 Then project the mapping point P to the plane BB'C'C along the A'B' direction, and judge whether the mapping point P is above or below the straight line B'C, so as to exclude one or two of the remaining three tetrahedra . At this time, it is determined by comparing the magnitudes of f B and f R that the mapping point P is above or below the straight line B'C, because the straight line B'C is also on the straight line y=x. If only one tetrahedron can be excluded after this step, the tetrahedron where the mapped point P is located needs to be determined by doing another projection process along the AA' direction.
经过以上的处理,最后确定,只要通过比较f R、f G和f B之间的大小关系就能确定映射点P所在的四面体。 After the above processing, it is finally determined that the tetrahedron where the mapping point P is located can be determined only by comparing the size relationship among f R , f G and f B .
在一个实施例中,所述步骤S312中,所述根据所述小数部分的f R、f G和f B确定映射点P所在四面体四个顶点的插值系数和插值公式。 In one embodiment, in the step S312, the interpolation coefficients and interpolation formulas of the four vertices of the tetrahedron where the mapping point P is located are determined according to f R , f G and f B of the fractional part.
在本实施例中,以映射点P在四面体A’C’D’C(V4)为例对确定映射点P所在四面体四个顶点的插值系数和插值公式进行说明。In this embodiment, the interpolation coefficient and the interpolation formula for determining the four vertices of the tetrahedron where the mapping point P is located are described by taking the mapping point P in the tetrahedron A'C'D'C(V4) as an example.
在前述所述步骤S311中,已经确定了映射点P所在四面体,下一步就需要确定映射点P到大四面体的四个面形成的四个小四面体的体积,前面已经给出6个全等四面体的四个面面积,只要计算出映射点P到四个面的高度就可以求得插值系数。In the aforementioned step S311, the tetrahedron where the mapping point P is located has been determined, and the next step is to determine the volumes of the four small tetrahedra formed by the mapping point P to the four faces of the large tetrahedron. Six have been given above. For the area of the four faces of the congruent tetrahedron, the interpolation coefficient can be obtained as long as the height of the mapping point P to the four faces is calculated.
如图7所示。将映射点P所在四面体从大四面体中抽出来,因为平面A’C’D’ 和平面CC’D’在立方体的面上,可以得到映射点P到平面A’C’D’的距离为f B,到平面CC’D’的距离为(1-f R)。通过三维投影降维法求映射点P到两个切面的距离,映射点P到平面A’CD’的距离可以投影到切面CDD’C’上进行计算,因为平面A’CD’在切面A’BCD’上,且与切面CDD’C’垂直,投影后平面A’CD’变成了直线CD’,映射点P投影成了点P1,那么映射点P到平面A’CD’的距离可以转换为求点P1到到直线CD’的距离,而在切面CDD’C’上点P1坐标为(f G,f B),直线CD’的方程为y=x,转换成点到直线距离公式形式为x-y=0。 As shown in Figure 7. Extract the tetrahedron where the mapping point P is located from the large tetrahedron, because the plane A'C'D' and the plane CC'D' are on the face of the cube, the distance from the mapping point P to the plane A'C'D' can be obtained is f B , the distance to the plane CC'D' is (1-f R ). The distance between the mapping point P and the two tangent planes is calculated by the three-dimensional projection dimensionality reduction method. The distance between the mapping point P and the plane A'CD' can be projected on the tangent plane CDD'C' for calculation, because the plane A'CD' is in the tangent plane A' On BCD' and perpendicular to the tangent plane CDD'C', the projected plane A'CD' becomes a straight line CD', and the mapping point P is projected into a point P1, then the distance from the mapping point P to the plane A'CD' can be converted In order to find the distance from the point P1 to the straight line CD', the coordinates of the point P1 on the tangent plane CDD'C' are (f G , f B ), and the equation of the straight line CD' is y=x, which is converted into the form of the distance from the point to the straight line is xy=0.
根据点(x0,y0)到直线Ax+By+C=0的距离公式:According to the distance formula from the point (x0, y0) to the straight line Ax+By+C=0:
所以点P1到直线CD’的距离为 同理可以算得点P2(f R,f G)到直线A’C’的距离为 So the distance from point P1 to line CD' is Similarly, the distance from the point P2(f R , f G ) to the straight line A'C' can be calculated as
四个面的面积分别表示为S A’C’D’、S CC’D’、S A’CD’、S A’CC’,则有: The areas of the four surfaces are expressed as S A'C'D' , S CC'D' , S A'CD' , S A'CC' , respectively, then there are:
S CC’D’=1/2×1×1 S CC'D' =1/2×1×1
S A’C’D’=1/2×1×1 S A'C'D' =1/2×1×1
映射点P到四个面的距离表示为da1、dc1、dd1和dc,根据前面的计算可以得到:The distance from the mapping point P to the four faces is expressed as da1, dc1, dd1 and dc, which can be obtained according to the previous calculation:
da1=1-f R da1 = 1-f R
dc=f B。 dc=f B .
根据四面体体积公式为V=h×S/3,则映射点P分割的四个四面体体积为:According to the tetrahedral volume formula V=h×S/3, the four tetrahedral volumes divided by the mapping point P are:
V PA’C’D’=dc×S A’C’D’/3=(f B×1/2)/3=f B/6 V PA'C'D' =dc×S A'C'D' /3=(f B ×1/2)/3=f B /6
V PCC’D’=da1×S CC’D’/3=((1-f R)×1/2)/3=(1-f R)/6 V PCC'D' =da1×S CC'D' /3=((1-f R )×1/2)/3=(1-f R )/6
映射点P所在大四面体A ’CC’D’(V4)体积: The volume of the large tetrahedron A 'CC'D' (V4) where the mapping point P is located:
V A’CC’D’=CC’×S A’C’D’/3=(1 x 1/2)/3=1/6 V A'CC'D' =CC'×S A'C'D' /3=(1 x 1/2)/3=1/6
由此可求出映射点P分割的四个四面体体积占比(即插值系数):From this, the volume ratio of the four tetrahedrons divided by the mapping point P (that is, the interpolation coefficient) can be obtained:
U A1=V PCC’D’/V A’CC’D’=((1-f R)/6)/(1/6)=1–f R U A1 =V PCC'D' /V A'CC'D' =((1-f R )/6)/(1/6)=1-f R
U C1=V PA’CD’/V A’CC’D’=((f G–f B)/6)/(1/6)=f G–f B U C1 =V PA'CD' /V A'CC'D' =((f G -f B )/6)/(1/6)=f G -f B
U D1=V PA’CC’/V A’CC’D’=((f R–f G)/6)/(1/6)=f R–f G U D1 =V PA'CC' /V A'CC'D' =((f R -f G )/6)/(1/6)=f R -f G
U C=V PA’C’D’/V A’CC’D’=(f B/6)/(1/6)=f B U C =V PA'C'D' /V A'CC'D' =(f B /6)/(1/6)=f B
根据上述给出四面体插值公式:P’=a×A’+b×B’+c×C’+d×D’,可得映射点P所在四面体V4的插值公式为:According to the tetrahedral interpolation formula given above: P’=a×A’+b×B’+c×C’+d×D’, the interpolation formula of the tetrahedron V4 where the mapping point P is located is:
Pp=Pa1×U A1+Pc1×U C1+Pd1×U D1+Pc×U C Pp=Pa1×U A1 +Pc1×U C1 +Pd1×U D1 +Pc×U C
其中,大四面体A’CC’D’的4个顶点CA’C’D’对应的色彩值为Pc、Pa1、Pc1、Pd1。Among them, the color values corresponding to the four vertices CA'C'D' of the large tetrahedron A'CC'D' are Pc, Pa1, Pc1, and Pd1.
将以上四面体V4的插值系数的数值代入上述插值公式可得映射点P在四面体V4的插值公式为:Substitute the value of the interpolation coefficient of the above tetrahedron V4 into the above interpolation formula to obtain the interpolation formula of the mapping point P in the tetrahedron V4:
Pp=Pa1×(1-f R)+Pc1×(f G–f B)+Pd1×(f R-f G)+Pc×f B Pp=Pa1×(1-f R )+Pc1×(f G –f B )+Pd1×(f R -f G )+Pc×f B
同理,抽出剩余5个全等四面体后可以计算到每个四面体的插值公式。设定正方体8个顶点ABCDA’B’C’D’对应的色彩值为Pa、Pb、Pc、Pd、Pa1、Pb1、Pc1、Pd1,最终插值公式整理为下表:Similarly, after extracting the remaining 5 congruent tetrahedrons, the interpolation formula of each tetrahedron can be calculated. Set the color values corresponding to the 8 vertices ABCDA'B'C'D' of the cube to Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, Pd1, and the final interpolation formula is organized as the following table:
在本实施例中,通过对经3D-LUT映射后的色彩数据中的小数部分确定四面体插值算法的插值系数和插值公式,整数部分确定四面体插值算法的四个顶点的地址,根据所述四个顶点地址在3D-LUT校正基准色彩数据中查找获得原始色彩所在四面体的四个顶点地址的色彩值,再根据所在四面体的四个顶点地址的色彩值与四面体四个顶点的插值系数利用插值公式进行加权计算,得到插值校正后的色彩值;即将输入原始色彩数据经3D-LUT映射后再采用四面体插值算法和3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据,能够有效的简化四面体插值系数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现,很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插 值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, the interpolation coefficient and interpolation formula of the tetrahedral interpolation algorithm are determined by the fractional part in the color data mapped by the 3D-LUT, and the addresses of the four vertices of the tetrahedral interpolation algorithm are determined by the integer part. The four vertex addresses are searched in the 3D-LUT correction reference color data to obtain the color value of the four vertex addresses of the tetrahedron where the original color is located, and then the color value of the four vertex addresses of the tetrahedron where it is located is based on the interpolation of the four vertices of the tetrahedron. The coefficients are weighted by the interpolation formula to obtain the color value after interpolation correction; that is, the input original color data is mapped by 3D-LUT, and then the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data are used for correction, and the corrected color data is obtained. , which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, greatly reduce the difficulty of hardware circuit implementation, and improve the The real-time performance of circuit data processing can solve the problem of complicated tetrahedral interpolation calculation interpolation coefficients and complicated hardware circuit implementation in the prior art.
在一个实施例中,所述步骤S32中,所述根据经3D-LUT映射后的色彩数据的整数部分确定四面体插值算法的四个顶点的地址,包括:In an embodiment, in the step S32, the determining the addresses of the four vertices of the tetrahedral interpolation algorithm according to the integer part of the color data mapped by the 3D-LUT includes:
步骤S321、根据所述整数部分(R 0、G 0、B 0)确定映射点P在3D-LUT的最小立方体的8个顶点地址。 Step S321 , according to the integer part (R 0 , G 0 , B 0 ), determine the addresses of the eight vertices of the mapping point P in the smallest cube of the 3D-LUT.
步骤S322、根据小数部分确定的所在四面体顶点在立方体相对位置从所述8个顶点地址中获得原始色彩所在四面体的四个顶点地址。Step S322: Obtain four vertex addresses of the tetrahedron where the original color is located from the eight vertex addresses according to the relative position of the tetrahedron where the vertex of the tetrahedron is located determined by the fractional part from the eight vertex addresses.
在一个实施例中,所述步骤S321中,所述根据所述整数部分(R 0、G 0、B 0)确定映射点P在3D-LUT的最小立方体的8个顶点地址,包括: In one embodiment, in the step S321, the determining of the eight vertex addresses of the mapping point P in the smallest cube of the 3D-LUT according to the integer part (R 0 , G 0 , B 0 ) includes:
在上述插值公式的Pa、Pb、Pc、Pd、Pa1、Pb1、Pc1、Pd1是通过前面的色域映射计算后的色彩值整数部分得到3D-LUT的对应A’点的坐标,因为3D-LUT的数据存放是连续的,从而可以根据对应A’点的坐标推算出最小正方体其他7个点的坐标。In the above interpolation formula, Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, and Pd1 are the integer part of the color value calculated by the previous color gamut mapping to obtain the coordinates of the corresponding A' point of the 3D-LUT, because the 3D-LUT The data storage is continuous, so the coordinates of the other 7 points of the minimum cube can be calculated according to the coordinates of the corresponding point A'.
设定3D-LUT采样点数是M,映射点P的RGB整数部分分别为R 0、G 0和B 0,则映射点P在3D-LUT的最小立方体的8个顶点地址如下: Suppose the number of 3D-LUT sampling points is M, and the RGB integer parts of the mapping point P are R 0 , G 0 and B 0 respectively , then the addresses of the eight vertices of the mapping point P in the smallest cube of the 3D-LUT are as follows:
顶点A’的地址=R 0+M×G 0+M×M×B 0 Address of vertex A'=R 0 +M×G 0 +M×M×B 0
顶点B’的地址=顶点A’的地址+MAddress of vertex B'=address of vertex A'+M
顶点C’的地址=顶点A’的地址+M+1Address of vertex C'=address of vertex A'+M+1
顶点D’的地址=顶点A’的地址+1Address of vertex D' = address of vertex A' + 1
顶点A的地址=顶点A’的地址+M×MAddress of vertex A = address of vertex A' + M×M
顶点B的地址=顶点A’的地址+M×M+MAddress of vertex B = address of vertex A'+M×M+M
顶点C的地址=顶点A’的地址+M×M+M+1Address of vertex C = address of vertex A'+M×M+M+1
顶点D的地址=顶点A’的地址+M×M+1。Address of vertex D=address of vertex A'+M×M+1.
然后通过上述坐标从3D-LUT校正基准色彩数据中取出对应的3D-LUT的色彩值,就能得到Pa、Pb、Pc、Pd、Pa1、Pb1、Pc1、Pd1,将取出的这些色彩值数据后就可以代入插值公式进行插值加权计算,得到插值校正后的色彩值。Then, the corresponding 3D-LUT color values are extracted from the 3D-LUT correction reference color data through the above coordinates to obtain Pa, Pb, Pc, Pd, Pa1, Pb1, Pc1, and Pd1. Then the interpolation formula can be substituted for the interpolation weighting calculation to obtain the color value after interpolation correction.
在一个实施例中,所述步骤S322,所述根据小数部分确定的所在四面体顶点在立方体相对位置从所述8个顶点地址中获得原始色彩所在四面体的四个顶点地址,包括:In one embodiment, in step S322, the four vertex addresses of the tetrahedron where the original color is located are obtained from the 8 vertex addresses at the relative position of the cube where the vertex of the tetrahedron determined by the fractional part is located, including:
以映射点P在V4为例进行说明。Take the mapping point P in V4 as an example for description.
映射点P所在大四面体A’CC’D’(V4)的四个顶点是A’、C、C’、和D’。设定3D-LUT采样点数是M,映射点P的RGB整数部分分别为R 0、G 0和B 0,则从所述8个顶点地址中获得原始色彩所在四面体的四个顶点地址分别是: The four vertices of the large tetrahedron A'CC'D' (V4) where the mapping point P is located are A', C, C', and D'. Assuming that the number of 3D-LUT sampling points is M, and the RGB integer parts of the mapping point P are R 0 , G 0 and B 0 respectively , then the four vertex addresses of the tetrahedron where the original color is obtained from the eight vertex addresses are respectively :
顶点A’的地址=R 0+M×G 0+M×M×B 0 Address of vertex A'=R 0 +M×G 0 +M×M×B 0
顶点C’的地址=顶点A’的地址+M+1Address of vertex C'=address of vertex A'+M+1
顶点D’的地址=顶点A’的地址+1Address of vertex D' = address of vertex A' + 1
顶点C的地址=顶点A’的地址+M×M+M+1。Address of vertex C=address of vertex A'+M×M+M+1.
在本实施例中,通过对经3D-LUT映射后的色彩数据中的整数部分确定四面体插值算法的四个顶点的地址,根据所述四个顶点地址在3D-LUT校正基准色彩数据中查找获得原始色彩所在四面体的四个顶点地址的色彩值,再根据所在四面体的四个顶点地址的色彩值与四面体四个顶点的插值系数利用插值公式进行加权计算,得到插值校正后的色彩值;即将输入原始色彩数据经3D-LUT映射后再采用四面体插值算法和3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据,能够有效的简化四面体插值系数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现,很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, the addresses of the four vertices of the tetrahedral interpolation algorithm are determined for the integer part in the color data mapped by the 3D-LUT, and the 3D-LUT correction reference color data is searched according to the four vertex addresses. Obtain the color value of the four vertex addresses of the tetrahedron where the original color is located, and then use the interpolation formula to perform weighted calculation according to the color value of the four vertex addresses of the tetrahedron and the interpolation coefficient of the four vertices of the tetrahedron to obtain the color after interpolation correction. value; that is, the input original color data is 3D-LUT mapped and then corrected using the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain the corrected color data, which can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the In specific circuit applications, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of hardware circuits, greatly reduce the difficulty of hardware circuit implementation, and improve the real-time performance of circuit data processing, thereby solving the problems in the prior art. The tetrahedral interpolation calculation of the interpolation coefficient is complex, and the hardware circuit is complicated to realize the problem.
在一个实施例中,所述方法还包括:将完成校正后的色彩值(R1,G1,B1)输出到LED显示屏显示。In one embodiment, the method further includes: outputting the corrected color values (R1, G1, B1) to the LED display screen for display.
在一个实施例中,所述方法还包括:采集LED显示屏色彩数据进行检测色域。In one embodiment, the method further includes: collecting color data of the LED display screen to detect the color gamut.
通过依次采集每个LED显示屏的显示数据进行色域检测,检测每个显示屏的的色域是否一致,如果一致,则表示校正成功;如果不一致,则表示校正不成功。The color gamut detection is performed by sequentially collecting the display data of each LED display screen to detect whether the color gamut of each display screen is consistent. If they are consistent, the calibration is successful; if they are inconsistent, the calibration is unsuccessful.
在本实施例中,通过将完成校正后的色彩值(R 1,G 1,B 1)输出到LED显示屏显示,并依次采集每个LED显示屏的显示数据进行色域检测,可以有效地检测每个显示屏的的色域是否一致,从而验证校正的色彩是否成功。 In this embodiment, by outputting the corrected color values (R 1 , G 1 , B 1 ) to the LED display screen for display, and sequentially collecting the display data of each LED display screen for color gamut detection, it can effectively Check whether the color gamut of each display screen is consistent, so as to verify whether the color correction is successful.
在一个实施例中,如图8所示,本发明提供一种色彩校正装置,所述装置包括:存储模块10、映射模块20、校正模块30,其中:In one embodiment, as shown in FIG. 8, the present invention provides a color correction device, the device includes: a storage module 10, a mapping module 20, and a correction module 30, wherein:
所述存储模块10,用于输入并存储3D-LUT校正基准色彩数据;The storage module 10 is used for inputting and storing 3D-LUT calibration reference color data;
所述映射模块20,用于输入原始色彩RGB数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据;Described mapping module 20, is used for inputting original color RGB data to carry out 3D-LUT mapping, obtains the color data after 3D-LUT mapping;
所述校正模块30,用于将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。The correction module 30 is configured to correct the color data mapped by the 3D-LUT using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain corrected color data.
在本实施例中,通过采用基于四面体插值的3D-LUT色彩校正方法,即将输入原始色彩数据经3D-LUT映射后再采用四面体插值算法和3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据,能够有效的简化四面体插值系数的计算,并且在具体电路应用时,只需要四个乘法器即可优化四面体插值算法,简化硬件电路的实现,很大程度的降低硬件电路实现难度,提高电路数据处理的实时性,从而可以解决现有技术中的四面体插值计算插值系数复杂对硬件电路实现复杂化的问题。In this embodiment, the 3D-LUT color correction method based on tetrahedral interpolation is adopted, that is, the input original color data is 3D-LUT mapped and then corrected by the tetrahedral interpolation algorithm and the 3D-LUT correction reference color data, and the correction is obtained. The obtained color data can effectively simplify the calculation of the tetrahedral interpolation coefficient, and in the specific circuit application, only four multipliers are needed to optimize the tetrahedral interpolation algorithm, simplify the implementation of the hardware circuit, and greatly reduce the hardware circuit. The realization difficulty is improved, and the real-time performance of circuit data processing is improved, thereby solving the problem of complicated tetrahedral interpolation calculation and complex interpolation coefficients in the prior art, which complicates hardware circuit implementation.
需要说明的是,上述装置实施例与方法实施例属于同一构思,其具体实现过程详见方法实施例,且方法实施例中的技术特征在装置实施例中均对应适用,这里不再赘述。It should be noted that the above apparatus embodiments and method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are correspondingly applicable in the apparatus embodiments, which will not be repeated here.
此外,本发明实施例还提供3D-LUT色彩校正设备,如图9所示,包括:存储器、处理器及存储在所述存储器中并可在所述处理器上运行的一个或者多个计算机程序,所述一个或者多个计算机程序被所述处理器执行时以实现本发明实施例提供的一种基于四面体插值算法的3D-LUT色彩校正方法的以下步骤:In addition, an embodiment of the present invention also provides a 3D-LUT color correction device, as shown in FIG. 9 , including: a memory, a processor, and one or more computer programs stored in the memory and executable on the processor , when the one or more computer programs are executed by the processor to implement the following steps of the 3D-LUT color correction method based on the tetrahedral interpolation algorithm provided by the embodiment of the present invention:
S1、输入并存储3D-LUT校正基准色彩数据。S1. Input and
S2、输入原始色彩(RGB)数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据。S2. Input original color (RGB) data to perform 3D-LUT mapping to obtain color data after 3D-LUT mapping.
S3、将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。S3. Correct the color data mapped by the 3D-LUT using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain corrected color data.
上述本发明实施例揭示的方法可以应用于所述处理器901中,或者由所述处理器901实现。所述处理器901可能是一种集成电路芯片,具有信号处理能力。在实现过程中,上述方法的各步骤可以通过所述处理器901中的硬件的集成逻辑电路或软件形式的指令完成。所述处理器901可以是通用处理器、DSP、或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。所述处理器901可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施 例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器902,所述处理器901读取存储器902中的信息,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the
可以理解,本发明实施例的存储器902可以是易失性存储器或者非易失性存储器,也可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read-Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Read-Only Memory)、电可擦除只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,Ferromagnetic Random Access Memory)、闪存(Flash Memory)或其他存储器技术、光盘只读存储器(CD-ROM,Compact Disk Read-Only Memory)、数字多功能盘(DVD,Digital Video Disk)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置;易失性存储器可以是随机存取存储器(RAM,Random Access Memory),通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
需要说明的是,上述设备实施例与方法实施例属于同一构思,其具体实现过程详见方法实施例,且方法实施例中的技术特征在设备实施例中均对应适用,这里不再赘述。It should be noted that the above device embodiments and method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are correspondingly applicable in the device embodiments, which will not be repeated here.
另外,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有一种基于四面体插值算法的3D-LUT色彩校正方法的程序,所 述一种基于四面体插值算法的3D-LUT色彩校正方法的程序被处理器执行时以实现本发明实施例提供的一种基于四面体插值算法的3D-LUT色彩校正方法的以下步骤:In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a program of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm is stored on the computer-readable storage medium. When the program of the algorithmic 3D-LUT color correction method is executed by the processor, the following steps of the 3D-LUT color correction method based on the tetrahedral interpolation algorithm provided by the embodiment of the present invention are implemented:
S1、输入并存储3D-LUT校正基准色彩数据。S1. Input and
S2、输入原始色彩(RGB)数据进行3D-LUT映射,得到经3D-LUT映射后的色彩数据。S2. Input original color (RGB) data to perform 3D-LUT mapping to obtain color data after 3D-LUT mapping.
S3、将经3D-LUT映射后的色彩数据采用四面体插值算法和所述3D-LUT校正基准色彩数据进行校正,得到校正后的色彩数据。S3. Correct the color data mapped by the 3D-LUT using a tetrahedral interpolation algorithm and the 3D-LUT correction reference color data to obtain corrected color data.
需要说明的是,上述计算机可读存储介质上的一种基于四面体插值算法的3D-LUT色彩校正方法的程序实施例与方法实施例属于同一构思,其具体实现过程详见方法实施例,且方法实施例中的技术特征在上述计算机可读存储介质的实施例中均对应适用,这里不再赘述。It should be noted that the program embodiment and the method embodiment of a 3D-LUT color correction method based on a tetrahedral interpolation algorithm on the above-mentioned computer-readable storage medium belong to the same concept, and the specific implementation process is detailed in the method embodiment, and The technical features in the method embodiments are all correspondingly applicable in the above-mentioned computer-readable storage medium embodiments, and will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the scope of protection of the present invention and the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (16)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010673324.7 | 2020-07-14 | ||
| CN202010673324.7A CN111770320B (en) | 2020-07-14 | 2020-07-14 | Color correction method and device, color correction equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022012330A1 true WO2022012330A1 (en) | 2022-01-20 |
Family
ID=72725238
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/103488 Ceased WO2022012330A1 (en) | 2020-07-14 | 2021-06-30 | Color correction method and apparatus, color correction device, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111770320B (en) |
| WO (1) | WO2022012330A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115499633A (en) * | 2022-09-23 | 2022-12-20 | 昇显微电子(苏州)有限公司 | Color correction method and system based on Mini3DLUT |
| CN115880377A (en) * | 2022-09-27 | 2023-03-31 | 奕行智能科技(广州)有限公司 | Apparatus and method for realizing color transformation |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111770320B (en) * | 2020-07-14 | 2022-06-21 | 深圳市洲明科技股份有限公司 | Color correction method and device, color correction equipment and storage medium |
| CN112562019A (en) * | 2020-12-24 | 2021-03-26 | Oppo广东移动通信有限公司 | Image color adjusting method and device, computer readable medium and electronic equipment |
| US12170074B2 (en) | 2021-03-31 | 2024-12-17 | Beijing Boe Technology Development Co., Ltd. | Color correction method, field programmable gate array, chip and display device |
| CN115914600A (en) * | 2021-09-30 | 2023-04-04 | 京东方科技集团股份有限公司 | Color correction method, system, display device and chip |
| CN114363702B (en) * | 2021-12-28 | 2023-09-08 | 上海网达软件股份有限公司 | Method, device, equipment and storage medium for converting SDR video into HDR video |
| CN114842814B (en) * | 2022-05-16 | 2023-12-08 | Oppo广东移动通信有限公司 | Color calibration methods and devices, electronic equipment, storage media |
| CN115862534B (en) * | 2022-11-23 | 2025-08-12 | 北京奕斯伟计算技术股份有限公司 | Color correction method, device, electronic equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020139943A1 (en) * | 2001-03-30 | 2002-10-03 | Toru Matama | Image processing apparatus |
| CN101047772A (en) * | 2006-03-29 | 2007-10-03 | 精工爱普生株式会社 | Color conversion device and image display apparatus having the same |
| CN103444188A (en) * | 2011-01-06 | 2013-12-11 | 英特尔公司 | System, method and computer program product for color processing the color of a point of interest |
| CN110035268A (en) * | 2019-04-08 | 2019-07-19 | 深圳市帧彩影视科技有限公司 | Color space changover method and equipment based on fuzzy reasoning |
| CN111009027A (en) * | 2019-12-27 | 2020-04-14 | 南京奥视威电子科技股份有限公司 | Method for realizing color correction by using 3D LUT and display equipment |
| CN111292235A (en) * | 2019-04-25 | 2020-06-16 | 展讯通信(上海)有限公司 | Tetrahedral interpolation calculation method and device, color gamut conversion method and device, and medium |
| CN111770320A (en) * | 2020-07-14 | 2020-10-13 | 深圳市洲明科技股份有限公司 | Color correction method and device, color correction equipment and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09326943A (en) * | 1996-06-07 | 1997-12-16 | Canon Inc | Image processing apparatus and method |
| US6118549A (en) * | 1997-03-26 | 2000-09-12 | Sharp Kabushiki Kaisha | Color conversion device |
| JP2002300386A (en) * | 2001-03-30 | 2002-10-11 | Fuji Photo Film Co Ltd | Image processing method |
| JP2003116015A (en) * | 2001-10-04 | 2003-04-18 | Canon Inc | Image processing apparatus and method, computer program, and computer-readable storage medium |
| JP3775666B2 (en) * | 2002-03-18 | 2006-05-17 | セイコーエプソン株式会社 | Image display device |
-
2020
- 2020-07-14 CN CN202010673324.7A patent/CN111770320B/en active Active
-
2021
- 2021-06-30 WO PCT/CN2021/103488 patent/WO2022012330A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020139943A1 (en) * | 2001-03-30 | 2002-10-03 | Toru Matama | Image processing apparatus |
| CN101047772A (en) * | 2006-03-29 | 2007-10-03 | 精工爱普生株式会社 | Color conversion device and image display apparatus having the same |
| CN103444188A (en) * | 2011-01-06 | 2013-12-11 | 英特尔公司 | System, method and computer program product for color processing the color of a point of interest |
| CN110035268A (en) * | 2019-04-08 | 2019-07-19 | 深圳市帧彩影视科技有限公司 | Color space changover method and equipment based on fuzzy reasoning |
| CN111292235A (en) * | 2019-04-25 | 2020-06-16 | 展讯通信(上海)有限公司 | Tetrahedral interpolation calculation method and device, color gamut conversion method and device, and medium |
| CN111009027A (en) * | 2019-12-27 | 2020-04-14 | 南京奥视威电子科技股份有限公司 | Method for realizing color correction by using 3D LUT and display equipment |
| CN111770320A (en) * | 2020-07-14 | 2020-10-13 | 深圳市洲明科技股份有限公司 | Color correction method and device, color correction equipment and storage medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115499633A (en) * | 2022-09-23 | 2022-12-20 | 昇显微电子(苏州)有限公司 | Color correction method and system based on Mini3DLUT |
| CN115499633B (en) * | 2022-09-23 | 2024-05-28 | 昇显微电子(苏州)股份有限公司 | A color correction method and system based on Mini 3DLUT |
| CN115880377A (en) * | 2022-09-27 | 2023-03-31 | 奕行智能科技(广州)有限公司 | Apparatus and method for realizing color transformation |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111770320B (en) | 2022-06-21 |
| CN111770320A (en) | 2020-10-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022012330A1 (en) | Color correction method and apparatus, color correction device, and storage medium | |
| Zhou et al. | Line-based camera calibration with lens distortion correction from a single image | |
| CN111312141B (en) | Color gamut adjusting method and device | |
| US11734789B2 (en) | Systems and methods for image distortion correction | |
| CN108961170B (en) | Image processing method, device and system | |
| US11861791B2 (en) | Tetrahedral interpolation calculation method and apparatus, gamut conversion method and apparatus, and medium | |
| US12373928B2 (en) | Image correction method and computing device utilizing method | |
| JP7136283B2 (en) | Information processing device and method | |
| CN114170091B (en) | Image scaling method, device, electronic device and storage medium | |
| CN111161138A (en) | Target detection method, device, equipment and medium for two-dimensional panoramic image | |
| CN117612470A (en) | Color lookup table generating method and color correcting method | |
| US12153175B2 (en) | Method and terminal device for processing Positron Emission Tomography data | |
| WO2024041027A1 (en) | Panoramic-image processing method, and computer device and storage medium | |
| CN113963072B (en) | Binocular camera calibration method and device, computer equipment and storage medium | |
| US10796441B2 (en) | Apparatus and method for image-distance transformation using bi-directional scans | |
| CN116245950B (en) | Screen corner positioning method for full screen or single corner missing | |
| CN116563357B (en) | Image matching method, device, computer equipment and computer readable storage medium | |
| US12387290B2 (en) | Image processing device and image processing method of generating layout including multiple images | |
| CN108780572A (en) | Method and device for image correction | |
| CN111242836A (en) | Method, device and equipment for generating target image and advertising image | |
| CN116503697A (en) | Unsupervised multi-scale multi-stage content perception homography estimation method | |
| CN114282159B (en) | Data processing device, integrated circuit chip, equipment and implementation method thereof | |
| CN111105453A (en) | A method to obtain disparity map | |
| WO2022170890A1 (en) | Image processing method and apparatus | |
| CN114519682A (en) | A depth map enhancement method based on autoregressive model |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21842314 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21842314 Country of ref document: EP Kind code of ref document: A1 |