Display Range Determination Method, Apparatus, Device, and Storage Medium
By acquiring and analyzing the brightness information of the signal to be input, determining its distribution to determine the target display range, the problem of inaccurate determination of the display range of image signal in the prior art is solved, and more accurate image signal display is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202210302694.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2042-03-25
AI Technical Summary
In the prior art, the input and output ranges of image signals are divided into limited ranges and full ranges, but the data indication nominal range information and the range to be displayed cannot be correctly represented, resulting in abnormal screens.
By acquiring the brightness information of each pixel in the signal to be input, the distribution of the brightness information is determined, and the target display range of the signal to be input is determined based on this distribution.
Accurately judge the target display range of the signal to be input, avoid screen abnormalities, and improve user experience.
Smart Images

Figure CN114675799B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display devices, and in particular, to a method, apparatus, device, and storage medium for determining a display range. Background Art
[0002] The input and output ranges of current image signals are divided into a limited range and a full range. Due to the diverse designs of notebook and desktop computer graphics cards, when a television or a monitor matches different input devices, the default range is obtained, which cannot correctly represent the data indicating the nominal range information and the display range, resulting in various picture abnormalities such as chopped bright and dark levels, or insufficient black and white.
[0003] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of the present invention is to provide a method, apparatus, device, and storage medium for determining a display range, aiming to solve the technical problem of inaccurate determination of the display range of image signals in the prior art.
[0005] To achieve the above purpose, the present invention provides a method for determining a display range, the method comprising the following steps:
[0006] When the signal to be input does not have signal nominal information, obtain the brightness information of each pixel in the signal to be input, where the signal nominal information is used to indicate the display range of the signal to be input;
[0007] Determine the distribution of the brightness information in the signal to be input;
[0008] Based on the distribution, determine the target display range of the signal to be input.
[0009] Optionally, the determining the target display range of the signal to be input based on the distribution includes:
[0010] Determine whether the distribution meets a preset condition;
[0011] When the distribution meets the preset condition, set the target display range of the signal to be input to the full range;
[0012] When the distribution does not meet the preset condition, set the target display range of the signal to be input to the limited range.
[0013] Optionally, the determining the distribution of the brightness information in the signal to be input includes:
[0014] Obtain the minimum brightness value and the maximum brightness value in the brightness information;
[0015] Divide the brightness value range into multiple brightness intervals;
[0016] Count the pixel data of the brightness information within each brightness interval;
[0017] Use the minimum brightness value, the maximum brightness value, and the pixel data within the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal. The first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located.
[0018] Optionally, the pixel data includes: the number of pixels or the pixel ratio;
[0019] The step of using the minimum brightness value, the maximum brightness value, and the pixel data within the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal includes:
[0020] Use the minimum brightness value, the maximum brightness value, and the number of pixels or the pixel ratio within the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal.
[0021] Optionally, the preset condition is:
[0022] The minimum brightness value is less than the first preset brightness threshold within the first brightness interval, or the maximum brightness value is greater than the second preset brightness threshold within the second brightness interval;
[0023] And,
[0024] The number of pixels within the first brightness interval and the second brightness interval is greater than the preset number threshold, or the pixel ratio within the first brightness interval and the second brightness interval is greater than the preset ratio threshold.
[0025] Optionally, after determining the target display range of the to-be-input signal based on the distribution, it further includes:
[0026] Judge whether the target display range is consistent with the previous display range;
[0027] When it is inconsistent with the previous display range, perform time-domain filtering on the to-be-input signal;
[0028] When the time-domain filtering meets the preset requirements, switch the display range of the to-be-input signal to the target display range.
[0029] Optionally, the step of performing time-domain filtering on the to-be-input signal includes:
[0030] Continuously determine the target display range corresponding to the to-be-input signal within a preset period;
[0031] When each of the continuously determined target display ranges is the same, it is determined that the time-domain filtering of the to-be-input signal meets the preset requirements.
[0032] In addition, to achieve the above object, the present invention also proposes a display range determination device, where the display range determination device includes:
[0033] An acquisition module, configured to acquire the brightness information of each pixel in the to-be-input signal when the to-be-input signal does not have signal nominal information, where the signal nominal information is used to indicate the display range of the to-be-input signal;
[0034] A determination module, configured to determine the distribution of the brightness information in the to-be-input signal;
[0035] The determination module is further configured to determine the target display range of the to-be-input signal based on the distribution.
[0036] In addition, to achieve the above object, the present invention also proposes a display range determination device, where the display range determination device includes: a memory, a processor, and a display range determination program stored on the memory and executable on the processor, and the display range determination program is configured to implement the steps of the display range determination method as described above.
[0037] In addition, to achieve the above object, the present invention also proposes a storage medium, where a display range determination program is stored on the storage medium, and when the display range determination program is executed by a processor, it implements the steps of the display range determination method as described above.
[0038] The present invention acquires the brightness information of each pixel in the to-be-input signal when the to-be-input signal does not have signal nominal information, where the signal nominal information is used to indicate the display range of the to-be-input signal; determines the distribution of the brightness information in the to-be-input signal; and determines the target display range of the to-be-input signal based on the distribution. By accurately judging the target display range of the to-be-input signal through the distribution, it can accurately display the display range of the image signal and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic structural diagram of a display range determination device in a hardware operating environment related to the embodiment solution of the present invention;
[0040] Figure 2 It is a schematic flowchart of the first embodiment of the display range determination method of the present invention;
[0041] Figure 3It is a schematic flowchart of the second embodiment of the display range determination method of the present invention;
[0042] Figure 4 It is a schematic flowchart of the third embodiment of the display range determination method of the present invention;
[0043] Figure 5 It is a histogram of the brightness interval of the third embodiment of the display range determination method of this embodiment;
[0044] Figure 6 It is a schematic flowchart of the fourth embodiment of the display range determination method of the present invention;
[0045] Figure 7 It is a schematic overall flowchart of an embodiment of the display range determination method of the present invention;
[0046] Figure 8 It is a structural block diagram of the first embodiment of the display range determination device of the present invention.
[0047] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] Refer to Figure 1 , Figure 1 It is a schematic structural diagram of a display range determination device, which is the hardware operating environment involved in the embodiment solution of the present invention.
[0050] As Figure 1 shown, the display range determination device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless-fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art can understand that Figure 1 the structure shown in does not constitute a limitation on the display range determination device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0052] As Figure 1 shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a display range determination program.
[0053] In Figure 1 the display range determination device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the display range determination device of the present invention may be arranged in the display range determination device. The display range determination device calls the display range determination program stored in the memory 1005 through the processor 1001 and executes the display range determination method provided by the embodiments of the present invention.
[0054] The embodiments of the present invention provide a display range determination method. Referring to Figure 2 , Figure 2 which is a schematic flowchart of the first embodiment of the display range determination method of the present invention.
[0055] In this embodiment, the display range determination method includes the following steps:
[0056] Step S10: When the input signal to be received does not have signal nominal information, obtain the brightness information of each pixel in the input signal to be received, where the signal nominal information is used to indicate the display range of the input signal to be received.
[0057] It should be noted that the execution subject of this embodiment is a display device that receives the input signal to be received, and may also be other devices that can achieve the same or similar functions. This embodiment does not make any restrictions in this regard. The present invention is applicable to the determination of the image signal display range of display devices such as televisions and monitors.
[0058] In specific implementation, the input signal to be received is an image signal of an input device connected to a display device such as a television or a monitor, and the input device may be an input device such as a graphics card of a notebook or a desktop computer that can be connected to the display device. The signal nominal information refers to the color display range of the input signal to be received carried on the input signal to be received, and the signal nominal information is the color display range that can be indicated by a measuring instrument scale or a display device. For example, if the signal nominal information is 50 - 200, it means that the color display range of the input signal to be received of the input device at this time is the limited range 50 - 200, and then the processing flow of the input signal with a limited range of colors is displayed.
[0059] It should be understood that the display range of the input signal to be processed is divided into full-range and limited-range color displays. The amplitude of the full range is 0-255, and the amplitude of the limited range is 16-235. When the input signal to be processed does not carry nominal information, it is necessary to determine the display range of the input signal to be processed. Then, the display range of the input signal to be processed can be determined by obtaining the brightness information of each pixel in the input signal to be processed.
[0060] Step S20: Determine the distribution of the brightness information in the input signal to be processed.
[0061] In this embodiment, the brightness information is the brightness information of the current screen of the input signal to be processed. The distribution of the brightness information in the input signal to be processed can be determined by different positions of the brightness information.
[0062] Step S30: Determine the target display range of the input signal to be processed based on the distribution.
[0063] It should be noted that the distribution of the brightness information can be determined according to the brightness values in the brightness information. By determining the distribution of the brightness values in the brightness information in the brightness interval, the distribution of the brightness information can be determined. It can be judged whether the distribution of the brightness information meets the preset conditions set in advance to determine the target display range of the input signal to be processed. The preset conditions can be set according to the display screen of the user or the device. This embodiment does not limit this. The target display range refers to the final display range of the input signal to be processed. The target display range can be divided into a limited range and a full range. For example, if the distribution meets the preset conditions, it can be determined that the target display range of the input signal to be processed is the full range. If the distribution does not meet the preset conditions, it is determined that the target display range of the input signal to be processed is the limited range. Or if the distribution meets the preset conditions, it is determined that the target display range of the input signal to be processed is the limited range. If the distribution does not meet the preset conditions, it is determined that the target display range of the input signal to be processed is the full range. The target display range of the input signal to be processed can be determined by the relationship between the distribution and the preset conditions, and the image signal of the display device can be displayed through the target display range.
[0064] In this embodiment, when the input signal to be processed does not have signal nominal information, the brightness information of each pixel in the input signal to be processed is obtained. The signal nominal information is used to indicate the display range of the input signal to be processed; the distribution of the brightness information in the input signal to be processed is determined; the target display range of the input signal to be processed is determined based on the distribution. By accurately judging the target display range of the input signal to be processed through the distribution, the display range of the image signal can be accurately displayed, improving the user experience.
[0065] Reference Figure 3 , Figure 3This is a flowchart diagram of the second embodiment of the display range determination method of the present invention.
[0066] Based on the above first embodiment, step S30 of the display range determination method in this embodiment specifically includes:
[0067] Step S301: Determine whether the distribution satisfies a preset condition.
[0068] It should be understood that the preset condition is a condition for judging the distribution situation set according to the display screen of the user or device. In this embodiment, the preset condition can be the relationship between the minimum brightness value, the maximum brightness value, and the preset brightness threshold in the brightness information, as well as the relationship between the number of pixels in the brightness interval and the preset number threshold, or the relationship between the pixel ratio in the brightness interval and the preset ratio threshold. By determining whether the distribution satisfies the preset condition, the target display range of the signal to be input is determined.
[0069] In this embodiment, the preset brightness threshold can be 13, 15, 238, 239, etc., the preset number threshold can be 800, 1000, etc., and the preset ratio threshold can be 0.5%, 1%, 2%, etc. This embodiment does not limit this.
[0070] Step S302: When the distribution satisfies the preset condition, set the target display range of the signal to be input to the full range.
[0071] In specific implementation, when the distribution satisfies the preset condition, for example, when the minimum brightness value in the brightness information is less than the preset brightness threshold and the number of pixels in the brightness interval is greater than the preset number threshold, it is determined that the distribution satisfies the preset condition; or when the minimum brightness value in the brightness information is less than the preset brightness threshold and the pixel ratio in the brightness interval is greater than the preset ratio threshold, it is determined that the distribution satisfies the preset condition. Or when the maximum brightness value in the brightness information is greater than the preset brightness threshold and the number of pixels in the brightness interval is greater than the preset number threshold, it is determined that the distribution satisfies the preset condition; or when the maximum brightness value in the brightness information is greater than the preset brightness threshold and the pixel ratio in the brightness interval is greater than the preset ratio threshold, it is determined that the distribution satisfies the preset condition.
[0072] It should be noted that when the distribution satisfies the preset condition, it can be determined that the target display range of the signal to be input is the full range, and then the target display range of the signal to be input is set to the full range for display.
[0073] Step S303: When the distribution does not satisfy the preset condition, set the target display range of the signal to be input to a limited range.
[0074] In this embodiment, when the minimum brightness in the brightness information is greater than or equal to the preset brightness threshold and the number of pixels within the brightness range is less than or equal to the preset number threshold, it is determined that the distribution does not meet the preset conditions; or when the minimum value in the brightness information is greater than or equal to the preset brightness threshold and the pixel ratio within the brightness range is greater than the preset ratio threshold, it is determined that the distribution does not meet the preset conditions. Or when the maximum brightness in the brightness information is less than or equal to the preset brightness threshold and the number of pixels within the brightness range is less than or equal to the preset number threshold, it is determined that the distribution does not meet the preset conditions; or when the maximum brightness in the brightness information is less than or equal to the preset brightness threshold and the pixel ratio within the brightness range is less than or equal to the preset ratio threshold, it is determined that the distribution does not meet the preset conditions.
[0075] It should be understood that when the distribution does not meet the preset conditions, it can be determined that the target display range of the signal to be input is a limited range, and then the target display range of the signal to be input is set to the limited range for display.
[0076] In this embodiment, by determining whether the distribution meets the preset conditions; when the distribution meets the preset conditions, the target display range of the signal to be input is set to the full range; when the distribution does not meet the preset conditions, the target display range of the signal to be input is set to the limited range. By setting the preset conditions to determine the target display range of the signal to be input according to the distribution of the brightness information in the signal to be input, the judgment conditions are accurate and fast, and the target display range can be quickly determined and the corresponding signal range conversion can be performed.
[0077] Reference Figure 4 , Figure 4 is the flowchart of the third embodiment of the display range determination method of the present invention.
[0078] Based on the above first and second embodiments, step S20 of the display range determination method in this embodiment specifically includes:
[0079] Step S201: Obtain the minimum brightness and the maximum brightness in the brightness information.
[0080] It should be understood that after detecting the signal to be input, the format of the signal to be input can be obtained. If the format of the signal to be input is the RGB format, the RGB format of the signal to be input is converted into the YUV format. If the format of the signal to be input is the YUV format, no conversion is required. Obtain the brightness Y information of each pixel of the signal to be input in the YUV format, and count the minimum brightness Ymin and the maximum brightness Ymax in the brightness Y information of the current screen of the signal to be input, and further determine the distribution through the minimum brightness Ymin and the maximum brightness Ymax.
[0081] Step S202: Divide the brightness value range into multiple brightness ranges.
[0082] It should be noted that the brightness value range is 0 - 255. By dividing the brightness value range, it is convenient to compare the minimum brightness value Ymin and the maximum brightness value Ymax with the intervals after the division of the brightness value range. Multiple brightness intervals refer to dividing the brightness value range of 0 - 255 into 32 brightness intervals, evenly dividing 0 - 255 into 32 parts, and it can also be divided into other numbers of brightness intervals. In this embodiment, 32 is taken as an example for illustration.
[0083] Step S203: Count the pixel data of the brightness information in each brightness interval.
[0084] In a specific implementation, the pixel data includes the number of pixels or the pixel ratio; the number of pixels refers to each pixel point in the brightness information, and the pixel ratio refers to the ratio of the pixel signals of the brightness information in each brightness interval. The number of pixels and the pixel ratio of the brightness information in each divided brightness interval can be counted. By dividing the brightness interval into 32 parts and dividing the brightness value range into 32 parts, and using a histogram for statistics, as Figure 5 shown, Figure 5 is the histogram of the brightness interval in this embodiment. By dividing the brightness value range into multiple intervals and counting the pixel data of each interval, Figure 5 in which the horizontal axis is the divided brightness interval and the vertical axis is the pixel points.
[0085] It can be understood that after dividing the brightness value range of 0 - 255, the number of pixels and the pixel ratio of the brightness information in each brightness interval can be counted.
[0086] Step S204: Use the minimum brightness value, the maximum brightness value, and the pixel data in the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal. The first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located.
[0087] It should be noted that by comparing the minimum brightness value or the maximum brightness value with a preset brightness threshold and comparing the pixel data with preset data, the comparison result is used as the distribution of the brightness information in the to-be-input signal. Correspondingly, since the pixel data includes the number of pixels or the pixel ratio, using the minimum brightness value, the maximum brightness value, and the pixel data as the distribution of the brightness information in the to-be-input signal includes: using the minimum brightness value, the maximum brightness value, and the number of pixels or the pixel ratio in the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal.
[0088] In this embodiment, the first brightness interval is the brightness interval where the minimum brightness Ymin is located, and the range of the first brightness interval is 0 - 16. The second brightness interval is the brightness interval where the maximum brightness Ymax is located, and the range of the second brightness interval is 235 - 255.
[0089] Further, by determining whether the distribution satisfies the preset conditions, the target display range of the signal to be input is finally determined. The preset conditions are as follows: the minimum brightness is less than the first preset brightness threshold within the first brightness interval, or the maximum brightness is greater than the second preset brightness threshold within the second brightness interval; and the number of pixels within the first brightness interval and the second brightness interval is greater than the preset number threshold, or the pixel ratio within the first brightness interval and the second brightness interval is greater than the preset ratio threshold.
[0090] The first preset brightness threshold is within the first brightness interval and can be 12, 13, 14, etc. In this embodiment, 13 is taken as an example for illustration. The second preset brightness threshold is within the second brightness interval and can be 237, 238, 240, etc. In this embodiment, 238 is taken as an example for illustration. The preset number threshold can be 1000, 1100, etc. In this embodiment, 1000 is taken as an example for illustration. The preset ratio threshold can be 0.5%, 1%, etc. In this embodiment, 1% is taken as an example for illustration, and this embodiment does not limit it. The number of pixels within the first brightness interval and the second brightness interval refers to the sum of the brightness pixel points in the first interval and the second interval after the brightness value range is divided. The pixel ratio within the first brightness interval and the second brightness interval refers to the sum of the brightness signal ratios of the brightness information in the first brightness interval and the second brightness interval.
[0091] When the minimum brightness Ymin is less than the first preset brightness threshold 13 and the number of pixels within the first brightness interval and the second brightness interval is greater than the preset number threshold 1000, it is determined that the distribution satisfies the preset conditions, and the target display range of the signal to be input is set to the full range; when the minimum brightness Ymin is less than the first preset brightness threshold 13 and the pixel ratio within the first brightness interval and the second brightness interval is greater than the preset ratio threshold 1%, it is determined that the distribution satisfies the preset conditions, and the target display range of the signal to be input is set to the full range; when the maximum brightness Ymax is greater than the second preset brightness threshold 238 and the number of pixels within the first brightness interval and the second brightness interval is greater than the preset number threshold 1000, it is determined that the distribution satisfies the preset conditions, and the target display range of the signal to be input is set to the full range; when the maximum brightness Ymax is greater than the second preset brightness threshold 238 and the pixel ratio within the first brightness interval and the second brightness interval is greater than the preset ratio threshold 1%, it is determined that the distribution satisfies the preset conditions, and the target display range of the signal to be input is set to the full range.
[0092] When the distribution does not meet the preset conditions, set the target display range of the signal to be input as a limited range.
[0093] In this embodiment, the minimum brightness value and the maximum brightness value in the brightness information are obtained; the brightness value range is divided into multiple brightness intervals; the pixel data of the brightness information within each brightness interval is counted; the minimum brightness value, the maximum brightness value, and the pixel data within the first brightness interval and the second brightness interval are used as the distribution of the brightness information in the signal to be input, where the first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located. By dividing the brightness value range into multiple brightness intervals and performing statistics based on the minimum brightness value, the maximum brightness value, and the brightness intervals, the target display range of the image frame of the signal to be input can be quickly and accurately determined according to the statistical information, and the corresponding signal range conversion can be performed, facilitating the quick and accurate display of the input image frame.
[0094] Reference Figure 6 , Figure 6 Schematic flowchart of the fourth embodiment of the display range determination method of the present invention.
[0095] Based on the above first embodiment, after the step S30 of the display range determination method in this embodiment, it further includes:
[0096] Step S31: Determine whether the target display range is the same as the previous display range.
[0097] It should be understood that to avoid misjudgment of the determination of the target display range caused by signal fluctuations, the target display range of the signal to be input can be obtained. The previous display range of the signal to be input refers to the target display range of the signal to be input obtained at the previous moment. When determining the target display range of the signal to be input, a time period can be set to recalculate and determine the target display range of the signal to be input. The time period can be 1 s, 5 s, etc., and this embodiment does not limit this. By comparing the target display range with the previous display range, it is determined whether the target display range is the same as the previous display range. When the target display range is the same as the previous display range, the target display range is used as the final display range, and the signal range conversion is performed on the target display range.
[0098] Step S32: When it is inconsistent with the previous display range, perform time-domain filtering on the signal to be input.
[0099] In a specific implementation, time-domain filtering refers to statistically comparing the target display ranges of the signal to be input multiple times. For example, the target display range of the signal to be input is statistically calculated every 1 s, and the statistically calculated target display ranges are compared. When the target display range is inconsistent with the previous display range, it may be that false signal fluctuations have affected the judgment, and thus it is necessary to further determine the specific target display range. Correspondingly, performing time-domain filtering on the signal to be input includes: continuously determining the target display range corresponding to the signal to be input within a preset period; when each of the continuously determined target display ranges is consistent, it is determined that the time-domain filtering of the signal to be input meets the preset requirements.
[0100] The preset period can be set by the staff before making a judgment, such as 1 s, 5 s, etc., and this embodiment does not limit the comparison. Among the continuously determined target display ranges corresponding to the signal to be input, the number of continuous times can be 3 times, 5 times, etc., and this embodiment does not limit this. For example, within 5 s, the target display ranges corresponding to the signal to be input are continuously statistically calculated 5 times, and each of the target display ranges in the 5 continuous statistical calculations is compared. When each of the target display ranges of the signal to be input in each of the 5 continuous statistical calculations is consistent, it can be determined that the time-domain filtering of the signal to be input meets the preset requirements, and at this time, the target display range is the final display range.
[0101] Step S33: When the time-domain filtering meets the preset requirements, switch the display range of the signal to be input to the target display range.
[0102] The preset requirements are the requirements set by the staff for performing time-domain filtering on the signal to be input. For example, the target display ranges of the signal to be input are continuously statistically calculated 3 times. When each of the target display ranges in the 3 statistical calculations is consistent, it is determined that the time-domain filtering meets the preset requirements. After the time-domain filtering meets the preset requirements, the final display range of the signal to be input can be determined as the target display range, and the display range of the signal to be input can be switched to the target display range for display.
[0103] In this embodiment, by judging whether the target display range is consistent with the previous display range; when it is inconsistent with the previous display range, performing time-domain filtering on the signal to be input; when the time-domain filtering meets the preset requirements, switching the display range of the signal to be input to the target display range, by performing time-domain filtering on the signal to be input, false judgment caused by signal fluctuations of the signal to be input on the determination of the display range is avoided, and the accuracy of the determination of the display range of the signal to be input is improved.
[0104] As Figure 7 shown, Figure 7This is a schematic diagram of the overall process of the display range determination method of the present invention. By obtaining the image information of the signal to be input, it is determined whether the signal to be input carries signal nominal information. When the signal to be input does not carry signal nominal information, the display range of the signal to be input is determined. The brightness information of each pixel in the signal to be input can be obtained, and the distribution of the brightness information in the signal to be input is determined. According to the distribution, it is determined whether the target display range of the signal to be input is the full range or the limited range. When the signal to be input carries signal nominal information, the display range of the signal to be input can be determined as the full range or the limited range according to the signal nominal information, and different processing procedures are performed for the full range or the limited range according to the specific display range of the signal to be input.
[0105] Refer to Figure 8 , Figure 8 This is a structural block diagram of the first embodiment of the display range determination device of the present invention.
[0106] As Figure 8 shown, the display range determination device proposed in the embodiment of the present invention includes:
[0107] An acquisition module 10, configured to acquire the brightness information of each pixel in the signal to be input when the signal to be input does not have signal nominal information, where the signal nominal information is used to indicate the display range of the signal to be input.
[0108] A determination module 20, configured to determine the distribution of the brightness information in the signal to be input.
[0109] The determination module 20 is further configured to determine the target display range of the signal to be input based on the distribution.
[0110] In this embodiment, when the signal to be input does not have signal nominal information, the brightness information of each pixel in the signal to be input is acquired, where the signal nominal information is used to indicate the display range of the signal to be input; the distribution of the brightness information in the signal to be input is determined; the target display range of the signal to be input is determined based on the distribution. By accurately judging the target display range of the signal to be input through the distribution, the output range of the image can be accurately displayed, improving the user experience.
[0111] In one embodiment, the determination module 20 is further configured to determine whether the distribution meets a preset condition; when the distribution meets the preset condition, set the target display range of the signal to be input as the full range; when the distribution does not meet the preset condition, set the target display range of the signal to be input as the limited range.
[0112] In one embodiment, the determining module 20 is further configured to obtain the minimum brightness value and the maximum brightness value in the brightness information; divide the brightness value range into multiple brightness intervals; count the pixel data in each brightness interval of the brightness information; and use the minimum brightness value, the maximum brightness value, and the pixel data in the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal, where the first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located.
[0113] In one embodiment, the pixel data includes: the number of pixels or the pixel ratio; the determining module 20 is further configured to use the minimum brightness value, the maximum brightness value, and the number of pixels or the pixel ratio in the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal.
[0114] In one embodiment, the preset condition is that the minimum brightness value is less than the first preset brightness threshold in the first brightness interval, or the maximum brightness value is greater than the second preset brightness threshold in the second brightness interval; and the number of pixels in the first brightness interval and the second brightness interval is greater than the preset number threshold, or the pixel ratio in the first brightness interval and the second brightness interval is greater than the preset ratio threshold.
[0115] In one embodiment, the determining module 20 is further configured to determine whether the target display range is consistent with the previous display range; when it is inconsistent with the previous display range, perform time-domain filtering on the to-be-input signal; and when the time-domain filtering meets the preset requirements, switch the display range of the to-be-input signal to the target display range.
[0116] In one embodiment, the determining module 20 is further configured to continuously determine the target display range corresponding to the to-be-input signal within a preset period; when each continuously determined target display range is consistent, it is determined that the time-domain filtering of the to-be-input signal meets the preset requirements.
[0117] In addition, to achieve the above object, the present invention further provides a display range determination device, where the display range determination device includes: a memory, a processor, and a display range determination program stored on the memory and executable on the processor, and the display range determination program is configured to implement the steps of the display range determination method as described above.
[0118] Since the display range determination device adopts all the technical solutions of the above all embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be elaborated herein one by one.
[0119] In addition, an embodiment of the present invention further provides a storage medium, on which a display range determination program is stored. When the display range determination program is executed by a processor, the steps of the display range determination method described above are implemented.
[0120] Since this storage medium adopts all the technical solutions of the above-mentioned all embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be elaborated here one by one.
[0121] It should be understood that the above is only for illustration and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can set according to needs, and the present invention does not limit this.
[0122] It should be noted that the above-described work process is only illustrative and does not limit the protection scope of the present invention. In actual applications, those skilled in the art can select some or all of them according to actual needs to achieve the purpose of the solution of this embodiment, and there is no limitation here.
[0123] In addition, for the technical details not described in detail in this embodiment, reference can be made to the display range determination method provided in any embodiment of the present invention, which will not be elaborated here.
[0124] In addition, it should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including that element.
[0125] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
[0126] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0127] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.
Claims
1. A method for determining a display range, characterized in that, the method for determining a display range includes: when the input signal does not have signal nominal information, obtaining the brightness information of each pixel in the input signal, where the signal nominal information is used to indicate the display range of the input signal, and the display range includes full range and limited range color displays; determining the distribution of the brightness information in the input signal; determining the target display range of the input signal based on the distribution; the determining the distribution of the brightness information in the input signal includes: obtaining the minimum brightness value and the maximum brightness value in the brightness information; dividing the brightness value range into multiple brightness intervals; counting the pixel data of the brightness information in each brightness interval; taking the minimum brightness value, the maximum brightness value, and the pixel data in the first brightness interval and the second brightness interval as the distribution of the brightness information in the input signal, where the first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located.
2. The method for determining a display range according to claim 1, characterized in that, the determining the target display range of the input signal based on the distribution includes: determining whether the distribution meets a preset condition; when the distribution meets the preset condition, setting the target display range of the input signal to the full range; when the distribution does not meet the preset condition, setting the target display range of the input signal to the limited range.
3. The method for determining a display range according to claim 2, characterized in that, the pixel data includes: the number of pixels or the pixel ratio; the taking the minimum brightness value, the maximum brightness value, and the pixel data in the first brightness interval and the second brightness interval as the distribution of the brightness information in the input signal includes: taking the minimum brightness value, the maximum brightness value, and the number of pixels or the pixel ratio in the first brightness interval and the second brightness interval as the distribution of the brightness information in the input signal.
4. The method for determining a display range according to claim 3, characterized in that, the preset condition is: the minimum brightness value is less than the first preset brightness threshold in the first brightness interval, or, the maximum brightness value is greater than the second preset brightness threshold in the second brightness interval; and, the number of pixels in the first brightness interval and the second brightness interval is greater than the preset number threshold, or, the pixel ratio in the first brightness interval and the second brightness interval is greater than the preset ratio threshold.
5. The method for determining a display range according to any one of claims 1-4, characterized in that, after determining the target display range of the input signal based on the distribution, it further includes: judging whether the target display range is consistent with the previous display range; when it is inconsistent with the previous display range, performing time-domain filtering on the input signal; when the time-domain filtering meets the preset requirements, switching the display range of the input signal to the target display range.
6. The display range determination method according to claim 5, wherein, the time-domain filtering of the to-be-input signal includes: continuously determining a target display range corresponding to the to-be-input signal within a preset period; when each continuously determined target display range is the same, it is determined that the time-domain filtering of the to-be-input signal meets the preset requirements.
7. A display range determination device, wherein, the display range determination device includes: an acquisition module, configured to acquire the brightness information of each pixel in the to-be-input signal when the to-be-input signal does not have signal nominal information, where the signal nominal information is used to indicate the display range of the to-be-input signal, and the display range includes full-range and limited-range color displays; a determination module, configured to determine the distribution of the brightness information in the to-be-input signal; the determination module is further configured to determine the target display range of the to-be-input signal based on the distribution; the determination module is further configured to obtain the minimum brightness value and the maximum brightness value in the brightness information; divide the brightness value range into multiple brightness intervals; count the pixel data of the brightness information in each brightness interval; and use the minimum brightness value, the maximum brightness value, and the pixel data in the first brightness interval and the second brightness interval as the distribution of the brightness information in the to-be-input signal, where the first brightness interval is the brightness interval where the minimum brightness value is located, and the second brightness interval is the brightness interval where the maximum brightness value is located.
8. A display range determination device, wherein, the display range determination device includes: a memory, a processor, and a display range determination program stored on the memory and executable on the processor, and the display range determination program is configured to implement the display range determination method according to any one of claims 1 to 6.
9. A storage medium, wherein, a display range determination program is stored on the storage medium, and when the display range determination program is executed by a processor, it implements the display range determination method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for judging quantization range of digital image
CN106331692A