A color control method and device for an object to be displayed, a display device, and a medium
By generating an interface for the object to be displayed and configuring a color mapping box, the problem of the inability to freely set the color of the object to be displayed on the display device is solved, thus enabling user-friendly color information selection and display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-19
- Publication Date
- 2026-03-20
AI Technical Summary
In existing technologies, the display color of the object to be displayed on a display device cannot be freely set due to the inherent device configuration, which leads to inconvenience for users.
By acquiring the information of the object to be displayed, a corresponding interface for the object to be displayed is generated, and color information is configured based on a preset color mapping box for the object to be displayed, thus realizing the mapping relationship between the information of the object to be displayed and the color information, supporting free selection and real-time display.
It allows users to freely select the color information of the objects to be displayed and displays the mapping relationship in real time on the display interface, thus improving the user experience.
Smart Images

Figure CN113012242B_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 control method and 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 measuring instruments, the current general rule is to correspond the 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, and 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 control method, device, display equipment and medium, so as to realize the free selection of color information of the to-be-displayed object to be displayed, and display the mapping relationship between the selected color information and the to-be-displayed object in a display interface in real time, which is convenient for user operation and improves the user's use experience.
[0005] In a first aspect, embodiments of the present application provide a to-be-displayed object color control method, which comprises:
[0006] obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information;
[0007] configuring color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box being used to configure 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;
[0008] displaying the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0009] Optionally, configuring the color information of the to-be-displayed object interface based on the preset to-be-displayed object color mapping box comprises:
[0010] obtaining position information generated when the color information is selected, and determining a configuration mode of the color information according to the position information;
[0011] configure color information of the to-be-displayed object interface based on the preset color mapping frame of the to-be-displayed object and the configuration mode.
[0012] Optionally, before determining the configuration mode of the color information according to the position information, the method further comprises:
[0013] 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.
[0014] Optionally, 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, comprising:
[0015] the position information generated when the color information is selected is obtained, and a position offset generated when the color information is selected is determined according to the position information.
[0016] determining the configuration mode of the color information according to the position offset and the offset threshold.
[0017] Optionally, the configuration mode of the color information is determined according to the position offset and the offset threshold, comprising:
[0018] determining whether the position offset is less than or equal to the offset threshold, and if so, the configuration mode is point configuration.
[0019] configure color information of the to-be-displayed object interface based on the preset color mapping frame of the to-be-displayed object and the configuration mode, comprising:
[0020] the color information selected in the point configuration mode is obtained and configured as color information of a selected position of the to-be-displayed object interface.
[0021] Optionally, the configuration mode of the color information is determined according to the position offset and the offset threshold, comprising:
[0022] determining whether the position offset is greater than or equal to the offset threshold, and if so, the configuration mode is vector configuration.
[0023] configure color information of the to-be-displayed object interface based on the preset color mapping frame of the to-be-displayed object and the configuration mode, comprising:
[0024] continuous color information selected in the vector configuration mode is obtained and configured as color information of the to-be-displayed object interface.
[0025] Optionally, before configuring the color information of the to-be-displayed object interface based on the preset color mapping frame of the to-be-displayed object, the method further comprises:
[0026] determine whether the color information of the to-be-displayed object interface is arranged non-uniformly, and if yes, determine a non-uniform arrangement mode of the to-be-displayed object interface;
[0027] determine an arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode.
[0028] Optionally, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0029] determine an arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode, including:
[0030] adjust a proportional relationship of the color information in the to-be-displayed object interface through manual operation, and determine the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the color information; or,
[0031] adjust a proportional relationship of the to-be-displayed object information in the to-be-displayed object interface through manual operation, and determine the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the to-be-displayed object information.
[0032] Optionally, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0033] determine an arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode, including:
[0034] adjust a proportional relationship of the color information in the to-be-displayed object interface through the recommended non-uniform arrangement mode based on the color information and the to-be-displayed object information, and determine the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the color information.
[0035] Optionally, the recommended non-uniform arrangement mode includes a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0036] Optionally, the method further includes:
[0037] obtain a mapping relationship of the color information and the to-be-displayed object information in the to-be-displayed object color mapping frame, and generate a mapping relationship table according to the mapping relationship.
[0038] In a second aspect, an embodiment of the present application further provides a to-be-displayed object color control device, which includes:
[0039] an interface generation module, configured to obtain to-be-displayed object information of a to-be-displayed object, and generate a corresponding to-be-displayed object interface according to the to-be-displayed object information;
[0040] The color configuration module is configured to configure color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, which is used to configure a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on a current display interface.
[0041] The interface display module is configured to display the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0042] In a third aspect, an embodiment of the present application further provides a display device, which comprises:
[0043] one or more processors;
[0044] a storage device configured to store a plurality of programs,
[0045] When at least one of the plurality of programs is executed by the one or more processors, the one or more processors are caused to implement the to-be-displayed object color control method provided in the first aspect of the present application.
[0046] In a fourth aspect, an 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 to-be-displayed object color control method provided in the first aspect of the present application.
[0047] The embodiment of the present application acquires to-be-displayed object information of a to-be-displayed object, generates a corresponding to-be-displayed object interface according to the to-be-displayed object information, configures color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, which is used to configure a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on a current display interface, and displays the to-be-displayed object information of the to-be-displayed object interface according to the configured color information. The embodiment of the present application solves the problem that the display color of a to-be-displayed object of a display device in the prior art cannot be freely set due to inherent device configuration, so that the color information of the to-be-displayed object can be freely selected, the mapping relationship between the selected color information and the to-be-displayed object is displayed in a display interface in real time, user operation is facilitated, and user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0048] FIG. 1A is a flowchart of a to-be-displayed object color control method provided in an embodiment of the present application;
[0049] FIG. 1B is a schematic diagram of an exemplary mapping box of waveform probability information and color information provided in an embodiment of the present application;
[0050] FIG. 1Cis a schematic view of an exemplary mapping frame of level amplitude information and color information of an oscilloscope provided by an embodiment of the present application;
[0051] FIG. 1D is a schematic view of an exemplary color mapping frame of a to-be-displayed object provided by an embodiment of the present application;
[0052] FIG. 2A is a flow chart of a to-be-displayed object color control method provided by an embodiment two of the present application;
[0053] FIG. 2B is a schematic view of color information of a to-be-displayed object color mapping frame selected position provided by an embodiment of the present application;
[0054] FIG. 2C is a schematic view of adding new color information in an existing to-be-displayed object color mapping frame provided by an embodiment of the present application;
[0055] FIG. 2D is a schematic view of a vector configuration first priority color selection track provided by an embodiment of the present application;
[0056] FIG. 2E is a schematic view of a vector configuration second priority color selection track provided by an embodiment of the present application;
[0057] FIG. 2F is a schematic view of a vector configuration lowest priority color selection track provided by an embodiment of the present application;
[0058] FIG. 3A is a flow chart of a to-be-displayed object color control method provided by an embodiment three of the present application;
[0059] FIG. 3B is a result schematic view of adjusting color information in a to-be-displayed object interface in an exemplary manual non-uniform arrangement manner provided by an embodiment of the present application;
[0060] FIG. 3C is a result schematic view of adjusting color information in a to-be-displayed object interface in an exemplary recommended non-uniform arrangement manner provided by an embodiment of the present application;
[0061] FIG. 4 is a flow chart of a to-be-displayed object color control method provided by an embodiment four of the present application;
[0062] FIG. 5 is a structure view of a to-be-displayed object color control device provided by an embodiment five of the present application
[0063] FIG. 6 is a hardware structure schematic view of a display device provided by an embodiment six of the present application. DETAILED DESCRIPTION
[0064] In order to make the objects, technical solutions and advantages of the present application clearer, the following further describes the specific embodiments of the present application 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.
[0065] It should also be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, rather than all the parts. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The processes can be terminated when the operations are completed, but can also have additional steps not included in the drawings. The processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.
[0066] Embodiment one
[0067] FIG. 1A A flowchart of a to-be-displayed object color control method provided for the first embodiment of the present application, the present embodiment can be applied to a display device, which can be a display device, and is particularly suitable for the case where the to-be-displayed object of the display device and the color information displayed by the to-be-displayed object are freely set. The method can be executed by a to-be-displayed object color control apparatus, which can be implemented in the form of software and / or hardware. Specifically, the method comprises the following steps:
[0068] S110, obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information.
[0069] The to-be-displayed object can be a waveform or a measurement trace output by the display device, and the display device 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. The measurement device refers to an instrument that converts a measured value into an indication value that can be directly observed, 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 the present embodiment, the measurement trace can be a density trace measurement in a frequency domain bitmap on a current test interface.
[0070] 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, etc.
[0071] The to-be-displayed interface refers to providing a user with an interface containing color combinations related to display parameters of a screen of a display device on a display interface of the display device, so as to contain all colors and brightness ranges that can be displayed by the screen of the display device. The to-be-displayed interface is used for display by the to-be-displayed object when the to-be-displayed object is output. The to-be-displayed interface is arranged on the display screen of the display device and is in an independent display layer.
[0072] Specifically, before the display color of the to-be-displayed object is controlled, to-be-displayed object information of the to-be-displayed object is first acquired, and it is determined that the to-be-displayed object information and the color information that need to be controlled can be matched, so as to distinguish the to-be-displayed object information by different colors.
[0073] It can be understood that after the to-be-displayed object information is determined, a to-be-used to-be-displayed object interface can be generated, so as to display the to-be-displayed information of the to-be-displayed object in the to-be-displayed object interface.
[0074] Exemplarily, taking waveform probability information of an oscilloscope as an example, waveform characteristic information of a to-be-displayed waveform is acquired, and a corresponding waveform display interface is generated according to the waveform characteristic information.
[0075] In S120, color information of the to-be-displayed object interface is configured based on a preset to-be-displayed object color mapping box. The to-be-displayed object color mapping box is used to configure 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.
[0076] The to-be-displayed object color mapping box refers to a mapping function box of "to-be-displayed object information and color" provided by the display device to the user. Optionally, taking waveform information of an oscilloscope as an example, if the user selects waveform information of the oscilloscope as waveform probability information, a "probability-color" mapping function box can be selected on the oscilloscope. If the user selects waveform information of the oscilloscope as waveform level amplitude information, a "level amplitude-color" mapping function box can be selected on the oscilloscope, and so on.
[0077] It can be understood that the to-be-displayed object color mapping box 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 box can also be various, as long as it can be directly represented.
[0078] Exemplarily, FIG. 1B is a schematic diagram of an example of a mapping box of waveform probability information and color information provided by an embodiment of the present application. Referring to FIG. 1B Taking the mapping box of waveform probability information and color information of an 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. FIG. 1Cis a schematic view of an exemplary mapping frame of level amplitude information and color information of an oscilloscope provided by an embodiment of the present application, that is, an interval of a level amplitude corresponds to a color, and different intervals of level amplitudes correspond to different colors.
[0079] 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 colors and certain parameters to be expressed.
[0080] FIG. 1D is a schematic view of an exemplary color mapping frame of a to-be-displayed object provided by an embodiment of the present application, referring to FIG. 1D 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 moment can be intuitively observed.
[0081] 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 conditions of the display device itself. Exemplarily, 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, and thus at most 2 8 *2 8 *2 8 = 16777216 colors.
[0082] There are many forms of color information representation, and the color wheel, the color disc, the color ring, the color rectangular frame, etc. can be used to represent the color information. Exemplarily, the color disc is taken as an example. The color disc is a color circular shape arranged in sequence according to 360 degrees of hue, and the colors of different brightness of the same hue are generally increased in sequence from the center to the circumference, forming a regular color circular shape.
[0083] It can be understood that the form of color information representation can also be applicable to other shapes, and the present embodiment is only for explanation and illustration, but not for limitation. The selection of different forms of color information representation is to facilitate the selection of color that meets the hardware display screen and to complete the subsequent mapping work.
[0084] Specifically, the color mapping frame of the to-be-displayed object 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 configured on the current display interface, and 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.
[0085] It should be further noted that for the selected color of the to-be-displayed object color mapping box, the default is uniform proportional distribution, for example, when four different colors are selected, the entire to-be-displayed object color mapping box will be distributed according to the proportion of 25% of each color. In addition, the to-be-displayed object color mapping box can also support non-uniform distribution, and the non-uniform adjustment can have two optional items of intelligent recommendation and manual non-uniform adjustment.
[0086] S130, display the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0087] Specifically, after the to-be-displayed object color mapping box is configured with color information, the to-be-displayed object color mapping box is displayed on the to-be-displayed object interface, and 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 to-be-displayed object color mapping box.
[0088] The embodiment of the application obtains to-be-displayed object information of a to-be-displayed object, generates a corresponding to-be-displayed object interface according to the to-be-displayed object information, configures color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box is used to configure 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, and display to-be-displayed object information of the to-be-displayed object interface according to the configured color information. The display color of the to-be-displayed object of the display device in the prior art cannot be freely set relying on the inherent device configuration, so that 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 is displayed in the display interface in real time, which is convenient for user operation and improves the user's use experience.
[0089] Embodiment two
[0090] FIG. 2A A flowchart of a to-be-displayed object color control method provided by the second embodiment of the application. The embodiment is optimized based on the above-mentioned embodiment.
[0091] Correspondingly, the method of the embodiment specifically includes:
[0092] S210, obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information.
[0093] S220, determining the offset threshold of the configuration mode according to the selection interface of the color information and the color scale of the color information in the selection interface.
[0094] 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.
[0095] The color scale is an index standard for representing the brightness of an image. 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.
[0096] 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 offset threshold of the configuration mode can be calculated by the following formula.
[0097] The specific formula is:
[0098] Offset threshold = L / 2 S *2
[0099] S230, obtaining position information generated when the color information is selected, and determining the configuration mode of the color information according to the position information.
[0100] The obtaining of the position information generated when the color information is selected and the determination of the configuration mode of the color information according to the position information include: obtaining a 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.
[0101] The color information selection method can be a touch screen user gesture selection on the screen of the display device or a selection using a mouse, or other similar operation methods 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 method.
[0102] 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 of the color information selection interface is set as A, the position offset is generated by moving from A to B, and the configuration mode of the color information is determined by comparing the position offset with the offset threshold.
[0103] It can be understood that, according to the position offset and the offset threshold, the configuration mode of the color information is determined, including: judging whether the position offset is less than or equal to the offset threshold, and if yes, the configuration mode is point configuration.
[0104] 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 or equal to the offset threshold, if yes, the configuration mode is a vector configuration.
[0105] Specifically, if the position offset is less than or equal to the offset threshold, the configuration mode is a point configuration, and if the position offset is greater than or equal to the offset threshold, the configuration mode is a vector configuration.
[0106] For example, when selecting color information, the movement of the point selected by the position of the mouse arrow or the finger in 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 or equal to the offset threshold, 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 or equal to the offset threshold, it means that only one color information is selected, and the configuration mode of the color information is a point configuration.
[0107] 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 into the color mapping box of the to-be-displayed object as a group of color information.
[0108] In addition, it should be noted that when the offset is equal to the offset threshold, the configuration mode is confirmed to be a point configuration or a vector configuration, which can be selected by a person skilled in the art according to the actual situation, and this embodiment only explains and describes this.
[0109] S240, configuring the color information of the to-be-displayed object interface based on the preset color mapping box of the to-be-displayed object and the configuration mode, the color mapping box of the to-be-displayed object being used to configure the mapping relationship between the to-be-displayed object information and the color information on the current display interface.
[0110] 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: configuring the color information selected in the point configuration mode as the color information of the selected position of the to-be-displayed object interface.
[0111] For example, taking a color information selection interface as a color wheel, FIG. 2Bis a schematic view of the embodiment of the present application for configuring the color information of the selected position of the color mapping frame of the to-be-displayed object by points, color information of the color wheel at the selected position is acquired by a user gesture, and the color information is configured to the selected position of the color mapping frame of the to-be-displayed object, for details, refer to FIG. 2B as shown.
[0112] FIG. 2C The schematic view of the embodiment of the present application for adding new color information in the existing color mapping frame of the to-be-displayed object by points is provided, and it should be noted that after the point configuration, for details, refer to FIG. 2B to FIG. 2C 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 color information needs to be performed again, the addition needs to be performed between the existing color information.
[0113] The configuration mode is a vector configuration, and 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 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 to-be-displayed object interface.
[0114] Specifically, after confirming that the configuration mode is a 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 correction method can be considered in three cases, and the fitting and correction 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.
[0115] FIG. 2D is a schematic view of the first priority color selection trajectory of the vector configuration provided by the embodiment of the present application. As shown in FIG. 2D , taking the color wheel as the selection interface of the color information, 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 radius position on the color wheel, and then as shown in the color mapping frame of the to-be-displayed object in FIG. 2D , the color with only different brightness is added to the color mapping frame of the to-be-displayed object.
[0116] FIG. 2E is a schematic view of the second priority color selection trajectory of the vector configuration provided by the embodiment of the present application. As shown in FIG. 2E , taking the color wheel as the selection interface of the color information, the second priority is: the color trajectory of different colors with the same brightness, which is represented as a ring with equal radius length, and then as shown in FIG. 2EAs shown in the color map box of the object to be displayed, this color is only completely identical in brightness. The color is added to the color map box of the object to be displayed according to the difference between the start and end positions.
[0117] FIG. 2F This is a schematic diagram of the lowest priority color selection trajectory for vector configuration provided in an embodiment of the present invention. See also FIG. 2F As shown, taking the color selection interface as a color wheel as an example, the lowest priority is: if the determined trajectory does not form the two patterns mentioned above, but is instead freely distributed on the color wheel, then it is necessary to determine each color passed through and store this color information to form a color band, which is then configured into the color mapping box of the object to be displayed. FIG. 2F As shown in the color map box of the object to be displayed, the colors displayed here are exactly the same. The configured color bars will be evenly distributed sequentially (the default can be uniform) and added to the color map box of the object to be displayed.
[0118] It should be noted that the color bands formed after vector configuration can be dragged directly to any position in the color map box of the object to be displayed. For example, if there are already two colors in the color map box of the object to be displayed after the current configuration, a new color band can be directly inserted between the two colors.
[0119] It should also be noted that if the color information of the later segment of the vector configuration covers the color information of the earlier segment, priority determination can be made between the two segments of color information. The criteria for priority determination can be set by those skilled in the art.
[0120] S250. Display the information of the object to be displayed on the interface according to the configured color information.
[0121] S260. Obtain the mapping relationship between the color information and the information of the object to be displayed in the color mapping box of the object to be displayed, and generate a mapping relationship table according to the mapping relationship.
[0122] Specifically, after determining the mapping relationship between the color information in the color mapping box of the object to be displayed and the information of the object to be displayed, the color information is represented numerically, and a mapping relationship table is generated and saved corresponding to the information of the object to be displayed for subsequent color configuration. The numerical representation of the color information can be the common RGB or HLS notation; this embodiment does not impose any restrictions on this.
[0123] 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.
[0124] Embodiment three
[0125] FIG. 3A A flowchart of a to-be-displayed object color control method provided by the embodiment three of the present application. The technical scheme of the embodiment of the present application is further optimized on the basis of the above-mentioned embodiment. The method of the embodiment specifically includes:
[0126] S310, obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information.
[0127] S320, judging whether the color information of the to-be-displayed object interface is non-uniformly arranged, and if yes, determining a non-uniform arrangement mode of the to-be-displayed object interface.
[0128] 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 FIG. 1C The span of all color information corresponds to a linear relationship of the to-be-displayed object information, which can be generally taken as a default option.
[0129] 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.
[0130] S330, determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode.
[0131] Optionally, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0132] Determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode includes:
[0133] adjusting the proportional 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 proportional relationship of the color information; or,
[0134] The proportion relationship of the to-be-displayed object information in the to-be-displayed object interface is adjusted manually, and the arrangement mode of the color information in the to-be-displayed object interface is determined according to the proportion relationship of the to-be-displayed object information.
[0135] 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.
[0136] The manual non-uniform arrangement mode can be completed through 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 and 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.
[0137] It should be noted that the manual non-uniform arrangement mode can change the proportion relationship of the color information at will, such as FIG. 3B 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, and the final non-uniform distribution result is shown in FIG. 3B .
[0138] Optionally, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0139] The arrangement mode of the color information in the to-be-displayed object interface is determined according to the non-uniform arrangement mode, comprising:
[0140] The proportion relationship of the color information in the to-be-displayed object interface is adjusted based on the color information and the to-be-displayed object information through the recommended non-uniform arrangement mode, and the arrangement mode of the color information in the to-be-displayed object interface is determined according to the proportion relationship of the color information.
[0141] Specifically, the display device analyzes the to-be-displayed object information and the color information in the to-be-displayed object interface and recommends the arrangement mode of the color information in the to-be-displayed object interface, i.e. the recommended non-uniform arrangement mode. The distribution mode has color distribution rules familiar to those skilled in the art in big data, and some traditional distribution methods.
[0142] Optionally, the recommended non-uniform arrangement mode includes a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0143] Exemplary, with the recommended non-uniform arrangement mode as the Gaussian arrangement mode, the Gaussian arrangement mode is realized by Gaussian distribution, Gaussian distribution is also called normal distribution (Normal distribution), if a random variable X obeys a normal distribution with a mathematical expectation μ and a variance σ 2 , denoted as N(μ,σ 2 ). The probability density function is the expected value μ of the normal distribution, which determines its position, and the standard deviation σ determines the amplitude of the distribution. When μ = 0, σ = 1, the normal distribution is the standard normal distribution.
[0144] Density function:
[0145]
[0146] Digital features
[0147] E(X) = μ, Var(X) = σ 2
[0148] Specifically, taking 10 colors in the to-be-displayed object interface as an example, the mapping relationship box changes before and after selecting the non-uniform distribution method, as shown in FIG. 1C and FIG. 3C , FIG. 3C is the result schematic diagram of the exemplary recommended non-uniform arrangement mode adjusting color information in the to-be-displayed object interface provided by the embodiment of the application.
[0149] S340, configure the color information of the to-be-displayed object interface based on the preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box is used to configure 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.
[0150] S350, display the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0151] S360, obtain the mapping relationship between the color information and the to-be-displayed object information in the to-be-displayed object color mapping box, and generate a mapping relationship table according to the mapping relationship.
[0152] The technical scheme of the embodiment of the application, by intelligently recommending the commonly used non-uniform distribution rule, is simple and convenient, breaks the problem in the prior art that either the configuration needs to master the knowledge of color composition or the configuration is complicated and time-consuming, provides rich color configuration, gives the user the maximum degree of freedom and convenience, and also provides the corresponding algorithm as support, and guarantees the realization of the function.
[0153] Embodiment four
[0154] FIG. 4A flowchart of a to-be-displayed object color control method is provided for the fourth embodiment of the present application. On the basis of the above embodiments, a preferred embodiment is provided. The to-be-displayed object color control method comprises:
[0155] S411, starting a configuration function of a display device.
[0156] S412, obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information.
[0157] S413, configuring color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box being used to configure a mapping relationship between the to-be-displayed object information and the color information of the to-be-displayed object on a current display interface.
[0158] S414, obtaining position information generated when the color information is selected, and determining a configuration mode of the color information according to the position information, if it is a vector configuration, executing step S415, if it is a point configuration, executing step S417.
[0159] S415, obtaining selected continuous color information in the configuration mode of the vector configuration, and configuring the continuous color information as the color information of the to-be-displayed object interface.
[0160] S416, fitting algorithm, intelligently approximating the color information to a recommended trajectory, executing step S419.
[0161] S417, configuring the color information obtained by selecting in the configuration mode of the point configuration as color information of a selected position of the to-be-displayed object interface.
[0162] S418, arranging the color information selected by the point configuration in sequence one by one, and corresponding to the to-be-displayed object information one by one, executing step S419.
[0163] S419, judging whether the color information of the to-be-displayed object interface is non-uniformly arranged, if yes, executing step S420, if no, executing step S422.
[0164] S420, judging whether a non-uniform arrangement mode is recommended, if yes, recommending a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode, if no, executing step S421.
[0165] S421, determining an arrangement mode of the color information in the to-be-displayed object interface through manual operation.
[0166] S422, judging whether the configuration is completed, if yes, executing step S423, if no, executing step S414.
[0167] S423、complete configuration.
[0168] The information of the to-be-displayed object monitored by the test device in the technical solution of the embodiment of the present application can be processed as a color mapping relationship, and the to-be-displayed object information that needs to be displayed through multiple operations in the prior art can be directly perceived according to colors, the corresponding rule of color information and to-be-displayed object information is very free, and one-to-one correspondence is not required, and the correspondence between colors and to-be-displayed object information is also completed through a mouse, a touch screen, and a gesture, so that display is more intuitive and highly free. In addition, in the case where the hardware conditions (such as a display screen, a display card, and the like) of a display device allow, the most complete color configuration can be completed, and the cost is not increased.
[0169] Embodiment five
[0170] FIG. 5 A structural diagram of a to-be-displayed object color control device provided for the embodiment five of the present application, and the embodiment can be applicable to the case where the color information of a to-be-displayed object and a to-be-displayed object displayed by a display device is freely set.
[0171] As shown in FIG. 5 The device includes an interface generation module 510, a color configuration module 520, and an interface display module 530, where:
[0172] The interface generation module 510 is configured to acquire to-be-displayed object information of a to-be-displayed object, and generate a corresponding to-be-displayed object interface according to the to-be-displayed object information.
[0173] The color configuration module 520 is configured to configure color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, and the to-be-displayed object color mapping box is used to configure 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.
[0174] The interface display module 530 is configured to display the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0175] The object-to-be-displayed color control apparatus of the embodiment obtains object-to-be-displayed information of an object-to-be-displayed, and generates a corresponding object-to-be-displayed interface according to the object-to-be-displayed information; configures color information of the object-to-be-displayed interface based on a preset object-to-be-displayed color mapping box, which is used to configure a mapping relationship between the object-to-be-displayed information and the color information of the object-to-be-displayed on the current display interface; and displays the object-to-be-displayed information of the object-to-be-displayed interface according to the configured color information. The object-to-be-displayed color control apparatus solves the problem that the display color of an object-to-be-displayed of a display device cannot be freely set relying on inherent device configuration in the prior art, so that the color information of the object-to-be-displayed can be freely selected, and the mapping relationship between the selected color information and the object-to-be-displayed can be displayed in a display interface in real time, which facilitates user operation and improves user experience.
[0176] On the basis of the above embodiments, the color configuration module 520 comprises:
[0177] A configuration mode determination unit is configured to obtain position information generated when the color information is selected, and determine a configuration mode of the color information according to the position information.
[0178] A color information determination unit is configured to configure color information of the object-to-be-displayed interface based on the preset object-to-be-displayed color mapping box and the configuration mode.
[0179] On the basis of the above embodiments, the apparatus further comprises:
[0180] An offset threshold value determination module is configured to determine an offset threshold value 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.
[0181] On the basis of the above embodiments, the configuration mode determination unit comprises:
[0182] A position offset determination subunit is configured to 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.
[0183] A configuration mode determination subunit is configured to determine a configuration mode of the color information according to the position offset and the offset threshold value.
[0184] On the basis of the above embodiments, the configuration mode determination subunit is specifically configured to:
[0185] determine whether the position offset is less than or equal to the offset threshold value, and if yes, the configuration mode is point configuration.
[0186] The color information determination unit is specifically configured to:
[0187] 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 interface.
[0188] On the basis of the above embodiments, the configuration mode determination subunit is specifically configured to:
[0189] determine whether the position offset is greater than or equal to the offset threshold, and if yes, the configuration mode is a vector configuration;
[0190] The color information determination unit is specifically configured to:
[0191] In the vector configuration mode, the selected continuous color information is obtained, and the continuous color information is configured as the color information of the to-be-displayed object interface.
[0192] On the basis of the above embodiments, the device further comprises:
[0193] A non-uniform arrangement mode determination module is configured to determine whether the color information of the to-be-displayed object interface is arranged in a non-uniform manner, and if yes, determine the non-uniform arrangement mode of the to-be-displayed object interface.
[0194] A color information arrangement mode determination module is configured to determine the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode.
[0195] On the basis of the above embodiments, the non-uniform arrangement mode is a manual non-uniform arrangement mode.
[0196] Determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode comprises:
[0197] adjusting the proportional relationship of the color information in the to-be-displayed object interface through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the color information; or
[0198] adjusting the proportional relationship of the to-be-displayed object information in the to-be-displayed object interface through manual operation, and determining the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the to-be-displayed object information.
[0199] On the basis of the above embodiments, the non-uniform arrangement mode is a recommended non-uniform arrangement mode.
[0200] Determining the arrangement mode of the color information in the to-be-displayed object interface according to the non-uniform arrangement mode comprises:
[0201] Adjust the proportional relationship of the color information in the to-be-displayed object interface based on the color information and the to-be-displayed object information by the recommended non-uniform arrangement mode, and determine the arrangement mode of the color information in the to-be-displayed object interface according to the proportional relationship of the color information.
[0202] On the basis of the above-mentioned embodiments, the recommended non-uniform arrangement mode comprises a Gaussian arrangement mode, a Cauchy arrangement mode or a Chi-square arrangement mode.
[0203] On the basis of the above-mentioned embodiments, the device further comprises:
[0204] A mapping relationship table generation module is configured to acquire a mapping relationship between the color information in the to-be-displayed object color mapping frame and the to-be-displayed object information, and generate a mapping relationship table according to the mapping relationship.
[0205] The to-be-displayed object color control device provided in the above-mentioned embodiments can execute the to-be-displayed object color control method provided in any embodiment of the present application, and has the corresponding function modules and beneficial effects of executing the to-be-displayed object color control method.
[0206] Embodiment six
[0207] FIG. 6 A structural schematic diagram of a display device provided in an embodiment of the present application is shown. FIG. 6 A block diagram of an exemplary display device 612 suitable for implementing an embodiment of the present application is shown. FIG. 6 The display device 612 is merely an example, and should not impose any limitation on the function and use range of the embodiments of the present application.
[0208] As shown in FIG. 6 The display device 612 is in the form of a general computing device. The components of the display device 612 can include, but are not limited to, one or more processors or processing units 616, system memory 628, and a bus 618 connecting the different system components including the system memory 628 and the processing unit 616.
[0209] The bus 618 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration bus, a processor or local bus using any of a variety of bus architectures including, for example, an industry standard architecture (ISA) bus, an Intel® micro-channel architecture (MAC) bus, an enhanced ISA bus, a video electronics standards association (VESA) local bus, and a peripheral component interconnect (PCI) bus.
[0210] Display device 612 typically includes a variety of computer system readable media. These media can be any available media that is accessible by display device 612 and includes both
[0211] Computer system 600 also includes a system memory 628, which can include read-only memory (ROM) 630 and / or random access memory (RAM) 632. Display device 612 can further include a secondary storage 634, which can include one or more of a magnetic medium, an optical medium, a tape medium and / or a flash memory. The FIG. 6 detailed description, it is to be understood that the application can be practiced with other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers and the like. FIG. 6 not shown in FIG. 6, a magnetic hard disk drive for reading from and writing to a magnetic hard disk, not shown, and an optical disk drive for reading from or writing to a removable nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, etc.), not shown. In such instances, each of the drives can be connected to the bus 618 by one or more data media interfaces. The memory 628 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
[0212] The program / utility 640, having a set (at least one) of program modules 642, can be stored in memory 628 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data, and can include an implementation of a network environment. The modules 642 are executed by the central processing unit 604, and can accomplish the various functions and / or methods of embodiments of the application as described in the detailed description.
[0213] Display device 612 can also be communicatively coupled to one or more external devices 614 such as a keyboard, a pointing device, a display 624, etc.; can further be communicatively coupled to one or more devices that enable a user to interact with display device 612; and / or be communicatively coupled to any devices (e.g., net cards, modems, etc.) that enable display device 612 to communicate with one or more other computing devices. Such communication can be facilitated by an input / output (I / O) interface 622. Still yet, display device 612 can be communicatively coupled to one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and / or the Internet) via network adapter 620. As illustrated, network adapter 620 is communicatively coupled to the other components of display device 612 via bus 618. It should be appreciated that although not shown, other hardware and / or software components that can be deployed, can include but are not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0214] Processing unit 616 performs various function applications and data processing by running programs stored in system memory 628, such as implementing a to-be-displayed object color control method provided by embodiments of the present application, which includes:
[0215] Obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information;
[0216] Configuring color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box being used to configure 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;
[0217] Displaying the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0218] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the to-be-displayed object color control method provided by any embodiment of the present application.
[0219] Embodiment seven
[0220] Embodiment seven 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 a to-be-displayed object color control method provided by embodiments of the present application, which includes:
[0221] Obtaining to-be-displayed object information of a to-be-displayed object, and generating a corresponding to-be-displayed object interface according to the to-be-displayed object information;
[0222] configure the color information of the to-be-displayed object interface based on a preset to-be-displayed object color mapping box, the to-be-displayed object color mapping box being used to configure 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;
[0223] display the to-be-displayed object information of the to-be-displayed object interface according to the configured color information.
[0224] Of course, the computer readable storage medium provided by the embodiment 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 to-be-displayed object color control method provided by any embodiment of the present application.
[0225] The computer storage medium of the embodiment 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 component, or any combination of the above. 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 disk 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 containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component.
[0226] The computer readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, in which a computer readable program code is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component.
[0227] The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0228] 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).
[0229] It is to be understood that the above description is directed to the preferred embodiments and that those skilled in the art will be able to devise various modifications which, although not specifically described herein, embody the principles of the application and are included within the spirit and scope of the application. Accordingly, while the preferred embodiments have been described above, those skilled in the art will understand that they are not to be limited to the preferred embodiments, but are to include all such embodiments falling within the scope of the application as defined by the appended claims.
Claims
1. A method for controlling the color of an object to be displayed, characterized in that, include: Obtain the object information to be displayed, and generate the corresponding object interface based on the object information; The color information of the interface of the object to be displayed is configured based on a preset color mapping frame for the object to be displayed. The color mapping frame for the object to be displayed is used to configure the mapping relationship between the object information to be displayed and the color information of the object to be displayed on the current display interface. Display the information of the object to be displayed on the interface according to the configured color information; Configure the color information of the interface of the object to be displayed based on a preset color mapping box, including: Obtain the position information generated when the color information is selected, and determine the position offset generated when the color information is selected based on the position information; determine the configuration mode of the color information based on the position offset and the offset threshold. Configure the color information of the interface of the object to be displayed based on the preset color mapping box of the object to be displayed and the configuration mode; The configuration modes include point configuration or vector configuration, wherein point configuration is used to configure single color information, and vector configuration mode is used to configure continuous color information.
2. The method according to claim 1, characterized in that, Before determining the configuration mode of the color information based on the location information, the method further includes: The offset threshold of the configuration mode is determined based on the color information selection interface and the color level of the color information in the selection interface.
3. The method according to claim 2, characterized in that, Determining the configuration mode of the color information based on the position offset and the offset threshold includes: Determine whether the position offset is less than or equal to the offset threshold; if so, the configuration mode is point configuration. Configure the color information of the interface of the object to be displayed based on the preset color mapping box of the object to be displayed and the configuration mode, including: The color information selected in the configuration mode configured at the point will be obtained and configured as the color information of the selected position on the interface of the object to be displayed.
4. The method according to claim 2, characterized in that, Determining the configuration mode of the color information based on the position offset and the offset threshold includes: Determine whether the position offset is greater than or equal to the offset threshold; if so, the configuration mode is vector configuration. Configure the color information of the interface of the object to be displayed based on the preset color mapping box of the object to be displayed and the configuration mode, including: In the configuration mode of the vector configuration, the selected continuous color information is obtained, and the continuous color information is configured as the color information of the interface of the object to be displayed.
5. The method according to claim 1, characterized in that, Before configuring the color information of the interface of the object to be displayed based on the preset color mapping box of the object to be displayed, the method further includes: Determine whether the color information of the object interface to be displayed is non-uniformly distributed; if so, determine that the object interface to be displayed adopts a non-uniform distribution method. The arrangement of color information in the interface of the object to be displayed is determined based on the non-uniform arrangement method.
6. The method according to claim 5, characterized in that, The non-uniform arrangement method is a manual non-uniform arrangement method; Determining the arrangement of color information in the interface of the object to be displayed based on the non-uniform arrangement method includes: The proportions of color information in the interface of the object to be displayed are adjusted manually, and the arrangement of color information in the interface of the object to be displayed is determined based on the proportions of color information; or, The proportions of the information of the object to be displayed in the interface are adjusted manually, and the arrangement of color information in the interface is determined based on the proportions of the information of the object to be displayed.
7. The method according to claim 6, characterized in that, The non-uniform arrangement method is the recommended non-uniform arrangement method; Determining the arrangement of color information in the interface of the object to be displayed based on the non-uniform arrangement method includes: Based on the color information and the information of the object to be displayed, the proportional relationship of the color information in the interface of the object to be displayed is adjusted by the recommended non-uniform arrangement method, and the arrangement method of the color information in the interface of the object to be displayed is determined according to the proportional relationship of the color information.
8. The method according to claim 7, characterized in that, The recommended non-uniform arrangement methods include Gaussian arrangement, Cauchy arrangement, or chi-square arrangement.
9. The method according to claim 1, characterized in that, Also includes: Obtain the mapping relationship between the color information and the information of the object to be displayed in the color mapping box of the object to be displayed, and generate a mapping relationship table based on the mapping relationship.
10. A color control device for an object to be displayed, characterized in that, include: The interface generation module is used to obtain the object information to be displayed and generate the corresponding interface of the object to be displayed based on the object information. The color configuration module is used to configure the color information of the interface of the object to be displayed based on a preset color mapping box of the object to be displayed. The color mapping box of the object to be displayed is used to configure the mapping relationship between the object information to be displayed and the color information of the object to be displayed on the current display interface. The interface display module is used to display the information of the object to be displayed in the interface according to the configured color information; The configuration mode determination unit includes: The position offset determination subunit is used to acquire the position information generated when selecting the color information, and determine the position offset generated when selecting the color information based on the position information. A configuration mode determination subunit is used to determine the configuration mode of the color information based on the position offset and the offset threshold. The configuration modes include point configuration or vector configuration, wherein point configuration is used to configure single color information, and vector configuration mode is used to configure continuous color information.
11. A display device, characterized in that, The display device includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the color control method for the object to be displayed as described in any one of claims 1-9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the color control method for the object to be displayed as described in any one of claims 1-9.
Citation Information
Patent Citations
Spectrum analyzer interface
US20130100154A1
Cited By
Color control method and apparatus for object to be displayed, measuring device, and medium
WO2021120519A1