The present application is based upon International Application No. PCT/CN2021/118596, filed on Sep. 15, 2021, and the entire contents thereof are incorporated herein by reference.
The present disclosure relates to the field of image technology, and in particular. to an image display method, an image display device, a computer-readable storage medium, and an electronic device.
With the development of image technology, images can be displayed not only in one screen, but also in a stacked screen with two upper and lower screens.
In the related art, the display of the image in the stacked screen is realized by splitting the image data into two parts of data, and displaying the first part of the data in one screen of the stacked screen and displaying the second part of the data in the other screen of the stacked screen.
It should be noted that, information disclosed in the above background portion is provided only for better understanding of the background of the present disclosure, and thus it may contain information that does not form the prior art known by those ordinary skilled in the art.
The present disclosure provides a picture display method, a picture display device, a computer-readable storage medium, and an electronic device.
The present disclosure provides an image display method, including:
In an exemplarily embodiment of the present disclosure, the target region includes at least two row regions, and the obtaining the initial sampling value of the first screen according to the image data includes:
In an exemplarily embodiment of the present disclosure, the obtaining the previous row correction value corresponding to the row region and the current row sampling value corresponding to the row region according to the first calculation result and the second calculation result includes:
In an exemplarily embodiment of the present disclosure, the method further includes:
In an exemplarily embodiment of the present disclosure, the correcting the current region sampling value in the target region sampling value to obtain the first data includes:
In an exemplarily embodiment of the present disclosure, the determining the previous region correction value having the mapping relationship with the target region sampling value includes:
In an exemplarily embodiment of the present disclosure, the obtaining the region sampling value of the target region in the first screen according to the comparison result includes:
The present disclosure provides an image display device, including:
The present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the above the image display method is implemented.
The present disclosure provides an electronic device, including: a processor; and a memory configured to store executable instructions for the processor, wherein the processor is configured to perform any one of the above image display method by executing the executable instructions.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms “a”, “an”, “the” and “said” are used in this specification to indicate the presence of one or more elements/components/etc.; the terms “include” and “have” are used to indicate open-ended inclusive and means that additional elements/components/etc. may be present in addition to the listed elements/components/etc.; and the terms “first” and “second” etc. are used only as labels, not for limiting the number of its objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily correspond to physically or logically separate entities.
In view of the problems existing in the related art, the present disclosure proposes an image display method.
Step S110, obtaining image data of a target image, and obtaining an initial sampling value of a first screen according to the image data, wherein the initial sampling value includes region sampling values of at least two target regions in the first screen, and the region sampling values include a previous region correction value and a current region sampling value.
Step S120, correcting the current region sampling value in a target region sampling value, based on a mapping relationship between the previous region correction value and the target region sampling value, to obtain first data.
Step S130, determining second data corresponding to a second screen according to the first data, to realize displaying of the target image in a stacked screen according to the first data and the second data, wherein the stacked screen is formed by the first screen and the second screen in an overlapped manner.
In the method and device provided by the exemplary embodiments of the present disclosure, according to the mapping relationship between the previous region correction value and the target region sampling value, the current region sampling value in the target region sampling value is corrected, avoiding the problem existing in the related art that due to the irregular distribution of pixels on the first screen, the image edge appears jagged during the image display process, which improves the image display effect and further improves the user's experience of viewing the image.
Hereinafter, each step of the image display method will be described in detail.
In step S110, image data of a target image is obtained, and an initial sampling value of a first screen is obtained according to the image data, wherein the initial sampling value includes region sampling values of at least two target regions in the first screen, and the region sampling values include a previous region correction value and a current region sampling value.
In the exemplary embodiment of the present disclosure, the target image is the image displayed on the staked screen, and correspondingly, the image data is the color data of the target image. Specifically, the image data may be decimal data, or may be binary data, or may also be hexadecimal data, which is not particularly limited in this exemplary embodiment.
The stacked screen is a screen formed by two upper and lower screens overlapping. Specifically, the stacked screen can be disposed on a mobile terminal, a computer, or any required device. The exemplary embodiment does not make any special limitation on this. In the embodiment, the lower screen is the first screen, and the upper screen is the second screen. Based on this, since there are two screens in the stacked screen, the image data is split into two pieces of data, wherein the first data is displayed on the first screen and the second data is displayed on the second screen, so that the target image is displayed on the stacked screen. The initial sampling value refers to the initial value of the first data.
It should be noted that the first screen can be divided into at least two target regions in the vertical direction. Based on this, the initial sampling values include the region sampling values of at least two target regions, and the region sampling values specifically include two values, one is the previous region correction value, and the other is the current region sampling value. The previous region correction value is used to correct the current region sampling value of the previous target region in the vertical direction of the current target region. The current region sampling value refers to the regional initial sampling value of the current target region.
For example,
Based on this, after acquiring the image data of the target image A, the initial sampling value of the first screen 210 as shown in
In an optional embodiment,
The target region can be divided into multiple row regions, and the row image data refers to the image data corresponding to the row region in the image data. After the row image data is obtained, the row image data needs to be calculated to obtain the two calculation results, which are the first calculation result and the second calculation result, respectively.
For example, as shown in
Based on this, the row image data corresponding to the first row region includes the image data m11 corresponding to point 11 and the image data m12 corresponding to point 12, and the row image data corresponding to the second row region includes the image data m21 corresponding to point 21 and the image data m22 corresponding to the point 22.
Find the maximum value of m11 and m12 to get the first calculation result, and find the average value of m11 and m12 to get the second calculation result. Similarly, m21 and m22 can be calculated to obtain the first calculation result and the second calculation result corresponding to the second row region.
After the first calculation result and the second calculation result are obtained, the data occupancy amount of the first calculation result and the second calculation result can also be limited. Specifically, a threshold value of the data occupancy amount of the calculation result is set, if the first calculation result is greater than the data occupancy threshold, the data occupancy of the first calculation result is limited within the data occupancy threshold, and if the second calculation result is greater than the data occupancy threshold, the data occupancy of the second calculation result is limited within the data occupancy threshold.
In step S620, according to the first calculation result and the second calculation result, the previous row correction value corresponding to the row region and the current row sampling value corresponding to the row region are obtained, wherein the previous row correction value and the current row sampling value form a row region sampling value.
The previous row correction value corresponding to the row region and the current row sampling value corresponding to the row region may be obtained according to the first calculation result and the second calculation result.
For example, find the maximum value of m11 and m12 to get the first calculation result, and find the average value of m11 and m12 to get the second calculation result. Similarly, m21 and m22 can be calculated to obtain the first calculation result and the second calculation result corresponding to the second row region.
According to the first calculation result and the second calculation result obtained by calculating m11 and m12, the row region sampling value corresponding to the first row region is obtained. According to the first calculation result and the second calculation result obtained by calculating m21 and m22, the row region sampling value corresponding to the second row region is obtained.
In step S630, the data on the same bit in the row region sampling value is compared to obtain a comparison result, and the region sampling value of the target region in the first screen is obtained according to the comparison result.
In the embodiment, the same bit refers to using one data bit to compare the data on the same data bit, and obtain the region sampling value of the first screen according to the comparison result.
For example, the row region sampling value B corresponding to the first row region is obtained according to the first calculation result and the second calculation result obtained by calculating m11 and m12, and the row region sampling value C corresponding to the second row region is obtained according to the first calculation result and the second calculation result obtained by calculating m21 and m22.
The data on the same data bits of the row region sampling value B and the row region sampling value C are compared, to determine the region sampling value of the target region S11 shown in
In this exemplary embodiment, the obtained row regions are a preset number of row regions, which reduces the amount of data required to calculate the initial sampling value of the first screen, saves memory space, and in turn reduces the manufacturing cost of the chip used for displaying the target image.
In an optional embodiment,
The first weight is the weight assigned to the first calculation result and affects the current row sampling value. Similarly, the second weight is the weight assigned to the second calculation result and affects the previous row correction value. The current row sampling weight is a weighted value, and correspondingly, the current row correction weight is also a weighted value.
The first calculation relationship is a calculation relationship formula amongst the first calculation result, the first weight, the second calculation result, the second weight, the current row sampling weight and the current row sampling value. Correspondingly, the second calculation relationship is a calculation relationship formula amongst the first calculation result, the first weight, the second calculation result, the second weight, the current row correction weight and the previous row correction value.
For example, the first calculation relationship is shown as formula (1).
VLX1=(K_L1×(KV
In formula (1), nmax is the first calculation result, nmean is the second calculation result. KV
the second calculation relationship is shown as formula (2).
VLF1=(K_X1×(KV
In formula (2), nmax is the first calculation result, nmean is the second calculation result, KV
In step S720, based on the first calculation relationship, the first calculation result and the second calculation result are calculated to obtain the current row sampling value corresponding to the row region, and the first calculation result and the second calculation result are calculated based on the second calculation relationship to obtain the previous row correction value corresponding to the row region.
The current row sampling value can be obtained according to the first calculation relationship, and the previous row correction value can be obtained according to the second calculation relationship.
For example, using formula (1), the current row sampling value can be obtained, and similarly, using formula (2), the previous row correction value can be obtained.
In the present exemplary embodiment, the first calculation relationship and the second calculation relationship include the first weight and the second weight. Through different configurations of the first weight and the second weight, different current row sampling values and previous row correction values can be obtained. In turn, different effects are produced on the effect of the subsequent display of the target images. According to different application scenarios, the first weight and the second weight can be flexibly adjusted, thereby helping to subsequently display a target image that meets the requirements of the scenario.
In an optional embodiment,
The sampling threshold is a value used to limit the data occupancy of the previous row correction value and the current row sampling value. For example, when the threshold for limiting the data occupancy of the previous row correction value and the current row sampling value is 10 bits, the sampling threshold can be 1023 bytes. Based on this, if the previous row correction value is greater than the sampling threshold, it is necessary to truncate the previous row correction value to obtain the first truncated result whose data occupancy is less than the sampling threshold, and update the first truncated result as previous row correction value.
For example, the sampling threshold is 1023. If the data occupancy of the previous row correction value is greater than 1023, the previous row correction value is truncated, and the truncated result, that is, the first truncated result, is updated as the previous row correction value.
In step S820, if the data occupancy of the current row sampling value is greater than the row sampling threshold, truncation processing is performed on the current row sampling value to obtain a second truncated result, so as to update the current row sampling value according to the second truncated result.
If the data occupancy of the current row sampling value is greater than the sampling threshold, the current sampling value also needs to be truncated, and the current row sampling value is updated according to the truncated processing result, that is, the second truncated result.
For example, the sampling threshold is 1023. If the data occupancy of the current sampling value is greater than 1023, the current sampling value is truncated, and the truncated result, that is, the second truncated result, is updated as the current sampling value.
In this exemplary embodiment, the data occupancy of the previous row correction value and the current row sampling value is limited by the sampling threshold, which not only saves memory space, but also saves the manufacturing cost of the chip that subsequently displays the target image.
In an optional embodiment, obtaining the region sampling value of the target region in the first screen according to the comparison result includes: determining the target data corresponding to different bits according to the comparison result, and arranging the target data according to the data positions corresponding to the different bits, to obtain the region sampling value of the target region in the first screen.
The comparison result is the comparison result of the data on the same bit in the row region sampling value, and the target data can be the maximum value in the data on the same bit. After the target data is determined, the target data can be arranged according to the data positions corresponding to different bits, to obtain the region sampling value of the target region in the first screen.
For example, according to the comparison result of data on one bit in row region sampling value B and row region sampling value C, the target data on the same bit is obtained. Specifically, the data on the first bit of the row region sampling value B is 8, and the data on the first bit of the row region sampling value C is 7. If the target data is the maximum value of the data on the same bit, the target data on the first bit is 8. Similarly, the target data on other bits can be determined.
Based on this, the target data is arranged according to the data positions of different bits, and then the region sampling value of the target region in the first screen is obtained.
In step S120, based on the mapping relationship between the previous region correction value and the target region sampling value, the current region sampling value in the target region sampling value is corrected to obtain the first data.
In the exemplary embodiment of the present disclosure, after the region sampling value is determined, since the region sampling value is only determined according to the row image data of a preset number of row regions in the target region, the region sampling value needs to be corrected, to get accurate region sampling value.
The mapping relationship is the relationship between the region correction value in the previous row of a region sampling value and the corrected target region sampling value. Therefore, based on the mapping relationship, the current region sampling value in the target region sampling value can be corrected to obtain the first data displayed on the first screen.
For example,
Based on this mapping relationship, the current region sampling value in the target region sampling value 911 is corrected, and similarly, the first data is obtained after other target region sampling values are also corrected.
In an optional embodiment,
When correcting the sampling value of the target region, it is necessary to first determine the current region sampling value in the sampling value of the target region, and then determine the previous region correction value for correcting the current region sampling value according to the mapping relationship.
For example, if the sampled value of the target region is the data 911 shown in
In step S1020, a correction calculation relationship between the previous region correction value and the current region sampling value is determined, and based on the correction calculation relationship, the current region sampling value is corrected to obtain first data.
The correction calculation relationship is a calculation relationship between the previous region correction value and the current region sampling value. According to the calculation relationship, the current region sampling value is corrected to obtain the first data.
For example, the corrected calculation relationship is shown in formula (3).
Kpixel=KXS×LSB+(1−KXS)×MSB (3)
In formula (3), KXS is the weight assigned to the previous region correction value, LSB is the previous region correction value, and MSB is the current region sampling value in the target region sampling value.
Based on the formula (3), Kpixel can be updated to the current region sampling value in the target region sampling value, so as to realize the correction of the current sampling value of the target region.
In this exemplary embodiment, by correcting the sampling value of the target region, the accurate first data displayed on the first screen can be obtained on the basis of only obtaining the image data of a preset number of row regions. That is, the accuracy of the first data is ensured, the problem of jaggedness of the target image in the prior art is solved in the process of overlapping screen display, the memory is reduced, and the manufacturing cost of the chip for displaying the target image is reduced.
In an optional embodiment,
The region identifier is the information that can distinguish different target regions. When a region sampling value is determined, the region sampling value will be stored, and the region identifier corresponding to the region sampling value will be stored accordingly. Therefore, the adjacent region identifier of the region identifier can be determined according to the storage order.
For example, the region identifier of the target region sampling value B is S11. According to the storage order of the region identifiers, it can be obtained that the adjacent region identifier of the region identifier S11 is S21.
In step S1120, the region sampling value corresponding to the adjacent region identifier is determined, and the previous region correction value is determined from the region sampling value.
The region sampling value corresponding to the adjacent region identifier is determined. At this time, the previous region correction value in the region sampling value is the value for correcting the current region sampling value in the target region sampling value.
For example, as shown in
In this exemplary embodiment, determining the previous region correction value for correcting the current region sampling value of the target region can ensure the accuracy of the first data on the basis of only acquiring a preset number of rows of image data, which solves the problem of existing problems that aliasing occurs when the target image is displayed on the stacked screen, reduces the memory and thus reduces the manufacturing cost of the chip for displaying the target image.
In step S130, the second data corresponding to the second screen is determined according to the first data, so as to realize the display of the target image in the stacked screen according to the first data and the second data. The first screen and the second screen form the stacked screen in an overlapped manner.
In the exemplary embodiment of the present disclosure, after the first data is determined, a convolution operation needs to be performed on the first data, and then the noise of the target image is suppressed under the condition that the detail features of the target image are preserved as much as possible.
After the convolution operation, the second data corresponding to the second screen is determined according to the first data after the convolution operation. Specifically, for example for the point 31 in
Based on this, according to the corresponding relationship between the first data and the first screen, and the corresponding relationship between the second data and the second screen, the display of the target image in the stacked screen is realized.
In this exemplary embodiment, the first data is the first data obtained after correction, which ensures the accuracy of the first data, thereby improves the accuracy of the second data, and avoids the problem in the prior art that aliasing occurs during the display of the target image on the stacked screen. Based on this, since the second data is determined according to the first data, the accuracy of the second data is also improved, and the display of the target object on the stacked screen is finally improved. This improves the user's experience of viewing the target image.
In the method and device provided by the exemplary embodiments of the present disclosure, according to the mapping relationship between the previous region correction value and the target region sampling value, the current region sampling value in the target region sampling value is corrected, avoiding the problem existing in the related art that due to the irregular distribution of pixels on the first screen, the image edge appears jagged during the image display process, which improves the image display effect and further improves the user's experience of viewing the image.
Hereinafter, the picture display method in the embodiment of the present disclosure is described in detail with reference to an application scenario.
In this application scenario, according to the mapping relationship between the previous region correction value and the target region sampling value, the current region sampling value in the target region sampling value is corrected, avoiding the problem existing in the related art that due to the irregular distribution of pixels on the first screen, the image edge appears jagged during the image display process, which improves the image display effect and further improves the user's experience of viewing the image.
In addition, in an exemplary embodiment of the present disclosure, an image display device is also provided.
The calculating module 1310 is configured to obtain image data of a target image, and obtain an initial sampling value of a first screen according to the image data, wherein the initial sampling value comprises region sampling values of at least two target regions in the first screen, and the region sampling values comprise a previous region correction value and a current region sampling value; the correction module 1320 is configured to correct the current region sampling value in a target region sampling value, based on a mapping relationship between the previous region correction value and the target region sampling value, to obtain first data; and the displaying module 1330 is configured to determine second data corresponding to a second screen according to the first data, to realize displaying of the target image in a stacked screen by displaying the first data on the first screen and displaying the second data in the second screen, wherein the stacked screen is formed by the first screen and the second screen in an overlapped manner.
The specific details of the above-mentioned image display device 1300 have been described in detail in the corresponding image display method, and thus are not repeated here.
It should be noted that although several modules or units of the image display device 1300 are mentioned in the above detailed description, such division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
An electronic device 1400 according to such an embodiment of the present invention is described below with reference to
As shown in
The storage unit stores program codes that can be executed by the processing unit 1410 to cause the processing unit 1410 to perform steps of various exemplary embodiments according to the present invention described in the above “DETAILED DESCRIPTION” section of this specification.
The storage unit 1420 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 1421 and/or a cache storage unit 1422, and may further include a read only storage unit (ROM) 1423.
The storage unit 1420 may also include a program/utility tool 1424 having a set (at least one) of program modules 1425, such program modules 1425 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may contain the reality of the network environment.
The bus 1430 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a accelerated graphics port, a processing unit, or a local area bus using any of a variety of bus structures.
The electronic device 1400 may also communicate with one or more external devices 1470 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 1400, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 1400 to communicate with one or more other computing devices. Such communication may be implemented through input/output (I/O) interface 1450. Also, the electronic device 1400 may communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 1460. As shown in the drawings, the network adapter 1460 communicates with other modules of electronic device 1400 via bus 1430. It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 1400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network, including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code, and when the program product is executed on a terminal device, the program code is used to cause the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the “DETAILED DESCRIPTION” section above in this specification.
Referring to
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than the readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming language—such as the “C” language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server. Where remote computing devices are involved, the remote computing devices may be connected to the user computing device over any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computing device (e.g., connecting through the Internet using an Internet service provider).
Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure. The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/118596 | 9/15/2021 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2023/039765 | 3/23/2023 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20210201836 | Nakanishi | Jul 2021 | A1 |
20220208135 | Wu | Jun 2022 | A1 |
Number | Date | Country | |
---|---|---|---|
20240221566 A1 | Jul 2024 | US |