CN112801858A - Color conversion method, device, equipment and storage medium - Google Patents

Color conversion method, device, equipment and storage medium Download PDF

Info

Publication number
CN112801858A
CN112801858A CN202011612899.4A CN202011612899A CN112801858A CN 112801858 A CN112801858 A CN 112801858A CN 202011612899 A CN202011612899 A CN 202011612899A CN 112801858 A CN112801858 A CN 112801858A
Authority
CN
China
Prior art keywords
color
converted
determining
conversion
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011612899.4A
Other languages
Chinese (zh)
Inventor
全晓荣
陈洪波
李志水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011612899.4A priority Critical patent/CN112801858A/en
Publication of CN112801858A publication Critical patent/CN112801858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/026Control of mixing and/or overlay of colours in general
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/12Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The invention belongs to the technical field of display, and discloses a color conversion method, a color conversion device, color conversion equipment and a storage medium. The method comprises the following steps: acquiring a perception setting instruction of a user; determining the color vision disorder degree of the user according to the perception setting instruction; determining a corresponding color disorder mode according to the color vision disorder degree; determining the color to be converted in the image to be converted according to the color barrier mode; and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted. By the mode, the corresponding color barrier mode can be determined according to different color vision barrier conditions of different users, colors which cannot be sensed by the users are converted into the pictures with the best user impressions according to the color barrier mode, so that the users can distinguish all colors of the pictures, and the user experience is greatly improved.

Description

Color conversion method, device, equipment and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a color conversion method, device, apparatus, and storage medium.
Background
China has tens of millions of dyschromatopsia people, and as with people, the people have strong video watching and content consuming requirements, but the requirements are difficult to meet under the support of the existing products. A match that is struggling violently with different jerseys, without the ability to distinguish colors or gray levels, is a crowd of people for them, and a highlight movie is a dark and gloomy movie for them. The invention starts from the cause of color blindness and color weakness, converts a color space into an LMS color gamut space, wherein the LMS is the color space represented by the response of three cones of human eyes, and is named by the responsivity (sensitivity) peaks of the color space at long wavelength (long), medium wavelength (medium) and short wavelength (short), so that the video wavelength is transferred from a damaged or insensitive area to a sensitive area, and further the scene resolution capability of a color vision handicapped person is improved and the watching comfort level is improved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a color conversion method, a color conversion device, color conversion equipment and a storage medium, and aims to solve the technical problem that in the prior art, a color vision disorder person cannot distinguish partial colors when watching a video, so that the scene resolution capability is poor.
In order to achieve the above object, the present invention provides a color conversion method, apparatus, device and storage medium method, the method comprising the steps of:
acquiring a perception setting instruction of a user;
determining the color vision disorder degree of the user according to the perception setting instruction;
determining a corresponding color disorder mode according to the color vision disorder degree;
determining the color to be converted in the image to be converted according to the color barrier mode;
and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted.
Optionally, the determining the color vision disorder degree of the user according to the perception setting instruction includes:
obtaining the color vision disorder type of the user according to the perception setting instruction;
obtaining the color vision offset of the user according to the perception setting instruction;
and determining the color vision disorder degree of the user according to the color vision disorder type and the color vision offset.
Optionally, determining a corresponding color disorder mode according to the color vision disorder degree includes:
determining a preset conversion ratio according to the color vision disorder degree;
and determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree.
Optionally, the determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree includes:
determining a color conversion matrix according to a preset conversion proportion and the color vision disorder degree;
generating the color barrier pattern according to the color conversion matrix.
Optionally, the color conversion matrix comprises: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
Figure BDA0002869876670000021
Figure BDA0002869876670000022
Figure BDA0002869876670000023
wherein, TCRFor a red conversion matrix, TCGAs a green conversion matrix, TCBThe color conversion matrix is blue, gamma is a preset conversion ratio, and alpha R, alpha G and alpha B are the color vision disorder degrees of the corresponding colors respectively.
Optionally, the determining, according to the color barrier mode, a color to be converted in an image to be converted includes:
acquiring an image to be converted;
converting the original color of the RGB color space in the image into the space color of the LMS color space;
and determining the color to be converted in the image to be converted according to the space color and the color barrier mode.
Optionally, after the converting the color to be converted into the corresponding color and obtaining the target color of the image to be converted, the method further includes:
converting the target color in the image to be converted into the color of an RGB color space to obtain a corrected color;
and superposing the corrected color and the original color of the image to be converted to obtain a target image.
Further, to achieve the above object, the present invention also provides a color conversion apparatus including:
the acquisition module is used for acquiring a perception setting instruction of a user;
the determining module is used for determining the color vision disorder degree of the user according to the perception setting instruction;
the determining module is further used for determining a corresponding color disorder mode according to the color vision disorder degree;
the determining module is further used for determining the color to be converted in the image to be converted according to the color barrier mode;
and the conversion module is used for converting the color to be converted into a corresponding color to obtain the target color of the image to be converted.
Further, to achieve the above object, the present invention also proposes a color conversion apparatus comprising: a memory, a processor and a color conversion program stored on the memory and executable on the processor, the color conversion program being configured to implement the steps of the color conversion method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a color conversion program which, when executed by a processor, implements the steps of the color conversion method as described above.
The invention sets instructions by obtaining the perception of users; determining the color vision disorder degree of the user according to the perception setting instruction; determining a corresponding color disorder mode according to the color vision disorder degree; determining the color to be converted in the image to be converted according to the color barrier mode; and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted. By the mode, the corresponding color obstacle mode can be determined according to different color vision obstacle conditions of different users, colors which cannot be sensed by the users are converted into pictures with the best user appearance according to the color obstacle mode, all colors of the pictures can be distinguished by the users through the customized color conversion scheme, the scene resolution capability of the users is improved, and the user experience is greatly improved.
Drawings
FIG. 1 is a schematic diagram of a color conversion device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a first embodiment of a color conversion method according to the present invention;
FIG. 3 is a response spectrum of an embodiment of the color conversion method of the present invention;
FIG. 4 is a flowchart illustrating an overall color conversion method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a first embodiment of a color conversion device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a color conversion device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the color conversion apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the configuration shown in fig. 1 does not constitute a limitation of the color conversion device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a color conversion program.
In the color conversion apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the color conversion apparatus of the present invention may be provided in the color conversion apparatus which calls the color conversion program stored in the memory 1005 through the processor 1001 and executes the color conversion method provided by the embodiment of the present invention.
An embodiment of the present invention provides a color conversion method, and referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a color conversion method according to the present invention.
In this embodiment, the color conversion method includes the following steps:
step S10: and acquiring a perception setting instruction of a user.
It should be noted that the execution subject of the present embodiment may be a terminal device including a color display screen, such as a television or a display.
It can be understood that the color vision disorder of each user is different, and therefore, the display scheme is specifically formulated according to the condition of each user. Therefore, when a display scheme is formulated, different preset color pictures need to be displayed to a user to determine the color vision disorder type of the user, for example: when the user is anerythrochloropsia, the user cannot distinguish green from orange, and the color vision disorder type of the user can be obtained by selecting the preset color picture which cannot be distinguished by the user.
It should be noted that, when the user is a specific color vision disorder type, the colors cannot be distinguished because of the corresponding type, and when the user is anerythrochloropsia, the user cannot distinguish the colors of the green color system and the red color system, but when the user is anerythrochloropsia, not all the colors of the green color system and the red color system cannot be distinguished, and the sensitivity of the user to the color is different for each color vision disorder type, and therefore, further measurement of the color sensitivity of the user is required.
In a specific implementation, different colors in the same series need to be displayed to the user, and the perception setting instruction of the user is generated according to the perception colors selected by the user.
Step S20: and determining the color vision disorder degree of the user according to the perception setting instruction.
Further, step S20 includes: obtaining the color vision disorder type of the user according to the perception setting instruction; obtaining the color vision offset of the user according to the perception setting instruction; and determining the color vision disorder degree of the user according to the color vision disorder type and the color vision offset.
It is understood that the perception setting instruction includes the type of dyschromatopsia of the user, such as red achromatopsia, green achromatopsia, blue achromatopsia, and the like.
It should be noted that, according to the perception degree of the color vision disorder by the user, the color vision offset of the user may be determined, for example: the cell of human eye perceiving red is red cone cell, because the peak wavelength range of red cone cell is 564nm-580nm, so if the L cell, that is, red cone cell response curve shifts 30nm, it is essentially unable to distinguish red, according to the user's choice of perception color, can determine the user's color sensitivity, thus determine the user's offset of color cone cell.
In particular implementations, the dyschromatopsia level represents the sensitivity of a dyschromatopsia user to dyschromatopsia colors, e.g., a red dyschromatopsia user, with the dyschromatopsia level normalized to
Figure BDA0002869876670000061
When his color vision shift is 30, i.e. alphaRIs 1, is a color blind user, when the color vision offset is less than 30, namely alphaRAnd when the color intensity is less than 1, the user is a color-weak user.
The peak wavelength ranges of the green cone cells, i.e., M cells, are: 534nm-555nm, so if the response curve of the green cone cells deviates 30nm, the green cone cells can not be basically distinguished, and the degree of the green dyschromatopsia can be normalized to be
Figure BDA0002869876670000062
Since the peak wavelength range of S cells, i.e. blue cone cells, is: 420nm-440nm, the wavelength range of S cells is: 400nm-500nm, so that blue color can not be sensed by shifting 60nm, and the degree of blue color dyschromia can be normalized
Figure BDA0002869876670000063
It can be understood that the color vision disorder condition of the user, which is reflected comprehensively by the color vision disorder degree, can be corrected according to the color vision disorder degree of the user.
Step S30: and determining a corresponding color disorder mode according to the color vision disorder degree.
Further, step S30 includes: determining a preset conversion ratio according to the color vision disorder degree;
and determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree.
It should be noted that different color vision disorder degrees may correspond to different preset conversion ratios, and the preset conversion ratio is used to convert the color type that is not perceived or is less perceived by the user into the color type that is perceived normally or is more perceived by the user according to the preset conversion ratio. For example, the preset conversion ratio may be 70%.
Further, determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree includes: determining a color conversion matrix according to a preset conversion proportion and the color vision disorder degree; generating the color barrier pattern according to the color conversion matrix.
It should be noted that the color barrier pattern is a color conversion strategy generated according to a color conversion matrix, and a picture with the best viewing effect for a user can be obtained by converting an image to be converted according to the color conversion strategy.
It is understood that different color conversion matrices may be generated for converting colors according to different degrees of dyschromatopsia and preset conversion ratios.
Further, the color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
Figure BDA0002869876670000071
Figure BDA0002869876670000072
Figure BDA0002869876670000073
wherein, TCRFor a red conversion matrix, TCGAs a green conversion matrix, TCBThe color conversion matrix is blue, gamma is a preset conversion ratio, and alpha R, alpha G and alpha B are the color vision disorder degrees of the corresponding colors respectively.
In concrete embodimentsNow, for example, a user with red color blindness cannot perceive the color of the red color system, and the color obstacle mode includes the color perceivable by the user with red color blindness and the color imperceptible, at this time, 70% of the color of the red color system may be converted into other colors, that is, 70% of the color of the L channel in the LMS color space is converted into the M channel and the S channel, and then the preset conversion ratio of 70% is taken as an example, and the red conversion matrix T is a red conversion matrix TCRCan be as follows:
Figure BDA0002869876670000074
step S40: and determining the color to be converted in the image to be converted according to the color barrier mode.
Further, step S40 includes: acquiring an image to be converted; converting the original color of the RGB color space in the image into the space color of the LMS color space; and determining the color to be converted in the image to be converted according to the space color and the color barrier mode.
It should be noted that, when the original image, that is, the image to be converted, is obtained, the color of the original image needs to be converted from the RGB color space to the LMS color space, and the color that cannot be perceived by the user in the image to be converted, that is, the color to be converted, is obtained from the color of the LMS color space.
It should be noted that there are 3 kinds of cones in human eye, which have different spectral sensitivities, and these three kinds of cones are respectively called as: short (S), medium (M), and long (L) cone cell types. S, M and L-class cones normalized response spectra to monochromatic spectral stimuli are shown in FIG. 3. Since the physiological causes of color blindness and color weakness are related to the absence or defect of LMS three cells, the current color space is first transferred to the LMS space. Since the physiological causes of color blindness and color weakness are related to the absence or defect of LMS three cells, the current color space is first transferred to the LMS space. If the current picture is inputted with a commonly used RGB color space, it needs to be transferred to an LMS space first, and knowing that the conversion matrix from the RGB space to the LMS space is X, LMS × RGB, and the matrix X is the prior art, which is not described herein.
In a specific implementation, the color perceivable by the user can be recognized through the color barrier mode, the image is denoted as Lp Mp Sp, and the color which cannot be perceived by the user is: LEp MEp SEp ═ LMS-Lp Mp Sp. The color which cannot be perceived by the user in the image to be converted, namely the color to be converted, can be obtained through the above formula. For example: the user with the color blindness cannot perceive the color of the green system, the color obstacle mode of the user identifies the colors of other color systems in the image to obtain the color of the green system, and at the moment, the color of the green system in the image is the color to be converted.
Step S50: and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted.
In a specific implementation, colors that cannot be perceived by users with dyschromatopsia are mapped into the color gamut that they can see through the color conversion matrix Tc to obtain target colors, for example: dispersing 70% of L channel colors which cannot be seen by a red dyschromatosis person into an M channel, dispersing 70% of L channel colors into an S channel, and converting a corresponding red dyschromatosis conversion matrix into:
Figure BDA0002869876670000081
the corrected color is denoted as LSEp MSEp SSEp, i.e., LSEp MSEp SSEp ═ Tc × LEp MEp SEp.
Further, after step S50, the method further includes:
and converting the target color in the image to be converted into the color of the RGB color space to obtain the corrected color.
It can be understood that the LMS gamut space is converted to the original RGB gamut space, the conversion matrix from the LMS space to RGB is denoted as X ', the converted matrix is denoted as R ' G ' B ', and then R ' G ' B ═ X ' LSEp MSEp SSEp.
And superposing the corrected color and the original color of the image to be converted to obtain a target image.
Note that R 'G' B 'is superimposed on the RGB original image to obtain an optimized picture, that is, RcGcBc is RGB + R' G 'B'. When users with color vision disorder watch the picture, the color information which cannot be perceived by the users can be distinguished.
The sorting flow chart is as shown in fig. 4, the color of the original image is converted from the RGB color space to the LMS color space, the color perceivable by the user is obtained according to the user selection, the color not perceivable by the user in the original image is obtained, the color not perceivable by the user is converted to the color gamut perceivable by the user, the converted color is converted to the RGB color space and is overlapped with the original image, and the modified image is obtained.
The embodiment sets the instruction by obtaining the perception of the user; determining the color vision disorder degree of the user according to the perception setting instruction; determining a corresponding color disorder mode according to the color vision disorder degree; determining the color to be converted in the image to be converted according to the color barrier mode; converting the color to be converted into a corresponding color to obtain a target color of the image to be converted; converting the target color in the image to be converted into the color of an RGB color space to obtain a corrected color; and superposing the corrected color and the original color of the image to be converted to obtain a target image. By the mode, the corresponding color obstacle mode can be determined according to different color vision obstacle conditions of different users, colors which cannot be sensed by the users are converted into pictures with the best user appearance according to the color obstacle mode, all colors of the pictures can be distinguished by the users through the customized color conversion scheme, the scene resolution capability of the users is improved, and the user experience is greatly improved.
Furthermore, an embodiment of the present invention further provides a storage medium, on which a color conversion program is stored, and the color conversion program, when executed by a processor, implements the steps of the color conversion method as described above.
Referring to fig. 5, fig. 5 is a block diagram of a first embodiment of the color conversion device according to the present invention.
As shown in fig. 5, the color conversion apparatus according to the embodiment of the present invention includes:
the acquisition module 10 is used for acquiring a perception setting instruction of a user;
a determining module 20, configured to determine a color vision disorder degree of the user according to the perception setting instruction;
the determining module 20 is further configured to determine a corresponding color disorder mode according to the color vision disorder degree;
the determining module 20 is further configured to determine a color to be converted in the image to be converted according to the color barrier mode;
the conversion module 30 is configured to convert the color to be converted into a corresponding color, and obtain a target color of the image to be converted.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, the instruction is set by acquiring the perception of the user; determining the color vision disorder degree of the user according to the perception setting instruction; determining a corresponding color disorder mode according to the color vision disorder degree; determining the color to be converted in the image to be converted according to the color barrier mode; and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted. By the mode, the corresponding color obstacle mode can be determined according to different color vision obstacle conditions of different users, colors which cannot be sensed by the users are converted into pictures with the best user appearance according to the color obstacle mode, all colors of the pictures can be distinguished by the users through the customized color conversion scheme, the scene resolution capability of the users is improved, and the user experience is greatly improved.
In an embodiment, the determining module 20 is further configured to obtain a color vision disorder type of the user according to the perception setting instruction; obtaining the color vision offset of the user according to the perception setting instruction; and determining the color vision disorder degree of the user according to the color vision disorder type and the color vision offset.
In an embodiment, the determining module 20 is further configured to determine a preset conversion ratio according to the color vision disorder degree; and determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree.
In an embodiment, the determining module 20 is further configured to determine a color conversion matrix according to a preset conversion ratio and a color vision disorder degree; generating the color barrier pattern according to the color conversion matrix.
In an embodiment, the determining module 20 is further configured to determine a color conversion matrix according to a preset conversion ratio and a color vision disorder degree, where the color conversion matrix includes: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
Figure BDA0002869876670000101
Figure BDA0002869876670000102
Figure BDA0002869876670000103
wherein, TCRFor a red conversion matrix, TCGAs a green conversion matrix, TCBThe color conversion matrix is blue, gamma is a preset conversion ratio, and alpha R, alpha G and alpha B are the color vision disorder degrees of the corresponding colors respectively.
In an embodiment, the determining module 20 is further configured to obtain an image to be converted; converting the original color of the RGB color space in the image into the space color of the LMS color space; and determining the color to be converted in the image to be converted according to the space color and the color barrier mode.
In an embodiment, the conversion module 30 is further configured to convert a target color in the image to be converted into a color of an RGB color space, so as to obtain a corrected color; and superposing the corrected color and the original color of the image to be converted to obtain a target image.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the color conversion method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A color conversion method, characterized in that the color conversion method comprises:
acquiring a perception setting instruction of a user;
determining the color vision disorder degree of the user according to the perception setting instruction;
determining a corresponding color disorder mode according to the color vision disorder degree;
determining the color to be converted in the image to be converted according to the color barrier mode;
and converting the color to be converted into a corresponding color to obtain the target color of the image to be converted.
2. The method of claim 1, wherein said determining a color vision disorder level of the user according to the perception setting instruction comprises:
obtaining the color vision disorder type of the user according to the perception setting instruction;
obtaining the color vision offset of the user according to the perception setting instruction;
and determining the color vision disorder degree of the user according to the color vision disorder type and the color vision offset.
3. The method of claim 1, wherein determining a corresponding color impairment mode based on the color vision impairment level comprises:
determining a preset conversion ratio according to the color vision disorder degree;
and determining a corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree.
4. The method as claimed in claim 3, wherein the determining the corresponding color disorder mode according to the preset conversion ratio and the color vision disorder degree comprises:
determining a color conversion matrix according to a preset conversion proportion and the color vision disorder degree;
generating the color barrier pattern according to the color conversion matrix.
5. The method of claim 4, wherein the color conversion matrix comprises: at least one of a red conversion matrix, a green conversion matrix, and a blue conversion matrix;
Figure FDA0002869876660000021
Figure FDA0002869876660000022
Figure FDA0002869876660000023
wherein, TCRFor a red conversion matrix, TCGAs a green conversion matrix, TCBThe color conversion matrix is blue, gamma is a preset conversion ratio, and alpha R, alpha G and alpha B are the color vision disorder degrees of the corresponding colors respectively.
6. The method of claim 1, wherein the determining a color to be converted in an image to be converted according to the color barrier pattern comprises:
acquiring an image to be converted;
converting the original color of the RGB color space in the image into the space color of the LMS color space;
and determining the color to be converted in the image to be converted according to the space color and the color barrier mode.
7. The method as claimed in any one of claims 1 to 6, wherein the converting the color to be converted into the corresponding color further comprises, after obtaining the target color of the image to be converted:
converting the target color in the image to be converted into the color of an RGB color space to obtain a corrected color;
and superposing the corrected color and the original color of the image to be converted to obtain a target image.
8. A color conversion apparatus, characterized in that the color conversion apparatus comprises:
the acquisition module is used for acquiring a perception setting instruction of a user;
the determining module is used for determining the color vision disorder degree of the user according to the perception setting instruction;
the determining module is further used for determining a corresponding color disorder mode according to the color vision disorder degree;
the determining module is further used for determining the color to be converted in the image to be converted according to the color barrier mode;
and the conversion module is used for converting the color to be converted into a corresponding color to obtain the target color of the image to be converted.
9. A color conversion apparatus, characterized in that the apparatus comprises: a memory, a processor and a color conversion program stored on the memory and executable on the processor, the color conversion program being configured to implement the steps of the color conversion method according to any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a color conversion program which, when executed by a processor, implements the steps of the color conversion method according to any one of claims 1 to 7.
CN202011612899.4A 2020-12-29 2020-12-29 Color conversion method, device, equipment and storage medium Pending CN112801858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011612899.4A CN112801858A (en) 2020-12-29 2020-12-29 Color conversion method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011612899.4A CN112801858A (en) 2020-12-29 2020-12-29 Color conversion method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112801858A true CN112801858A (en) 2021-05-14

Family

ID=75805877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011612899.4A Pending CN112801858A (en) 2020-12-29 2020-12-29 Color conversion method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112801858A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794869A (en) * 2021-09-08 2021-12-14 深圳创维-Rgb电子有限公司 Image processing method, terminal and computer storage medium
CN114527950A (en) * 2022-02-23 2022-05-24 深圳创维-Rgb电子有限公司 Picture color adjusting method, device, equipment and storage medium
WO2024093408A1 (en) * 2022-11-01 2024-05-10 深圳市Tcl云创科技有限公司 Content display method and apparatus, electronic device, and computer-readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794869A (en) * 2021-09-08 2021-12-14 深圳创维-Rgb电子有限公司 Image processing method, terminal and computer storage medium
CN114527950A (en) * 2022-02-23 2022-05-24 深圳创维-Rgb电子有限公司 Picture color adjusting method, device, equipment and storage medium
WO2024093408A1 (en) * 2022-11-01 2024-05-10 深圳市Tcl云创科技有限公司 Content display method and apparatus, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN112801858A (en) Color conversion method, device, equipment and storage medium
Fairchild et al. iCAM framework for image appearance, differences, and quality
US6459436B1 (en) Image processing method and apparatus
US20170301310A1 (en) Displays with Improved Color Accessibility
EP1819143A1 (en) Color adjusting device and method
EP1558019A2 (en) Image-processing apparatus, image-capturing apparatus, image-processing method and image-processing program
JPH08241403A (en) Digital water marking without change in color of image
DE10308904A1 (en) Color correction method and device for projector
KR20140008977A (en) Method and apparatus of converting color for color vision defectives
EP2445191B1 (en) Image Forming Apparatus and Image Forming Method Capable of Revising Gray Image Obtained from a Color Image
KR101695224B1 (en) Image forming device and color revising method thereof and host device for revising color of output image
US8345967B2 (en) Apparatus and method of processing image, and record medium for the method
Azad et al. Color image processing in digital image
Kim et al. Factors affecting the psychophysical image quality evaluation of mobile phone displays: the case of transmissive liquid-crystal displays
Laird et al. Development and evaluation of gamut extension algorithms
CN113112944A (en) Display control method, electronic device, and storage medium
Kwon et al. Compensation of de-saturation effect in HDR imaging using a real scene adaptation model
Ha et al. Discomfort luminance level of head‐mounted displays depending on the adapting luminance
CN114527950A (en) Picture color adjusting method, device, equipment and storage medium
CN113487497A (en) Image processing method and device and electronic equipment
Kuang et al. iCAM06, HDR, and image appearance
JP2017156506A (en) Display control device and display control method
US20160247049A1 (en) Monochrome Profile Generation Mechanism
Nezamabadi et al. Effect of image size on the color appearance of image reproductions using colorimetrically calibrated LCD and DLP displays
JP6261328B2 (en) Color name output device, color name output method, and color name output program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination