Object color generation system, method, device, display device and medium
By preprocessing the objects to be displayed and generating a color mapping table, and parsing the sub-pixel information components, the problem of limited color display configuration is solved, and fast mapping and resource saving are achieved.
Patent Information
- Application Number
- CN201911320174.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-19
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2039-12-19
AI Technical Summary
In existing technologies, the color display configuration of the object to be displayed is limited and not flexible enough, resulting in slow generation of mapping relationships and high consumption of resources and bandwidth.
The sampled objects to be displayed are preprocessed by the object processing module to generate a color mapping table for the objects to be displayed, and the color information is parsed to obtain the sub-pixel information components of the display interface. The display color is then configured on the display interface using the color generation module.
It enables the rapid generation of the mapping relationship between the object to be displayed and the color, improving the mapping speed and reducing the consumption of resources and bandwidth.
Smart Images

Figure CN113012243B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of measuring instruments, and particularly relate to a to-be-displayed object color generation system, method, device, display equipment and medium. BACKGROUND
[0002] With the development of technology, the requirements for display screens are getting higher and higher, the number of channels of test instruments is also increasing, and the number of waveform types is also increasing day by day. The configuration limitation of these colors is very obvious. In the display of display equipment, the general rule is to have a corresponding relationship between the brightness color of the to-be-displayed object to be displayed on the screen and the certain information amount of the to-be-displayed object itself.
[0003] For example, in an oscilloscope, the brightness of the to-be-displayed object is related to the probability information of the pixel point hit by the to-be-displayed object. In a spectrum analyzer, the brightness of the to-be-displayed object of the spectrum data is related to the signal amount appearing at the current frequency point within a period of time. In the prior art, the display color or brightness of the to-be-displayed object is controlled by a mapping relationship configured. SUMMARY
[0004] Embodiments of the present application provide a to-be-displayed object color generation system, method, device, display equipment and medium to realize fast generation of the mapping relationship between the to-be-displayed object and the color, improve the overall mapping speed of the to-be-displayed object and the color, and reduce the resource and bandwidth occupation.
[0005] In a first aspect, embodiments of the present application provide a to-be-displayed object color generation system, which comprises a to-be-displayed object processing module, a color setting module and a color generation module; the to-be-displayed object processing module is connected to the color generation module, and the color setting module is connected to the color generation module; wherein,
[0006] The to-be-displayed object processing module is configured to pre-process a sampled to-be-displayed object, and determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object.
[0007] The color setting module is configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information, and parse the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain a sub-pixel information component of a display interface.
[0008] The color generation module is configured to configure the display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0009] Optionally, the to-be-displayed object processing module further comprises:
[0010] a to-be-displayed object buffer unit, configured to pre-process the sampled to-be-displayed object, the pre-processing including dot or vector drawing;
[0011] an information statistical processing unit, configured to determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object.
[0012] Optionally, the color setting module further includes:
[0013] a color definition unit, configured to determine a to-be-displayed object color mapping function block based on the to-be-displayed object information and generate a to-be-displayed object color mapping table;
[0014] a color analysis unit, configured to analyze the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain sub-pixel information corresponding to pixel information of the display interface;
[0015] a coefficient calculation unit, configured to determine a sub-pixel information component of the display interface according to the sub-pixel information.
[0016] Optionally, the coefficient calculation unit is further configured to determine a coefficient of the sub-pixel information component according to a channel index of the display interface.
[0017] Optionally, the color generation module is further configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface and the coefficient of the sub-pixel information component.
[0018] In a second aspect, an embodiment of the present application further provides a to-be-displayed object color generation method, which includes:
[0019] determining to-be-displayed object information of a sampled to-be-displayed object;
[0020] generating a to-be-displayed object color mapping table based on the to-be-displayed object information;
[0021] configuring color information of the to-be-displayed object information based on the to-be-displayed object color mapping table;
[0022] analyzing the to-be-displayed object information and the color information to obtain a sub-pixel information component of a display interface;
[0023] configuring a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0024] Optionally, generating a to-be-displayed object color mapping table based on the to-be-displayed object information includes:
[0025] generating a to-be-displayed object function block of the to-be-displayed object information according to the to-be-displayed object information on the current display interface;
[0026] configuring color information of the to-be-displayed object function block based on the color information;
[0027] determining a to-be-displayed object color mapping function block according to the to-be-displayed object function block with the configured color information, the to-be-displayed object color mapping function block being used to display a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface;
[0028] obtaining the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function block, and generating a mapping relationship table according to the mapping relationship;
[0029] Optionally, the configuring of the color information of the to-be-displayed object function block based on the color information comprises:
[0030] obtaining position information generated when the color information is selected, and determining a configuration mode of the color information according to the position information;
[0031] configuring the color information of the to-be-displayed object function block based on the configuration mode.
[0032] Optionally, before the determining of the configuration mode of the color information according to the position information, the method further comprises:
[0033] determining an offset threshold of the configuration mode according to a selection interface of the color information and a color step of the color information in the selection interface.
[0034] Optionally, the obtaining of the position information generated when the color information is selected, and the determining of the configuration mode of the color information according to the position information comprises:
[0035] obtaining a position offset generated when the color information is selected according to the position information;
[0036] determining the configuration mode of the color information according to the position offset and the offset threshold.
[0037] Optionally, the determining of the configuration mode of the color information according to the position offset and the offset threshold comprises:
[0038] determining whether the position offset is less than the offset threshold, and if yes, the configuration mode is point configuration;
[0039] the configuring of the color information of the to-be-displayed object function block based on the configuration mode comprises:
[0040] The color information selected in the configuration mode of the point configuration is configured as the color information of the selected position of the to-be-displayed object function frame.
[0041] Optionally, determining the configuration mode of the color information according to the position offset and the offset threshold value comprises:
[0042] determining whether the position offset is greater than the offset threshold value, and if yes, the configuration mode is a vector configuration;
[0043] configuring the color information of the to-be-displayed object function frame based on the configuration mode comprises:
[0044] acquiring selected continuous color information in the vector configuration mode, and configuring the continuous color information as the color information of the to-be-displayed object function frame.
[0045] Optionally, before configuring the color information of the to-be-displayed object function frame based on the color information, the method further comprises:
[0046] determining whether the color information of the to-be-displayed object function frame is arranged non-uniformly, and if yes, determining a non-uniform arrangement mode of the to-be-displayed object function frame;
[0047] determining an arrangement mode of the color information in the to-be-displayed object function frame according to the non-uniform arrangement mode.
[0048] Optionally, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0049] determining the arrangement mode of the color information in the to-be-displayed object function frame according to the non-uniform arrangement mode comprises:
[0050] adjusting a proportional relationship of the color information in the to-be-displayed object function frame through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object function frame according to the proportional relationship of the color information; or,
[0051] adjusting a proportional relationship of the to-be-displayed object information in the to-be-displayed object function frame through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object function frame according to the proportional relationship of the to-be-displayed object information.
[0052] Optionally, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0053] determining the arrangement mode of the color information in the to-be-displayed object function frame according to the non-uniform arrangement mode comprises:
[0054] adjusting a proportional relationship of color information in the to-be-displayed object function box based on the color information and the to-be-displayed object information by using the recommended non-uniform arrangement mode, and determining an arrangement mode of the color information in the to-be-displayed object function box according to the proportional relationship of the color information.
[0055] Optionally, the recommended non-uniform arrangement mode includes a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0056] Optionally, before analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table to obtain the sub-pixel information component of the display interface, the method further includes:
[0057] obtaining pixel information of the display interface, and determining channel information of the display interface;
[0058] analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table to obtain the sub-pixel information component of the display interface, including:
[0059] analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table based on the pixel information and the channel information of the display interface to obtain the sub-pixel information component of the display interface.
[0060] In a third aspect, an embodiment of the present application further provides a to-be-displayed object color generation device, which includes:
[0061] an information determination module configured to determine to-be-displayed object information of the sampled to-be-displayed object;
[0062] a to-be-displayed object color mapping table generation module configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information;
[0063] a color information configuration module configured to configure color information of the to-be-displayed object information based on the to-be-displayed object color mapping table;
[0064] a sub-pixel information component determination module configured to analyze the to-be-displayed object information and the color information to obtain a sub-pixel information component of a display interface;
[0065] a color display module configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0066] In a fourth aspect, an embodiment of the present application further provides a display device, which includes:
[0067] one or more processors;
[0068] a storage device configured to store a plurality of programs,
[0069] When at least one of the plurality of programs is executed by the one or more processors, the one or more processors implement a method for generating a color of a to-be-displayed object according to the second aspect of the present application.
[0070] In the fifth aspect, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the method for generating a color of a to-be-displayed object according to the second aspect of the present application.
[0071] The technical scheme of the embodiment of the present application, the color generation system of the to-be-displayed object comprises a to-be-displayed object processing module, a color setting module and a color generation module; the to-be-displayed object processing module is connected with the color generation module, and the color setting module is connected with the color generation module; wherein the to-be-displayed object processing module is used for pre-processing a sampled to-be-displayed object, and determining to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object; the color setting module is used for generating a to-be-displayed object color mapping table based on the to-be-displayed object information, and obtaining a sub-pixel information component of a display interface by analyzing to-be-displayed object information and color information in the to-be-displayed object color mapping table; and the color generation module is used for configuring a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface. The technical scheme solves the problem that the color display configuration of the to-be-displayed object in the prior art is limited and not flexible and free, so as to realize the mapping relationship between the to-be-displayed object and the color quickly, improve the mapping speed of the to-be-displayed object and the color as a whole, and reduce the resource and bandwidth occupation. BRIEF DESCRIPTION OF DRAWINGS
[0072] Figure 1 FIG. 1 is a structural schematic diagram of a color generation system of a to-be-displayed object according to an embodiment of the present application;
[0073] Figure 2 FIG. 2 is a flowchart of a color generation method of a to-be-displayed object according to an embodiment of the present application;
[0074] Figure 3A FIG. 3 is a flowchart of a color generation method of a to-be-displayed object according to another embodiment of the present application;
[0075] Figure 3B FIG. 4 is a schematic diagram of a mapping box of waveform probability information and color information according to an embodiment of the present application;
[0076] Figure 3C FIG. 5 is a schematic diagram of a mapping box of level amplitude information and color information of an oscilloscope according to an embodiment of the present application;
[0077] Figure 3D is a schematic diagram of an exemplary to-be-displayed object color mapping frame provided by an embodiment of the present application;
[0078] Figure 3E is a schematic diagram of an exemplary sub-pixel information component and probability result provided by an embodiment of the present application;
[0079] Figure 4A is a flowchart of a to-be-displayed object color generation method provided by the fourth embodiment of the present application;
[0080] Figure 4B is a schematic diagram of point-configured to-be-displayed object color mapping frame selected position color information provided by an embodiment of the present application;
[0081] Figure 4C is a schematic diagram of point-configured to-be-displayed object color mapping frame selected position color information provided by an embodiment of the present application;
[0082] Figure 4D is a schematic diagram of vector-configured first priority color selection trajectory provided by an embodiment of the present application;
[0083] Figure 4E is a schematic diagram of vector-configured second priority color selection trajectory provided by an embodiment of the present application;
[0084] Figure 4F is a schematic diagram of vector-configured lowest priority color selection trajectory provided by an embodiment of the present application;
[0085] Figure 5A is a flowchart of a to-be-displayed object color generation method provided by the fifth embodiment of the present application;
[0086] Figure 5B is a schematic diagram of manually non-uniformly arranged to-be-displayed object interface color information adjustment result provided by an embodiment of the present application;
[0087] Figure 5C is a schematic diagram of recommended non-uniformly arranged to-be-displayed object interface color information adjustment result provided by an embodiment of the present application;
[0088] Figure 6 is a flowchart of a to-be-displayed object color generation method provided by the fourth embodiment of the present application;
[0089] Figure 7 is a flowchart of a to-be-displayed object color generation method provided by the seventh embodiment of the present application;
[0090] Figure 8 is a structure diagram of a to-be-displayed object color generation device provided by the eighth embodiment of the present application;
[0091] Figure 9 Figure 9 is a schematic diagram of a hardware structure of a display device according to an embodiment of the present application. DETAILED DESCRIPTION
[0092] In order to make the objects, technical solutions and advantages of the present application clearer, the specific embodiments of the present application will be further described in detail below with reference to the drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and not limit the present application.
[0093] It should also be noted that, for the sake of brevity, the figures are only briefly described and not all of the contents are shown in the figures. Before discussing the example embodiments in more detail, it should be mentioned that some of the example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict the operations (or steps) as sequential processes, many of the operations can be performed in parallel, concurrently or at the same time. In addition, the order of the operations can be rearranged. The processes can be terminated when their operations are completed, but can also have additional steps not included in the figures. The processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0094] Embodiment One
[0095] Figure 1 Figure 1 is a schematic diagram of a structure of a to-be-displayed object color generation system according to an embodiment of the present application. Referring to Figure 1, the to-be-displayed object color generation system 100 includes a to-be-displayed object processing module 110, a color setting module 120 and a color generation module 130. The to-be-displayed object processing module 110 is connected to the color generation module 130, and the color setting module 120 is connected to the color generation module 130. In the to-be-displayed object color generation system 100, the to-be-displayed object processing module 110 is configured to pre-process a sampled to-be-displayed object and determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object; the color setting module 120 is configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information and parse the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain a sub-pixel information component of a display interface; and the color generation module 130 is configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface. Figure 1
[0096] The to-be-displayed object processing module 110 is configured to pre-process a sampled to-be-displayed object and determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object.
[0097] The color setting module 120 is configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information and parse the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain a sub-pixel information component of a display interface.
[0098] The color generation module 130 is configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0099] The to-be-displayed object can be a waveform or a measurement trace output by a display device, which refers to a device with a display screen, including a display device in the conventional sense, such as a personal computer, and a measurement device with a display screen, which refers to an instrument that converts a measured value into an indication value for direct observation, including various types of indication instruments, recording instruments, or analysis instruments, such as a spectrum analyzer or an oscilloscope. Alternatively, the to-be-displayed object can be a waveform output by an oscilloscope or a measurement trace of a signal in a spectrum analyzer. In this embodiment, the measurement trace can be a density trace measurement in a frequency domain bitmap on a current test interface.
[0100] The to-be-displayed object information refers to specific information corresponding to the to-be-displayed object, such as probability information of an oscilloscope waveform, level information, power spectral density identification of a signal in a spectrum analyzer, and the like.
[0101] The to-be-displayed object color mapping table is a mapping table reflecting the mapping relationship between the to-be-displayed object information and the display color. It can be understood that the to-be-displayed object color mapping table is used to correspond the to-be-displayed object information and the color information in real time. The form of the to-be-displayed object color mapping table can also be various, as long as it can be directly represented.
[0102] The sub-pixel information component of the display interface is obtained by dividing the color information of a pixel point of the display interface into a plurality of sub-pixel information components according to the color space of the screen of the display device, fitting a corresponding color function curve through an approximation method, respectively calculating the corresponding sub-pixel information components, and combining the sub-pixel information components to complete the color information of the pixel point. This setting has the advantages of parallel processing, improved overall mapping speed, and reduced resource and bandwidth occupation.
[0103] Referring back to Figure 1 On the basis of the above embodiments, the to-be-displayed object processing module 110 further includes:
[0104] The to-be-displayed object caching unit 111 is configured to pre-process the sampled to-be-displayed object, and the pre-processing includes dotting or vector drawing.
[0105] The information statistical processing unit 112 is configured to determine the to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object.
[0106] Specifically, the to-be-displayed object caching unit 111 pre-processes the sampled completed to-be-displayed object. For example, the pre-processing can include, but is not limited to, dotting or vector drawing of the to-be-displayed object, and the like.
[0107] The information statistical processing unit 112 superimposes a plurality of to-be-displayed object information to form continuous data information with statistical significance, processes the statistical continuous data information, and thus determines the to-be-displayed object information of the to-be-displayed object of the sample required. For example, the waveform probability information of a plurality of waveforms is superimposed, the waveform probability information obtained by statistics is arranged to determine the final required waveform probability information.
[0108] It should be noted that in order to meet the requirements of display device hardware (such as display screen or graphics card, etc.), even in this unit, multiple processing such as data bit width, normalization, etc. are required, so as to facilitate the mapping and calculation of to-be-displayed object information to color information.
[0109] Continuing to refer to Figure 1 On the basis of the above embodiments, the color setting module 120 further comprises:
[0110] A color definition unit 121 is configured to determine a to-be-displayed object color mapping function block based on the to-be-displayed object information, and generate a to-be-displayed object color mapping table.
[0111] A color analysis unit 122 is configured to analyze the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain sub-pixel information corresponding to the pixel information of the display interface.
[0112] A coefficient calculation unit 123 is configured to determine a sub-pixel information component of the display interface according to the sub-pixel information.
[0113] The to-be-displayed object color mapping function block refers to a mapping function block of "to-be-displayed object information and color" provided by the display device to the user. For example, the user selects the waveform information of the oscilloscope as the waveform probability information, and then selects the "probability-color" mapping function block on the oscilloscope. The user selects the waveform information of the oscilloscope as the waveform level amplitude information, and then selects the "level amplitude-color" mapping function block on the oscilloscope, etc.
[0114] Specifically, the color definition unit 121 displays a preset to-be-displayed object color mapping block on the display interface of the display device, configures the color information of the to-be-displayed object interface based on the preset to-be-displayed object color mapping block, displays the mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the to-be-displayed object color mapping block, and generates a to-be-displayed object color mapping table reflecting the one-to-one mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object, thereby completing the setting.
[0115] The color analysis unit 122 is based on the color space of the display device screen display interface, analyzes the color mapping table of the to-be-displayed object, and generates sub-pixel information corresponding to the pixel information of the display interface which can be mathematically operated. Optionally, based on the RGB or HLS method in the prior art, the color information of the color mapping table of the to-be-displayed object is converted into data information, facilitating subsequent operation.
[0116] The coefficient calculation unit 123 is the content of the sub-pixel information corresponding to each pixel point of the display interface color information after analyzing the sub-pixel information, fitting the corresponding function curve, and then facilitating the subsequent fast operation. For a relatively complex color information combination, the function curve is too complex, and then the mapping corresponding display interface color information and the mapping relationship of the sub-pixel information content of each pixel point can be obtained.
[0117] Continuing to refer to Figure 1 On the basis of the above embodiments, the coefficient calculation unit 123 is also used to determine the coefficient of the sub-pixel information component according to the channel index of the display interface.
[0118] Further, based on the function coefficient group of the color information and the sub-pixel information content of the pixel point, the function coefficient group to be called is determined according to the channel index number. Optionally, the function coefficient group includes the coefficients of X\Y\Z three sub-pixel information components.
[0119] Continuing to refer to Figure 1 On the basis of the above embodiments, the color generation module 130 is also used to configure the display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface and the coefficient of the sub-pixel information component.
[0120] It can be understood that for relatively regular color information, the coefficient of the sub-pixel information component is configured by function curve operation, and for complex color information, the coefficient of the sub-pixel information component is configured by mapping, and then the display color of the sampled to-be-displayed object on the display interface is configured.
[0121] The technical scheme of the embodiment of the present application, the object-to-be-displayed color generation system comprises an object-to-be-displayed processing module, a color setting module and a color generation module; the object-to-be-displayed processing module is connected with the color generation module, and the color setting module is connected with the color generation module; wherein the object-to-be-displayed processing module is configured to pre-process a sampled object-to-be-displayed and determine object-to-be-displayed information of the sampled object-to-be-displayed according to the pre-processed sampled object-to-be-displayed; the color setting module is configured to generate an object-to-be-displayed color mapping table based on the object-to-be-displayed information and obtain sub-pixel information components of a display interface by parsing object-to-be-displayed information and color information in the object-to-be-displayed color mapping table; and the color generation module is configured to configure a display color of the sampled object-to-be-displayed on the display interface according to the sub-pixel information components of the display interface. The technical scheme solves the problem of the color display configuration limitation and inflexibility of the object-to-be-displayed in the prior art, so as to realize the rapid generation of the mapping relationship between the object-to-be-displayed and the color, improve the mapping speed of the object-to-be-displayed and the color as a whole, and reduce the resource and bandwidth occupation.
[0122] Embodiment two
[0123] Figure 2 A flowchart of an object-to-be-displayed color generation method provided for the second embodiment of the present application, the embodiment can be applicable to the case that the object-to-be-displayed and the color information displayed by the object-to-be-displayed of the display device are freely set, the method can be executed by an object-to-be-displayed color generation device, and the device can be realized in the form of software and / or hardware. Specifically, the method comprises the following steps:
[0124] S210, determining object-to-be-displayed information of a sampled object-to-be-displayed.
[0125] S220, generating an object-to-be-displayed color mapping table based on the object-to-be-displayed information.
[0126] It can be understood that after the object-to-be-displayed information is determined, an object-to-be-displayed interface to be used can be generated, so as to display the object-to-be-displayed information of the object-to-be-displayed in the object-to-be-displayed interface.
[0127] For example, the waveform probability information of an oscilloscope is taken as an example, the waveform characteristic information of a waveform to be displayed is obtained, and a corresponding waveform display interface is generated according to the waveform characteristic information.
[0128] The to-be-displayed object interface refers to providing a user with a color combination interface related to a display parameter of a display screen of a display device on a display interface of the display device, so as to include all colors and brightness ranges that can be displayed by the display screen of the display device. The to-be-displayed object interface is used for display of the to-be-displayed object when the to-be-displayed object is output. The to-be-displayed object interface is arranged on the display screen of the display device and is in an independent display layer.
[0129] S230, configuring color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0130] The color information can include various colors in the prior art, that is, enough colors, and the color information also needs to be adapted to the hardware condition of the display device itself. For example, for a display device screen supporting 256 color levels, the color information is generally 8-bit monochrome information, and the color information of RGB is 24 bits, so that at most 216 8 *2 8 *2 8 = 16777216 colors.
[0131] There are many forms of the color information, and the color information can be expressed in the form of a color wheel, a color disc, a color ring, a color rectangular frame, and the like. For example, the color disc is a color circle arranged in sequence according to 360 degrees of hue, and colors of different brightness in the same hue are generally increased in sequence from the center to the circumference to form a color circle with a regular pattern.
[0132] It can be understood that the form of the color information can also be applied to other shapes, and the embodiments of the present application are only used for explanation and illustration, but not for limitation. The different forms of the color information are selected to facilitate selection of colors meeting the hardware display screen and completion of the subsequent mapping work.
[0133] Specifically, after the color information of the to-be-displayed object is determined, the color information of the to-be-displayed object information is further confirmed based on the to-be-displayed object color mapping table, that is, the color information of the to-be-displayed object information is determined according to the color and brightness range that can be displayed by the display screen of the display device.
[0134] S240, obtaining sub-pixel information components of a display interface by analyzing the to-be-displayed object information and the color information.
[0135] Specifically, after the color information of the to-be-displayed object information is configured based on the to-be-displayed object color mapping table, that is, the color information of the to-be-displayed object is expressed in the form of a numerical value, the sub-pixel information components of the to-be-displayed object on the display interface are further determined according to the pixel information of the display interface of the display device.
[0136] It can be understood that the numerical representation of the color information representing the to-be-displayed object can be represented by using the general RGB, HLS representation method, or can be defined by the software developer as needed, facilitating subsequent color configuration.
[0137] S250, configuring the display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0138] Specifically, based on the sub-pixel information component of the display interface, the coefficient of the sub-pixel information component is determined according to the channel index of the display interface, and the display color of the sampled to-be-displayed object is configured on the display interface according to the sub-pixel information component of the display interface and the coefficient of the sub-pixel information component.
[0139] The technical scheme of the embodiment of the application determines the to-be-displayed object information of the sampled to-be-displayed object, generates a to-be-displayed object color mapping table based on the to-be-displayed object information, configures the color information of the to-be-displayed object information based on the to-be-displayed object color mapping table, parses the to-be-displayed object information and the color information to obtain the sub-pixel information component of the display interface, and configures the display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface. The technical scheme solves the problem of the color display configuration of the to-be-displayed object being limited and not flexible and free in the prior art, so as to realize the rapid generation of the mapping relationship between the to-be-displayed object and the color, improve the mapping speed of the to-be-displayed object and the color as a whole, and reduce the resource and bandwidth occupation.
[0140] Embodiment three
[0141] Figure 3A A flowchart of a to-be-displayed object color generation method provided by the third embodiment of the application. The present embodiment is optimized based on the above-mentioned embodiments.
[0142] Correspondingly, the method of the present embodiment specifically includes:
[0143] S310, determining to-be-displayed object information of a sampled to-be-displayed object.
[0144] S320, generating a to-be-displayed object function box of the to-be-displayed object information on the current display interface according to the to-be-displayed object information.
[0145] Specifically, a to-be-displayed object color mapping box is generated on the to-be-displayed object interface, the mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface is configured, and a preset to-be-displayed object color mapping box corresponding to the to-be-displayed object information is generated based on the to-be-displayed object information.
[0146] Exemplary, Figure 3B is a schematic diagram of an exemplary mapping frame of waveform probability information and color information provided by an embodiment of the present application. Referring to Figure 3B Taking the mapping frame of the waveform probability information and color information of the oscilloscope as an example, the waveform probability information and the color are uniformly distributed, that is, an interval of one waveform probability information corresponds to one color, and intervals of different waveform probability information correspond to different colors. Figure 3C is a schematic diagram of an exemplary mapping frame of level amplitude information and color information of the oscilloscope, that is, an interval of one level amplitude corresponds to one color, and intervals of different level amplitudes correspond to different colors.
[0147] It should be noted that the color mapping frame of the to-be-displayed object can be in the form of a table, an image, a relational graph, etc. that can express the mapping relationship between the color and the certain parameter to be expressed.
[0148] Figure 3D is a schematic diagram of an exemplary color mapping frame of the to-be-displayed object provided by an embodiment of the present application. Referring to Figure 3D The color mapping frame of the to-be-displayed object can be uniformly distributed or non-uniformly distributed. In the present embodiment, the level amplitude information of the oscilloscope is displayed as color A from -15v to -9v, as color B from -9v to +6v, and as color C when greater than 6v. That is, for the same waveform, it is possible to show three different colors, and thus the amplitude information of a waveform at a certain time can be intuitively observed.
[0149] In addition, it should be noted that the color mapping frame of the to-be-displayed object after the color is selected is by default uniformly distributed in proportion, for example, when four different colors are selected, the entire color mapping frame of the to-be-displayed object is distributed in proportion according to the proportion of 25% of each color. In addition, the color mapping frame of the to-be-displayed object can also support non-uniform distribution, and the non-uniform adjustment can have two optional items of intelligent recommendation and manual non-uniform adjustment.
[0150] Specifically, after the color information of the color mapping frame of the to-be-displayed object is configured, the color mapping frame of the to-be-displayed object is displayed on the to-be-displayed object interface, and meanwhile, the to-be-displayed object information is displayed on the to-be-displayed object interface according to the mapping relationship between the to-be-displayed object information and the color of the color mapping frame of the to-be-displayed object.
[0151] S330, configuring the color information of the to-be-displayed object function frame based on the color information.
[0152] S340, determine a to-be-displayed object color mapping function block according to the configured color information of the to-be-displayed object function block, the to-be-displayed object color mapping function block being used to display a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface.
[0153] S350, obtain the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function block, and generate a mapping relationship table according to the mapping relationship.
[0154] Specifically, after the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping block is determined, the color information is expressed in a numerical form, and a mapping relationship table corresponding to the to-be-displayed object information is generated and saved, so as to facilitate subsequent color configuration. The numerical expression of the color information can be a general RGB, HLS expression, which is not limited in the embodiment.
[0155] S360, configure the color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0156] S370, parse the to-be-displayed object information and the color information to obtain sub-pixel information components of the display interface.
[0157] For example, taking an RGB24 color space format supported by a display device screen display driver as an example, when the to-be-displayed object information and the color information are parsed, the RGB can be directly used, the color information configured by the user is parsed into the RGB format, and when the user selects to set all 12 channels of the display device as the color information related to the waveform probability information, and the waveform probability information has 256 levels of brightness, each channel is set with different colors, and Table 1 is a function corresponding relationship between the RGB sub-pixel information components and the to-be-displayed object color information.
[0158] Table 1: Function corresponding relationship between RGB sub-pixel information components and to-be-displayed object color information
[0159]
[0160] Optionally, taking an LCD screen as an example, the corresponding input of the LCD screen display is a ycbcr value, referring to Table 2, Table 2 is a function corresponding relationship between the LCD sub-pixel information components and the to-be-displayed object color information, and the specific input is a channel index, a color, and a brightness knob value. The conversion relationship between the corresponding ycbcr value and the RGB value is as follows, and the conversion can be directly performed from the above coefficients.
[0161] | Y| | 16| |65.738 129.057 25.06| |R|
[0162] |Cb| = |128| + (1 / 256) * |-37.945 - 74.494 112.43| * |G|
[0163] |Cr| |128| |112.439 - 94.154 - 18.28| |B|
[0164] That is: Y = 0.257 * R + 0.564 * G + 0.098 * B + 16
[0165] Cb = -0.148 * R - 0.291 * G + 0.439 * B + 128
[0166] Cr = 0.439 * R - 0.368 * G - 0.071 * B + 128
[0167] Table II: LCD sub-pixel information component and the function corresponding relationship of the color information of the object to be displayed
[0168]
[0169] S380, according to the sub-pixel information component of the display interface, the display color of the sampled object to be displayed is configured on the display interface.
[0170] Exemplarily, taking the RGB24 color space format supported by the display device screen display driver as an example, simply when the user selects to set all 12 channels of the display device as the color information related to the waveform probability information, and the waveform probability information is saved in the case of completely equal proportion brightening, the function relationship of each sub-pixel information channel is obtained. For the RGB color space, each sub-pixel information is R color component, G color component and B color component respectively, assuming that the probability of the waveform is P, and the mapping is completely equal proportion, the coefficients of each sub-pixel information component to be configured are specifically corresponding relationship of RGB sub-pixel information component and color information configuration coefficient of the object to be displayed.
[0171] Table III: corresponding relationship of RGB sub-pixel information component and color information configuration coefficient of the object to be displayed
[0172]
[0173]
[0174] It can be seen that the coefficient of each sub-pixel information component is a vector value, and corresponds to the value of RGB respectively, the vector value has only one power coefficient, that is, as shown in the above table.
[0175] Optionally, taking the LCD screen as an example, each sub-pixel information is Y color component, Cr color component and Cb color component, assuming that the probability of the waveform is P, and the complete equal proportion mapping, each sub-pixel information component needs to configure the coefficient, and the corresponding relationship of the LCD sub-pixel information component and the color information configuration coefficient of the to-be-displayed object is specifically referred to Table 4.
[0176] Table 4: Corresponding relationship of LCD sub-pixel information component and color information configuration coefficient of to-be-displayed object
[0177]
[0178]
[0179] For the YCrCb color space, the coefficient is slightly more complex, which is a function of both the power coefficient and the constant term.
[0180] For example, when judging that the waveform display is the waveform of channel 2, according to the channel 2 index, the coefficient calculation unit obtains the Y component as [174, 16], [-94, 128] and [41, 128],
[0181] The Y component is Y = 174 * P + 16
[0182] The Cr component is Cr = -94 * P + 128
[0183] The Cb component is Cb = 41 * P + 128
[0184] Different sub-pixel information parameters can be obtained, and then the complete pixel information is calculated after being combined, and the color of the to-be-displayed object can be completely displayed.
[0185] On the basis of the above embodiment, another preferred embodiment is provided, which realizes the multi-color display of a single channel, and takes the color temperature display in a specific application scenario as an example. The color temperature display reflects the distribution of the to-be-displayed object information by using the cold and warm of the color temperature of the to-be-displayed object. Taking the mapping frame of the waveform probability information and the color information of the oscilloscope as an example, the waveform with low frequency is displayed by using cold color, and the waveform with high frequency is displayed by using warm color, that is, the probability increases from blue to red color, and further, the function fitting of the sub-pixel information is performed on the waveform probability information and the color information in the RGB color space.
[0186] It can be understood that Figure 3E is an example of the sub-pixel information component and the probability result diagram provided by the embodiment of the present application, and the most common algorithm can be used for the function fitting method. After the point approximation fitting of several components of the color information is performed, three sub-pixel function curves are obtained as shown in Figure 3E .
[0187] By fitting, three sub-pixel functions can be obtained, wherein P is the probability value of the waveform:
[0188]
[0189] Therefore, the three coefficient vectors are respectively
[0190] h R =[0.0007324, 0, -80]
[0191] h G =[-0.01831, 4.6875, 0]
[0192] h B =[0.0122, -6.25, 700]
[0193] That is, for more complex color combination information, using the quadratic power function for multiplication and accumulation can complete the coefficient calculation operation.
[0194] The technical scheme of the embodiment of the present application provides rich color configuration, and in the case that the instrument hardware (display screen, display card) and the like are allowed, the most complete color configuration can be completed, whether it is RGB, HLS, HVB color space, or YCrCb, CMYK color space, the configuration can be completed through the calculation of the sub-pixel information component, the operation is simplified, and transplantation and upgrading are suitable and convenient.
[0195] Implementation four
[0196] Figure 4A A flowchart of a color control method of a to-be-displayed object provided by the fourth embodiment of the present application. The present embodiment is optimized on the basis of the above-mentioned embodiments.
[0197] Correspondingly, the method of the present embodiment specifically comprises:
[0198] S410, determining to-be-displayed object information of a to-be-displayed object sampled.
[0199] S420, generating a to-be-displayed object function box of the to-be-displayed object information on a current display interface according to the to-be-displayed object information.
[0200] S430, acquiring position information generated when the color information is selected, and determining a configuration mode of the color information according to the position information.
[0201] It can be understood that before the configuration mode of the color information is determined according to the position information, it further comprises: determining an offset threshold of the configuration mode according to a selection interface of the color information and a color step of the color information in the selection interface.
[0202] The color information selection interface is a form of color selection, and can be in the form of a color wheel, a color disc, a color ring, a color rectangular frame, or the like.
[0203] The color scale is an index standard for representing the brightness of an image, and in the present embodiment, the color scale of the color information in the selection interface is adapted to the hardware conditions of the display device itself, i.e., the configuration mode can be related to the brightness range that can be displayed on the screen of the display device.
[0204] For example, the color disc is taken as the color information selection interface, the radius of the color disc on the screen of the display device is denoted as L, the color scale in the color disc is denoted as S, and the color of the configuration mode can be calculated by the following formula.
[0205] The specific formula is:
[0206] Offset threshold value = L / 2 S *2
[0207] The position information generated when the color information is selected is obtained, and the configuration mode of the color information is determined according to the position information, including: obtaining the position information generated when the color information is selected, and determining the position offset generated when the color information is selected according to the position information; and determining the configuration mode of the color information according to the position offset and the offset threshold value.
[0208] The color information selection interface can be selected by a touch screen user gesture on the screen of the display device or by using a mouse, or can be another operation method that can select and confirm the color information displayed on the screen of the display device, and the present embodiment does not limit the color information selection interface.
[0209] The position information generated when the color information is selected refers to the position or displacement of a point or a track generated in the color information selection interface when the color information is selected. Specifically, when the color information is selected, the starting point in the color information selection interface is set as A, the position offset is generated by moving from the A point to the B point, and the position offset is compared with the offset threshold value to determine the configuration mode of the color information.
[0210] It can be understood that, according to the position offset and the offset threshold value, the configuration mode of the color information is determined, including: judging whether the position offset is less than the offset threshold value, and if so, the configuration mode is point configuration.
[0211] It can be understood that, based on the above embodiments, the configuration mode of the color information is determined according to the position offset and the offset threshold, including: judging whether the position offset is greater than the offset threshold, if yes, the configuration mode is a vector configuration.
[0212] Specifically, if the position offset is less than the offset threshold, the configuration mode is a point configuration, and if the position offset is greater than the offset threshold, the configuration mode is a vector configuration.
[0213] For example, when selecting color information, the movement of the point selected by the position corresponding to the finger in the arrow of the mouse or the gesture operation can be perceived by the screen of the display device, and if the distance of the movement (i.e. the position offset) is greater than the color, it means that more than one color information is needed in the selection of color information, and the configuration mode of the color information is a vector configuration; if the distance of the movement (i.e. the position offset) is less than the color, it means that only one color information is selected, and only one color information is obtained, and the configuration mode of the color information is a point configuration.
[0214] It should be noted that when the configuration mode of the color information is a point configuration, only the color information in the selection interface of the selected current color information needs to be configured into the color mapping box of the to-be-displayed object, and when the configuration mode of the color information is a vector configuration, all color information contained in the position movement track needs to be determined and configured as a group of color information into the color mapping box of the to-be-displayed object.
[0215] S440, configuring the color information of the to-be-displayed object function box based on the configuration mode.
[0216] The configuration mode is a point configuration, and the color information of the to-be-displayed object interface is configured based on the preset color mapping box of the to-be-displayed object and the configuration mode, including: the color information selected under the point configuration mode is obtained and configured as the color information of the selected position of the to-be-displayed object interface.
[0217] For example, taking the color information selection interface as a color wheel, Figure 4B is a schematic diagram of the embodiment provided by the present application for example of point configuration of color information of selected position of color mapping box of to-be-displayed object, color information of selected position of color mapping box of to-be-displayed object is obtained by user gesture, and the color information is configured to the selected position of the color mapping box of the to-be-displayed object, for details, see Figure 4B .
[0218] Figure 4C The embodiment provided by the present application for example of point configuration of adding new color information in the existing color mapping box of to-be-displayed object, it should be noted that after point configuration, for details, seeFigure 4B to Figure 4C In the specific process, the selected color information can be directly dragged to any position of the color information of the color mapping frame of the to-be-displayed object, and when the selection of the color information needs to be performed again, the color information needs to be added between the existing color information.
[0219] In the vector configuration mode, the color information of the to-be-displayed object interface is configured based on the preset color mapping frame of the to-be-displayed object and the configuration mode, including: acquiring selected continuous color information in the vector configuration mode, and configuring the continuous color information as the color information of the to-be-displayed object interface.
[0220] Specifically, after confirming that the configuration mode is the vector configuration, the trajectory generated in the selection interface of the color information by continuously moving the position of the selected color information needs to be fitted and corrected after the corresponding color information in the selection interface of the color information on the screen of the display device is acquired. The specific fitting and correcting method can be considered in three cases, and the fitting method is to follow the following priority principle to judge the trajectory information after trajectory blurring processing by giving priority to some most common and most practical color mapping.
[0221] Figure 4D is a schematic diagram of a first priority color selection trajectory in the vector configuration provided by the embodiment of the present application. Referring to Figure 4D As shown in the color selection interface of the color wheel, the first priority is: the color trajectory of different brightness of the same color phase, which is represented as the trajectory from the center to the circumference (or from the circumference to the center) of the color wheel, and then, as shown in the color mapping frame of the to-be-displayed object in Figure 4D , the color only has different brightness and is added to the color mapping frame of the to-be-displayed object.
[0222] Figure 4E is a schematic diagram of a second priority color selection trajectory in the vector configuration provided by the embodiment of the present application. Referring to Figure 4E As shown in the color selection interface of the color wheel, the second priority is: the color trajectory of different colors of the same brightness, which is represented as a ring with equal radius length, and then, as shown in the color mapping frame of the to-be-displayed object in Figure 4E , the color only has the same brightness and is added to the color mapping frame of the to-be-displayed object according to the different starting position and ending position.
[0223] Figure 4F is a schematic diagram of a lowest priority color selection trajectory in the vector configuration provided by the embodiment of the present application. Referring to Figure 4FAs shown, taking the color information selection interface as an example, the color wheel, the lowest priority is: no two rules are formed, the determined trajectory is found, and the trajectory is freely distributed on the color wheel. At this time, the colors passed through need to be determined one by one and stored, a color band is formed, and is configured into the color mapping box of the to-be-displayed object. Then, as shown in the color mapping box of the to-be-displayed object in the display interface, the displayed colors are also completely the same. The configured color bar will be evenly distributed (which can be defaulted to be uniform) in sequence and added to the color mapping box of the to-be-displayed object. Figure 4F
[0224] It should be noted that the color band formed after the vector configuration can be directly dragged to any position in the color mapping box of the to-be-displayed object. For example, if the color mapping box of the to-be-displayed object after the current configuration already has two colors, the new color band can be directly inserted between the two colors.
[0225] In addition, it should be noted that if the color information in the latter part of the vector configuration covers the color information in the former part, priority judgment can be performed on the two parts of color information. The priority judgment standard can be set by a person skilled in the art.
[0226] S450, determining a to-be-displayed object color mapping function box according to the to-be-displayed object function box with configured color information, the to-be-displayed object color mapping function box being used to display the mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface.
[0227] S460, obtaining the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function box, and generating a mapping relationship table according to the mapping relationship.
[0228] Specifically, after the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping box is determined, the color information is expressed in the form of a numerical value, and a mapping relationship table is generated and saved corresponding to the to-be-displayed object information for subsequent color configuration. The numerical value expression of the color information can be a general RGB or HLS expression, which is not limited in the embodiment.
[0229] S470, configuring the color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0230] S480, parsing the to-be-displayed object information and the color information to obtain a sub-pixel information component of the display interface.
[0231] S490, configuring the display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0232] The technical scheme of the embodiment of the present application provides a selection interface of color information with complete color information, and provides a preset color mapping frame of a to-be-displayed object, and according to a configuration mode, a mapping relationship between the selected color and the to-be-displayed object information which can be distinguished by different colors can be displayed on a display interface of a display device in real time. Thus, the color information of the to-be-displayed object can be freely selected, and the mapping relationship between the selected color information and the to-be-displayed object can be displayed on the display interface in real time, which facilitates user operation and improves user experience.
[0233] Embodiment five
[0234] Figure 5A A flowchart of a to-be-displayed object color control method provided by the embodiment five of the present application. The technical scheme of the embodiment of the present application is further optimized on the basis of the above-mentioned embodiments. The method of the present embodiment specifically comprises the following steps:
[0235] S510, determining to-be-displayed object information of a to-be-displayed object which is sampled.
[0236] S511, generating a to-be-displayed object function frame of the to-be-displayed object information on a current display interface according to the to-be-displayed object information.
[0237] S512, judging whether the color information of the to-be-displayed object function frame is non-uniformly arranged, and if yes, determining a non-uniform arrangement mode of the to-be-displayed object function frame.
[0238] Specifically, the color information of the to-be-displayed object interface is uniformly arranged, that is, completely linear uniform color configuration, which can be specifically referred to in Figure 3C The span of all color information corresponds to a linear relationship of the to-be-displayed object information, which can be used as a default option in general cases.
[0239] It can be understood that in order to completely freely perform the mapping relationship between the to-be-displayed object information and the color information, the embodiment of the present application can also support non-uniform distribution. The non-uniform distribution can have two options, which are a recommended non-uniform arrangement mode and a manual non-uniform arrangement mode.
[0240] S513, determining an arrangement mode of the color information in the to-be-displayed object function frame according to the non-uniform arrangement mode.
[0241] Optionally, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0242] Determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode comprises:
[0243] adjusting the proportion relationship of the color information in the to-be-displayed object interface by manual operation, and determining the arrangement mode of the color information in the to-be-displayed object interface according to the proportion relationship of the color information; or
[0244] adjusting the proportion relationship of the to-be-displayed object information in the to-be-displayed object interface by manual operation, and determining the arrangement mode of the color information in the to-be-displayed object interface according to the proportion relationship of the to-be-displayed object information.
[0245] Specifically, the manual non-uniform arrangement mode can adjust the color information in the to-be-displayed object or the proportion relationship of the to-be-displayed object information, and the embodiment does not make any limitation on this.
[0246] The manual non-uniform arrangement mode can be completed by mouse dragging or touch screen gesture operation. For example, taking the waveform probability information of an oscilloscope as an example, the manual non-uniform arrangement mode can fix the proportion of the waveform probability information, adjust the color information in the to-be-displayed object interface, or fix the color information in the to-be-displayed object interface, and adjust the proportion of the waveform probability information.
[0247] It should be noted that the manual non-uniform arrangement mode can arbitrarily change the proportion relationship of the color information, such as Figure 5B is an example of the manual non-uniform arrangement mode provided by the embodiment of the present application to adjust the color information in the to-be-displayed object interface. A person skilled in the art can use a touch screen gesture operation to enlarge the range of a certain color information in the to-be-displayed object interface, and other color ranges are still uniformly distributed. The final non-uniform distribution result is shown in Figure 5B .
[0248] Optionally, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0249] determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode, comprising:
[0250] adjusting the proportion relationship of the color information in the to-be-displayed object interface by the recommended non-uniform arrangement mode based on the color information and the to-be-displayed object information, and determining the arrangement mode of the color information in the to-be-displayed object interface according to the proportion relationship of the color information.
[0251] Specifically, the display device recommends the arrangement mode of the color information in the to-be-displayed object interface, i.e. the recommended non-uniform arrangement mode, after comprehensively analyzing the to-be-displayed object information and the color information in the to-be-displayed object interface. The distribution mode has color distribution rules familiar to those skilled in the art in big data, and also has some more traditional distribution methods.
[0252] Optionally, the recommended non-uniform arrangement mode comprises a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0253] For example, the recommended non-uniform arrangement mode is a Gaussian arrangement mode, which is implemented by a Gaussian distribution. The Gaussian distribution is also called a normal distribution. If a random variable X obeys a normal distribution with a mathematical expectation μ and a variance σ 2 , it is denoted as N(μ, σ 2 ). The probability density function is determined by the expectation value μ of the normal distribution, and the standard deviation σ determines the amplitude of the distribution. When μ = 0 and σ = 1, the normal distribution is a standard normal distribution.
[0254] Density function:
[0255]
[0256] Digital features
[0257] E(X) = μ, Var(X) = σ 2
[0258] Specifically, taking 10 colors in the to-be-displayed object interface as an example, the mapping relationship box changes before and after the non-uniform distribution method is selected, as shown in Figure 3C and Figure 5C , and Figure 5C is a schematic diagram of the result of adjusting color information in the to-be-displayed object interface according to the exemplary recommended non-uniform arrangement mode provided by the embodiment of the application.
[0259] S514, configuring color information of the to-be-displayed object function box based on color information.
[0260] S515, determining a to-be-displayed object color mapping function box according to the to-be-displayed object function box with configured color information, the to-be-displayed object color mapping function box being used to display the mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface.
[0261] S516, obtaining the mapping relationship between color information and to-be-displayed object information in the to-be-displayed object color mapping function box, and generating a mapping relationship table according to the mapping relationship.
[0262] S517, configuring color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0263] S518, obtaining sub-pixel information components of a display interface by analyzing the to-be-displayed object information and color information.
[0264] S519, configuring display colors of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0265] The technical scheme of the embodiment of the present application breaks the problem in the prior art that either knowledge of color composition needs to be mastered for configuration or the configuration is complicated and time-consuming and labor-consuming, provides rich color configuration, gives the user the greatest degree of freedom and convenience, and also provides a corresponding algorithm as support to ensure the realization of the function.
[0266] Embodiment six
[0267] Figure 6 A flowchart of a to-be-displayed object color generation method provided by the embodiment six of the present application. On the basis of the above-mentioned embodiments, the technical scheme of the embodiment of the present application is further optimized. The method of the present embodiment specifically comprises:
[0268] S610, determining to-be-displayed object information of the sampled to-be-displayed object.
[0269] S620, generating a to-be-displayed object color mapping table based on the to-be-displayed object information.
[0270] S630, configuring color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0271] S640, obtaining pixel information of the display interface and determining channel information of the display interface.
[0272] S650, analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table based on the pixel information of the display interface and the channel information to obtain a sub-pixel information component of the display interface.
[0273] S660, configuring display colors of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0274] The technical scheme of the embodiment of the present application simplifies complex operation into only simple multiplication and addition operation according to the channel information of the display interface, and can quickly and real-timely complete the operation of the sub-pixel information of the display interface and the display color of the sampled display object. Compared with the traditional method of mapping luminance into different colors and needing a large amount of storage resources to store the mapping table, the embodiment can save a large amount of resources and reduce the cost of hardware. Meanwhile, the embodiment can provide rich color configuration under the condition that the instrument hardware (display screen, display card) allows, and can complete the most complete color configuration, whether it is RGB, HLS or HVB color space, or YCrCb, CMYK color space, and the configuration can be completed through the calculation of the sub-pixel information component, the operation is simplified, and the embodiment is suitable for convenient transplantation and upgrading.
[0275] Embodiment seven
[0276] Figure 7 A flowchart of a display object color generation method is provided for the embodiment seven of the present application. On the basis of the above-mentioned embodiments, a preferred embodiment is provided. The display object color generation method comprises:
[0277] S711, starting the configuration function of the display device.
[0278] S712, obtaining the display object information of the display object, and generating the corresponding display object interface according to the display object information.
[0279] S713, configuring the color information of the display object interface based on the preset display object color mapping box, the display object color mapping box being used for configuring the mapping relationship between the display object information and the color information of the display object on the current display interface.
[0280] S714, obtaining the position information generated when the color information is selected, and determining the configuration mode of the color information according to the position information, if it is a vector configuration, executing step S715, if it is a point configuration, executing step S717.
[0281] S715, obtaining the selected continuous color information in the configuration mode of the vector configuration, and configuring the continuous color information as the color information of the display object interface.
[0282] S716, fitting algorithm, intelligently approximating the color information to the recommended trajectory, and executing step S719.
[0283] S717, configuring the color information obtained in the configuration mode of the point configuration as the color information of the selected position of the display object interface.
[0284] S718, arrange the color information selected by the point configuration in sequence one by one, and correspond to the object information to be displayed one by one, and execute step S719.
[0285] S719, judge whether the color information of the object interface to be displayed is arranged non-uniformly, if yes, execute step S720, if not, execute step S722.
[0286] S720, judge whether to recommend a non-uniform arrangement mode, if yes, recommend a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode, if not, execute step S721.
[0287] S721, determine the arrangement mode of the color information in the object interface to be displayed by manual operation.
[0288] S722, judge whether the configuration is completed, if yes, execute step S723, if not, execute step S714.
[0289] S723, complete the configuration.
[0290] The technical scheme of the embodiment of the present application can process the information in the object information to be displayed which can be distinguished by display color as color mapping relationship, and the object information to be displayed which needs to be displayed by multiple steps in the prior art can be directly perceived according to color, the corresponding rule of color information and object information to be displayed is very free, and it does not need to be one-to-one corresponding, and the corresponding of color and object information to be displayed is completed by mouse, touch screen and gesture, and the display is more intuitive and highly free. In addition, the most complete color configuration can be completed under the condition that the hardware condition of the display device (such as display screen, display card, etc.) is allowed, and the cost is not increased.
[0291] Embodiment eight
[0292] Figure 8 A structure diagram of an object color generation device provided by the embodiment eight of the present application, the embodiment can be applicable to the case that the object to be displayed and the color information of the object to be displayed of the display device are freely set.
[0293] As shown in Figure 8 the device comprises an information determining module 810, an object color mapping table generating module 820, a color information configuring module 830, a sub-pixel information component determining module 840 and a color display module 850, wherein:
[0294] The information determining module 810 is used for determining the object information of the sampled object to be displayed.
[0295] The object color mapping table generating module 820 is used for generating an object color mapping table based on the object information.
[0296] The color information configuration module 830 is configured to configure color information of the to-be-displayed object information based on the to-be-displayed object color mapping table.
[0297] The sub-pixel information component determination module 840 is configured to parse the to-be-displayed object information and the color information to obtain a sub-pixel information component of the display interface.
[0298] The color display module 850 is configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface.
[0299] The to-be-displayed object color generation apparatus of the embodiment determines to-be-displayed object information of a sampled to-be-displayed object, generates a to-be-displayed object color mapping table based on the to-be-displayed object information, configures color information of the to-be-displayed object information based on the to-be-displayed object color mapping table, parses the to-be-displayed object information and the color information to obtain a sub-pixel information component of a display interface, and configures a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface. This technical solution solves the problem of the color display configuration of a to-be-displayed object being limited and not flexible enough in the prior art, so as to quickly generate a mapping relationship between a to-be-displayed object and a color, improve the mapping speed of the to-be-displayed object and the color as a whole, and reduce the resource and bandwidth occupation.
[0300] Based on the above embodiments, the to-be-displayed object color mapping table is generated based on the to-be-displayed object information, including:
[0301] The to-be-displayed object function box of the to-be-displayed object information is generated on the current display interface according to the to-be-displayed object information.
[0302] The color information of the to-be-displayed object function box is configured based on the color information.
[0303] The to-be-displayed object color mapping function box is determined according to the to-be-displayed object function box with the configured color information, and is used to display a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface.
[0304] The mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function box is obtained, and a mapping relationship table is generated according to the mapping relationship.
[0305] Based on the above embodiments, the color information of the to-be-displayed object function box is configured based on the color information, including:
[0306] acquire position information generated when the color information is selected, and determine a configuration mode of the color information according to the position information;
[0307] configure the color information of the to-be-displayed object function block based on the configuration mode.
[0308] On the basis of the above embodiments, before acquiring the position information generated when the color information is selected, the method further comprises:
[0309] determining an offset threshold of the configuration mode according to the selection interface of the color information and a color scale of the color information in the selection interface.
[0310] On the basis of the above embodiments, acquiring the position information generated when the color information is selected, and determining a configuration mode of the color information according to the position information, comprises:
[0311] acquiring position information generated when the color information is selected, and determining a position offset generated when the color information is selected according to the position information;
[0312] determining a configuration mode of the color information according to the position offset and the offset threshold.
[0313] On the basis of the above embodiments, determining a configuration mode of the color information according to the position offset and the offset threshold, comprises:
[0314] determining whether the position offset is less than the offset threshold, and if yes, the configuration mode is point configuration;
[0315] configuring the color information of the to-be-displayed object function block based on the configuration mode, comprises:
[0316] configuring the color information selected in the point configuration mode as the color information of the selected position of the to-be-displayed object function block.
[0317] On the basis of the above embodiments, determining a configuration mode of the color information according to the position offset and the offset threshold, comprises:
[0318] determining whether the position offset is greater than the offset threshold, and if yes, the configuration mode is vector configuration;
[0319] configuring the color information of the to-be-displayed object function block based on the configuration mode, comprises:
[0320] acquiring continuous color information selected in the vector configuration mode, and configuring the continuous color information as the color information of the to-be-displayed object function block.
[0321] On the basis of the above embodiments, before the color information of the function block of the to-be-displayed object is configured based on the color information, the method further comprises:
[0322] determining whether the color information of the function block of the to-be-displayed object is arranged non-uniformly, and if yes, determining a non-uniform arrangement mode of the color information of the function block of the to-be-displayed object;
[0323] determining an arrangement mode of the color information of the function block of the to-be-displayed object according to the non-uniform arrangement mode.
[0324] On the basis of the above embodiments, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0325] determining an arrangement mode of the color information of the function block of the to-be-displayed object according to the non-uniform arrangement mode, comprises:
[0326] adjusting a proportional relationship of the color information of the function block of the to-be-displayed object through manual operation, and determining the arrangement mode of the color information of the function block of the to-be-displayed object according to the proportional relationship of the color information; or,
[0327] adjusting a proportional relationship of the to-be-displayed object information of the function block of the to-be-displayed object through manual operation, and determining the arrangement mode of the color information of the function block of the to-be-displayed object according to the proportional relationship of the to-be-displayed object information.
[0328] On the basis of the above embodiments, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0329] determining an arrangement mode of the color information of the function block of the to-be-displayed object according to the non-uniform arrangement mode, comprises:
[0330] adjusting a proportional relationship of the color information of the function block of the to-be-displayed object through the recommended non-uniform arrangement mode based on the color information and the to-be-displayed object information, and determining the arrangement mode of the color information of the function block of the to-be-displayed object according to the proportional relationship of the color information.
[0331] On the basis of the above embodiments, the recommended non-uniform arrangement mode comprises a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0332] On the basis of the above embodiments, before the to-be-displayed object information and the color information in the to-be-displayed object color mapping table are analyzed to obtain a sub-pixel information component of a display interface, the method further comprises:
[0333] obtaining pixel information of the display interface, and determining channel information of the display interface;
[0334] The display interface sub-pixel information component is obtained by analyzing the to-be-displayed object information and color information in the to-be-displayed object color mapping table, and includes:
[0335] The display interface sub-pixel information component is obtained by analyzing the to-be-displayed object information and color information in the to-be-displayed object color mapping table based on the pixel information of the display interface and the channel information.
[0336] The to-be-displayed object color generation apparatus provided in each of the above embodiments can execute the to-be-displayed object color generation method provided in any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of executing the to-be-displayed object color generation method.
[0337] Embodiment Nine
[0338] Figure 9 A structural schematic diagram of a display device provided in Embodiment Nine of the present application. Figure 9 A block diagram of an exemplary display device 912 suitable for use in implementing embodiments of the present application is shown. Figure 9 The display device 912 is merely one example and should not be taken as limiting the scope of the functionality or use of embodiments of the present application.
[0339] As shown in Figure 9 The display device 912 is in the form of a general-purpose computing device. Components of the display device 912 can include, but are not limited to, one or more processors or processing units 916, a memory 928, and a bus 918 that connects the various system components, including the system memory 928 and the processing unit 916.
[0340] The bus 918 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerator bus, a processor or local bus using any of a variety of bus architectures including an industry standard architecture (ISA), micro-channel architecture (MAC), enhanced ISA (EISA), Video Electronics Standards Association (VESA) local bus, and a peripheral component interconnect (PCI) bus.
[0341] The display device 912 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by the display device 912 and includes both volatile and non-volatile media, removable and non-removable media.
[0342] Memory 928 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 930 and / or cache memory 932. Display device 912 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 934 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 9 Not shown; usually referred to as a "hard drive"). Although Figure 9 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 918 via one or more data media interfaces. Memory 928 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.
[0343] A program / utility 940 having a set (at least one) of program modules 942 may be stored, for example, in memory 928. Such program modules 942 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 942 typically perform the functions and / or methods described in the embodiments of the present invention.
[0344] Display device 912 can also communicate with one or more external devices 914 (e.g., keyboard, pointing device, display 924, etc.), one or more devices that enable a user to interact with display device 912, and / or any device that enables display device 912 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 922. Furthermore, display device 912 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 920. As shown, network adapter 920 communicates with other modules of display device 912 via bus 918. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with display device 912, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0345] The processing unit 916 performs various function applications and data processing by running programs stored in the memory 928, such as implementing the object-to-be-displayed color generation method provided by the embodiments of the present application, which includes:
[0346] determining object-to-be-displayed information of a sampled object-to-be-displayed;
[0347] generating an object-to-be-displayed color mapping table based on the object-to-be-displayed information;
[0348] configuring color information of the object-to-be-displayed information based on the object-to-be-displayed color mapping table;
[0349] parsing the object-to-be-displayed information and the color information to obtain sub-pixel information components of a display interface;
[0350] configuring display colors of the sampled object-to-be-displayed on the display interface according to the sub-pixel information components of the display interface.
[0351] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the object-to-be-displayed color generation method provided by any of the embodiments of the present application.
[0352] Embodiment Ten
[0353] The embodiment ten of the present application also provides a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the object-to-be-displayed color generation method provided by the embodiments of the present application, which includes:
[0354] determining object-to-be-displayed information of a sampled object-to-be-displayed;
[0355] generating an object-to-be-displayed color mapping table based on the object-to-be-displayed information;
[0356] configuring color information of the object-to-be-displayed information based on the object-to-be-displayed color mapping table;
[0357] parsing the object-to-be-displayed information and the color information to obtain sub-pixel information components of a display interface;
[0358] configuring display colors of the sampled object-to-be-displayed on the display interface according to the sub-pixel information components of the display interface.
[0359] Of course, the computer readable storage medium provided by the embodiments of the present application and the computer program stored thereon are not limited to the method operations described above, and can also perform related operations in the object-to-be-displayed color generation method provided by any of the embodiments of the present application.
[0360] The computer storage medium of the embodiments of the present application can adopt any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples (non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device.
[0361] The computer readable signal medium can include a propagated data signal with computer readable program code embodied therein. The propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium can be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport program code for use by or in connection with an instruction execution system, apparatus, or device.
[0362] Program code embodied on a computer readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0363] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0364] Note that the above merely describes preferred embodiments of the present application and the principles of the technology applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, modifications and substitutions can be made without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A color generation system of an object to be displayed, characterized by, The application comprises a to-be-displayed object processing module, a color setting module and a color generating module; the to-be-displayed object processing module is connected with the color generating module, and the color setting module is connected with the color generating module; wherein, The to-be-displayed object processing module is configured to pre-process the sampled to-be-displayed object and determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object; The color setting module is configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information, and parse the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain a sub-pixel information component of a display interface; The color generating module is configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface; The color setting module further comprises: A color definition unit configured to determine a to-be-displayed object color mapping function block based on the to-be-displayed object information and generate the to-be-displayed object color mapping table; wherein the to-be-displayed object information refers to specific information corresponding to a to-be-displayed object, and the specific information is probability information, level information or power spectral density identification of a signal in a spectrum analyzer; the to-be-displayed object color mapping function block provides a mapping function block of to-be-displayed object information and color for a user of a display device; A color analysis unit configured to parse the to-be-displayed object information and color information in the to-be-displayed object color mapping table to obtain sub-pixel information corresponding to pixel information of the display interface; A coefficient calculation unit configured to determine a sub-pixel information component of the display interface according to the sub-pixel information.
2. The object color to be displayed generation system according to claim 1, characterized by, The to-be-displayed object processing module further comprises: A to-be-displayed object cache unit configured to pre-process the sampled to-be-displayed object; An information statistical processing unit configured to determine to-be-displayed object information of the sampled to-be-displayed object according to the pre-processed sampled to-be-displayed object.
3. The object color to be displayed generation system according to claim 1, characterized by, The coefficient calculation unit is further configured to determine a coefficient of the sub-pixel information component according to a channel index of the display interface.
4. The object color to be displayed generation system according to claim 3, characterized by, The color generating module is further configured to configure a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface and the coefficient of the sub-pixel information component.
5. A method of generating a color of an object to be displayed, characterized by, It comprises: Determining to-be-displayed object information of a sampled to-be-displayed object; Generating a to-be-displayed object color mapping table based on the to-be-displayed object information; Configuring color information of the to-be-displayed object information based on the to-be-displayed object color mapping table; Parsing the to-be-displayed object information and color information to obtain a sub-pixel information component of a display interface; Configuring a display color of the sampled to-be-displayed object on the display interface according to the sub-pixel information component of the display interface; Generating a to-be-displayed object color mapping table based on the to-be-displayed object information comprises: Generating a to-be-displayed object function block of the to-be-displayed object information on a current display interface according to the to-be-displayed object information; Configuring color information of the to-be-displayed object function block based on color information; determine a to-be-displayed object color mapping function block according to the to-be-displayed object function block configured with the color information, the to-be-displayed object color mapping function block being used to display a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface; obtain the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function block, and generate a mapping relationship table according to the mapping relationship.
6. The method of claim 5, wherein, configure the color information of the to-be-displayed object function block based on the color information, including: obtain position information generated when the color information is selected, and determine a configuration mode of the color information according to the position information; configure the color information of the to-be-displayed object function block based on the configuration mode; the configuration mode includes point configuration or vector configuration, wherein the point configuration is used to configure single color information, and the vector configuration mode is used to configure continuous color information.
7. The method of claim 6, wherein, Before determining the configuration mode of the color information according to the position information, the method further includes: determine an offset threshold of the configuration mode according to a selection interface of the color information and a color step of the color information in the selection interface.
8. The method of claim 7, wherein, obtain position information generated when the color information is selected, and determine a configuration mode of the color information according to the position information, including: obtain position information generated when the color information is selected, and determine a position offset generated when the color information is selected according to the position information; determine the configuration mode of the color information according to the position offset and the offset threshold.
9. The method of claim 8, wherein, determine the configuration mode of the color information according to the position offset and the offset threshold, including: determine whether the position offset is less than the offset threshold, and if yes, the configuration mode is point configuration; configure the color information of the to-be-displayed object function block based on the configuration mode, including: configure the color information selected in the point configuration mode as the color information of the selected position of the to-be-displayed object function block.
10. The method of claim 9, wherein, determine the configuration mode of the color information according to the position offset and the offset threshold, including: determine whether the position offset is greater than the offset threshold, and if yes, the configuration mode is vector configuration; configure the color information of the to-be-displayed object function block based on the configuration mode, including: obtain the continuous color information selected in the vector configuration mode, and configure the continuous color information as the color information of the to-be-displayed object function block.
11. The method of claim 5, wherein, Before configuring the color information of the to-be-displayed object function block based on the color information, the method further includes: determine whether the color information of the to-be-displayed object function block is arranged non-uniformly, and if yes, determine a non-uniform arrangement mode of the to-be-displayed object function block; determine an arrangement mode of the color information in the to-be-displayed object function block according to the non-uniform arrangement mode.
12. The method of claim 11, wherein, the non-uniform arrangement mode is a manual non-uniform arrangement mode; determine an arrangement mode of the color information in the to-be-displayed object function block according to the non-uniform arrangement mode, including: adjusting the proportion relationship of the color information in the to-be-displayed object function block through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object function block according to the proportion relationship of the color information; or adjusting the proportion relationship of the to-be-displayed object information in the to-be-displayed object function block through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object function block according to the proportion relationship of the to-be-displayed object information.
13. The method of claim 12, wherein, The non-uniform arrangement mode is a recommended non-uniform arrangement mode. The arrangement mode of the color information in the to-be-displayed object function block is determined according to the non-uniform arrangement mode, including: adjusting the proportion relationship of the color information in the to-be-displayed object function block through the recommended non-uniform arrangement mode based on the color information and the to-be-displayed object information, and determining the arrangement mode of the color information in the to-be-displayed object function block according to the proportion relationship of the color information.
14. The method of claim 13, wherein, The recommended non-uniform arrangement mode includes a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
15. The method of claim 5, wherein, Before analyzing the to-be-displayed object information and the color information to obtain the sub-pixel information component of the display interface, the method further includes: obtaining pixel information of the display interface, and determining channel information of the display interface; analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table to obtain the sub-pixel information component of the display interface, including: analyzing the to-be-displayed object information and the color information in the to-be-displayed object color mapping table based on the pixel information of the display interface and the channel information to obtain the sub-pixel information component of the display interface.
16. An object color generation apparatus to be displayed, characterized by including: an information determination module configured to determine to-be-displayed object information of a to-be-displayed object sampled; a to-be-displayed object color mapping table generation module configured to generate a to-be-displayed object color mapping table based on the to-be-displayed object information; a color information configuration module configured to configure color information of the to-be-displayed object information based on the to-be-displayed object color mapping table; a sub-pixel information component determination module configured to analyze the to-be-displayed object information and the color information to obtain a sub-pixel information component of a display interface; a color display module configured to configure a display color of the to-be-displayed object sampled on the display interface according to the sub-pixel information component of the display interface. The to-be-displayed object color mapping table generated based on the to-be-displayed object information includes: generating a to-be-displayed object function block of the to-be-displayed object information on a current display interface according to the to-be-displayed object information; configuring color information of the to-be-displayed object function block based on the color information; determining a to-be-displayed object color mapping function block according to the to-be-displayed object function block with the configured color information, the to-be-displayed object color mapping function block being used to display a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on the current display interface; obtaining the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping function block, and generating a mapping relationship table according to the mapping relationship.
17. A display device, characterized by The display device includes: one or more processors; a storage device configured to store 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 to-be-displayed object color generation method according to any one of claims 5-15.
18. A computer readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the to-be-displayed object color generation method according to any one of claims 5-15.
Citation Information
Patent Citations
Digital oscillograph and its display method
CN101131401A
Color waveform display method for digital oscilloscope
CN106841730A