Image processing method, electronic equipment and storage medium

CN119213397APending Publication Date: 2024-12-27BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380008834.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

During the process of displaying images on an electronic ink screen, it is difficult for the existing technology to effectively improve the color richness and display quality of the image, especially in the color processing of visually significant areas.

Method used

By performing color space conversion based on the pixel color of the original image based on the preset color mode, and adjusting the pixel color to match the preset color mode, the color richness and display quality of the target image are improved. Specific steps include: converting between different color spaces according to the pixel color of the original image, using an error diffusion algorithm to adjust the color, and ensuring that the color of the visually significant area in the target image corresponds to the preset mode.

Benefits of technology

It significantly improves the color richness and display quality of the target image, ensures that the color of the visually significant area matches the preset mode, and improves the display effect of the electronic ink screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119213397A_ABST
    Figure CN119213397A_ABST
Patent Text Reader

Abstract

An image processing method, an electronic device and a storage medium can be applied to the technical field of image processing and display. The method comprises: determining, on the basis of a preset color mode, a second presentation color of at least one pixel of an original image according to a first presentation color of the at least one pixel (S210), the first presentation color corresponding to a first color space, and the second presentation color corresponding to a second color space; according to the second presentation color of the at least one pixel and the original presentation color, adjusting the second presentation color of the at least one pixel to obtain a third presentation color of the at least one pixel (S220) wherein the original presentation color and the third presentation color correspond to the second color space; the first presentation color is obtained by performing color space conversion on the original presentation color; and obtaining a target image according to the third presentation color of the at least one pixel (S230), in which the color of a region corresponding to the visual saliency region of the original image in the target image corresponds to the preset color mode.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing method, electronic device, and storage medium Technical Field

[0001] The present disclosure relates to the fields of image processing technology and display technology, and more particularly, to an image processing method, an electronic device, and a storage medium. Background Art

[0002] With the development of electronic technology, display technology has emerged and can be applied to e-book readers, e-paper, shelf labels, electronic table signs, etc.

[0003] When displaying an image, the electronic ink screen uses an internal image processor to convert image data into target color data according to a preset algorithm. By changing the charge of the surface particles, particles of different colors can be arranged in an orderly manner to display the image.

[0004] Summary of the Invention

[0005] In view of this, the present disclosure provides an image processing method, an electronic device, and a storage medium.

[0006] According to one aspect of the present disclosure, an image processing method is provided, including: based on a preset color mode, determining the second presentation color of at least one pixel of an original image according to the first presentation color of the at least one pixel, wherein the first presentation color corresponds to the first color space, and the second presentation color corresponds to the second color space; adjusting the second presentation color of the at least one pixel according to the second presentation color and the original presentation color of the at least one pixel to obtain a third presentation color of the at least one pixel, wherein the original presentation color and the third presentation color correspond to the second color space, and the first presentation color is obtained by color space conversion of the original presentation color; and obtaining a target image according to the third presentation color of the at least one pixel, wherein the color of the area in the target image corresponding to the visually significant area of ​​the original image corresponds to the preset color mode.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a memory for storing one or more instructions, wherein when the one or more instructions are executed by the one or more processors, the one or more processors implement the method described in the present disclosure.

[0008] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described in the present disclosure.

[0009] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer-executable instructions. When the computer-executable instructions are executed, they are used to implement the method described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0011] FIG1 schematically shows a system architecture to which an image processing method according to an embodiment of the present disclosure can be applied;

[0012] FIG2 schematically shows a flow chart of an image processing method according to an embodiment of the present disclosure;

[0013] FIG3 schematically illustrates an example of a process of determining a second rendered color of at least one pixel according to a first color component of at least one pixel of an original image based on a color association relationship corresponding to a preset color mode according to an embodiment of the present disclosure;

[0014] FIG4 schematically illustrates a flowchart of a method for determining a plurality of first probabilities corresponding to at least one pixel according to a first color component of at least one pixel of an original image based on a color association relationship corresponding to a preset color pattern according to an embodiment of the present disclosure;

[0015] 5A schematically illustrates an example of a process for determining a plurality of first probabilities corresponding to at least one pixel based on a plurality of second probabilities corresponding to the at least one pixel and at least one first other color component according to an embodiment of the present disclosure;

[0016] 5B schematically illustrates an example of a process for determining a plurality of first probabilities corresponding to at least one pixel based on a plurality of second probabilities corresponding to the at least one pixel and at least one first other color component according to another embodiment of the present disclosure;

[0017] FIG6A schematically shows an example of a probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, and red according to an embodiment of the present disclosure;

[0018] FIG6B schematically shows an example schematic diagram of a probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, red, and yellow according to an embodiment of the present disclosure;

[0019] FIG6C schematically illustrates an example of a probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, red, green, and blue according to an embodiment of the present disclosure;

[0020] FIG6D schematically shows an example schematic diagram of probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, red, yellow, green, and blue according to an embodiment of the present disclosure;

[0021] FIG6E schematically shows an example schematic diagram of probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, red, orange, yellow, green, and blue according to an embodiment of the present disclosure;

[0022] FIG7 schematically illustrates an example of a process of adjusting the second rendered color of at least one pixel based on the second rendered color and the original rendered color of the at least one pixel to obtain a third rendered color of the at least one pixel according to an embodiment of the present disclosure;

[0023] FIG8 schematically shows an example diagram of an original image and a target image according to an embodiment of the present disclosure;

[0024] FIG9 schematically shows a block diagram of an image processing apparatus according to an embodiment of the present disclosure; and

[0025] FIG10 schematically shows a block diagram of an electronic device suitable for implementing an image processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0028] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0029] When expressions such as “at least one of A, B, and C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, and C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.). When expressions such as “at least one of A, B, or C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, or C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.).

[0030] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0031] In the technical solution disclosed herein, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.

[0032] In electronic ink display technology, electrophoretic displays (EPDs) are increasingly being used. EPDs can include wet-type EPDs and quick-response liquid powder displays (QR-LPDs).

[0033] To this end, an embodiment of the present disclosure provides an image processing solution. For example, based on a preset color mode, a second presentation color of at least one pixel is determined according to the first presentation color of at least one pixel of the original image. The first presentation color corresponds to the first color space. The second presentation color corresponds to the second color space. According to the second presentation color of at least one pixel and the original presentation color, the second presentation color of at least one pixel is adjusted to obtain a third presentation color of at least one pixel. The original presentation color and the third presentation color correspond to the second color space. The first presentation color is obtained by performing color space conversion on the original presentation color. According to the third presentation color of at least one pixel, a target image is obtained. The color of the area in the target image corresponding to the visually significant area of ​​the original image corresponds to the preset color mode.

[0034] According to an embodiment of the present disclosure, the second presentation color of a pixel is determined according to the first presentation color of the pixel of the original image based on a preset color mode. On this basis, the second presentation color of the pixel is adjusted according to the second presentation color of the pixel and the original presentation color to obtain the third presentation color of the pixel. Thus, the target image is obtained according to the third presentation color of the pixel. Since the color of the area in the target image corresponding to the visually significant area of ​​the original image corresponds to the preset color mode, the color richness of the target image is improved, thereby improving the display quality of the target image.

[0035] FIG1 schematically shows a system architecture to which an image processing method according to an embodiment of the present disclosure can be applied.

[0036] It should be noted that FIG1 is merely an example of a system architecture to which the embodiments of the present disclosure may be applied, to help those skilled in the art understand the technical content of the present disclosure, and does not imply that the embodiments of the present disclosure may not be applied to other devices, systems, environments, or scenarios. For example, in another embodiment, the exemplary system architecture to which the image processing method and apparatus may be applied may include a terminal device, but the terminal device may implement the image processing method and apparatus provided by the embodiments of the present disclosure without interacting with a server.

[0037] As shown in Figure 1, the system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as at least one of a wired and wireless communication link. The terminal device may include at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103.

[0038] A user can use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. At least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 can be installed with various communication client applications, such as at least one of a knowledge reading application, a web browser application, a search application, an instant messaging tool, an email client, and a social platform software.

[0039] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with display screens and supporting web browsing. For example, the electronic device can include at least one of an e-reader, a smartphone, a tablet computer, a laptop computer, and a desktop computer. The e-reader can include an e-reader with an electronic ink screen.

[0040] Server 105 can be a server that provides various services. For example, server 105 can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. It solves the problems of traditional physical hosts and VPS services (Virtual Private Servers), such as difficult management and poor business scalability.

[0041] It should be noted that the image processing method provided in the embodiment of the present invention can generally be executed by one of the first terminal device 101, the second terminal device 102, and the third terminal device 103. Correspondingly, the image processing apparatus provided in the embodiment of the present invention can also be provided in one of the first terminal device 101, the second terminal device 102, and the third terminal device 103.

[0042] Alternatively, the image processing method provided in the embodiment of the present invention may also be generally executed by the server 105. Accordingly, the image processing apparatus provided in the embodiment of the present invention may generally be provided in the server 105. The image processing method provided in the embodiment of the present invention may also be performed by a server or server cluster that is different from the server 105 and that is capable of communicating with at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. Accordingly, the image processing apparatus provided in the embodiment of the present invention may also be provided in a server or server cluster that is different from the server 105 and that is capable of communicating with at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105.

[0043] It should be understood that the number of first terminal devices, second terminal devices, third terminal devices, networks and servers in Figure 1 is only illustrative. Depending on the implementation requirements, there can be any number of first terminal devices, second terminal devices, third terminal devices, networks and servers.

[0044] It should be noted that the sequence numbers of the operations in the following method are only used to indicate the operation for the purpose of description, and should not be regarded as indicating the order in which the operations should be performed. Unless explicitly stated, the method does not need to be performed in the order shown.

[0045] FIG2 schematically shows a flow chart of an image processing method according to an embodiment of the present disclosure.

[0046] As shown in FIG. 2 , the method 200 includes operations S210 to S230 .

[0047] In operation S210, a second rendered color of at least one pixel of an original image is determined according to a first rendered color of at least one pixel based on a preset color mode.

[0048] In operation S220, the second presented color of the at least one pixel is adjusted according to the second presented color and the original presented color of the at least one pixel to obtain a third presented color of the at least one pixel.

[0049] In operation S230, a target image is obtained according to the third rendered color of the at least one pixel.

[0050] According to an embodiment of the present disclosure, the first rendered color may correspond to a first color space. The second rendered color may correspond to a second color space. The original rendered color and the third rendered color may correspond to the second color space. The first rendered color may be obtained by performing a color space conversion on the original rendered color. The color of an area in the target image corresponding to a visually significant area of ​​the original image may correspond to a preset color pattern.

[0051] According to an embodiment of the present disclosure, the image format of the original image may include at least one of the following: Joint Photographic Experts Group (JPEG), Tagged Image File Format (TIFF), Portable Network Graphics (PNG), Portable Document Format (PDF), Graphics Interchange Format (GIF), Bitmap (BMP), and Tagged Graphics (TGA), etc.

[0052] According to an embodiment of the present disclosure, after obtaining the original image, a second color space corresponding to the original image can be determined. For each pixel in at least one pixel of the original image, the original rendered color of the pixel in the second color space can be determined. The second color space (i.e., Color Space) may refer to a range of colors defined by using a coordinate system. The second color space may include at least one of the following: HSV (Hue Saturation Value, hexagonal pyramid) color space, RGB (Red Green Blue, three primary colors of light) color space, YUV (Luminance Chrominance Chroma, brightness chroma concentration) color space, Lab (i.e., color opposition) color space, HSI (Hue Saturation Intensity, hue brightness saturation) color space, and CMYK (Cyan Magenta Yellow Black, printing four-color separation) color space.

[0053] According to an embodiment of the present disclosure, after obtaining the original presentation color of each of at least one pixel, the first color space that needs to be converted can be determined. The first color space can be set according to actual business needs and is not limited here. It is only necessary to ensure that the first color space and the second color space belong to different color spaces. For example, the first color space may include one of the following: a hexagonal pyramid color space, a three-primary color light color space, a YUV color space, a color opposition color space, a hue-brightness-saturation color space, and a printed four-color color space. For each pixel in the at least one pixel, the original presentation color under the second color space can be converted into a color space to obtain a first presentation color under the first color space corresponding to the pixel.

[0054] For example, if the first color space is an HSV color space and the second color space is an RGB color space, the red component, green component, and blue component corresponding to each pixel in at least one pixel of the original image in the second color space can be determined. Based on the red component, green component, and blue component corresponding to the pixel in the second color space, the original rendered color corresponding to the pixel in the second color space is determined. After obtaining the original rendered color in the second color space, the original rendered color in the second color space of the RGB color space can be converted into a color space to obtain the hue component, saturation component, and lightness component in the first color space corresponding to the pixel. Based on the hue component, saturation component, and lightness component in the first color space corresponding to the pixel, the first rendered color corresponding to the pixel in the first color space is determined.

[0055] According to an embodiment of the present disclosure, a color component can be used to represent a first rendered color in a first color space. The color component can include at least one of the following: a first color component, a second color component, and a third color component. For example, when the first color space is an HSV color space, the first color component can be a hue component (i.e., H), the second color component can be a saturation component (i.e., S), and the third color component can be a lightness component (i.e., V). The hue component can be measured based on an angle. For example, red can be 0 degrees, and starting from red, in a counterclockwise direction, green can be 120 degrees, and blue can be 240 degrees. In this case, the color region in which the first rendered color is located in the first color space can be determined based on the hue component, saturation component, and lightness component of the first rendered color. Alternatively, when the first color space is an RGB color space, the first color component can be a red component (i.e., R), the second color component can be a green component (i.e., G), and the third color component can be a blue component (i.e., B). In this case, the color region in which the color is located in the first color space can be determined based on the red component, green component, and blue component of the first rendered color.

[0056] According to an embodiment of the present disclosure, after obtaining the first presentation color of at least one pixel, the second presentation color of at least one pixel in the second color space can be determined based on the preset color mode and the first presentation color of at least one pixel in the first color space. The preset color mode can be used to map any preset presentation color in the first color space to a target presentation color in the second color space. The preset color mode can be set according to actual business needs and is not limited here. For example, the method for determining the preset color mode may include at least one of the following: an analytical model method and an empirical model method. The at least one pixel may be a pixel in the area to be adjusted of the original image. The area to be adjusted may be at least a partial area of ​​the original image.

[0057] According to embodiments of the present disclosure, when determining a preset color mode based on an analytical model, a conversion relationship between colors presented in different color spaces can be established through theoretical analysis. Based on this conversion relationship between colors presented in different color spaces, a second color presented in a second color space is determined based on the first color presented in a first color space of a pixel in the original image. For example, the analytical model can include the Neugeborg equation.

[0058] According to an embodiment of the present disclosure, when determining a preset color mode based on an empirical model method, a conversion relationship between colors presented in different color spaces can be established using mathematical methods by measuring predetermined feature samples. Based on the conversion relationship between colors presented in different color spaces, a second color presented in a second color space is determined based on the first color presented in a pixel of the original image in the first color space. For example, the empirical model method can include at least one of the following: a lookup table interpolation method, a polynomial regression method, and a neural network method.

[0059] For example, if the first color space is an HSV color space and the second color space is an RGB color space, after obtaining a first rendered color in the first color space, the hue component, saturation component, and lightness component corresponding to the pixel in the first color space can be determined. Based on a preset color mode, a second rendered color corresponding to the pixel in the second color space is determined based on the hue component, saturation component, and lightness component corresponding to the pixel in the first color space.

[0060] According to an embodiment of the present disclosure, the preset color mode may include at least one of the following: a three-color mode, a four-color mode, a five-color mode, a six-color mode, and a seven-color mode. The target presentation color may include at least one of the following: black, white, red, orange, yellow, green, and blue. The preset color mode may include a first base color, a second base color, and other configured colors. For example, the first base color may include black, the second base color may include white, and the other configured colors may include at least one of the following: red, orange, yellow, green, and blue.

[0061] For example, when the preset color mode is a three-color mode and the other configured color is orange, the preset color mode can be used to map red and orange in the first color space to orange in the second color space. Alternatively, when the preset color mode is a four-color mode and the other configured colors are yellow and green, the preset color mode can be used to map red and yellow in the first color space to yellow in the second color space. Alternatively, when the preset color mode is a five-color mode and the other configured colors are yellow, green, and blue, the preset color mode can be used to map red and yellow in the first color space to yellow in the second color space.

[0062] According to an embodiment of the present disclosure, after determining other configuration colors, the probability of other configuration colors appearing in the visual saliency area is high. The probability of the first basic color and the second basic color appearing in the non-visual saliency area is high. The visual saliency area may refer to a scene in the real world where people automatically identify a region of interest (ROI) and process the region of interest to ignore areas of no interest. The visual saliency areas may be sorted according to the color areas that are more noticeable to the human eye. For example, the visual saliency areas may include a red area, an orange area, a yellow area, a green area, a blue area, a white area, and a black area in sequence.

[0063] According to an embodiment of the present disclosure, the probability of other configured colors appearing may be related to the second and third color components of the visually significant color of the visually significant area. For example, if the first color space is the HSV color space, the second color component is the saturation component, and the third color component is the lightness component, the probability of other configured colors appearing decreases as the lightness component of the visually significant color of the visually significant area decreases. The probability of other configured colors appearing decreases as the lightness and saturation of the visually significant color of the visually significant area decreases.

[0064] According to an embodiment of the present disclosure, the probability of the first primary color appearing is related to the third color component of the visually significant color of the visually significant area. For example, when the first color space is the HSV color space and the third color component is the lightness component, the probability of the first primary color appearing increases as the lightness component of the visually significant color of the visually significant area decreases. The probability of the second primary color appearing is related to the second color component of the visually significant color of the visually significant area. For example, the probability of the second primary color appearing increases as the saturation of the visually significant color of the visually significant area decreases.

[0065] According to an embodiment of the present disclosure, after obtaining the second rendered color of at least one pixel, the second rendered color of the at least one pixel can be adjusted based on the second rendered color and the original rendered color of the at least one pixel based on an error diffusion algorithm to obtain a third rendered color of the at least one pixel. The error diffusion algorithm can be used to distribute the quantization error of a central pixel to unprocessed neighboring pixels around the central pixel to enhance image boundaries. The error diffusion algorithm can include at least one of the following: a Floyd-Steinberg error diffusion algorithm or a Jarris Judice-Ninke error diffusion algorithm.

[0066] According to an embodiment of the present disclosure, after obtaining the third rendered color of at least one pixel, a target image can be obtained based on the third rendered color of at least one pixel. By assigning the visually significant area in the original image to the first base color, the second base color, or the configured color in the preset color mode, the color of the area in the target image corresponding to the visually significant area of ​​the original image can correspond to the preset color mode. For example, taking the preset color mode as a three-color mode and the configured color as orange as an example, the original image may include a black area, a white area, an orange area, and a red area. Based on the third rendered color of at least one pixel, the orange area and the red area can be assigned to orange to obtain the black area, white area, and red area in the target image.

[0067] According to an embodiment of the present disclosure, the second presentation color of a pixel is determined according to the first presentation color of the pixel of the original image based on a preset color mode. On this basis, the second presentation color of the pixel is adjusted according to the second presentation color of the pixel and the original presentation color to obtain the third presentation color of the pixel. Thus, the target image is obtained according to the third presentation color of the pixel. Since the color of the area in the target image corresponding to the visually significant area of ​​the original image corresponds to the preset color mode, the color richness of the target image is improved, thereby improving the display quality of the target image.

[0068] According to an embodiment of the present disclosure, operation S210 may include the following operations.

[0069] Determine a region of the original image to be adjusted. Based on a preset color mode, determine a second rendered color of at least one pixel according to a first rendered color of at least one pixel in the region to be adjusted.

[0070] According to an embodiment of the present disclosure, the area to be adjusted may refer to an area in the original image whose original presentation color needs to be adjusted. The area to be adjusted may be determined from the original image based on a preset visual salience order and the original presentation color of the original image. For example, the area to be adjusted may be determined from the original presentation colors of the original image based on a preset visual salience order. The area corresponding to the presentation color to be adjusted is determined as the area to be adjusted. For example, the area to be adjusted may be the entire area of ​​the original image. Alternatively, the area to be adjusted may be a partial area of ​​the original image.

[0071] According to the embodiments of the present disclosure, since at least one pixel is a pixel in the area to be adjusted of the original image, the number of pixels to be adjusted is reduced, and the adjustment efficiency is improved. In addition, since the area to be adjusted can be flexibly configured, the convenience of adjustment is improved.

[0072] The image processing method according to the embodiment of the present invention will be further described below in combination with specific embodiments with reference to Figures 3, 4, 5A, 5B, 6A, 6B, 6C, 6D, 6E, 7 and 8.

[0073] According to an embodiment of the present disclosure, taking the HSV color space as the first color space and the RGB color space as the second color space as an example, after obtaining an original image, the original rendered color of at least one pixel in the original image in the RGB color space can be determined. After obtaining the original rendered color of the at least one pixel in the RGB color space, for each of the at least one pixel, the original rendered color in the RGB color space can be converted using the following equations (1) to (3) to obtain a first rendered color in the HSV color space corresponding to the pixel. V=C max (3)

[0074] According to an embodiment of the present disclosure, Δ=C max -C min , R * It can represent the red component of a pixel in the RGB color space. G * It can represent the green component of a pixel in the RGB color space. B * It can represent the blue component of a pixel in the RGB color space. C max It can represent the maximum value of the red component, green component and blue component of the pixel in the RGB color space, C max =max(R * , G * , B * ), C min It can represent the minimum value of the red component, green component and blue component of the pixel in the RGB color space, C min =min(R * , G * , B * ), H can represent the hue component of the pixel in the HSV color space, S can represent the saturation component of the pixel in the HSV color space, and V can represent the lightness component of the pixel in the HSV color space.

[0075] According to an embodiment of the present disclosure, operation S210 may include the following operations.

[0076] Based on a color association relationship corresponding to a preset color mode, a second rendered color of at least one pixel is determined according to a first color component of at least one pixel of the original image.

[0077] According to an embodiment of the present disclosure, the first color component may represent a first component of a first rendered color, and the color association relationship may represent an association relationship between the first color component and a second rendered color.

[0078] According to an embodiment of the present disclosure, the first color component can be used to represent the first component of the first rendered color in the first color space. For example, when the first color space is an HSV color space, the first component can be a hue component. Alternatively, when the first color space is an RGB color space, the first component can be a red component.

[0079] According to an embodiment of the present disclosure, Table 1 shows the color association relationship between the first presentation color and the second presentation color in different preset color modes.

[0080] Table 1

[0081] According to an embodiment of the present disclosure, a color association relationship corresponding to a preset color mode can be determined based on a preset color mode. The color association relationship can be used to characterize the association relationship between a first color component and a second rendered color. For example, as shown in Table 1 above, when the preset color mode is a three-color mode and the configuration color is orange, the color association relationship may include an association relationship between a first color component representing red or orange and a second rendered color representing orange. When the first color component of a pixel is red or orange, it can be determined that the second rendered color of the pixel is orange.

[0082] Alternatively, as shown in Table 1 above, when the preset color mode is a three-color mode and the configured color is yellow, the color association relationship may include an association relationship between a first color component representing red or yellow and a second rendered color representing yellow. When the first color component of a pixel is red or yellow, the second rendered color of the pixel may be determined to be yellow.

[0083] For example, as shown in Table 1 above, when the preset color mode is a four-color mode and the configured colors are yellow and green, the color association relationship may include an association relationship between a first color component representing red or yellow and a second rendered color representing yellow. When the first color component of a pixel is red or yellow, the second rendered color of the pixel may be determined to be yellow.

[0084] Alternatively, as shown in Table 1 above, when the preset color mode is a four-color mode and the configured colors are yellow and blue, the color association relationship may include an association relationship between a first color component representing red or yellow and a second rendered color representing yellow. When the first color component of a pixel is red or yellow, the second rendered color of the pixel may be determined to be yellow.

[0085] For example, as shown in Table 1 above, when the preset color mode is a five-color mode and the configured colors are yellow, green, and blue, the color association relationship may include an association relationship between a first color component representing red or yellow and a second rendered color representing yellow. When the first color component of a pixel is red or yellow, the second rendered color of the pixel may be determined to be yellow.

[0086] According to an embodiment of the present disclosure, since the second rendered color is determined according to the first color component of the pixel of the original image based on the color association relationship corresponding to the preset color mode, the efficiency of image processing is improved.

[0087] According to an embodiment of the present disclosure, determining a second rendered color of at least one pixel according to a first color component of at least one pixel of an original image based on a color association relationship corresponding to a preset color mode may include the following operations.

[0088] Based on a color association relationship corresponding to a preset color pattern, multiple first probabilities corresponding to the at least one pixel in the original image are determined based on a first color component of the at least one pixel. A target probability corresponding to the at least one pixel is determined based on the multiple first probabilities corresponding to the at least one pixel. A second rendered color of the at least one pixel is determined based on the target probability corresponding to the at least one pixel.

[0089] According to an embodiment of the present disclosure, the preset color mode may correspond to multiple preset colors. The first probability may represent a probability that the second rendered color of the pixel is the preset color. The target probability may include at least one of a maximum probability, a minimum probability, a probability corresponding to a mode, and a probability corresponding to a median.

[0090] According to an embodiment of the present disclosure, for each of at least one pixel of the original image, after obtaining a first color component of the pixel, multiple first probabilities corresponding to the pixel can be determined based on the first color component of the pixel. The multiple preset colors may include black, white, red, orange, yellow, green, and blue.

[0091] According to an embodiment of the present disclosure, after obtaining multiple first probabilities corresponding to at least one pixel, the maximum probability corresponding to each of the at least one pixel can be determined based on the multiple first probabilities corresponding to each of the at least one pixel. The maximum probability corresponding to each of the at least one pixel is determined as the target probability corresponding to each of the at least one pixel. Alternatively, the minimum probability corresponding to each of the at least one pixel can be determined based on the multiple first probabilities corresponding to each of the at least one pixel. The minimum probability corresponding to each of the at least one pixel can be determined as the target probability corresponding to each of the at least one pixel. Alternatively, the mode corresponding to each of the at least one pixel can be determined based on the multiple first probabilities corresponding to each of the at least one pixel. The mode corresponding to each of the at least one pixel is determined as the target probability corresponding to each of the at least one pixel. Alternatively, the median corresponding to each of the at least one pixel is determined. The median corresponding to each of the at least one pixel is determined as the target probability corresponding to each of the at least one pixel. Alternatively, the multiple first probabilities corresponding to each of the at least one pixel can be weighted to obtain the target probability corresponding to each of the at least one pixel.

[0092] For example, for each pixel in at least one pixel, the maximum probability among the multiple first probabilities corresponding to the pixel can be used to determine the maximum probability corresponding to the pixel as the target probability of the pixel using the following formula (4). Alternatively, the multiple first probabilities corresponding to the pixel can be weighted to obtain the target probability of the pixel. After obtaining the target probability corresponding to at least one pixel, the second presentation color of the at least one pixel can be determined based on the target probability corresponding to the at least one pixel. P = max(P′ red , P′ orange , P′ yellow , P′ green , P′ blue , P′ white , P′ black ) (4)

[0093] According to an embodiment of the present disclosure, P can represent the target probability, P′ red It can represent the probability that the second color of the pixel is red, P′ orange It can represent the probability that the second color of the pixel is orange, P′ yellow It can represent the probability that the second color of the pixel is yellow, P′ green It can represent the probability that the second color of the pixel is green, P′ blue It can represent the probability that the second color of the pixel is blue, P′ black It can represent the probability that the second color of the pixel is black, P′ white The probability that the second presented color of the pixel is white can be represented.

[0094] According to an embodiment of the present disclosure, when P=P′ red In the case of P=P′, it can be determined that the second color of at least one pixel is red, that is, the RGB value is (255, 0, 0). orange In the case of P=P′, it can be determined that the second color of at least one pixel is orange, that is, the RGB value is (255, 128, 0). yellow In the case of P=P′, it can be determined that the second color of at least one pixel is yellow, that is, the RGB value is (255, 255, 0). green In the case of P=P′, it can be determined that the second color of at least one pixel is green, that is, the RGB value is (0, 255, 0). blue In the case of P=P′, it can be determined that the second color of at least one pixel is blue, that is, the RGB value is (0, 0, 255). black In the case of P=P′, it can be determined that the second color of at least one pixel is black, that is, the RGB value is (0, 0, 0). white In this case, it can be determined that the second presented color of at least one pixel is white, that is, the RGB value is (255, 255, 255).

[0095] According to the embodiments of the present disclosure, since the target probability is determined based on multiple first probabilities corresponding to the pixel, which are determined based on the first color component of the pixel in the original image based on the color association relationship corresponding to the preset color pattern, the target probability can be used to represent the probability that the pixel belongs to the preset color. On this basis, the second rendered color of the pixel is determined based on the target probability corresponding to the pixel, thereby improving the color richness of the target image.

[0096] FIG3 schematically shows an example diagram of a process of determining a second rendering color of at least one pixel according to a first color component of at least one pixel of an original image based on a color association relationship corresponding to a preset color mode according to an embodiment of the present disclosure.

[0097] As shown in FIG. 3 , in 300 , a plurality of first probabilities 305 corresponding to at least one pixel of an original image 303 may be determined based on a color association relationship 302 corresponding to a preset color pattern 301 and according to a first color component 304 of at least one pixel.

[0098] A target probability 306 corresponding to the at least one pixel is determined based on a plurality of first probabilities 305 corresponding to the at least one pixel. A second rendered color 307 of the at least one pixel is determined based on the target probability 306 corresponding to the at least one pixel.

[0099] According to an embodiment of the present disclosure, determining a target probability corresponding to at least one pixel based on a plurality of first probabilities corresponding to the at least one pixel may include the following operations.

[0100] An average probability corresponding to the at least one pixel is determined from a plurality of first probabilities corresponding to the at least one pixel, and the average probability corresponding to the at least one pixel is determined as a target probability corresponding to the at least one pixel.

[0101] According to an embodiment of the present disclosure, for a pixel in at least one pixel, after obtaining multiple first probabilities corresponding to the pixel, an average probability corresponding to the pixel can be determined from the multiple first probabilities corresponding to the pixel. The average probability corresponding to the pixel is determined as a target probability corresponding to the pixel.

[0102] According to an embodiment of the present disclosure, determining a target probability corresponding to at least one pixel based on a plurality of first probabilities corresponding to the at least one pixel may include the following operations.

[0103] A maximum probability corresponding to the at least one pixel is determined from a plurality of first probabilities corresponding to the at least one pixel, and the maximum probability corresponding to the at least one pixel is determined as a target probability corresponding to the at least one pixel.

[0104] According to an embodiment of the present disclosure, for a pixel in at least one pixel, after obtaining multiple first probabilities corresponding to the pixel, a maximum probability corresponding to the pixel can be determined from the multiple first probabilities corresponding to the pixel. The maximum probability corresponding to the pixel is determined as a target probability corresponding to the pixel.

[0105] 4 schematically illustrates a flowchart of a method for determining a plurality of first probabilities corresponding to at least one pixel according to a first color component of at least one pixel of an original image based on a color association relationship corresponding to a preset color pattern according to an embodiment of the present disclosure.

[0106] As shown in FIG. 4 , the method 400 includes operations S411 to S412 .

[0107] In operation S411, a plurality of second probabilities corresponding to at least one pixel of the original image are determined according to a first color component of at least one pixel based on a color association relationship corresponding to a preset color pattern.

[0108] In operation S412, a plurality of first probabilities corresponding to at least one pixel are determined based on the plurality of second probabilities corresponding to the at least one pixel and at least one first other color component.

[0109] According to an embodiment of the present disclosure, the first other color component may represent other components in the first rendered color except the first component.

[0110] According to an embodiment of the present disclosure, for each of at least one pixel in an original image, after obtaining the first color component of the pixel, multiple second probabilities corresponding to the pixel can be determined based on the first color component of the pixel based on a color association relationship corresponding to a preset color pattern. For example, the multiple second probabilities corresponding to the pixel can be determined based on the position of the first color component on the hue circle.

[0111] According to an embodiment of the present disclosure, after obtaining a first rendered color, other components of the first rendered color other than the first component may be determined to obtain at least one first other color component. For example, in an HSV color space, the first component may be a hue component, and the at least one first other color component may include a saturation component and a lightness component. Alternatively, in an RGB color space, the first component may be a red component, and the at least one first other color component may include a green component and a blue component.

[0112] According to an embodiment of the present disclosure, after obtaining multiple second probabilities and at least one first other color component corresponding to at least one pixel, for each pixel in the at least one pixel, the multiple second probabilities and at least one first other color component corresponding to the pixel can be processed to obtain multiple first probabilities corresponding to the pixel.

[0113] According to an embodiment of the present disclosure, operation S412 may include the following operations.

[0114] For at least one pixel, a first intermediate value corresponding to black is obtained based on the second color component of the pixel and the second probability corresponding to black. A first probability corresponding to black is obtained based on the third color component of the pixel and the first intermediate value corresponding to black, wherein the first probability corresponding to black represents a probability that the second presented color of the pixel is black. A second intermediate value corresponding to white is obtained based on the second color component of the pixel and the second probability corresponding to white. A first probability corresponding to white is obtained based on the third color component of the pixel and the second intermediate value corresponding to white, wherein the first probability corresponding to white represents a probability that the second presented color of the pixel is white. A first probability corresponding to at least one other color is obtained based on the second color component of the pixel, the third color component of the pixel, and the second probability corresponding to at least one other color, wherein the first probability corresponding to the other color represents a probability that the second presented color of the pixel is the other color.

[0115] According to an embodiment of the present disclosure, the plurality of preset colors may include black, white, and at least one other color. The plurality of second probabilities may include a second probability corresponding to black, a second probability corresponding to white, and a second probability corresponding to at least one other color. The at least one first other color component may include a second color component and a third color component.

[0116] According to an embodiment of the present disclosure, taking the HSV color space and the first component being the hue component as an example, the second color component may be the saturation component, and the third color component may be the lightness component.

[0117] According to an embodiment of the present disclosure, the first probability corresponding to black can be determined based on the second color component, the third color component, and the second probability corresponding to black using the following equation (5). black =1-(1-P black ×s)×v (5)

[0118] According to an embodiment of the present disclosure, P black can represent the second probability corresponding to black, s can represent the second color component, v can represent the third color component, (1-P black ×s) can represent the first intermediate value corresponding to black, P′ black A first probability that may correspond to black.

[0119] FIG5A schematically shows an example diagram of a process of determining a plurality of first probabilities corresponding to at least one pixel based on a plurality of second probabilities corresponding to the at least one pixel and at least one first other color component according to an embodiment of the present disclosure.

[0120] As shown in FIG5A , in 500A, a first intermediate value 503 corresponding to black can be obtained based on the second color component 502 of the pixel and the second probability 501 corresponding to black. A first probability 505 corresponding to black can be obtained based on the third color component 504 of the pixel and the first intermediate value 503 corresponding to black.

[0121] According to an embodiment of the present disclosure, the first probability corresponding to white can be determined based on the second color component, the third color component, and the second probability corresponding to white using the following equation (6). white =(1-(1-P white )×s)×v (6)

[0122] According to an embodiment of the present disclosure, P white can represent the second probability corresponding to white, s can represent the second color component, v can represent the third color component, (1-(1-P white)×s) can represent the first intermediate value corresponding to white, P′ white A first probability may correspond to the color white.

[0123] FIG5B schematically shows an example diagram of a process of determining a plurality of first probabilities corresponding to at least one pixel based on a plurality of second probabilities corresponding to the at least one pixel and at least one first other color component according to another embodiment of the present disclosure.

[0124] 5B , in 500B, a second intermediate value 508 corresponding to white can be obtained based on the second color component 507 of the pixel and the second probability 506 corresponding to white. A first probability 510 corresponding to white can be obtained based on the third color component 509 of the pixel and the second intermediate value 508 corresponding to white.

[0125] According to an embodiment of the present disclosure, at least one other color may include red, orange, yellow, green, and blue. The first probability corresponding to red can be determined based on the second color component, the third color component, and the second probability corresponding to red using the following formula (7). The first probability corresponding to orange can be determined based on the second color component, the third color component, and the second probability corresponding to orange using the following formula (8). The first probability corresponding to yellow can be determined based on the second color component, the third color component, and the second probability corresponding to yellow using the following formula (9). The first probability corresponding to green can be determined based on the second color component, the third color component, and the second probability corresponding to green using the following formula (10). The first probability corresponding to blue can be determined based on the second color component, the third color component, and the second probability corresponding to blue using the following formula (11). P′ red =P red ×s×v (7) P′ orange =P orange ×s×v (8) P′ yellow =P yellow ×s×v (9) P′ green =P green ×s×v (10) P′ blue =P blue ×s×v (11)

[0126] According to an embodiment of the present disclosure, s may represent the second color component, v may represent the third color component, and P red The second probability corresponding to red can be represented as P′ red The first probability corresponding to red can be represented, Porange The second probability corresponding to orange can be represented as P′ orange The first probability corresponding to orange can be represented, P yellow The second probability corresponding to yellow can be represented as P′ yellow The first probability corresponding to yellow can be represented, P green The second probability corresponding to green can be represented as P′ green The first probability corresponding to green can be represented, P blue The second probability corresponding to blue can be represented, P′ blue A first probability corresponding to the blue color may be characterized.

[0127] According to an embodiment of the present disclosure, operation S411 may include the following operations.

[0128] A first color component of at least one pixel of the original image is processed based on at least one periodic function corresponding to a preset color pattern to obtain a plurality of second probabilities corresponding to the at least one pixel.

[0129] According to an embodiment of the present disclosure, at least one periodic function corresponding to a preset color pattern may be used to determine a color association relationship corresponding to the preset color pattern.

[0130] According to an embodiment of the present disclosure, the first color component of at least one pixel of the original image may be processed separately using at least one periodic function corresponding to a preset color pattern to obtain multiple second probabilities corresponding to the at least one pixel.

[0131] According to an embodiment of the present disclosure, since multiple second probabilities are obtained by processing the first color component of the pixel of the original image based on at least one periodic function corresponding to the preset color pattern, universal adaptation to different hardware is achieved by defining the probability of occurrence of the preset color based on the periodic function.

[0132] According to an embodiment of the present disclosure, the periodic function corresponding to the preset color pattern may include at least one periodic function corresponding to each of a plurality of preset colors.

[0133] According to an embodiment of the present disclosure, processing a first color component of at least one pixel of an original image based on at least one periodic function corresponding to a preset color pattern to obtain multiple second probabilities corresponding to the at least one pixel may include the following operations.

[0134] For at least one pixel in the original image, a value range corresponding to a first color component of the pixel is determined. Based on the value range, a target periodic function corresponding to each of the plurality of preset colors is determined from at least one periodic function corresponding to each of the plurality of preset colors. The first color component of the pixel is processed based on the target function corresponding to each of the plurality of preset colors to obtain a plurality of second probabilities corresponding to the pixel.

[0135] According to an embodiment of the present disclosure, for a pixel in at least one pixel of an original image, a value range corresponding to the first color component of the pixel can be determined. Based on the value range corresponding to the first color component of the pixel, a target periodic function corresponding to each of the multiple preset colors is determined from at least one periodic function corresponding to each of the multiple preset colors. The first color component of the pixel is input into the target periodic function corresponding to each of the multiple preset colors to obtain a second probability of the pixel corresponding to each of the multiple preset colors. According to an embodiment of the present disclosure, the multiple preset colors may include black, white, and red. The periodic functions corresponding to the preset color mode include a first periodic function and a second periodic function corresponding to black, a third periodic function corresponding to white, and a fourth periodic function and a fifth periodic function corresponding to red.

[0136] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0137] When it is determined that the value range is one of the first preset range and the second preset range, the target periodic function corresponding to black is determined to be the first periodic function from the first periodic function and the second periodic function corresponding to black, the target periodic function corresponding to white is determined to be the third periodic function from the third periodic function corresponding to white, and the target periodic function corresponding to red is determined to be the fourth periodic function from the fourth periodic function and the fifth periodic function corresponding to red. When it is determined that the value range is the third preset range, the target periodic function corresponding to black is determined to be the second periodic function from the first periodic function and the second periodic function corresponding to black, the target periodic function corresponding to white is determined to be the third periodic function from the third periodic function corresponding to white, and the target periodic function corresponding to red is determined to be the fifth periodic function from the fourth periodic function and the fifth periodic function corresponding to red.

[0138] According to the embodiments of the present disclosure, the first preset range, the second preset range, and the third preset range can be configured according to actual business needs and are not limited here. For example, the first preset range, the second preset range, and the third preset range can be combined to achieve a range greater than or equal to 0 and less than 180. The first preset range can be greater than or equal to 0 and less than 30. The second preset range can be greater than or equal to 150 and less than 180. The third preset range can be greater than or equal to 30 and less than 150.

[0139] According to an embodiment of the present disclosure, when it is determined that the value range is one of the first preset range and the second preset range, the first periodic function corresponding to black can be determined as the target periodic function corresponding to black. The third periodic function corresponding to white can be determined as the target periodic function corresponding to white. The fourth periodic function corresponding to red can be determined as the target periodic function corresponding to red.

[0140] According to an embodiment of the present disclosure, when it is determined that the value range is within the third preset range, the second periodic function corresponding to black can be determined as the target periodic function corresponding to black. The third periodic function corresponding to white can be determined as the target periodic function corresponding to white. The fifth periodic function corresponding to red can be determined as the target periodic function corresponding to red.

[0141] According to an embodiment of the present disclosure, the plurality of preset colors may include black, white, and red.

[0142] According to an embodiment of the present disclosure, in the case where the plurality of preset colors include black, white, and red, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (12) to (17).

[0143] In one of the cases of 0≤x<30 and 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (12) to (14). p black1 =0 (14)

[0144] In the case of 30≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (15) to (17). color1 =0 (15)

[0145] According to an embodiment of the present disclosure, x may represent the first color component, p color1 The second probability corresponding to red can be represented, p white1 The second probability corresponding to white can be represented, pblack1 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0146] According to the embodiment of the present disclosure, the first predetermined value and the second predetermined value can be set according to actual business needs and are not limited here. For example, the first predetermined value can be 2 and the second predetermined value can be 1.

[0147] According to an embodiment of the present disclosure, the first preset range is 0≤x<30. The second preset range is 150≤x<180. The third preset range is 30≤x<150. Formula (12) is the fourth periodic function. Formula (15) is the fifth periodic function. Formula (13) and Formula (16) are both the third periodic function. Formula (14) is the first periodic function. Formula (17) is the second periodic function.

[0148] The following describes a periodic function corresponding to a preset color pattern when the plurality of preset colors include black, white, and red with reference to FIG. 6A .

[0149] FIG6A schematically shows an example of a probability distribution corresponding to a preset color pattern when a plurality of preset colors include black, white, and red according to an embodiment of the present disclosure.

[0150] As shown in FIG. 6A , in 600A, a point on the ring 601 may be represented by a probability of 1, a point on the ring 602 may be represented by a probability of 0, and a point between the rings 601 and 602 may be represented by a probability of (0, 1).

[0151] The O1A1 direction can represent the first color component x as 0 degrees, the O1B1 direction can represent the first color component x as 30 degrees, the O1C1 direction can represent the first color component x as 60 degrees, the O1D1 direction can represent the first color component x as 90 degrees, the O1E1 direction can represent the first color component x as 120 degrees, and the O1F1 direction can represent the first color component x as 150 degrees.

[0152] From O1A1 to O1B1, that is, when x belongs to [0, 30), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0153] From O1B1 to O1C1, that is, when x belongs to [30, 60), the probability of the corresponding preset color being red is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is [0, 1).

[0154] From O1C1 to O1D1, that is, when x belongs to [60, 90), the probability of the corresponding preset color being red is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is [1, 0).

[0155] From O1D1 to O1E1, that is, when x belongs to [90, 120), the probability of the corresponding preset color being red is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is [0, 1).

[0156] From O1E1 to O1F1, that is, when x belongs to [120, 150), the probability of the corresponding preset color being red is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is [1, 0).

[0157] From O1F1 to O1A1, that is, when x belongs to [150, 180), the probability of the corresponding preset color being red is [0, 1), the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0158] According to an embodiment of the present disclosure, the plurality of preset colors include one of the following: black, white, and orange. Black, white, and yellow.

[0159] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model include sixth, seventh, and eighth periodic functions corresponding to black, ninth and tenth periodic functions corresponding to white, and eleventh, twelfth, thirteenth, and fourteenth periodic functions corresponding to common colors. The common color includes at least one of orange and yellow.

[0160] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0161] When it is determined that the value range is the fourth preset range, the target periodic function corresponding to black is determined to be the sixth periodic function from the sixth periodic function, the seventh periodic function and the eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninth periodic function from the ninth periodic function and the tenth periodic function corresponding to white, and the target periodic function corresponding to the common color is determined to be the eleventh periodic function from the eleventh periodic function, the twelfth periodic function, the thirteenth periodic function and the fourteenth periodic function corresponding to the common color.

[0162] When it is determined that the value range is the fifth preset range, the target periodic function corresponding to black is determined to be the seventh periodic function from the sixth periodic function, the seventh periodic function and the eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninth periodic function from the ninth periodic function and the tenth periodic function corresponding to white, and the target periodic function corresponding to the common color is determined to be the twelfth periodic function from the eleventh periodic function, the twelfth periodic function, the thirteenth periodic function and the fourteenth periodic function corresponding to the common color.

[0163] When it is determined that the value range is the sixth preset range, the target periodic function corresponding to black is determined to be the seventh periodic function from the sixth periodic function, the seventh periodic function and the eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the tenth periodic function from the ninth periodic function and the tenth periodic function corresponding to white, and the target periodic function corresponding to the common color is determined to be the thirteenth periodic function from the eleventh periodic function, the twelfth periodic function, the thirteenth periodic function and the fourteenth periodic function corresponding to the common color.

[0164] When it is determined that the value range is the seventh preset range, the target periodic function corresponding to black is determined to be the eighth periodic function from the sixth periodic function, the seventh periodic function and the eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the tenth periodic function from the ninth periodic function and the tenth periodic function corresponding to white, and the target periodic function corresponding to the common color is determined to be the fourteenth periodic function from the eleventh periodic function, the twelfth periodic function, the thirteenth periodic function and the fourteenth periodic function corresponding to the common color.

[0165] According to an embodiment of the present disclosure, the fourth preset range, the fifth preset range, the sixth preset range, and the seventh preset range can be configured according to actual business needs and are not limited here. For example, the fourth preset range, the fifth preset range, the sixth preset range, and the seventh preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The fourth preset range can be greater than or equal to 0 and less than 30. The fifth preset range can be greater than or equal to 30 and less than 60. The sixth preset range can be greater than or equal to 60 and less than 150. The seventh preset range is greater than or equal to 150 and less than 180.

[0166] According to an embodiment of the present disclosure, when the value range is determined to be within the fourth preset range, the target periodic function corresponding to black can be determined as the sixth periodic function. The target periodic function corresponding to white can be determined as the ninth periodic function. The target periodic function corresponding to the common color can be determined as the eleventh periodic function.

[0167] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifth preset range, the target periodic function corresponding to black can be determined as the seventh periodic function. The target periodic function corresponding to white can be determined as the ninth periodic function. The target periodic function corresponding to the common color can be determined as the twelfth periodic function.

[0168] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixth preset range, the target periodic function corresponding to black can be determined as the seventh periodic function. The target periodic function corresponding to white can be determined as the tenth periodic function. The target periodic function corresponding to the common color can be determined as the thirteenth periodic function.

[0169] According to an embodiment of the present disclosure, when the value range is determined to be within the seventh preset range, the target periodic function corresponding to black can be determined as the eighth periodic function. The target periodic function corresponding to white can be determined as the tenth periodic function. The target periodic function corresponding to the common color can be determined as the fourteenth periodic function.

[0170] According to an embodiment of the present disclosure, when the plurality of preset colors include one of the following: black, white, and orange, black, white, and yellow, the periodic function corresponding to the preset color pattern can be determined according to the following formulas (18) to (29).

[0171] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (18) to (20). p white2 =0 (19) p black2 =0 (20)

[0172] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (21) to (23). p white2 =0 (22)

[0173] According to an embodiment of the present disclosure, when 60≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (24) to (26). color2 =0 (24)

[0174] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (27) to (29).

[0175] According to an embodiment of the present disclosure, x may represent the first color component, p color2 A second probability corresponding to one of yellow and orange can be characterized, p white2 The second probability corresponding to white can be represented, p black2 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0176] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability that the corresponding preset color is black is 0, the probability that the preset color is white is 0, and the probability that the preset color is orange or yellow is [0.5, 1).

[0177] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability that the corresponding preset color is black is [0, 1), the probability that the preset color is white is 0, and the probability that the preset color is orange or yellow is [1, 0).

[0178] According to an embodiment of the present disclosure, when x belongs to [60, 90), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being orange or yellow is 0. When x belongs to [90, 120), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), and the probability of the preset color being orange or yellow is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being orange or yellow is 0.

[0179] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability that the corresponding preset color is black is [0, 0.5), the probability that the preset color is white is [1, 0), and the probability that the preset color is orange or yellow is [0, 0.5).

[0180] According to an embodiment of the present disclosure, the fourth preset range is 0≤x<30. The fifth preset range is 30≤x<60. The sixth preset range is 60≤x<150. The seventh preset range is 150≤x<180. Formula (20) is the sixth periodic function. Formula (23) and formula (26) are the seventh periodic function. Formula (29) is the eighth periodic function. Formula (19) and formula (22) are both the ninth periodic function. Formula (25) and formula (28) are both the tenth periodic function. Formula (18) is the eleventh periodic function. Formula (21) is the twelfth periodic function. Formula (24) is the thirteenth periodic function. Formula (27) is the fourteenth periodic function.

[0181] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model include the fifteenth periodic function, the sixteenth periodic function and the seventeenth periodic function corresponding to black, the eighteenth periodic function corresponding to white, and the nineteenth periodic function, the twentieth periodic function and the twenty-first periodic function corresponding to green.

[0182] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0183] When it is determined that the value range is one of the eighth preset range and the ninth preset range, the target periodic function corresponding to black is determined to be the fifteenth periodic function from the fifteenth periodic function, the sixteenth periodic function and the seventeenth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighteenth periodic function from the eighteenth periodic function corresponding to white, and the target periodic function corresponding to green is determined to be the nineteenth periodic function from the nineteenth periodic function, the twentieth periodic function and the twenty-first periodic function corresponding to green.

[0184] When it is determined that the value range is the tenth preset range, the target periodic function corresponding to black is determined to be the sixteenth periodic function from the fifteenth periodic function, the sixteenth periodic function and the seventeenth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighteenth periodic function from the eighteenth periodic function corresponding to white, and the target periodic function corresponding to green is determined to be the twentieth periodic function from the nineteenth periodic function, the twentieth periodic function and the twenty-first periodic function corresponding to green.

[0185] When it is determined that the value range is the eleventh preset range, the target periodic function corresponding to black is determined to be the seventeenth periodic function from the fifteenth periodic function, the sixteenth periodic function and the seventeenth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighteenth periodic function from the eighteenth periodic function corresponding to white, and the target periodic function corresponding to green is determined to be the twenty-first periodic function from the nineteenth periodic function, the twentieth periodic function and the twenty-first periodic function corresponding to green.

[0186] According to the embodiments of the present disclosure, the eighth preset range, the ninth preset range, the tenth preset range, and the eleventh preset range can be configured according to actual business needs and are not limited here. For example, the eighth preset range, the ninth preset range, the tenth preset range, and the eleventh preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The eighth preset range can be greater than or equal to 0 and less than 30. The ninth preset range can be greater than or equal to 150 and less than 180. The tenth preset range can be greater than or equal to 30 and less than 90. The eleventh preset range can be greater than or equal to 90 and less than 150.

[0187] According to an embodiment of the present disclosure, when it is determined that the value range is one of the eighth preset range and the ninth preset range, the target periodic function corresponding to black can be determined as the fifteenth periodic function. The target periodic function corresponding to white can be determined as the eighteenth periodic function. The target periodic function corresponding to green can be determined as the nineteenth periodic function.

[0188] According to an embodiment of the present disclosure, when it is determined that the value range is the tenth preset range, the target periodic function corresponding to black can be determined as the sixteenth periodic function. The target periodic function corresponding to white can be determined as the eighteenth periodic function. The target periodic function corresponding to green can be determined as the twentieth periodic function.

[0189] According to an embodiment of the present disclosure, if the value range is determined to be the eleventh preset range, the target periodic function corresponding to black can be determined as the seventeenth periodic function. The target periodic function corresponding to white can be determined as the eighteenth periodic function. The target periodic function corresponding to green can be determined as the twenty-first periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, and green.

[0190] According to an embodiment of the present disclosure, in the case where the plurality of preset colors include black, white, and green, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (30) to (38).

[0191] According to an embodiment of the present disclosure, in one of the cases of 0≤x<30 and 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (30) to (32).

[0192] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (33) to (35). p black3 =0 (35)

[0193] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (36) to (38). color3 =0 (36)

[0194] According to an embodiment of the present disclosure, x may represent the first color component, p color3 The second probability corresponding to green can be represented as p white3 The second probability corresponding to white can be represented, p black3 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0195] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is [0.5, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being green is [0.5, 0).

[0196] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being green is [0, 1). When x belongs to [60, 90), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being green is [1, 0).

[0197] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), and the probability of the preset color being green is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being green is 0.

[0198] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is [0, 0.5), the probability of the preset color being white is [1, 0), and the probability of the preset color being green is [0, 0.5).

[0199] According to an embodiment of the present disclosure, the eighth preset range is 0≤x<30. The ninth preset range is 150≤x<180. The tenth preset range is 30≤x<90. The eleventh preset range is 90≤x<150. Formula (32) is the fifteenth periodic function. Formula (35) is the sixteenth periodic function. Formula (38) is the seventeenth periodic function. Formula (31), formula (34) and formula (37) are all eighteenth periodic functions. Formula (30) is the nineteenth periodic function. Formula (33) is the twentieth periodic function. Formula (36) is the twenty-first periodic function.

[0200] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the twenty-second periodic function, the twenty-third periodic function, and the twenty-fourth periodic function corresponding to black, the twenty-fifth periodic function corresponding to white, and the twenty-sixth periodic function, the twenty-seventh periodic function, and the twenty-eighth periodic function corresponding to blue.

[0201] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0202] When it is determined that the value range is one of the twelfth preset range and the thirteenth preset range, the target periodic function corresponding to black is determined to be the twenty-second periodic function from the twenty-second periodic function, the twenty-third periodic function and the twenty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the twenty-fifth periodic function from the twenty-fifth periodic function corresponding to white, and the target periodic function corresponding to blue is determined to be the twenty-sixth periodic function from the twenty-sixth periodic function, the twenty-seventh periodic function and the twenty-eighth periodic function corresponding to blue.

[0203] When it is determined that the value range is the fourteenth preset range, the target periodic function corresponding to black is determined to be the twenty-third periodic function from the twenty-second periodic function, the twenty-third periodic function and the twenty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the twenty-fifth periodic function from the twenty-fifth periodic function corresponding to white, and the target periodic function corresponding to blue is determined to be the twenty-seventh periodic function from the twenty-sixth periodic function, the twenty-seventh periodic function and the twenty-eighth periodic function corresponding to blue.

[0204] When it is determined that the value range is the fifteenth preset range, the target periodic function corresponding to black is determined to be the twenty-fourth periodic function from the twenty-second periodic function, the twenty-third periodic function and the twenty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the twenty-fifth periodic function from the twenty-fifth periodic function corresponding to white, and the target periodic function corresponding to blue is determined to be the twenty-eighth periodic function from the twenty-sixth periodic function, the twenty-seventh periodic function and the twenty-eighth periodic function corresponding to blue.

[0205] According to an embodiment of the present disclosure, the twelfth preset range, the thirteenth preset range, the fourteenth preset range, and the fifteenth preset range can be configured according to actual business needs and are not limited here. For example, the twelfth preset range, the thirteenth preset range, the fourteenth preset range, and the fifteenth preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The twelfth preset range can be greater than or equal to 0 and less than 30. The thirteenth preset range can be greater than or equal to 150 and less than 180. The fourteenth preset range can be greater than or equal to 30 and less than 90. The fifteenth preset range can be greater than or equal to 90 and less than 150.

[0206] According to an embodiment of the present disclosure, when it is determined that the value range is one of the twelfth preset range and the thirteenth preset range, the target periodic function corresponding to black can be determined as the twenty-second periodic function. The target periodic function corresponding to white can be determined as the twenty-fifth periodic function. The target periodic function corresponding to blue can be determined as the twenty-sixth periodic function.

[0207] According to an embodiment of the present disclosure, when it is determined that the value range is the fourteenth preset range, the target periodic function corresponding to black can be determined as the twenty-third periodic function. The target periodic function corresponding to white can be determined as the twenty-fifth periodic function. The target periodic function corresponding to blue can be determined as the twenty-seventh periodic function.

[0208] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifteenth preset range, the target periodic function corresponding to black can be determined as the twenty-fourth periodic function. The target periodic function corresponding to white can be determined as the twenty-fifth periodic function. The target periodic function corresponding to blue can be determined as the twenty-eighth periodic function.

[0209] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, and blue.

[0210] According to an embodiment of the present disclosure, in the case where the plurality of preset colors include black, white, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (39) to (47).

[0211] According to an embodiment of the present disclosure, in one of the cases of 0≤x<30 and 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (39) to (41).

[0212] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (42) to (44).

[0213] p color4 =0 (42)

[0214] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (45) to (47). p black4 =0 (47)

[0215] According to an embodiment of the present disclosure, x may represent the first color component, p color4 The second probability corresponding to blue can be represented, p white4 The second probability corresponding to white can be represented, p black4 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0216] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is [0.5, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being blue is [0.5, 0).

[0217] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), and the probability of the preset color being blue is 0. When x belongs to [60, 90), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being blue is 0.

[0218] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being blue is [0, 1). When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being blue is [1, 0).

[0219] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is [0, 0.5), the probability of the preset color being white is [1, 0), and the probability of the preset color being blue is [0, 0.5).

[0220] According to an embodiment of the present disclosure, the twelfth preset range is 0≤x<30. The thirteenth preset range is 150≤x<180. The fourteenth preset range is 30≤x<90. The fifteenth preset range is 90≤x<150. Formula (41) is the twenty-second periodic function. Formula (44) is the twenty-third periodic function. Formula (47) is the twenty-fourth periodic function. Formula (40), formula (43) and formula (46) are all the twenty-fifth periodic function. Formula (39) is the twenty-sixth periodic function. Formula (42) is the twenty-seventh periodic function. Formula (45) is the twenty-eighth periodic function.

[0221] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the twenty-ninth and thirtieth periodic functions corresponding to black, the thirty-first and thirty-second periodic functions corresponding to white, the thirty-third and thirty-fourth periodic functions corresponding to red, and the thirty-fifth and thirty-sixth periodic functions corresponding to yellow.

[0222] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0223] When it is determined that the value range is the sixteenth preset range, the target periodic function corresponding to black is determined to be the twenty-ninth periodic function from the twenty-ninth periodic function and the thirtieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-first periodic function from the thirty-first periodic function and the thirty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the thirty-third periodic function from the thirty-third periodic function and the thirty-fourth periodic function corresponding to red, and the target periodic function corresponding to yellow is determined to be the thirty-fifth periodic function from the thirty-fifth periodic function and the thirty-sixth periodic function corresponding to yellow.

[0224] When it is determined that the value range is the seventeenth preset range, the target periodic function corresponding to black is determined to be the twenty-ninth periodic function from the twenty-ninth periodic function and the thirtieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-first periodic function from the thirty-first periodic function and the thirty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the thirty-fourth periodic function from the thirty-third periodic function and the thirty-fourth periodic function corresponding to red, and the target periodic function corresponding to yellow is determined to be the thirty-fifth periodic function from the thirty-fifth periodic function and the thirty-sixth periodic function corresponding to yellow.

[0225] When it is determined that the value range is the eighteenth preset range, the target periodic function corresponding to black is determined to be the twenty-ninth periodic function from the twenty-ninth periodic function and the thirtieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-second periodic function from the thirty-first periodic function and the thirty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the thirty-fourth periodic function from the thirty-third periodic function and the thirty-fourth periodic function corresponding to red, and the target periodic function corresponding to yellow is determined to be the thirty-sixth periodic function from the thirty-fifth periodic function and the thirty-sixth periodic function corresponding to yellow.

[0226] When it is determined that the value range is the nineteenth preset range, the target periodic function corresponding to black is determined to be the 30th periodic function from the 29th periodic function and the 30th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 32nd periodic function from the 31st periodic function and the 32nd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 33rd periodic function from the 33rd periodic function and the 34th periodic function corresponding to red, and the target periodic function corresponding to yellow is determined to be the 35th periodic function from the 35th periodic function and the 36th periodic function corresponding to yellow.

[0227] According to an embodiment of the present disclosure, the sixteenth preset range, the seventeenth preset range, the eighteenth preset range, and the nineteenth preset range can be configured according to actual business needs and are not limited here. For example, the sixteenth preset range, the seventeenth preset range, the eighteenth preset range, and the nineteenth preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The sixteenth preset range can be greater than or equal to 0 and less than 30. The seventeenth preset range can be greater than or equal to 30 and less than 60. The eighteenth preset range can be greater than or equal to 60 and less than 150. The nineteenth preset range can be greater than or equal to 150 and less than 180.

[0228] According to an embodiment of the present disclosure, if the value range is determined to be the sixteenth preset range, the target periodic function corresponding to black can be determined as the twenty-ninth periodic function. The target periodic function corresponding to white can be determined as the thirty-first periodic function. The target periodic function corresponding to red can be determined as the thirty-third periodic function. The target periodic function corresponding to yellow can be determined as the thirty-fifth periodic function.

[0229] If the value range is determined to be the seventeenth preset range, the target periodic function corresponding to black can be determined as the twenty-ninth periodic function. The target periodic function corresponding to white can be determined as the thirty-first periodic function. The target periodic function corresponding to red can be determined as the thirty-fourth periodic function. The target periodic function corresponding to yellow can be determined as the thirty-fifth periodic function.

[0230] If the value range is determined to be the eighteenth preset range, the target periodic function corresponding to black can be determined as the twenty-ninth periodic function. The target periodic function corresponding to white can be determined as the thirty-second periodic function. The target periodic function corresponding to red can be determined as the thirty-fourth periodic function. The target periodic function corresponding to yellow can be determined as the thirty-sixth periodic function.

[0231] If the value range is determined to be the nineteenth preset range, the target periodic function corresponding to black may be determined as the thirtieth periodic function. The target periodic function corresponding to white may be determined as the thirty-second periodic function. The target periodic function corresponding to red may be determined as the thirty-third periodic function. The target periodic function corresponding to yellow may be determined as the thirty-fifth periodic function.

[0232] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, and yellow.

[0233] According to an embodiment of the present disclosure, when the plurality of preset colors include black, white, red, and yellow, the periodic function corresponding to the preset color pattern may be determined according to the following formulas (48) to (63).

[0234] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (48) to (51). p white5 =0 (50)

[0235] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (52) to (55). red1 =0 (52) p white5 =0 (54)

[0236] According to an embodiment of the present disclosure, when 60≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (56) to (59). red1 =0 (56) p yellow1 =0 (57)

[0237] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (60) to (63).

[0238] p yellow1 =0 (61)

[0239] p black5 =0 (63)

[0240] According to an embodiment of the present disclosure, x may represent the first color component, p red1 The second probability corresponding to red can be represented, p yellow1 The second probability corresponding to yellow can be represented, p white5 The second probability corresponding to white can be represented, p black5 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0241] According to the embodiment of the present disclosure, the first predetermined value and the second predetermined value can be set according to actual business needs and are not limited here. For example, the first predetermined value can be 2 and the second predetermined value can be 1.

[0242] According to an embodiment of the present disclosure, the sixteenth preset range is 0≤x<30. The seventeenth preset range is 30≤x<60. The eighteenth preset range is 60≤x<150. The nineteenth preset range is 150≤x<180. Formula (51), formula (55) and formula (59) are the twenty-ninth periodic function. Formula (63) is the thirtieth periodic function. Formula (50) and formula (54) are both the thirty-first periodic function. Formula (58) and formula (62) are both the thirty-second periodic function. Formula (48) and formula (60) are both the thirty-third periodic function. Formula (52) and formula (56) are both the thirty-fourth periodic function. Formula (49) and formula (53) are both the thirty-fifth periodic function. Formula (57) and formula (61) are both the thirty-sixth periodic function.

[0243] The following describes a periodic function corresponding to a preset color pattern when the plurality of preset colors include black, white, red, and yellow with reference to FIG. 6B .

[0244] FIG6B schematically shows an example diagram of probability distribution corresponding to a preset color pattern when the plurality of preset colors include black, white, red, and yellow according to an embodiment of the present disclosure.

[0245] As shown in FIG. 6B , in 600B, a point on the ring 603 may be represented by a probability of 1, a point on the ring 604 may be represented by a probability of 0, and a point between the rings 603 and 604 may be represented by a probability of (0, 1).

[0246] The O2A2 direction can represent the first color component x as 0 degrees, the O2B2 direction can represent the first color component x as 30 degrees, the O2C2 direction can represent the first color component x as 60 degrees, the O2D2 direction can represent the first color component x as 90 degrees, the O2E2 direction can represent the first color component x as 120 degrees, and the O2F2 direction can represent the first color component x as 150 degrees.

[0247] From O2A2 to O2B2, that is, when x belongs to [0, 30), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being yellow is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0248] From O2B2 to O2C2, that is, when x belongs to [30, 60), the probability of the corresponding preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being white is 0, and the probability of the preset color being black is [0, 1).

[0249] From O2C2 to O2D2, that is, when x belongs to [60, 90), the probability of the corresponding preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is [1, 0).

[0250] From O2D2 to O2E2, that is, when x belongs to [90, 120), the probability of the corresponding preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is [0, 1).

[0251] From O2E2 to O2F2, that is, when x belongs to [120, 150), the probability of the corresponding preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is [1, 0).

[0252] From O2F2 to O2A2, that is, when x belongs to [150, 180), the probability of the corresponding preset color being red is [0, 1), the probability of the preset color being yellow is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0253] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the thirty-ninth periodic function corresponding to white, the fortieth periodic function and the forty-first periodic function corresponding to red, and the forty-second periodic function and the forty-third periodic function corresponding to green.

[0254] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0255] When it is determined that the value range is the twentieth preset range, the target periodic function corresponding to black is determined to be the thirty-seventh periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the fortieth periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-second periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0256] When it is determined that the value range is the twenty-first preset range, the target periodic function corresponding to black is determined to be the thirty-seventh periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-first periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-third periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0257] When it is determined that the value range is the twenty-second preset range, the target periodic function corresponding to black is determined to be the thirty-eighth periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-first periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-second periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0258] When it is determined that the value range is the twenty-third preset range, the target periodic function corresponding to black is determined to be the thirty-seventh periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the fortieth periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-second periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0259] According to an embodiment of the present disclosure, the 20th preset range, the 21st preset range, the 22nd preset range, and the 23rd preset range can be configured according to actual business needs and are not limited here. For example, the 20th preset range, the 21st preset range, the 22nd preset range, and the 23rd preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 20th preset range can be greater than or equal to 0 and less than 30. The 21st preset range can be greater than or equal to 30 and less than 90. The 22nd preset range can be greater than or equal to 90 and less than 150. The 23rd preset range can be greater than or equal to 150 and less than 180.

[0260] According to an embodiment of the present disclosure, when it is determined that the value range is within the twentieth preset range, the target periodic function corresponding to black can be determined as the thirty-seventh periodic function. The target periodic function corresponding to white can be determined as the thirty-ninth periodic function. The target periodic function corresponding to red can be determined as the fortieth periodic function from the fortieth periodic function and the forty-first periodic function, and the target periodic function corresponding to green can be determined as the fortieth periodic function from the forty-second periodic function and the forty-third periodic function.

[0261] When it is determined that the value range is the twenty-first preset range, the target periodic function corresponding to black is determined to be the thirty-seventh periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-first periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-third periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0262] When it is determined that the value range is the twenty-second preset range, the target periodic function corresponding to black is determined to be the thirty-eighth periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-first periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-second periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0263] When it is determined that the value range is the twenty-third preset range, the target periodic function corresponding to black is determined to be the thirty-seventh periodic function from the thirty-seventh periodic function and the thirty-eighth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the thirty-ninth periodic function from the thirty-ninth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the fortieth periodic function from the fortieth periodic function and the forty-first periodic function corresponding to red, and the target periodic function corresponding to green is determined to be the forty-second periodic function from the forty-second periodic function and the forty-third periodic function corresponding to green.

[0264] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, and green.

[0265] According to an embodiment of the present disclosure, when the plurality of preset colors include black, white, red, and green, the periodic function corresponding to the preset color pattern may be determined according to the following formulas (64) to (79).

[0266] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (64) to (67). P green1 =0 (65) p black6 =0 (67)

[0267] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (68) to (71). red2 =0 (68) p black6 =0 (71)

[0268] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (72) to (75). red2 =0 (72) P green1 =0 (73)

[0269] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (76) to (79). p green1 =0 (77) p black6 =0 (79)

[0270] According to an embodiment of the present disclosure, x may represent the first color component, p red2 The second probability corresponding to red can be represented, p green1 The second probability corresponding to green can be represented as p white6 The second probability corresponding to white can be represented, p black6 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0271] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is [1, 0), and the probability of the preset color being green is 0.

[0272] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, and the probability of the preset color being green is [0, 1). When x belongs to [60, 90), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, and the probability of the preset color being green is [1, 0).

[0273] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, and the probability of the preset color being green is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, and the probability of the preset color being green is 0.

[0274] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is [0, 1), and the probability of the preset color being green is 0.

[0275] According to an embodiment of the present disclosure, the twentieth preset range is 0≤x<30. The twenty-first preset range is 30≤x<90. The twenty-second preset range is 90≤x<150. The twenty-third preset range is 150≤x<180. Formula (67), formula (71) and formula (79) are the thirty-seventh periodic function. Formula (75) is the thirty-eighth periodic function. Formula (66), formula (70), formula (74) and formula (78) are all the thirty-ninth periodic function. Formula (64) and formula (76) are both the fortieth periodic function. Formula (68) and formula (72) are both the forty-first periodic function. Formula (65), formula (73) and formula (77) are all the forty-second periodic function. Formula (69) is the forty-third periodic function. According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the forty-fourth periodic function and the forty-fifth periodic function corresponding to black, the forty-sixth periodic function corresponding to white, the forty-seventh periodic function and the forty-eighth periodic function corresponding to red, and the forty-ninth periodic function and the fiftieth periodic function corresponding to blue.

[0276] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0277] When it is determined that the value range is the twenty-fourth preset range, the target periodic function corresponding to black is determined to be the forty-fourth periodic function from the forty-fourth periodic function and the forty-fifth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the forty-sixth periodic function from the forty-sixth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-seventh periodic function from the forty-seventh periodic function and the forty-eighth periodic function corresponding to red, and the target periodic function corresponding to blue is determined to be the forty-ninth periodic function from the forty-ninth periodic function and the fiftieth periodic function corresponding to blue.

[0278] When it is determined that the value range is the 25th preset range, the target periodic function corresponding to black is determined to be the 45th periodic function from the 44th periodic function and the 45th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 46th periodic function from the 46th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 48th periodic function from the 47th periodic function and the 48th periodic function corresponding to red, and the target periodic function corresponding to blue is determined to be the 49th periodic function from the 49th periodic function and the 50th periodic function corresponding to blue.

[0279] When it is determined that the value range is the twenty-sixth preset range, the target periodic function corresponding to black is determined to be the forty-fourth periodic function from the forty-fourth periodic function and the forty-fifth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the forty-sixth periodic function from the forty-sixth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-eighth periodic function from the forty-seventh periodic function and the forty-eighth periodic function corresponding to red, and the target periodic function corresponding to blue is determined to be the fiftieth periodic function from the forty-ninth periodic function and the fiftieth periodic function corresponding to blue.

[0280] When it is determined that the value range is the twenty-seventh preset range, the target periodic function corresponding to black is determined to be the forty-fourth periodic function from the forty-fourth periodic function and the forty-fifth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the forty-sixth periodic function from the forty-sixth periodic function corresponding to white, the target periodic function corresponding to red is determined to be the forty-seventh periodic function from the forty-seventh periodic function and the forty-eighth periodic function corresponding to red, and the target periodic function corresponding to blue is determined to be the forty-ninth periodic function from the forty-ninth periodic function and the fiftieth periodic function corresponding to blue.

[0281] According to an embodiment of the present disclosure, the twenty-fourth preset range, the twenty-fifth preset range, the twenty-sixth preset range, and the twenty-seventh preset range can be configured according to actual business needs and are not limited here. For example, the twenty-fourth preset range, the twenty-fifth preset range, the twenty-sixth preset range, and the twenty-seventh preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The twenty-fourth preset range can be greater than or equal to 0 and less than 30. The twenty-fifth preset range can be greater than or equal to 30 and less than 90. The twenty-sixth preset range can be greater than or equal to 90 and less than 150. The twenty-seventh preset range can be greater than or equal to 150 and less than 180.

[0282] According to an embodiment of the present disclosure, if the value range is determined to be within the 24th preset range, the target periodic function corresponding to black can be determined as the 44th periodic function. The target periodic function corresponding to white can be determined as the 46th periodic function. The target periodic function corresponding to red can be determined as the 47th periodic function. The target periodic function corresponding to blue can be determined as the 49th periodic function.

[0283] According to an embodiment of the present disclosure, if the value range is determined to be within the 25th preset range, the target periodic function corresponding to black can be determined as the 45th periodic function. The target periodic function corresponding to white can be determined as the 46th periodic function. The target periodic function corresponding to red can be determined as the 48th periodic function. The target periodic function corresponding to blue can be determined as the 49th periodic function.

[0284] According to an embodiment of the present disclosure, when it is determined that the value range is within the 26th preset range, the target periodic function corresponding to black can be determined as the 44th periodic function. The target periodic function corresponding to white can be determined as the 46th periodic function. The target periodic function corresponding to red can be determined as the 48th periodic function. The target periodic function corresponding to blue can be determined as the 50th periodic function.

[0285] According to an embodiment of the present disclosure, when it is determined that the value range is within the 27th preset range, the target periodic function corresponding to black can be determined as the 44th periodic function. The target periodic function corresponding to white can be determined as the 46th periodic function. The target periodic function corresponding to red can be determined as the 47th periodic function. The target periodic function corresponding to blue can be determined as the 49th periodic function.

[0286] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, and blue.

[0287] According to an embodiment of the present disclosure, when the plurality of preset colors include black, white, red, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (80) to (95).

[0288] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (80) to (83). p blue1 =0 (81) p black7 =0 (83)

[0289] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (84) to (87). red3 =0 (84) p blue1 =0 (85)

[0290] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (88) to (91). red3 =0 (88) p black7 =0 (91)

[0291] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (92) to (95). p blue1 =0 (93) p black7 =0 (95)

[0292] According to an embodiment of the present disclosure, x may represent the first color component, p red3 The second probability corresponding to red can be represented, p blue1 The second probability corresponding to blue can be represented, p white7 The second probability corresponding to white can be represented, p black7 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0293] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is [1, 0), and the probability of the preset color being blue is 0.

[0294] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, and the probability of the preset color being blue is 0. When x belongs to [60, 90), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, and the probability of the preset color being blue is 0.

[0295] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, and the probability of the preset color being blue is [0, 1). When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, and the probability of the preset color being blue is [1, 0).

[0296] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is [0, 1), and the probability of the preset color being blue is 0.

[0297] According to an embodiment of the present disclosure, the twenty-fourth preset range is 0≤x<30. The twenty-fifth preset range is 30≤x<90. The twenty-sixth preset range is 90≤x<150. The twenty-seventh preset range is 150≤x<180. Formula (83), formula (91) and formula (95) are the forty-fourth periodic function. Formula (87) is the forty-fifth periodic function. Formula (82), formula (86), formula (90) and formula (94) are all the forty-sixth periodic function. Formula (80) and formula (92) are both the forty-seventh periodic function. Formula (84) and formula (88) are both the forty-eighth periodic function. Formula (81), formula (85) and formula (93) are all the forty-ninth periodic function. Formula (89) is all the fiftieth periodic function. According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the fifty-first periodic function, the fifty-second periodic function and the fifty-third periodic function corresponding to black, the fifty-fourth periodic function and the fifty-fifth periodic function corresponding to white, the fifty-sixth periodic function, the fifty-seventh periodic function, the fifty-eighth periodic function and the fifty-ninth periodic function corresponding to yellow, and the sixtieth periodic function and the sixty-first periodic function corresponding to green.

[0298] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0299] When it is determined that the value range is the twenty-eighth preset range, the target periodic function corresponding to black is determined to be the fifty-first periodic function from the fifty-first periodic function, the fifty-second periodic function and the fifty-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the fifty-fourth periodic function from the fifty-fourth periodic function and the fifty-fifth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the fifty-sixth periodic function from the fifty-sixth periodic function, the fifty-seventh periodic function, the fifty-eighth periodic function and the fifty-ninth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the sixtieth periodic function from the sixtieth periodic function and the sixtieth periodic function corresponding to green.

[0300] When it is determined that the value range is the twenty-ninth preset range, the target periodic function corresponding to black is determined to be the fifty-second periodic function from the fifty-first periodic function, the fifty-second periodic function and the fifty-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the fifty-fourth periodic function from the fifty-fourth periodic function and the fifty-fifth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the fifty-seventh periodic function from the fifty-sixth periodic function, the fifty-seventh periodic function, the fifty-eighth periodic function and the fifty-ninth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the sixty-first periodic function from the sixtieth periodic function and the sixty-first periodic function corresponding to green.

[0301] When it is determined that the value range is the 30th preset range, the target periodic function corresponding to black is determined to be the 53rd periodic function from the 51st periodic function, the 52nd periodic function and the 53rd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 55th periodic function from the 54th periodic function and the 55th periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the 58th periodic function from the 56th periodic function, the 57th periodic function, the 58th periodic function and the 59th periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the 60th periodic function from the 60th periodic function and the 61st periodic function corresponding to green.

[0302] When it is determined that the value range is the thirty-first preset range, the target periodic function corresponding to black is determined to be the fifty-first periodic function from the fifty-first periodic function, the fifty-second periodic function and the fifty-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the fifty-fifth periodic function from the fifty-fourth periodic function and the fifty-fifth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the fifty-ninth periodic function from the fifty-sixth periodic function, the fifty-seventh periodic function, the fifty-eighth periodic function and the fifty-ninth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the sixtieth periodic function from the sixtieth periodic function and the sixty-first periodic function corresponding to green.

[0303] According to an embodiment of the present disclosure, the 28th preset range, the 29th preset range, the 30th preset range, and the 31st preset range can be configured according to actual business needs and are not limited here. For example, the 28th preset range, the 29th preset range, the 30th preset range, and the 31st preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 28th preset range can be greater than or equal to 0 and less than 30. The 29th preset range can be greater than or equal to 30 and less than 90. The 30th preset range can be greater than or equal to 90 and less than 150. The 31st preset range can be greater than or equal to 150 and less than 180.

[0304] According to an embodiment of the present disclosure, when it is determined that the value range is within the 28th preset range, the target periodic function corresponding to black can be determined as the 51st periodic function. The target periodic function corresponding to white can be determined as the 54th periodic function. The target periodic function corresponding to yellow can be determined as the 56th periodic function. The target periodic function corresponding to green can be determined as the 60th periodic function.

[0305] According to an embodiment of the present disclosure, when it is determined that the value range is within the 29th preset range, the target periodic function corresponding to black is determined to be the 52nd periodic function. The target periodic function corresponding to white is determined to be the 54th periodic function. The target periodic function corresponding to yellow is determined to be the 57th periodic function. The target periodic function corresponding to green is determined to be the 61st periodic function.

[0306] According to an embodiment of the present disclosure, when it is determined that the value range is the 30th preset range, the target periodic function corresponding to black can be determined as the 53rd periodic function. The target periodic function corresponding to white can be determined as the 55th periodic function. The target periodic function corresponding to yellow can be determined as the 58th periodic function. The target periodic function corresponding to green can be determined as the 60th periodic function.

[0307] According to an embodiment of the present disclosure, when it is determined that the value range is within the 31st preset range, the target periodic function corresponding to black can be determined as the 51st periodic function. The target periodic function corresponding to white can be determined as the 55th periodic function. The target periodic function corresponding to yellow can be determined as the 59th periodic function. The target periodic function corresponding to green can be determined as the 60th periodic function.

[0308] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, yellow, and green.

[0309] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, yellow, and green, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (96) to (111).

[0310] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (96) to (99). p green2 =0 (97) p white8 =0 (98)

[0311] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (100) to (103). p white8 =0 (102) p black8 =0 (103)

[0312] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (104) to (107). yellow2 =0 (104) p green2 =0 (105)

[0313] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (108) to (111). p green2=0 (109)

[0314] According to an embodiment of the present disclosure, x may represent the first color component, p yellow2 The second probability corresponding to yellow can be represented, p green2 The second probability corresponding to green can be represented as p white8 The second probability corresponding to white can be represented, p black8 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0315] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is [0.5, 0), the probability of the preset color being white is 0, the probability of the preset color being yellow is [0.5, 1), and the probability of the preset color being green is 0.

[0316] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is 0, the probability of the preset color being yellow is [1, 0), and the probability of the preset color being green is [0, 1). When x belongs to [60, 90), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is 0, the probability of the preset color being yellow is [0, 1), and the probability of the preset color being green is [1, 0).

[0317] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), the probability of the preset color being yellow is 0, and the probability of the preset color being green is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being yellow is 0, and the probability of the preset color being green is 0.

[0318] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is [0, 0.5), the probability of the preset color being white is [1, 0), the probability of the preset color being yellow is [0, 0.5), and the probability of the preset color being green is 0.

[0319] According to an embodiment of the present disclosure, the twenty-eighth preset range is 0≤x<30. The twenty-ninth preset range is 30≤x<90. The thirtieth preset range is 90≤x<150. The thirty-first preset range is 150≤x<180. Formula (99) and formula (111) are the fifty-first periodic function. Formula (103) is the fifty-second periodic function. Formula (107) is the fifty-third periodic function. Formula (98) and formula (102) are the fifty-fourth periodic function. Formula (106) and formula (110) are the fifty-fifth periodic function. Formula (96) is the fifty-sixth periodic function. Formula (100) is the fifty-seventh periodic function, formula (104) is the fifty-eighth periodic function, and formula (108) is the fifty-ninth periodic function. Formula (97), formula (105), and formula (109) are the sixtieth periodic function. Formula (101) is the sixtieth periodic function. According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the sixty-second periodic function, the sixty-third periodic function, and the sixty-fourth periodic function corresponding to black, the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function, and the seventieth periodic function corresponding to yellow, and the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0320] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0321] When it is determined that the value range is the thirty-second preset range, the target periodic function corresponding to black is determined to be the sixty-second periodic function from the sixty-second periodic function, the sixty-third periodic function and the sixty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the sixty-fifth periodic function from the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the sixty-seventh periodic function from the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function and the seventieth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the seventy-first periodic function from the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0322] When it is determined that the value range is the thirty-third preset range, the target periodic function corresponding to black is determined to be the sixty-third periodic function from the sixty-second periodic function, the sixty-third periodic function and the sixty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the sixty-fifth periodic function from the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the sixty-eighth periodic function from the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function and the seventieth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the seventy-first periodic function from the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0323] When it is determined that the value range is the thirty-fourth preset range, the target periodic function corresponding to black is determined to be the sixty-third periodic function from the sixty-second periodic function, the sixty-third periodic function and the sixty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the sixty-sixth periodic function from the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the sixty-ninth periodic function from the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function and the seventieth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the seventy-first periodic function from the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0324] When it is determined that the value range is the thirty-fifth preset range, the target periodic function corresponding to black is determined to be the sixty-fourth periodic function from the sixty-second periodic function, the sixty-third periodic function and the sixty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the sixty-sixth periodic function from the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the sixty-ninth periodic function from the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function and the seventieth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the seventy-second periodic function from the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0325] When it is determined that the value range is the thirty-sixth preset range, the target periodic function corresponding to black is determined to be the sixty-second periodic function from the sixty-second periodic function, the sixty-third periodic function and the sixty-fourth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the sixty-sixth periodic function from the sixty-fifth periodic function and the sixty-sixth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the seventieth periodic function from the sixty-seventh periodic function, the sixty-eighth periodic function, the sixty-ninth periodic function and the seventieth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the seventy-first periodic function from the seventy-first periodic function and the seventy-second periodic function corresponding to blue.

[0326] According to an embodiment of the present disclosure, the 32nd preset range, the 33rd preset range, the 34th preset range, the 35th preset range, and the 36th preset range can be configured according to actual business needs and are not limited here. For example, the 32nd preset range, the 33rd preset range, the 34th preset range, the 35th preset range, and the 36th preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 32nd preset range can be greater than or equal to 0 and less than 30. The 33rd preset range can be greater than or equal to 30 and less than 60. The 34th preset range can be greater than or equal to 60 and less than 90. The 35th preset range can be greater than or equal to 90 and less than 150. The 36th preset range can be greater than or equal to 150 and less than 180.

[0327] According to an embodiment of the present disclosure, when it is determined that the value range is within the 32nd preset range, the target periodic function corresponding to black can be determined as the 62nd periodic function. The target periodic function corresponding to white can be determined as the 65th periodic function. The target periodic function corresponding to yellow can be determined as the 67th periodic function. The target periodic function corresponding to blue can be determined as the 71st periodic function.

[0328] According to an embodiment of the present disclosure, if the value range is determined to be within the 33rd preset range, the target periodic function corresponding to black can be determined as the 63rd periodic function. The target periodic function corresponding to white can be determined as the 65th periodic function. The target periodic function corresponding to yellow can be determined as the 68th periodic function. The target periodic function corresponding to blue can be determined as the 71st periodic function.

[0329] According to an embodiment of the present disclosure, when it is determined that the value range is within the 34th preset range, the target periodic function corresponding to black can be determined as the 63rd periodic function. The target periodic function corresponding to white can be determined as the 66th periodic function. The target periodic function corresponding to yellow can be determined as the 69th periodic function. The target periodic function corresponding to blue can be determined as the 71st periodic function.

[0330] According to an embodiment of the present disclosure, if the value range is determined to be within the 35th preset range, the target periodic function corresponding to black can be determined as the 64th periodic function. The target periodic function corresponding to white can be determined as the 66th periodic function. The target periodic function corresponding to yellow can be determined as the 69th periodic function. The target periodic function corresponding to blue can be determined as the 72nd periodic function.

[0331] According to an embodiment of the present disclosure, when it is determined that the value range is within the 36th preset range, the target periodic function corresponding to black can be determined as the 62nd periodic function. The target periodic function corresponding to white can be determined as the 66th periodic function. The target periodic function corresponding to yellow can be determined as the 70th periodic function. The target periodic function corresponding to blue can be determined as the 71st periodic function.

[0332] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, yellow, and blue.

[0333] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, yellow, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (112) to (131).

[0334] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (112) to (115). p blue2 =0 (113) p white9 =0 (114)

[0335] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (116) to (119). p blue2 =0 (117) p white9 =0 (118)

[0336] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (120) to (123). yellow3 =0 (120) p blue2 =0 (121)

[0337] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (124) to (127). yellow3 =0 (124)

[0338] p black9 =0 (127)

[0339] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (128) to (131). p blue2 =0 (129)

[0340] According to an embodiment of the present disclosure, x may represent the first color component, p yellow3 The second probability corresponding to yellow can be represented, p blue2 The second probability corresponding to blue can be represented, p white9 The second probability corresponding to white can be represented, p black9 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0341] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability that the corresponding preset color is black is [0.5, 0), the probability that the preset color is white is 0, the probability that the preset color is yellow is [0.5, 1), and the probability that the preset color is blue is 0.

[0342] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is 0, the probability of the preset color being yellow is [1, 0), and the probability of the preset color being blue is 0.

[0343] According to an embodiment of the present disclosure, when x belongs to [60, 90), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being yellow is 0, and the probability of the preset color being blue is 0.

[0344] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being yellow is 0, and the probability of the preset color being blue is [0, 1). When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being yellow is 0, and the probability of the preset color being blue is [1, 0).

[0345] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability that the corresponding preset color is black is [0, 0.5), the probability that the preset color is white is [1, 0), the probability that the preset color is yellow is [0, 0.5), and the probability that the preset color is blue is 0.

[0346] According to an embodiment of the present disclosure, the thirty-second preset range is 0≤x<30. The thirty-third preset range is 30≤x<60. The thirty-fourth preset range is 60≤x<90. The thirty-fifth preset range is 90≤x<150. The thirty-sixth preset range is 150≤x<180. Formula (115) and formula (131) are the sixty-second periodic function. Formula (119) and formula (123) are the sixty-third periodic function. Formula (127) is the sixty-fourth periodic function. Formula (114) and formula (118) are the sixty-fifth periodic function. Formula (122) and formula (126) are the sixty-sixth periodic function. Formula (112) is the sixty-seventh periodic function. Formula (116) is the sixty-eighth periodic function. Formula (124) is the sixty-ninth periodic function. Formula (128) is the seventieth periodic function. Formulas (113), (117), (121), and (129) are the seventy-first periodic function. Formula (125) is the seventy-second periodic function. According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the seventy-third periodic function corresponding to black, the seventy-fourth periodic function corresponding to white, the seventy-fifth periodic function, the seventy-sixth periodic function, and the seventy-seventh periodic function corresponding to blue, and the seventy-eighth periodic function, the seventy-ninth periodic function, and the eightieth periodic function corresponding to green.

[0347] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0348] When it is determined that the value range is the thirty-seventh preset range, the target periodic function corresponding to black is determined to be the seventy-third periodic function from the seventy-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the seventy-fourth periodic function from the seventy-fourth periodic function corresponding to white, the target periodic function corresponding to blue is determined to be the seventy-fifth periodic function from the seventy-fifth periodic function, the seventy-sixth periodic function and the seventy-seventh periodic function corresponding to blue, and the target periodic function corresponding to green is determined to be the seventy-eighth periodic function from the seventy-eighth periodic function, the seventy-ninth periodic function and the eightieth periodic function corresponding to green.

[0349] When it is determined that the value range is the thirty-eighth preset range, the target periodic function corresponding to black is determined to be the seventy-third periodic function from the seventy-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the seventy-fourth periodic function from the seventy-fourth periodic function corresponding to white, the target periodic function corresponding to blue is determined to be the seventy-sixth periodic function from the seventy-fifth periodic function, the seventy-sixth periodic function and the seventy-seventh periodic function corresponding to blue, and the target periodic function corresponding to green is determined to be the seventy-ninth periodic function from the seventy-eighth periodic function, the seventy-ninth periodic function and the eightieth periodic function corresponding to green.

[0350] When it is determined that the value range is the thirty-ninth preset range, the target periodic function corresponding to black is determined to be the seventy-third periodic function from the seventy-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the seventy-fourth periodic function from the seventy-fourth periodic function corresponding to white, the target periodic function corresponding to blue is determined to be the seventy-seventh periodic function from the seventy-fifth periodic function, the seventy-sixth periodic function and the seventy-seventh periodic function corresponding to blue, and the target periodic function corresponding to green is determined to be the eightieth periodic function from the seventy-eighth periodic function, the seventy-ninth periodic function and the eightieth periodic function corresponding to green.

[0351] When it is determined that the value range is the fortieth preset range, the target periodic function corresponding to black is determined to be the seventy-third periodic function from the seventy-third periodic function corresponding to black, the target periodic function corresponding to white is determined to be the seventy-fourth periodic function from the seventy-fourth periodic function corresponding to white, the target periodic function corresponding to blue is determined to be the seventy-fifth periodic function from the seventy-fifth periodic function, the seventy-sixth periodic function and the seventy-seventh periodic function corresponding to blue, and the target periodic function corresponding to green is determined to be the seventy-eighth periodic function from the seventy-eighth periodic function, the seventy-ninth periodic function and the eightieth periodic function corresponding to green.

[0352] According to the embodiments of the present disclosure, the 37th preset range, the 38th preset range, the 39th preset range, and the 40th preset range can be configured according to actual business needs and are not limited here. For example, the 37th preset range, the 38th preset range, the 39th preset range, and the 40th preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 37th preset range can be greater than or equal to 0 and less than 30. The 38th preset range can be greater than or equal to 30 and less than 90. The 39th preset range can be greater than or equal to 90 and less than 150. The 40th preset range can be greater than or equal to 150 and less than 180.

[0353] According to an embodiment of the present disclosure, when it is determined that the value range is within the 37th preset range, the target periodic function corresponding to black can be determined as the 73rd periodic function. The target periodic function corresponding to white can be determined as the 74th periodic function. The target periodic function corresponding to blue can be determined as the 75th periodic function. The target periodic function corresponding to green can be determined as the 78th periodic function.

[0354] According to an embodiment of the present disclosure, when it is determined that the value range is within the 38th preset range, the target periodic function corresponding to black can be determined as the 73rd periodic function. The target periodic function corresponding to white can be determined as the 74th periodic function. The target periodic function corresponding to blue can be determined as the 76th periodic function. The target periodic function corresponding to green can be determined as the 79th periodic function.

[0355] According to an embodiment of the present disclosure, when it is determined that the value range is within the 39th preset range, the target periodic function corresponding to black can be determined as the 73rd periodic function. The target periodic function corresponding to white can be determined as the 74th periodic function. The target periodic function corresponding to blue can be determined as the 77th periodic function. The target periodic function corresponding to green can be determined as the 80th periodic function.

[0356] According to an embodiment of the present disclosure, when it is determined that the value range is within the 40th preset range, the target periodic function corresponding to black can be determined as the 73rd periodic function. The target periodic function corresponding to white can be determined as the 74th periodic function. The target periodic function corresponding to blue can be determined as the 75th periodic function. The target periodic function corresponding to green can be determined as the 78th periodic function.

[0357] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, blue, and green.

[0358] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, blue, and green, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (132) to (147).

[0359] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (132) to (135). p black10 =0 (135)

[0360] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (136) to (139). blue3 =0 (136) p black10 =0 (139)

[0361] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (140) to (143). p green3 =0 (141) p black10 =0 (143)

[0362] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (144) to (147). p black10 =0 (147)

[0363] According to an embodiment of the present disclosure, x may represent the first color component, p blue3 The second probability corresponding to blue can be represented, p green3 The second probability corresponding to green can be represented as p white10 The second probability corresponding to white can be represented, p black10 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0364] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability that the corresponding preset color is black is 0, the probability that the preset color is white is [0, 1), the probability that the preset color is blue is [0.5, 0), and the probability that the preset color is green is [0.5, 0).

[0365] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being blue is 0, and the probability of the preset color being green is [0, 1). When x belongs to [60, 90), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being blue is 0, and the probability of the preset color being green is [1, 0).

[0366] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being blue is [0, 1), and the probability of the preset color being green is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being blue is [1, 0), and the probability of the preset color being green is 0.

[0367] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability that the corresponding preset color is black is 0, the probability that the preset color is white is [1, 0), the probability that the preset color is blue is [0, 0.5), and the probability that the preset color is green is [0, 0.5).

[0368] According to an embodiment of the present disclosure, the thirty-seventh preset range is 0≤x<30. The thirty-eighth preset range is 30≤x<90. The thirty-ninth preset range is 90≤x<150. The fortieth preset range is 150≤x<180. Formulas (135), (139), (143) and (147) are the seventy-third periodic function. Formulas (134), (138), (142) and (146) are the seventy-fourth periodic function. Formula (132) and (144) are the seventy-fifth periodic function. Formula (136) is the seventy-sixth periodic function. Formula (140) is the seventy-seventh periodic function. Formula (133) and (145) are the seventy-eighth periodic function. Formula (137) is the seventy-ninth periodic function. Formula (141) is the eightieth periodic function.

[0369] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the 81st periodic function corresponding to black, the 82nd periodic function corresponding to white, the 83rd periodic function and the 84th periodic function corresponding to red, the 85th periodic function and the 86th periodic function corresponding to green, and the 87th periodic function and the 88th periodic function corresponding to blue.

[0370] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0371] When it is determined that the value range is the forty-first preset range, the target periodic function corresponding to black is determined to be the eighty-first periodic function from the eighty-first periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighty-second periodic function from the eighty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the eighty-third periodic function from the eighty-third periodic function and the eighty-fourth periodic function corresponding to red, the target periodic function corresponding to green is determined to be the eighty-fifth periodic function from the eighty-fifth periodic function and the eighty-sixth periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the eighty-seventh periodic function from the eighty-seventh periodic function and the eighty-eighth periodic function corresponding to blue.

[0372] When it is determined that the value range is the 42nd preset range, the target periodic function corresponding to black is determined to be the 81st periodic function from the 81st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 82nd periodic function from the 82nd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 84th periodic function from the 83rd periodic function and the 84th periodic function corresponding to red, the target periodic function corresponding to green is determined to be the 86th periodic function from the 85th periodic function and the 86th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 87th periodic function from the 87th periodic function and the 88th periodic function corresponding to blue.

[0373] When it is determined that the value range is the forty-third preset range, the target periodic function corresponding to black is determined to be the eighty-first periodic function from the eighty-first periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighty-second periodic function from the eighty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the eighty-fourth periodic function from the eighty-third periodic function and the eighty-fourth periodic function corresponding to red, the target periodic function corresponding to green is determined to be the eighty-fifth periodic function from the eighty-fifth periodic function and the eighty-sixth periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the eighty-eighth periodic function from the eighty-seventh periodic function and the eighty-eighth periodic function corresponding to blue.

[0374] When it is determined that the value range is the forty-fourth preset range, the target periodic function corresponding to black is determined to be the eighty-first periodic function from the eighty-first periodic function corresponding to black, the target periodic function corresponding to white is determined to be the eighty-second periodic function from the eighty-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the eighty-third periodic function from the eighty-third periodic function and the eighty-fourth periodic function corresponding to red, the target periodic function corresponding to green is determined to be the eighty-fifth periodic function from the eighty-fifth periodic function and the eighty-sixth periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the eighty-seventh periodic function from the eighty-seventh periodic function and the eighty-eighth periodic function corresponding to blue.

[0375] According to an embodiment of the present disclosure, the 41st preset range, the 42nd preset range, the 43rd preset range, and the 44th preset range can be configured according to actual business needs and are not limited here. For example, the 41st preset range, the 42nd preset range, the 43rd preset range, and the 44th preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 41st preset range can be greater than or equal to 0 and less than 30. The 42nd preset range can be greater than or equal to 30 and less than 90. The 43rd preset range can be greater than or equal to 90 and less than 150. The 44th preset range can be greater than or equal to 150 and less than 180.

[0376] According to an embodiment of the present disclosure, when it is determined that the value range is within the 41st preset range, the target periodic function corresponding to black can be determined as the 81st periodic function. The target periodic function corresponding to white can be determined as the 82nd periodic function. The target periodic function corresponding to red can be determined as the 83rd periodic function. The target periodic function corresponding to green can be determined as the 85th periodic function. The target periodic function corresponding to blue can be determined as the 87th periodic function.

[0377] According to an embodiment of the present disclosure, when it is determined that the value range is within the 42nd preset range, the target periodic function corresponding to black can be determined as the 81st periodic function. The target periodic function corresponding to white can be determined as the 82nd periodic function. The target periodic function corresponding to red can be determined as the 84th periodic function. The target periodic function corresponding to green can be determined as the 86th periodic function. The target periodic function corresponding to blue can be determined as the 87th periodic function.

[0378] According to an embodiment of the present disclosure, when it is determined that the value range is within the 43rd preset range, the target periodic function corresponding to black can be determined as the 81st periodic function. The target periodic function corresponding to white can be determined as the 82nd periodic function. The target periodic function corresponding to red can be determined as the 84th periodic function. The target periodic function corresponding to green can be determined as the 85th periodic function. The target periodic function corresponding to blue can be determined as the 88th periodic function.

[0379] According to an embodiment of the present disclosure, when it is determined that the value range is within the 44th preset range, the target periodic function corresponding to black can be determined as the 81st periodic function. The target periodic function corresponding to white can be determined as the 82nd periodic function. The target periodic function corresponding to red can be determined as the 83rd periodic function. The target periodic function corresponding to green can be determined as the 85th periodic function. The target periodic function corresponding to blue can be determined as the 87th periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, green, and blue.

[0380] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, red, green, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (148) to (167).

[0381] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (148) to (152). p green4 =0 (149) p blue4 =0 (150) p black11 =0 (152)

[0382] According to an embodiment of the present disclosure, when 30≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (153) to (157). red4 =0 (153) p blue4 =0 (155) p black11 =0 (157)

[0383] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (158) to (162). red4 =0 (158) p green4 =0 (159) p black11 =0 (162)

[0384] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (163) to (167). p green4 =0 (164) p blue4 =0 (165) p black11 =0 (167)

[0385] According to an embodiment of the present disclosure, x may represent the first color component, p red4 The second probability corresponding to red can be represented, p green4 The second probability corresponding to green can be represented as p blue4 The second probability corresponding to blue can be represented, p white11 The second probability corresponding to white can be represented, p black11 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0386] According to an embodiment of the present disclosure, the first predetermined value and the second predetermined value can be set according to actual business needs and are not limited here. For example, the first predetermined value can be 2, and the second predetermined value can be 1. The following describes, with reference to FIG6C , a periodic function corresponding to a preset color pattern when the plurality of preset colors include black, white, red, green, and blue.

[0387] FIG6C schematically shows an example diagram of probability distribution corresponding to a preset color pattern when the plurality of preset colors include black, white, red, green, and blue according to an embodiment of the present disclosure.

[0388] As shown in FIG. 6C , in 600C, a point on the ring 605 may be represented by a probability of 1, a point on the ring 606 may be represented by a probability of 0, and a point between the rings 605 and 606 may be represented by a probability of (0, 1).

[0389] The O3A3 direction can represent the first color component x as 0 degrees, the O3B3 direction can represent the first color component x as 30 degrees, the O3C3 direction can represent the first color component x as 60 degrees, the O3D3 direction can represent the first color component x as 90 degrees, the O3E3 direction can represent the first color component x as 120 degrees, and the O3F3 direction can represent the first color component x as 150 degrees.

[0390] From O3A3 to O3B3, that is, when x belongs to [0, 30), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0391] From O3B3 to O3C3, that is, when x belongs to [30, 60), the probability of the preset color being red is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is [0, 1), the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0392] From O3C3 to O3D3, that is, when x belongs to [60, 90), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0393] From O3D3 to O3E3, that is, when x belongs to [90, 120), the probability of the preset color being red is 0, the probability of the preset color being blue is [0, 1), the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0394] From O3E3 to O3F3, that is, when x belongs to [120, 150), the probability of the preset color being red is 0, the probability of the preset color being blue is [1, 0), the probability of the preset color being green is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0395] From O3F3 to O3A3, that is, when x belongs to [150, 180), the probability of the corresponding preset color being red is [0, 1), the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0396] According to an embodiment of the present disclosure, the forty-first preset range is 0≤x<30. The forty-second preset range is 30≤x<90. The forty-third preset range is 90≤x<150. The forty-fourth preset range is 150≤x<180. Formulas (152), (157), (162) and (167) are the eighty-first periodic function. Formulas (151), (156), (161) and (166) are the eighty-second periodic function. Formula (148) and (163) are the eighty-third periodic function. Formula (153) and (158) are the eighty-fourth periodic function. Formula (149) and (159) are the eighty-fifth periodic function. Formula (154) is the eighty-sixth periodic function. Formulas (150), (155) and (165) are the eighty-seventh periodic function. Formula (160) is the eighty-eighth periodic function.

[0397] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the ninety-first periodic function and the ninety-second periodic function corresponding to white, the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0398] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0399] When it is determined that the value range is the forty-fifth preset range, the target periodic function corresponding to black is determined to be the eighty-ninth periodic function from the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninety-first periodic function from the ninety-first periodic function and the ninety-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the ninety-third periodic function from the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the ninety-fifth periodic function from the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the ninety-seventh periodic function from the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0400] When it is determined that the value range is the forty-sixth preset range, the target periodic function corresponding to black is determined to be the eighty-ninth periodic function from the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninety-first periodic function from the ninety-first periodic function and the ninety-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the ninety-fourth periodic function from the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the ninety-fifth periodic function from the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the ninety-eighth periodic function from the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0401] When it is determined that the value range is the forty-seventh preset range, the target periodic function corresponding to black is determined to be the eighty-ninth periodic function from the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninety-second periodic function from the ninety-first periodic function and the ninety-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the ninety-fourth periodic function from the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the ninety-sixth periodic function from the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the ninety-eighth periodic function from the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0402] When it is determined that the value range is the forty-eighth preset range, the target periodic function corresponding to black is determined to be the ninetieth periodic function from the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninety-second periodic function from the ninety-first periodic function and the ninety-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the ninety-fourth periodic function from the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the ninety-sixth periodic function from the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the ninety-seventh periodic function from the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0403] When it is determined that the value range is the forty-ninth preset range, the target periodic function corresponding to black is determined to be the eighty-ninth periodic function from the eighty-ninth periodic function and the ninetieth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the ninety-second periodic function from the ninety-first periodic function and the ninety-second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the ninety-third periodic function from the ninety-third periodic function and the ninety-fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the ninety-sixth periodic function from the ninety-fifth periodic function and the ninety-sixth periodic function corresponding to yellow, and the target periodic function corresponding to green is determined to be the ninety-seventh periodic function from the ninety-seventh periodic function and the ninety-eighth periodic function corresponding to green.

[0404] According to an embodiment of the present disclosure, the 45th preset range, the 46th preset range, the 47th preset range, the 48th preset range, and the 49th preset range can be configured according to actual business needs and are not limited here. For example, the 45th preset range, the 46th preset range, the 47th preset range, the 48th preset range, and the 49th preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 45th preset range can be greater than or equal to 0 and less than 30. The 46th preset range can be greater than or equal to 30 and less than 60. The 47th preset range can be greater than or equal to 60 and less than 90. The 48th preset range can be greater than or equal to 90 and less than 150. The 49th preset range can be greater than or equal to 150 and less than 180.

[0405] According to an embodiment of the present disclosure, when it is determined that the value range is within the 45th preset range, the target periodic function corresponding to black can be determined as the 89th periodic function. The target periodic function corresponding to white can be determined as the 91st periodic function. The target periodic function corresponding to red can be determined as the 93rd periodic function. The target periodic function corresponding to yellow can be determined as the 95th periodic function. The target periodic function corresponding to green can be determined as the 97th periodic function.

[0406] According to an embodiment of the present disclosure, when it is determined that the value range is within the 46th preset range, the target periodic function corresponding to black can be determined as the 89th periodic function. The target periodic function corresponding to white can be determined as the 91st periodic function. The target periodic function corresponding to red can be determined as the 94th periodic function. The target periodic function corresponding to yellow can be determined as the 95th periodic function. The target periodic function corresponding to green can be determined as the 98th periodic function.

[0407] According to an embodiment of the present disclosure, when it is determined that the value range is within the 47th preset range, the target periodic function corresponding to black can be determined as the 89th periodic function. The target periodic function corresponding to white can be determined as the 92nd periodic function. The target periodic function corresponding to red can be determined as the 94th periodic function. The target periodic function corresponding to yellow can be determined as the 96th periodic function. The target periodic function corresponding to green can be determined as the 98th periodic function.

[0408] According to an embodiment of the present disclosure, when it is determined that the value range is within the 48th preset range, the target periodic function corresponding to black can be determined as the 90th periodic function. The target periodic function corresponding to white can be determined as the 92nd periodic function. The target periodic function corresponding to red can be determined as the 94th periodic function. The target periodic function corresponding to yellow can be determined as the 96th periodic function. The target periodic function corresponding to green can be determined as the 97th periodic function.

[0409] According to an embodiment of the present disclosure, when it is determined that the value range is within the 49th preset range, the target periodic function corresponding to black can be determined as the 89th periodic function. The target periodic function corresponding to white can be determined as the 92nd periodic function. The target periodic function corresponding to red can be determined as the 93rd periodic function. The target periodic function corresponding to yellow can be determined as the 96th periodic function. The target periodic function corresponding to green can be determined as the 97th periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, yellow, and green.

[0410] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, red, yellow, and green, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (168) to (192).

[0411] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (168) to (172). p green5 =0 (170) p white12 =0 (171) p black12 =0 (172)

[0412] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (173) to (177). red5=0 (173) p white12 =0 (176)

[0413] p black12 =0 (177)

[0414] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (178) to (182). red5 =0 (178)

[0415] p yellow4 =0 (179) p black12 =0 (182)

[0416] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (183) to (187). red5 =0 (183) p yellow4 =0 (184) p green5 =0 (185)

[0417] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (188) to (192). p yellow4 =0 (189) p green5 =0 (190) p black12 =0 (192)

[0418] According to an embodiment of the present disclosure, x may represent the first color component, p red5 The second probability corresponding to red can be represented, p yellow4The second probability corresponding to yellow can be represented, p green5 The second probability corresponding to green can be represented as p white12 The second probability corresponding to white can be represented, p black12 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0419] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability that the corresponding preset color is black is 0, the probability that the preset color is white is 0, the probability that the preset color is red is [1, 0), the probability that the preset color is yellow is [0, 1), and the probability that the preset color is green is 0.

[0420] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is 0, the probability of the preset color being red is 0, the probability of the preset color being yellow is [1, 0), and the probability of the preset color being green is [0, 1).

[0421] According to an embodiment of the present disclosure, when x belongs to [60, 90), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being green is [1, 0).

[0422] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is [0, 1), the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being green is 0. When x belongs to [120, 150), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being green is 0.

[0423] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is [0, 1), the probability of the preset color being yellow is 0, and the probability of the preset color being green is 0.

[0424] According to an embodiment of the present disclosure, the forty-fifth preset range is 0≤x<30. The forty-sixth preset range is 30≤x<60. The forty-seventh preset range is 60≤x<90. The forty-eighth preset range is 90≤x<150. The forty-ninth preset range is 150≤x<180. Formulas (172), (177), (182) and (192) are the eighty-ninth periodic function. Formula (187) is the ninetieth periodic function. Formula (171) and (176) are the ninety-first periodic function. Formulas (181), (186) and (191) are the ninety-second periodic function. Formula (168) and (188) are the ninety-third periodic function. Formulas (173), (178) and (183) are the ninety-fourth periodic function. Formula (169) and (174) are the ninety-fifth periodic function. Formulas (179), (184), and (189) are the ninety-sixth periodic function. Formulas (170), (185), and (190) are the ninety-seventh periodic function. Formulas (175) and (180) are the ninety-eighth periodic function.

[0425] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the ninety-ninth periodic function and the one hundredth periodic function corresponding to black, the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0426] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0427] When it is determined that the value range is the fiftieth preset range, the target periodic function corresponding to black is determined to be the ninety-ninth periodic function from the ninety-ninth periodic function and the one hundredth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the one hundred and first periodic function from the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the one hundred and third periodic function from the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the one hundred and fifth periodic function from the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the one hundred and seventh periodic function from the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0428] When it is determined that the value range is the fifty-first preset range, the target periodic function corresponding to black is determined to be the hundredth periodic function from the ninety-ninth periodic function and the hundredth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the hundredth periodic function from the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the hundredth periodic function from the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the hundred and fifth periodic function from the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the hundred and seventh periodic function from the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0429] When it is determined that the value range is the fifty-second preset range, the target periodic function corresponding to black is determined to be the hundredth periodic function from the ninety-ninth periodic function and the hundredth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the hundredth periodic function from the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the hundredth periodic function from the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the hundredth periodic function from the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the hundred and seventh periodic function from the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0430] When it is determined that the value range is the fifty-third preset range, the target periodic function corresponding to black is determined to be the ninety-ninth periodic function from the ninety-ninth periodic function and the one hundredth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the one hundred and second periodic function from the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the one hundred and fourth periodic function from the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the one hundred and sixth periodic function from the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the one hundred and eighth periodic function from the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0431] When it is determined that the value range is the fifty-fourth preset range, the target periodic function corresponding to black is determined to be the ninety-ninth periodic function from the ninety-ninth periodic function and the one hundredth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the one hundred and second periodic function from the one hundred and first periodic function and the one hundred and second periodic function corresponding to white, the target periodic function corresponding to red is determined to be the one hundred and third periodic function from the one hundred and third periodic function and the one hundred and fourth periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the one hundred and sixth periodic function from the one hundred and fifth periodic function and the one hundred and sixth periodic function corresponding to yellow, and the target periodic function corresponding to blue is determined to be the one hundred and seventh periodic function from the one hundred and seventh periodic function and the one hundred and eighth periodic function corresponding to blue.

[0432] According to an embodiment of the present disclosure, the fiftieth preset range, the fifty-first preset range, the fifty-second preset range, the fifty-third preset range, and the fifty-fourth preset range can be configured according to actual business needs and are not limited here. For example, the fiftieth preset range, the fifty-first preset range, the fifty-second preset range, the fifty-third preset range, and the fifty-fourth preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The fiftieth preset range can be greater than or equal to 0 and less than 30. The fifty-first preset range can be greater than or equal to 30 and less than 60. The fifty-second preset range can be greater than or equal to 60 and less than 90. The fifty-third preset range can be greater than or equal to 90 and less than 150. The fifty-fourth preset range can be greater than or equal to 150 and less than 180.

[0433] According to an embodiment of the present disclosure, when it is determined that the value range is the fiftieth preset range, the target periodic function corresponding to black can be determined as the ninety-ninth periodic function. The target periodic function corresponding to white can be determined as the one hundred and first periodic function. The target periodic function corresponding to red can be determined as the one hundred and third periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and fifth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and seventh periodic function.

[0434] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-first preset range, the target periodic function corresponding to black can be determined as the hundredth periodic function. The target periodic function corresponding to white can be determined as the one hundredth periodic function. The target periodic function corresponding to red can be determined as the one hundredth periodic function. The target periodic function corresponding to yellow can be determined as the one hundredth periodic function. The target periodic function corresponding to blue can be determined as the one hundredth periodic function.

[0435] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-second preset range, the target periodic function corresponding to black can be determined as the hundredth periodic function. The target periodic function corresponding to white can be determined as the one hundredth periodic function. The target periodic function corresponding to red can be determined as the one hundredth periodic function. The target periodic function corresponding to yellow can be determined as the one hundredth periodic function. The target periodic function corresponding to blue can be determined as the one hundredth periodic function.

[0436] According to an embodiment of the present disclosure, if the value range is determined to be the fifty-third preset range, the target periodic function corresponding to black can be determined as the ninety-ninth periodic function. The target periodic function corresponding to white can be determined as the one hundred and second periodic function. The target periodic function corresponding to red can be determined as the one hundred and fourth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and sixth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and eighth periodic function.

[0437] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-fourth preset range, the target periodic function corresponding to black can be determined as the ninety-ninth periodic function. The target periodic function corresponding to white can be determined as the one hundred and second periodic function. The target periodic function corresponding to red can be determined as the one hundred and third periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and sixth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and seventh periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, yellow, and blue.

[0438] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, red, yellow, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (193) to (217).

[0439] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (193) to (197). p blue5 =0 (195) p white13 =0 (196) p black13 =0 (197)

[0440] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (198) to (202). red5=0 (198) p blue5 =0 (200) p white13 =0 (201)

[0441] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (203) to (207). red6 =0 (203) p yellow5 =0 (204) p blue5 =0 (205)

[0442] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (208) to (212). red6 =0 (208) p yellow5 =0 (209) p black13 =0 (212)

[0443] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (213) to (217). p yellow5 =0 (214) p blue5 =0 (215) p black13 =0 (217)

[0444] According to an embodiment of the present disclosure, x may represent the first color component, p red6 The second probability corresponding to red can be represented, p yellow5 The second probability corresponding to yellow can be represented, p blue5 The second probability corresponding to blue can be represented, p white13 The second probability corresponding to white can be represented, pblack13 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0445] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is 0, the probability of the preset color being red is [1, 0), the probability of the preset color being yellow is [0, 1), and the probability of the preset color being blue is 0.

[0446] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability that the corresponding preset color is black is [0, 1), the probability that the preset color is white is 0, the probability that the preset color is red is 0, the probability that the preset color is yellow is [1, 0), and the probability that the preset color is blue is 0.

[0447] According to an embodiment of the present disclosure, when x belongs to [60, 90), the probability of the corresponding preset color being black is [1, 0), the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being blue is 0.

[0448] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being blue is [0, 1). When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, and the probability of the preset color being blue is [1, 0).

[0449] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being red is [0, 1), the probability of the preset color being yellow is 0, and the probability of the preset color being blue is 0.

[0450] According to an embodiment of the present disclosure, the fiftieth preset range is 0≤x<30. The fifty-first preset range is 30≤x<60. The fifty-second preset range is 60≤x<90. The fifty-third preset range is 90≤x<150. The fifty-fourth preset range is 150≤x<180. Formulas (197), (212) and (217) are the ninety-ninth periodic function. Formulas (202) and (207) are the hundredth periodic function. Formulas (196) and (201) are the one hundredth periodic function. Formulas (206), (211) and (216) are the one hundredth periodic function. Formulas (193) and (213) are the one hundredth periodic function. Formulas (198), (203) and (208) are the one hundredth periodic function. Formulas (194) and (199) are the one hundredth periodic function. Formulas (204), (209), and (214) are the 106th periodic function. Formulas (195), (200), (205), and (215) are the 107th periodic function. Formula (210) is the 108th periodic function.

[0451] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the 109th periodic function and the 110th periodic function corresponding to black, the 111th periodic function and the 112th periodic function corresponding to white, the 113th periodic function, the 114th periodic function, the 115th periodic function and the 116th periodic function corresponding to yellow, the 117th periodic function and the 118th periodic function corresponding to green, and the 119th periodic function and the 120th periodic function corresponding to blue.

[0452] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0453] When it is determined that the value range is the fifty-fifth preset range, the target periodic function corresponding to black is determined to be the 109th periodic function from the 109th periodic function and the 110th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 111th periodic function from the 111th periodic function and the 112th periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the 113th periodic function from the 113th periodic function, the 114th periodic function, the 115th periodic function and the 116th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 117th periodic function from the 117th periodic function and the 118th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 119th periodic function from the 119th periodic function and the 120th periodic function corresponding to blue.

[0454] When it is determined that the value range is the fifty-sixth preset range, the target periodic function corresponding to black is determined to be the 110th periodic function from the 109th periodic function and the 110th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 111th periodic function from the 111th periodic function and the 112th periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the 114th periodic function from the 113th periodic function, the 114th periodic function, the 115th periodic function and the 116th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 118th periodic function from the 117th periodic function and the 118th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 119th periodic function from the 119th periodic function and the 120th periodic function corresponding to blue.

[0455] When it is determined that the value range is the fifty-seventh preset range, the target periodic function corresponding to black is determined to be the 110th periodic function from the 109th periodic function and the 110th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 112th periodic function from the 111th periodic function and the 112th periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the 115th periodic function from the 113th periodic function, the 114th periodic function, the 115th periodic function and the 116th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 118th periodic function from the 117th periodic function and the 118th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 119th periodic function from the 119th periodic function and the 120th periodic function corresponding to blue.

[0456] When it is determined that the value range is the fifty-eighth preset range, the target periodic function corresponding to black is determined to be the 110th periodic function from the 109th periodic function and the 110th periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 112th periodic function from the 111th periodic function and the 112th periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the 115th periodic function from the 113th periodic function, the 114th periodic function, the 115th periodic function and the 116th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 117th periodic function from the 117th periodic function and the 118th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 120th periodic function from the 119th periodic function and the 120th periodic function corresponding to blue.

[0457] When the value range is determined to be the fifty-ninth preset range, the target periodic function corresponding to black is determined to be the one hundred and ninth periodic function from the one hundred and ninth periodic function and the tenth periodic function corresponding to black, the target periodic function corresponding to white is determined to be the one hundred and twelfth periodic function from the one hundred and eleventh periodic function and the twelfth periodic function corresponding to white, the target periodic function corresponding to yellow is determined to be the one hundred and sixteenth periodic function from the one hundred and thirteenth periodic function, the target periodic function corresponding to green is determined to be the one hundred and seventeenth periodic function from the one hundred and seventeenth periodic function and the eighteenth periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the one hundred and nineteenth periodic function from the one hundred and nineteenth periodic function and the twentieth periodic function corresponding to blue. According to an embodiment of the present disclosure, the fifty-fifth preset range, the fifty-sixth preset range, the fifty-seventh preset range, the fifty-eighth preset range, and the fifty-ninth preset range can be configured according to actual business needs and are not limited here. For example, the fifty-fifth preset range, the fifty-sixth preset range, the fifty-seventh preset range, the fifty-eighth preset range, and the fifty-ninth preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The fifty-fifth preset range can be greater than or equal to 0 and less than 30. The fifty-sixth preset range can be greater than or equal to 30 and less than 60. The fifty-seventh preset range can be greater than or equal to 60 and less than 90. The fifty-eighth preset range can be greater than or equal to 90 and less than 150. The fifty-ninth preset range can be greater than or equal to 150 and less than 180.

[0458] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-fifth preset range, the target periodic function corresponding to black can be determined as the one hundred and ninth periodic function. The target periodic function corresponding to white can be determined as the one hundred and eleventh periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and thirteenth periodic function. The target periodic function corresponding to green can be determined as the one hundred and seventeenth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and nineteenth periodic function.

[0459] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-sixth preset range, the target periodic function corresponding to black can be determined as the one-hundred-tenth periodic function. The target periodic function corresponding to white can be determined as the one-hundred-eleventh periodic function. The target periodic function corresponding to yellow can be determined as the one-hundred-fourteenth periodic function. The target periodic function corresponding to green can be determined as the one-hundred-eighteenth periodic function. The target periodic function corresponding to blue can be determined as the one-hundred-nineteenth periodic function.

[0460] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-seventh preset range, the target periodic function corresponding to black can be determined as the one-hundred-tenth periodic function. The target periodic function corresponding to white can be determined as the one-hundred-twelfth periodic function. The target periodic function corresponding to yellow can be determined as the one-hundred-fifteenth periodic function. The target periodic function corresponding to green can be determined as the one-hundred-eighteenth periodic function. The target periodic function corresponding to blue can be determined as the one-hundred-nineteenth periodic function.

[0461] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-eighth preset range, the target periodic function corresponding to black can be determined as the one-hundred-tenth periodic function. The target periodic function corresponding to white can be determined as the one-hundred-twelfth periodic function. The target periodic function corresponding to yellow can be determined as the one-hundred-fifteenth periodic function. The target periodic function corresponding to green can be determined as the one-hundred-seventeenth periodic function. The target periodic function corresponding to blue can be determined as the one-hundred-twentieth periodic function.

[0462] According to an embodiment of the present disclosure, when it is determined that the value range is within the fifty-ninth preset range, the target periodic function corresponding to black can be determined as the one hundred and ninth periodic function. The target periodic function corresponding to white can be determined as the one hundred and twelfth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and sixteenth periodic function. The target periodic function corresponding to green can be determined as the one hundred and seventeenth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and nineteenth periodic function.

[0463] According to an embodiment of the present disclosure, the plurality of preset colors include black, white, yellow, green, and blue.

[0464] According to an embodiment of the present disclosure, when a plurality of preset colors include black, white, yellow, green, and blue, a periodic function corresponding to the preset color pattern may be determined according to the following formulas (218) to (242).

[0465] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (218) to (222). p green6 =0 (219) p blue6 =0 (220) p white14 =0 (221)

[0466] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (223) to (227). p blue6 =0 (225) p white14 =0 (226) p black14 =0 (227)

[0467] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (228) to (232). yellow6 =0 (228) p blue6 =0 (230)

[0468] p black14 =0 (232)

[0469] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (233) to (237). yellow6 =0 (233) p green6 =0 (234) p black14 =0 (237)

[0470] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (238) to (242). p green6 =0 (239) p blue6 =0 (240)

[0471] According to an embodiment of the present disclosure, x may represent the first color component, p yellow6 The second probability corresponding to yellow can be represented, p green6 The second probability corresponding to green can be represented as p blue6 The second probability corresponding to blue can be represented, p white14 The second probability corresponding to white can be represented, p black14 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0472] According to an embodiment of the present disclosure, when x belongs to [0, 30), the probability that the corresponding preset color is black is [0.5, 0), the probability that the preset color is white is 0, the probability that the preset color is yellow is [0.5, 1), the probability that the preset color is green is 0, and the probability that the preset color is blue is 0.

[0473] According to an embodiment of the present disclosure, when x belongs to [30, 60), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is 0, the probability of the preset color being yellow is [1, 0), the probability of the preset color being green is [0, 1), and the probability of the preset color being blue is 0.

[0474] According to an embodiment of the present disclosure, when x belongs to [60, 90), the probability that the corresponding preset color is black is 0, the probability that the preset color is white is [0, 1), the probability that the preset color is yellow is 0, the probability that the preset color is green is [1, 0), and the probability that the preset color is blue is 0.

[0475] According to an embodiment of the present disclosure, when x belongs to [90, 120), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [1, 0), the probability of the preset color being yellow is 0, the probability of the preset color being green is 0, and the probability of the preset color being blue is [0, 1). When x belongs to [120, 150), the probability of the corresponding preset color being black is 0, the probability of the preset color being white is [0, 1), the probability of the preset color being yellow is 0, the probability of the preset color being green is 0, and the probability of the preset color being blue is [1, 0).

[0476] According to an embodiment of the present disclosure, when x belongs to [150, 180), the probability of the corresponding preset color being black is [0, 0.5), the probability of the preset color being white is [1, 0), the probability of the preset color being yellow is [0, 0.5), the probability of the preset color being green is 0, and the probability of the preset color being blue is 0.

[0477] According to an embodiment of the present disclosure, the fifty-fifth preset range is 0≤x<30. The fifty-sixth preset range is 30≤x<60. The fifty-seventh preset range is 60≤x<90. The fifty-eighth preset range is 90≤x<150. The fifty-ninth preset range is 150≤x<180. Formulas (222) and (242) are the one hundred and ninth periodic function. Formulas (227), (232) and (237) are the one hundred and tenth periodic function. Formulas (221) and (226) are the one hundred and eleventh periodic function. Formulas (231), (236) and (241) are the one hundred and twelfth periodic function. Formula (218) is the one hundred and thirteenth periodic function. Formula (223) is the one hundred and fourteenth periodic function. Formulas (228) and (233) are the one hundred and fifteenth periodic function. Formula (238) is the one hundred and sixteenth periodic function. Formulas (219), (234), and (239) are the 117th periodic function. Formulas (224) and (229) are the 118th periodic function. Formulas (220), (225), (230), and (240) are the 119th periodic function. Formula (235) is the 120th periodic function.

[0478] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the 121st periodic function corresponding to black, the 122nd periodic function and the 123rd periodic function corresponding to white, the 124th periodic function and the 125th periodic function corresponding to red, the 126th periodic function and the 127th periodic function corresponding to yellow, the 128th periodic function and the 129th periodic function corresponding to green, and the 130th periodic function and the 131st periodic function corresponding to blue.

[0479] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0480] When it is determined that the value range is the sixtieth preset range, the target periodic function corresponding to black is determined to be the 121st periodic function from the 121st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 122nd periodic function from the 122nd periodic function and the 123rd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 124th periodic function from the 124th periodic function and the 125th periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the 126th periodic function from the 126th periodic function and the 127th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 128th periodic function from the 128th periodic function and the 129th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 130th periodic function from the 130th periodic function and the 131st periodic function corresponding to blue.

[0481] When it is determined that the value range is the sixty-first preset range, the target periodic function corresponding to black is determined to be the 121st periodic function from the 121st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 122nd periodic function from the 122nd periodic function and the 123rd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 125th periodic function from the 124th periodic function and the 125th periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the 126th periodic function from the 126th periodic function and the 127th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 129th periodic function from the 128th periodic function and the 129th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 130th periodic function from the 130th periodic function and the 131st periodic function corresponding to blue.

[0482] When it is determined that the value range is the sixty-second preset range, the target periodic function corresponding to black is determined to be the 121st periodic function from the 121st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 123rd periodic function from the 122nd periodic function and the 123rd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 125th periodic function from the 124th periodic function and the 125th periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the 127th periodic function from the 126th periodic function and the 127th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 129th periodic function from the 128th periodic function and the 129th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 130th periodic function from the 130th periodic function and the 131st periodic function corresponding to blue.

[0483] When it is determined that the value range is the sixty-third preset range, the target periodic function corresponding to black is determined to be the 121st periodic function from the 121st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 123rd periodic function from the 122nd periodic function and the 123rd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 125th periodic function from the 124th periodic function and the 125th periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the 127th periodic function from the 126th periodic function and the 127th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 128th periodic function from the 128th periodic function and the 129th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 131st periodic function from the 130th periodic function and the 131st periodic function corresponding to blue.

[0484] When it is determined that the value range is the sixty-fourth preset range, the target periodic function corresponding to black is determined to be the 121st periodic function from the 121st periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 123rd periodic function from the 122nd periodic function and the 123rd periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 124th periodic function from the 124th periodic function and the 125th periodic function corresponding to red, the target periodic function corresponding to yellow is determined to be the 127th periodic function from the 126th periodic function and the 127th periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 128th periodic function from the 128th periodic function and the 129th periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 130th periodic function from the 130th periodic function and the 131st periodic function corresponding to blue.

[0485] According to an embodiment of the present disclosure, the 60th preset range, the 61st preset range, the 62nd preset range, the 63rd preset range, and the 64th preset range can be configured according to actual business needs and are not limited here. For example, the 60th preset range, the 61st preset range, the 62nd preset range, the 63rd preset range, and the 64th preset range can be combined to achieve a range greater than or equal to 0 and less than or equal to 180. The 60th preset range can be greater than or equal to 0 and less than 30. The 61st preset range can be greater than or equal to 30 and less than 60. The 62nd preset range can be greater than or equal to 60 and less than 90. The 63rd preset range can be greater than or equal to 90 and less than 150. The 64th preset range can be greater than or equal to 150 and less than 180.

[0486] According to an embodiment of the present disclosure, when it is determined that the value range is the 60th preset range, the target periodic function corresponding to black can be determined as the 121st periodic function. The target periodic function corresponding to white can be determined as the 122nd periodic function. The target periodic function corresponding to red can be determined as the 124th periodic function. The target periodic function corresponding to yellow can be determined as the 126th periodic function. The target periodic function corresponding to green can be determined as the 128th periodic function. The target periodic function corresponding to blue can be determined as the 130th periodic function.

[0487] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixty-first preset range, the target periodic function corresponding to black can be determined as the one hundred and twenty-first periodic function. The target periodic function corresponding to white can be determined as the one hundred and twenty-second periodic function. The target periodic function corresponding to red can be determined as the one hundred and twenty-fifth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and twenty-sixth periodic function. The target periodic function corresponding to green can be determined as the one hundred and twenty-ninth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and thirtieth periodic function.

[0488] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixty-second preset range, the target periodic function corresponding to black can be determined as the one hundred and twenty-first periodic function. The target periodic function corresponding to white can be determined as the one hundred and twenty-third periodic function. The target periodic function corresponding to red can be determined as the one hundred and twenty-fifth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and twenty-seventh periodic function. The target periodic function corresponding to green can be determined as the one hundred and twenty-ninth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and thirtieth periodic function.

[0489] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixty-third preset range, the target periodic function corresponding to black can be determined as the one hundred and twenty-first periodic function. The target periodic function corresponding to white can be determined as the one hundred and twenty-third periodic function. The target periodic function corresponding to red can be determined as the one hundred and twenty-fifth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and twenty-seventh periodic function. The target periodic function corresponding to green can be determined as the one hundred and twenty-eighth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and thirty-first periodic function.

[0490] According to an embodiment of the present disclosure, when it is determined that the value range is the sixty-fourth preset range, the target periodic function corresponding to black can be determined as the one hundred and twenty-first periodic function. The target periodic function corresponding to white can be determined as the one hundred and twenty-third periodic function. The target periodic function corresponding to red can be determined as the one hundred and twenty-fourth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and twenty-seventh periodic function. The target periodic function corresponding to green can be determined as the one hundred and twenty-eighth periodic function. The target periodic function corresponding to blue can be determined as the one hundred and thirtieth periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, yellow, green, and blue.

[0491] According to an embodiment of the present disclosure, when multiple preset colors include black, white, red, yellow, green and blue, the periodic function corresponding to the preset color pattern can be determined according to the following formulas (243) to (271).

[0492] According to an embodiment of the present disclosure, when 0≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (243) to (248). p green7 =0 (245) p blue7 =0 (246) p white15 =0 (247) p black15 =0 (248)

[0493] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (249) to (253). p blue7 =0 (251) p white15 =0 (252) p black15 =0 (253)

[0494] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (254) to (259). red7 =0 (254) p yellow7 =0 (255) p blue7 =0 (257) p black15 =0 (259)

[0495] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (260) to (265). red7 =0 (260) p yellow7 =0 (261) p green7 =0 (262) p black15 =0 (265)

[0496] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (266) to (271). p yellow7 =0 (267) p green7 =0 (268) p blue7 =0 (269) p black15 =0 (271)

[0497] According to an embodiment of the present disclosure, x may represent the first color component, p red7 The second probability corresponding to red can be represented, p yellow7 The second probability corresponding to yellow can be represented, p green7 The second probability corresponding to green can be represented as p blue7 The second probability corresponding to blue can be represented, p white15 The second probability corresponding to white can be represented, p black15 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0498] According to an embodiment of the present disclosure, the first predetermined value and the second predetermined value can be set according to actual business needs and are not limited here. For example, the first predetermined value can be 2, and the second predetermined value can be 1. The following describes, with reference to FIG6D , a periodic function corresponding to a preset color pattern when multiple preset colors include black, white, red, yellow, green, and blue.

[0499] FIG6D schematically shows an example diagram of probability distribution corresponding to a preset color pattern when the plurality of preset colors include black, white, red, yellow, green, and blue according to an embodiment of the present disclosure.

[0500] As shown in FIG6D , in 600D, points on the ring 607 may be represented by a probability of 1, points on the ring 608 may be represented by a probability of 0, and points between the rings 607 and 608 may be represented by a probability of (0, 1).

[0501] The O4A4 direction can represent the first color component x as 0 degrees, the O4B4 direction can represent the first color component x as 30 degrees, the O4C4 direction can represent the first color component x as 60 degrees, the O4D4 direction can represent the first color component x as 90 degrees, the O4E4 direction can represent the first color component x as 120 degrees, and the O4F4 direction can represent the first color component x as 150 degrees.

[0502] From O4A4 to O4B4, that is, when x belongs to [0, 30), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being yellow is [0, 1), the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is 0, and the probability of the preset color being black is 0.

[0503] From O4B4 to O4C4, that is, when x belongs to [30, 60), the probability of the preset color being red is 0, the probability of the preset color being yellow is [1, 0), the probability of the preset color being blue is 0, the probability of the preset color being green is [0, 1), the probability of the preset color being white is 0, and the probability of the preset color being black is 0.

[0504] From O4C4 to O4D4, that is, when x belongs to [60, 90), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0505] From O4D4 to O4E4, that is, when x belongs to [90, 120), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is [0, 1), the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0506] From O4E4 to O4F4, that is, when x belongs to [120, 150), the probability of the preset color being red is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is [1, 0), the probability of the preset color being green is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0507] From O4F4 to O4A4, that is, when x belongs to [150, 180), the probability of the corresponding preset color being red is [0, 1), the probability of the preset color being yellow is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0508] According to an embodiment of the present disclosure, the sixtieth preset range is 0≤x<30. The sixtieth preset range is 30≤x<60. The sixtieth preset range is 60≤x<90. The sixtieth preset range is 90≤x<150. The sixtieth preset range is 150≤x<180. Formulas (248), (253), (259), (265) and (271) are the one hundred and twenty-first periodic functions. Formulas (247) and (252) are the one hundred and twenty-second periodic functions. Formulas (258), (264) and (270) are the one hundred and twenty-third periodic functions. Formulas (243) and (266) are the one hundred and twenty-fourth periodic functions. Formulas (254) and (260) are the one hundred and twenty-fifth periodic functions. Formulas (244) and (249) are the one hundred and twenty-sixth periodic functions. Formulas (255), (261), and (267) are the 127th periodic function. Formulas (245), (262), and (268) are the 128th periodic function. Formulas (250) and (256) are the 129th periodic function. Formulas (246), (251), (257), and (269) are the 130th periodic function. Formula (263) is the 131st periodic function.

[0509] According to an embodiment of the present disclosure, the periodic functions corresponding to the preset color model may include the one hundred and thirty-second periodic function corresponding to black, the one hundred and thirty-third periodic function and the one hundred and thirty-fourth periodic function corresponding to white, the one hundred and thirty-fifth periodic function and the one hundred and thirty-sixth periodic function corresponding to red, the one hundred and thirty-seventh periodic function and the one hundred and thirty-eighth periodic function corresponding to orange, the one hundred and thirty-ninth periodic function, the one hundred and forty-first periodic function and the one hundred and forty-second periodic function and the one hundred and forty-third periodic function corresponding to green, and the one hundred and forty-fourth periodic function and the one hundred and forty-fifth periodic function corresponding to blue.

[0510] According to an embodiment of the present disclosure, determining a target periodic function corresponding to multiple preset colors from at least one periodic function corresponding to multiple preset colors according to a value range may include the following operations.

[0511] When it is determined that the value range is the sixty-fifth preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 133rd periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 135th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 137th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 139th periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 142nd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 144th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0512] When it is determined that the value range is the sixty-sixth preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 133rd periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 136th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 137th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 140th periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 142nd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 144th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0513] When it is determined that the value range is the sixty-seventh preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 133rd periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 136th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 138th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 141st periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 143rd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 144th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0514] When it is determined that the value range is the sixty-eighth preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 134th periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 136th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 138th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 139th periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 143rd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 144th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0515] When it is determined that the value range is the sixty-ninth preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 134th periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 136th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 138th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 139th periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 142nd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 145th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0516] When it is determined that the value range is the 70th preset range, the target periodic function corresponding to black is determined to be the 132nd periodic function from the 132nd periodic function corresponding to black, the target periodic function corresponding to white is determined to be the 134th periodic function from the 133rd periodic function and the 134th periodic function corresponding to white, the target periodic function corresponding to red is determined to be the 135th periodic function from the 135th periodic function and the 136th periodic function corresponding to red, the target periodic function corresponding to orange is determined to be the 138th periodic function from the 137th periodic function and the 138th periodic function corresponding to orange, the target periodic function corresponding to yellow is determined to be the 139th periodic function from the 139th periodic function, the 140th periodic function and the 141st periodic function corresponding to yellow, the target periodic function corresponding to green is determined to be the 142nd periodic function from the 142nd periodic function and the 143rd periodic function corresponding to green, and the target periodic function corresponding to blue is determined to be the 144th periodic function from the 144th periodic function and the 145th periodic function corresponding to blue.

[0517] According to an embodiment of the present disclosure, the sixty-fifth preset range, the sixty-sixth preset range, the sixty-seventh preset range, the sixty-eighth preset range, the sixty-ninth preset range, and the seventieth preset range can be configured according to actual business needs and are not limited here. For example, the sixty-fifth preset range, the sixty-sixth preset range, the sixty-seventh preset range, the sixty-eighth preset range, the sixty-ninth preset range, and the seventieth preset range can be combined to achieve greater than or equal to 0 and less than or equal to 180. The sixty-fifth preset range is greater than or equal to 0 and less than 15. The sixty-sixth preset range can be greater than or equal to 15 and less than 30. The sixty-seventh preset range can be greater than or equal to 30 and less than 60. The sixty-eighth preset range can be greater than or equal to 60 and less than 90. The sixty-ninth preset range can be greater than or equal to 90 and less than 150. The seventieth preset range can be greater than or equal to 150 and less than 180.

[0518] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixty-fifth preset range, the target periodic function corresponding to black may be determined as the one-hundred-and-thirty-second periodic function. The target periodic function corresponding to white may be determined as the one-hundred-and-thirty-third periodic function. The target periodic function corresponding to orange may be determined as the one-hundred-and-thirty-fifth periodic function. The target periodic function corresponding to orange may be determined as the one-hundred-and-thirty-seventh periodic function. The target periodic function corresponding to yellow may be determined as the one-hundred-and-thirty-ninth periodic function. The target periodic function corresponding to green may be determined as the one-hundred-and-thirty-second periodic function. The target periodic function corresponding to blue may be determined as the one-hundred-and-thirty-fourth periodic function.

[0519] According to an embodiment of the present disclosure, when it is determined that the value range is the sixty-sixth preset range, the target periodic function corresponding to black can be determined as the one hundred and thirty-second periodic function. The target periodic function corresponding to white can be determined as the one hundred and thirty-third periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-sixth periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-seventh periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and fortyth periodic function. The target periodic function corresponding to green can be determined as the one hundred and forty-second periodic function. The target periodic function corresponding to blue can be determined as the one hundred and forty-fourth periodic function.

[0520] According to an embodiment of the present disclosure, when it is determined that the value range is the sixty-seventh preset range, the target periodic function corresponding to black can be determined as the one hundred and thirty-second periodic function. The target periodic function corresponding to white can be determined as the one hundred and thirty-third periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-sixth periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-eighth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and forty-first periodic function. The target periodic function corresponding to green can be determined as the one hundred and forty-third periodic function. The target periodic function corresponding to blue can be determined as the one hundred and forty-fourth periodic function.

[0521] According to an embodiment of the present disclosure, when it is determined that the value range is the sixty-eighth preset range, the target periodic function corresponding to black can be determined as the one hundred and thirty-second periodic function. The target periodic function corresponding to white can be determined as the one hundred and thirty-fourth periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-sixth periodic function. The target periodic function corresponding to orange can be determined as the one hundred and thirty-eighth periodic function. The target periodic function corresponding to yellow can be determined as the one hundred and thirty-ninth periodic function. The target periodic function corresponding to green can be determined as the one hundred and forty-third periodic function. The target periodic function corresponding to blue can be determined as the one hundred and forty-fourth periodic function.

[0522] According to an embodiment of the present disclosure, when it is determined that the value range is within the sixty-ninth preset range, the target periodic function corresponding to black may be determined as the one-hundred-and-thirty-second periodic function. The target periodic function corresponding to white may be determined as the one-hundred-and-thirty-fourth periodic function. The target periodic function corresponding to orange may be determined as the one-hundred-and-thirty-sixth periodic function. The target periodic function corresponding to orange may be determined as the one-hundred-and-thirty-eighth periodic function. The target periodic function corresponding to yellow may be determined as the one-hundred-and-thirty-ninth periodic function. The target periodic function corresponding to green may be determined as the one-hundred-and-thirty-second periodic function. The target periodic function corresponding to blue may be determined as the one-hundred-and-thirty-fifth periodic function.

[0523] According to an embodiment of the present disclosure, when it is determined that the value range is the 70th preset range, the target periodic function corresponding to black can be determined as the 132nd periodic function. The target periodic function corresponding to white can be determined as the 134th periodic function. The target periodic function corresponding to orange can be determined as the 135th periodic function. The target periodic function corresponding to orange can be determined as the 138th periodic function. The target periodic function corresponding to yellow can be determined as the 139th periodic function. The target periodic function corresponding to green can be determined as the 142nd periodic function. The target periodic function corresponding to blue can be determined as the 144th periodic function. According to an embodiment of the present disclosure, the plurality of preset colors include black, white, red, orange, yellow, green, and blue.

[0524] According to an embodiment of the present disclosure, when multiple preset colors include black, white, red, orange, yellow, green and blue, the periodic function corresponding to the preset color pattern can be determined according to the following formulas (272) to (313).

[0525] According to an embodiment of the present disclosure, when 0≤x<15, the periodic function corresponding to the preset color mode can be determined according to the following formulas (272) to (278). p yellow8 =0 (274) p green8 =0 (275) p blue8 =0 (276) p white16 =0 (277) p black16 =0 (278)

[0526] According to an embodiment of the present disclosure, when 15≤x<30, the periodic function corresponding to the preset color mode can be determined according to the following formulas (279) to (285). red8 =0 (279) p green8 =0 (282) p blue8 =0 (283) p white16 =0 (284) p black16 =0 (285)

[0527] According to an embodiment of the present disclosure, when 30≤x<60, the periodic function corresponding to the preset color mode can be determined according to the following formulas (286) to (292). red8 =0 (286) p orange8 =0 (287) p blue8 =0 (290) p white16 =0 (291) p black16 =0 (292)

[0528] According to an embodiment of the present disclosure, when 60≤x<90, the periodic function corresponding to the preset color mode can be determined according to the following formulas (293) to (299). red8 =0 (293) p orange8 =0 (294) p yellow8 =0 (295) p blue8 =0 (297) p black16 =0 (299)

[0529] According to an embodiment of the present disclosure, when 90≤x<150, the periodic function corresponding to the preset color mode can be determined according to the following formulas (300) to (306). red8 =0 (300) p orange8 =0 (301) p yellow8 =0 (302) p green8 =0 (303) p black16 =0 (306)

[0530] According to an embodiment of the present disclosure, when 150≤x<180, the periodic function corresponding to the preset color mode can be determined according to the following formulas (307) to (313). p orange8 =0 (308) p yellow8 =0 (309) p green8 =0 (310) p blue8 =0 (311) p black16 =0 (313)

[0531] According to an embodiment of the present disclosure, x may represent the first color component, p red8 The second probability corresponding to red can be represented, p orange8 The second probability corresponding to orange can be represented as p yellow8 The second probability corresponding to yellow can be represented, p green8 The second probability corresponding to green can be represented as p blue8 The second probability corresponding to blue can be represented, p white16 The second probability corresponding to white can be represented, p black16 A can represent the second probability corresponding to black, A can represent the first predetermined value, B can represent the second predetermined value, and A and B cooperate to make the second probability greater than or equal to 0 and less than or equal to 1.

[0532] According to the embodiments of the present disclosure, the first predetermined value and the second predetermined value can be set according to actual business needs and are not limited here. For example, the first predetermined value can be 2, and the second predetermined value can be 1. The following describes, with reference to FIG6E , a periodic function corresponding to a preset color pattern when the plurality of preset colors include black, white, red, orange, yellow, green, and blue.

[0533] FIG6E schematically shows an example diagram of probability distribution corresponding to a preset color pattern when the plurality of preset colors include black, white, red, orange, yellow, green, and blue according to an embodiment of the present disclosure.

[0534] As shown in FIG. 6E , in 600E, points on the ring 609 may be represented by a probability of 1, points on the ring 610 may be represented by a probability of 0, and points between the rings 600 and 610 may be represented by a probability of (0, 1).

[0535] The O5A5 direction can represent the first color component x as 0 degrees, the O5G5 direction can represent the first color component x as 15 degrees, the O5B5 direction can represent the first color component x as 30 degrees, the O5C5 direction can represent the first color component x as 60 degrees, the O5D5 direction can represent the first color component x as 90 degrees, the O5E5 direction can represent the first color component x as 120 degrees, and the O5F5 direction can represent the first color component x as 150 degrees.

[0536] From O5A5 to O5G5, that is, when x belongs to [0, 15), the probability of the corresponding preset color being red is [1, 0), the probability of the preset color being orange is [0, 1), the probability of the preset color being yellow is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is 0, and the probability of the preset color being black is 0.

[0537] From O5G5 to O5B5, that is, when x belongs to [15, 30), the probability of the preset color being red is 0, the probability of the preset color being orange is [1, 0), the probability of the preset color being yellow is [0, 1), the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is 0, and the probability of the preset color being black is 0.

[0538] From O5B5 to O5C5, that is, when x belongs to [30, 60), the probability of the corresponding preset color being red is 0, the probability of the preset color being orange is 0, the probability of the preset color being yellow is [1, 0), the probability of the preset color being blue is 0, the probability of the preset color being green is [0, 1), the probability of the preset color being white is 0, and the probability of the preset color being black is 0.

[0539] From O5C5 to O5D5, that is, when x belongs to [60, 90), the probability of the corresponding preset color being red is 0, the probability of the preset color being orange is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is [1, 0), the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0540] From O5D5 to O5E5, that is, when x belongs to [90, 120), the probability of the preset color being red is 0, the probability of the preset color being orange is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is [0, 1), the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0541] From O5E5 to O5F5, that is, when x belongs to [120, 150), the probability of the corresponding preset color being red is 0, the probability of the preset color being orange is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is [1, 0), the probability of the preset color being green is 0, the probability of the preset color being white is [0, 1), and the probability of the preset color being black is 0.

[0542] From O5F5 to O5A5, that is, when x belongs to [150, 180), the probability of the corresponding preset color being red is [0, 1), the probability of the preset color being orange is 0, the probability of the preset color being yellow is 0, the probability of the preset color being blue is 0, the probability of the preset color being green is 0, the probability of the preset color being white is [1, 0), and the probability of the preset color being black is 0.

[0543] According to an embodiment of the present disclosure, the sixty-fifth preset range is 0≤x<15. The sixty-sixth preset range is 15≤x<30. The sixty-seventh preset range is 30≤x<60. The sixty-eighth preset range is 60≤x<90. The sixty-ninth preset range is 90≤x<150. The seventieth preset range is 150≤x<180. Formulas (278), (285), (292), (299), (306) and (313) are the one hundred and thirty-second periodic function. Formulas (277), (284) and (291) are the one hundred and thirty-third periodic function. Formulas (298), (305) and (312) are the one hundred and thirty-fourth periodic function. Formulas (272) and (307) are the one hundred and thirty-fifth periodic function. Formulas (279), (286), (293) and (300) are the one hundred and thirty-sixth periodic function. Formulas (273) and (280) are the one hundred and thirty-seventh periodic function. Formulas (287), (294), (301) and (308) are the one hundred and thirty-eighth periodic function. Formulas (274), (295), (302) and (309) are the one hundred and thirty-ninth periodic function. Formula (281) is the one hundred and forty-first periodic function. Formula (288) is the one hundred and forty-first periodic function. Formulas (282), (303) and (310) are the one hundred and forty-second periodic function. Formulas (289) and (296) are the one hundred and forty-third periodic function. Formulas (276), (283), (290), (297) and (311) are the one hundred and forty-fourth periodic function. Formula (304) is the one hundred and forty-fifth periodic function. According to an embodiment of the present disclosure, operation S220 may include the following operations.

[0544] For at least one pixel, a difference between the second rendered color and the original rendered color of the pixel is determined to obtain a difference corresponding to the pixel, and the second rendered color of the pixel is adjusted according to the difference corresponding to the pixel to obtain a third rendered color of the pixel.

[0545] According to an embodiment of the present disclosure, after obtaining the second rendered color of at least one pixel, the second rendered color of the at least one pixel can be adjusted based on the second rendered color and the original rendered color of the pixel based on an error diffusion algorithm to obtain a third rendered color of the pixel. The error diffusion algorithm can include at least one of the following: a Floyd-Steinberg error diffusion algorithm or a Jarris Judice-Ninke error diffusion algorithm.

[0546] According to an embodiment of the present disclosure, a traversal process may be performed on at least one pixel. The traversal trajectory may include at least one of the following: row-by-row traversal, column-by-column traversal, and bow-shaped traversal. Row-by-row traversal may refer to traversing within the same row in the order of increasing column numbers. Column-by-column traversal may refer to traversing within the same column in the order of increasing row numbers. Bow-shaped traversal may refer to traversing along a "bow"-shaped trajectory.

[0547] According to an embodiment of the present disclosure, the initial difference between the second rendered color and the original rendered color of a pixel can be determined using the following equations (314) to (316): ErrorR = R0 - R0′ (314) ErrorG = G0 - G0′ (315) ErrorB = B0 - B0′ (316)

[0548] According to an embodiment of the present disclosure, R0 can represent the red component of the original presented color of the pixel, R0′ can represent the red component of the second presented color of the pixel, ErrorR can represent the initial red component difference of the pixel, G0 can represent the green component of the original presented color of the pixel, G0′ can represent the red component of the second presented color of the pixel, ErrorG can represent the initial green component difference of the pixel, B0 can represent the blue component of the original presented color of the pixel, B0′ can represent the red component of the second presented color of the pixel, and ErrorB can represent the initial blue component difference of the pixel.

[0549] According to an embodiment of the present disclosure, after obtaining the initial red component difference, initial green component difference and initial blue component difference of the pixel, the following equations (317) to (319) can be used to truncate the precision of the red component difference, green component difference and blue component difference through Norm to obtain the red component difference, green component difference and blue component difference of the pixel.

[0550] According to an embodiment of the present disclosure, floor() can represent a floor function, ErrorR′ can represent a red component difference, ErrorG′ can represent a green component difference, ErrorB′ can represent a blue component difference, and Norm can represent an integer between a first predetermined threshold and a second predetermined threshold. The first predetermined threshold and the second predetermined threshold can be set according to actual business needs and are not limited here. For example, the first predetermined threshold can be 40, and the second predetermined threshold can be 128.

[0551] According to embodiments of the present disclosure, after obtaining the difference value corresponding to a pixel, the second rendered color of the pixel can be adjusted based on the difference value to obtain the pixel's third rendered color. For example, a 5×5 diffusion window can be used to diffuse the difference value corresponding to the pixel, such that ErrorR′ can be diffused in the R channel, ErrorG′ can be diffused in the G channel, and ErrorB′ can be diffused in the B channel. The following describes the process of adjusting the second rendered color of a pixel based on the difference value corresponding to the pixel to obtain the pixel's third rendered color, with reference to FIG.

[0552] According to an embodiment of the present disclosure, since the third presented color is obtained by adjusting the second presented color of the pixel based on the difference corresponding to the pixel, and the difference corresponding to the pixel is determined based on the second presented color and the original presented color of the pixel, the color jitter range can be reduced, the granularity of the mapped image can be improved, and the color saturation can be improved.

[0553] 7 schematically illustrates an example process of adjusting the second rendered color of at least one pixel based on the second rendered color and the original rendered color of the at least one pixel to obtain a third rendered color of the at least one pixel according to an embodiment of the present disclosure.

[0554] As shown in FIG7 , in 700 , M may represent the pixel currently being processed. The diffusion window of the Jarris Judice-Ninke error diffusion algorithm can be set according to actual business needs and is not limited here. For example, the diffusion window may be set as shown in the following equation (320).

[0555] In this case, based on the diffusion window of equation (320), the display data of the surrounding pixels that have not yet been converted can be error diffused by the pixel M.

[0556] For example, if there are 12 pixels around pixel M that have not been converted, the second color of the pixel can be diffused in the R channel for the first pixel to the right of pixel M. Diffusion in G channel Diffusion in channel B For the second pixel to the right of pixel M, the second color of the pixel can be diffused in the R channel Diffusion in G channel Diffusion in channel B

[0557] For the first pixel below pixel M, the second color of the pixel can be diffused in the R channel Diffusion in G channel Diffusion in channel B For the second pixel below pixel M, the second color of the pixel can be diffused in the R channel Diffusion in G channel Diffusion in channel B

[0558] Similarly, based on the diffusion window of the above formula (320), the display data of the surrounding pixels that have not been converted can be error diffused by the pixel M.

[0559] FIG8 schematically shows an example diagram of an original image and a target image according to an embodiment of the present disclosure.

[0560] As shown in Figure 8, in 800, the image processing method provided by the embodiment of the present disclosure can be used to process the original image 801 to obtain the target image 802. The image processing method provided by the embodiment of the present disclosure can enhance the image boundary of the original image 801 and improve the visual effect of the original image 801.

[0561] The above are merely exemplary embodiments, but are not limited thereto, and may also include other image processing methods known in the art, as long as they can improve the color richness of the target image and thereby improve the display quality of the target image.

[0562] FIG9 schematically shows a block diagram of an image processing apparatus according to an embodiment of the present disclosure.

[0563] As shown in FIG. 9 , the image processing apparatus 900 may include a determining module 910 , an adjusting module 920 , and an obtaining module 930 .

[0564] Determination module 910 is configured to determine a second rendered color of at least one pixel of the original image based on a first rendered color of at least one pixel in a preset color mode, wherein the first rendered color corresponds to a first color space and the second rendered color corresponds to a second color space.

[0565] Adjustment module 920 is configured to adjust the second rendered color of at least one pixel based on the second rendered color and the original rendered color of the at least one pixel to obtain a third rendered color of the at least one pixel. The original rendered color and the third rendered color correspond to a second color space. The first rendered color is obtained by performing color space conversion on the original rendered color.

[0566] The obtaining module 930 is configured to obtain a target image based on the third rendered color of at least one pixel. The color of the area in the target image corresponding to the visually significant area of ​​the original image corresponds to a preset color pattern.

[0567] According to an embodiment of the present disclosure, the determination module 910 may include a first determination submodule.

[0568] A first determination submodule is configured to determine a second rendered color of at least one pixel in the original image based on a first color component of at least one pixel, based on a color association relationship corresponding to a preset color mode. The first color component represents a first component of the first rendered color, and the color association relationship represents an association relationship between the first color component and the second rendered color.

[0569] According to an embodiment of the present disclosure, the determination module 910 may include a second determination submodule and a third determination submodule.

[0570] The second determining submodule is used to determine the area to be adjusted of the original image.

[0571] The third determining submodule is configured to determine, based on a preset color mode and according to the first presented color of at least one pixel in the area to be adjusted, a second presented color of at least one pixel.

[0572] According to an embodiment of the present disclosure, the preset color mode corresponds to a plurality of preset colors.

[0573] According to an embodiment of the present disclosure, the first determining submodule may include a first determining unit, a second determining unit, and a third determining unit.

[0574] The first determining unit is configured to determine, based on a color association relationship corresponding to a preset color pattern and according to a first color component of at least one pixel of the original image, a plurality of first probabilities corresponding to the at least one pixel. The first probabilities represent probabilities that the second rendered color of the pixel is the preset color.

[0575] The second determining unit is configured to determine a target probability corresponding to the at least one pixel based on a plurality of first probabilities corresponding to the at least one pixel. ...

Claims

1. An image processing method, comprising: Based on a preset color mode, determining a second presentation color of at least one pixel of the original image according to a first presentation color of the at least one pixel, wherein the first presentation color corresponds to a first color space, and the second presentation color corresponds to a second color space; According to the second presentation color and the original presentation color of the at least one pixel, the second presentation color of the at least one pixel is adjusted to obtain a third presentation color of the at least one pixel, wherein the original presentation color and the third presentation color correspond to the second color space, and the first presentation color is obtained by performing color space conversion on the original presentation color; and A target image is obtained according to the third presented color of the at least one pixel, wherein the color of an area in the target image corresponding to the visually significant area of ​​the original image corresponds to the preset color mode.

2. The method according to claim 1, wherein: The method of determining the second rendered color of at least one pixel of the original image based on the preset color mode according to the first rendered color of at least one pixel includes: Based on the color association relationship corresponding to the preset color mode, the second rendered color of at least one pixel is determined according to the first color component of at least one pixel of the original image, wherein the first color component represents the first component of the first rendered color, and the color association relationship represents the association relationship between the first color component and the second rendered color.

3. The method according to claim 1, wherein: The method of determining the second rendered color of at least one pixel of the original image based on the preset color mode according to the first rendered color of at least one pixel includes: Determining a region of the original image to be adjusted; and Based on the preset color mode, a second presented color of the at least one pixel in the area to be adjusted is determined according to a first presented color of the at least one pixel.

4. The method according to claim 2, wherein: The preset color mode corresponds to a plurality of preset colors; The determining, based on the color association relationship corresponding to the preset color mode and according to the first color component of at least one pixel of the original image, the second presentation color of the at least one pixel comprises: Based on the color association relationship corresponding to the preset color mode, determining a plurality of first probabilities corresponding to at least one pixel of the original image according to a first color component of the at least one pixel, wherein the first probability represents a probability that the second presented color of the pixel is the preset color; According to a plurality of first probabilities corresponding to the at least one pixel, a probability corresponding to the at least one pixel is determined. Target probability; and A second rendered color of the at least one pixel is determined according to the target probability corresponding to the at least one pixel.

5. The method according to claim 4, wherein: The determining, according to the plurality of first probabilities corresponding to the at least one pixel, a target probability corresponding to the at least one pixel comprises: determining an average probability corresponding to the at least one pixel from among a plurality of first probabilities corresponding to the at least one pixel; and An average probability corresponding to the at least one pixel is determined as a target probability corresponding to the at least one pixel.

6. The method according to claim 4, wherein: The determining, according to the plurality of first probabilities corresponding to the at least one pixel, a target probability corresponding to the at least one pixel comprises: determining a maximum probability corresponding to the at least one pixel from among a plurality of first probabilities corresponding to the at least one pixel; and A maximum probability corresponding to the at least one pixel is determined as a target probability corresponding to the at least one pixel.

7. The method according to any one of claims 4 to 6, wherein: The determining, based on the color association relationship corresponding to the preset color mode and according to the first color component of at least one pixel of the original image, a plurality of first probabilities corresponding to the at least one pixel comprises: Based on the color association relationship corresponding to the preset color mode, determining a plurality of second probabilities corresponding to at least one pixel of the original image according to a first color component of the at least one pixel of the original image; and A plurality of first probabilities corresponding to the at least one pixel are determined based on a plurality of second probabilities corresponding to the at least one pixel and at least one first other color component, wherein the first other color component represents other components in the first rendered color except the first component.

8. The method according to claim 7, wherein: The plurality of preset colors include black, white, and at least one other color; the plurality of second probabilities include a second probability corresponding to the black, a second probability corresponding to the white, and a second probability corresponding to the at least one other color; the at least one first other color component includes a second color component and a third color component; The step of determining a plurality of first probabilities corresponding to the at least one pixel according to the plurality of second probabilities corresponding to the at least one pixel and at least one first other color component comprises: For a pixel in the at least one pixel, Obtaining a first intermediate value corresponding to the black color according to the second color component of the pixel and a second probability corresponding to the black color; Obtaining a first probability corresponding to the black color according to the third color component of the pixel and the first intermediate value corresponding to the black color, wherein the first probability corresponding to the black color represents a probability that the second presented color of the pixel is the black color; Obtaining a second intermediate value corresponding to the white color according to a second color component of the pixel and a second probability corresponding to the white color; Obtaining a first probability corresponding to the white color according to the third color component of the pixel and the second intermediate value corresponding to the white color, wherein the first probability corresponding to the white color represents a probability that the second presented color of the pixel is the white color; and Based on the second color component of the pixel, the third color component of the pixel and the second probability corresponding to the at least one other color, a first probability corresponding to the at least one other color is obtained, wherein the first probability corresponding to the other color represents the probability that the second presented color of the pixel is the other color.

9. The method according to claim 7, wherein: The determining, based on the color association relationship corresponding to the preset color mode and according to the first color component of at least one pixel of the original image, a plurality of second probabilities corresponding to the at least one pixel comprises: Based on at least one periodic function corresponding to the preset color mode, a first color component of at least one pixel of the original image is processed to obtain multiple second probabilities corresponding to the at least one pixel, wherein at least one periodic function corresponding to the preset color mode is used to determine the color association relationship corresponding to the preset color mode.

10. The method according to claim 9, wherein: The periodic function corresponding to the preset color mode includes at least one periodic function corresponding to each of the plurality of preset colors; The step of processing the first color component of at least one pixel of the original image based on at least one periodic function corresponding to the preset color mode to obtain a plurality of second probabilities corresponding to the at least one pixel includes: For a pixel in at least one pixel of the original image, Determining a value range corresponding to a first color component of the pixel; Determining, according to the value range, a target periodic function corresponding to each of the plurality of preset colors from at least one periodic function corresponding to each of the plurality of preset colors; and Processing the first color component of the pixel based on the target function corresponding to each of the plurality of preset colors, A plurality of second probabilities corresponding to the pixels are obtained.

11. The method according to any one of claims 1 to 6, wherein: The step of adjusting the second presented color of the at least one pixel according to the second presented color and the original presented color of the at least one pixel to obtain a third presented color of the at least one pixel includes: For a pixel in the at least one pixel, Determine a difference between the second presented color and the original presented color of the pixel to obtain a difference corresponding to the pixel; and The second presented color of the pixel is adjusted according to the difference value corresponding to the pixel to obtain a third presented color of the pixel.

12. An electronic device comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 11.

13. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 11.

14. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 11.