Image display method and device, storage medium, and electronic device
By correcting the initial sampling value of the first screen, the problem of jagged edges in the image in the stacked screen is solved, and a higher quality image display effect is achieved, improving the user's viewing experience.
Patent Information
- Application Number
- CN202180002552.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-09-15
AI Technical Summary
When displaying images in the stacked screen, due to irregular pixel distribution of the first screen, jagged edges appearing, which reduces the image display effect and user viewing experience.
By acquiring the image data of the target image, the initial sampling value of the first screen is obtained based on the image data, including the previous area correction value and the current area sampling value, the current area sampling value is corrected based on the mapping relationship between the previous area correction value and the target area sampling value, the first data is obtained, and the second data corresponding to the second screen is determined based on the first data to achieve smooth display of the target image in the stacked screen.
It avoids the problem of jagged edges of the image, improves the image display effect and user viewing experience, and enhances the display quality of images in the stacked screen.
Smart Images

Figure CN116134509B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image technology, and in particular to an image display method and image display device, a computer-readable storage medium, and an electronic device. Background Art
[0002] With the development of image technology, images can be displayed not only in one screen but also in a stacked screen having two upper and lower screens.
[0003] In the related art, the image is displayed in a stacked screen by splitting the image data into two parts, and displaying the first part of the data in one screen in the stacked screen, and displaying the second part of the data in another screen in the stacked screen. However, in order to improve the contrast of the display screen, the pixels of one screen in the stacked screen are usually irregularly distributed. In this case, the use of the above method causes jagged problems at the edges of the image displayed in the stacked screen, which reduces the display effect of the image and further reduces the user's viewing experience of the image.
[0004] In view of this, there is an urgent need in the art to develop a new image display method and device.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide an image display method, an image display device, a computer-readable storage medium and an electronic device, thereby overcoming at least to a certain extent the problem of jagged image edges when displaying images on a stacked screen due to related technologies.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of an embodiment of the present invention, there is provided an image display method, the method comprising: acquiring 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 comprises area sampling values of at least two target areas in the first screen, the area sampling values comprising a previous area correction value and a current area sampling value; based on a mapping relationship between the previous area correction value and the target area sampling value, the current area sampling value in the target area sampling value is corrected to obtain first data; determining second data corresponding to the second screen according to the first data, so as to display the target image in a stacked screen according to the first data and the second data; wherein the first screen and the second screen form a stacked screen in a manner of overlapping up and down.
[0009] In an exemplary embodiment of the present invention, the target area includes at least two row areas; the initial sampling value of the first screen is obtained according to the image data, including: determining row image data corresponding to a preset number of row areas from the image data, and calculating the row image data to obtain a first calculation result and a second calculation result; according to the first calculation result and the second calculation result, obtaining a previous row correction value corresponding to the row area and a current row sampling value corresponding to the row area, wherein the previous row correction value and the current row sampling value constitute a row area sampling value; comparing the data on the same bit in the row area sampling value to obtain a comparison result, and obtaining the area sampling value of the target area in the first screen according to the comparison result.
[0010] In an exemplary embodiment of the present invention, the method of obtaining a previous row correction value corresponding to the row area and a current row sampling value corresponding to the row area based on the first calculation result and the second calculation result includes: determining a first calculation relationship among the first calculation result, the first weight corresponding to the first calculation result, the second calculation result, the second weight corresponding to the second calculation result, the current row sampling weight, and the current row sampling value, and determining a second calculation relationship among the first calculation result, the second calculation result, the first weight, the second weight, the current row correction weight, and the previous row correction value; based on the first calculation relationship, calculating the first calculation result and the second calculation result to obtain the current row sampling value corresponding to the row area, and based on the second calculation relationship, calculating the first calculation result and the second calculation result to obtain the previous row correction value corresponding to the row area.
[0011] In an exemplary embodiment of the present invention, the method further includes: obtaining a row sampling threshold, and if the data occupancy of the previous row correction value is greater than the row sampling threshold, truncating the previous row correction value to obtain a first truncation result, so as to update the previous row correction value according to the first truncation result; if the data occupancy of the current row sampling value is greater than the row sampling threshold, truncating the current row sampling value to obtain a second truncation result, so as to update the current row sampling value according to the second truncation result.
[0012] In an exemplary embodiment of the present invention, the correcting the current area sampling value in the target area sampling value to obtain the first data includes: determining the current area sampling value in the target area sampling value, and determining a previous area correction value having the mapping relationship with the target area sampling value; determining a correction calculation relationship between the previous area correction value and the current area sampling value, and based on the correction calculation relationship, correcting the current area sampling value to obtain the first data.
[0013] In an exemplary embodiment of the present invention, the determining of the previous area correction value having the mapping relationship with the target area sampling value includes: determining the area identifier corresponding to the target area sampling value, and determining the adjacent area identifier having an area adjacent relationship with the area identifier according to the storage order of the area identifiers; determining the area sampling value corresponding to the adjacent area identifier, and determining the previous area correction value from the area sampling.
[0014] In an exemplary embodiment of the present invention, obtaining the regional sampling value of the target area 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 regional sampling value of the target area in the first screen.
[0015] According to a second aspect of an embodiment of the present invention, there is provided a picture display device, the device comprising: a calculation module, configured to acquire 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 regional sampling values of at least two target areas in the first screen, and the regional sampling values comprise a previous regional correction value and a current regional sampling value; a correction module, configured to correct the current regional sampling value in the target area sampling value based on a mapping relationship between the previous regional correction value and the target area sampling value, so as to obtain first data; a display module, configured to determine second data corresponding to a second screen according to the first data, so as to display the first data on the first screen and the second data on the second screen, so as to realize the display of the target image in a stacked screen; wherein the first screen and the second screen form a stacked screen in a manner of overlapping up and down.
[0016] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the image display method of any of the above exemplary embodiments is implemented.
[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the control image method in any of the above exemplary embodiments is implemented.
[0018] It can be seen from the above technical solutions that the picture display method, image display device, computer storage medium and electronic device in the exemplary embodiments of the present invention have at least the following advantages and positive effects:
[0019] In the method and device provided by the exemplary embodiments of the present disclosure, the current area sampling value in the target area sampling value is corrected according to the mapping relationship between the previous area correction value and the target area sampling value, thereby avoiding the problem of jagged image edges during image display caused by irregular distribution of pixels on the first screen in the prior art, improving the image display effect, and further improving the user experience of viewing the image.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0022] Figure 1 A schematic diagram schematically shows a flow chart of an image display method in an embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram showing the structure of the first screen in the stacked screen in the embodiment of the present disclosure is shown;
[0024] Figure 3 A schematic diagram showing the structure of the second screen in the stacked screen in the embodiment of the present disclosure is shown;
[0025] Figure 4 A schematic diagram of the top view structure of the stacked screen in the embodiment of the present disclosure is shown;
[0026] Figure 5 Schematically shows the data storage structure of the regional sampling value in the embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram schematically shows a process of obtaining an initial sampling value of a first screen in an embodiment of the present disclosure;
[0028] Figure 7 A schematic diagram of a process for obtaining a current row sampling value in an embodiment of the present disclosure is shown;
[0029] Figure 8 A schematic diagram of a process for updating a current row sampling value in an embodiment of the present disclosure is shown;
[0030] Fig. 9 The mapping relationship between sampling values of different target areas in the embodiment of the present disclosure is schematically shown;
[0031] Fig.10 A schematic diagram of a process for obtaining first data in an embodiment of the present disclosure is schematically shown;
[0032] Fig.11 A schematic diagram of a process for determining a previous area correction value having a mapping relationship with a target area sampling value in an embodiment of the present disclosure is schematically shown;
[0033] Fig.12 A schematic diagram of a process flow in an application scenario of an embodiment of the present disclosure is shown;
[0034] Fig.13 A schematic diagram schematically shows the structure of an image display device in an embodiment of the present disclosure;
[0035] Fig.14 An electronic device for an image display method in an embodiment of the present disclosure is schematically shown;
[0036] Fig.15 A computer-readable storage medium for an image display method in an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full 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 while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0038] 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 "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0039] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0040] In view of the problems existing in the related art, the present disclosure proposes an image display method. Figure 1 A schematic diagram of the process of the image display method is shown in FIG. Figure 1 As shown, the image display method at least includes the following steps:
[0041] Step S110. Acquire image data of the target image, and obtain initial sampling values of the first screen based on the image data; wherein the initial sampling values include regional sampling values of at least two target areas in the first screen, and the regional sampling values include the previous regional correction value and the current regional sampling value.
[0042] 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.
[0043] Step S130. Determine second data corresponding to the second screen according to the first data, so as to display the target image in the stacked screen according to the first data and the second data; wherein the first screen and the second screen form the stacked screen in a vertically overlapping manner.
[0044] In the method and device provided by the exemplary embodiments of the present disclosure, the current area sampling value in the target area sampling value is corrected according to the mapping relationship between the previous area correction value and the target area sampling value, thereby avoiding the problem of jagged image edges during image display caused by irregular distribution of pixels on the first screen in the prior art, improving the image display effect, and further improving the user experience of viewing the image.
[0045] The following is a detailed description of each step of the image display method.
[0046] In step S110, image data of the target image is acquired, and initial sampling values of the first screen are obtained based on the image data; wherein the initial sampling values include regional sampling values of at least two target areas in the first screen, and the regional sampling values include the previous regional correction value and the current regional sampling value.
[0047] In an exemplary embodiment of the present disclosure, the target image refers to an image displayed on the stacked screen, and correspondingly, the image data refers to the color data of the target image. Specifically, the image data can be decimal data, binary data, or hexadecimal data, and this exemplary embodiment does not specifically limit this.
[0048] A stacked screen refers to a screen composed of two overlapping screens. Specifically, the stacked screen can be set on a mobile terminal, in a computer, or in any required device. This exemplary embodiment does not specifically limit this. The screen below is the first screen, and the screen above is the second screen. Based on this, because there are two screens in the stacked screen, the image data is split into two 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 in the stacked screen. The initial sampling value refers to the initial value of the first data.
[0049] It is worth noting that the first screen can be divided into at least two target areas in the vertical direction. Based on this, the initial sampling value includes the area sampling values of at least two target areas, and the area sampling value specifically includes two values, one is the previous area correction value, and the other is the current area sampling value, wherein the previous area correction value is used to correct the current area sampling value of the previous target area in the vertical direction of the current target area, and the current area sampling value refers to the area initial sampling value of the current target area.
[0050] For example, Figure 2 A schematic diagram of the structure of the first screen in the stacked screen is shown. Figure 2 In the above, screen 210 is the first screen with a V-shaped structure in the stacked screens. Generally speaking, point 11, point 12, point 21, point 22, point 31, point 32, point 41, point 42, point 51, point 52, point 61, and point 62 all correspond to a pixel in the target image, and the area composed of point 11, point 12, point 21, point 22, point 31, point 32, point 41, and point 42 is the first target area S11 in the first screen, and the area composed of point 31, point 32, point 41, point 42, point 51, point 52, point 61, and point 62 is the second target area S21 in the first screen.
[0051] Figure 3 A schematic diagram of the structure of the second screen in the stacked screen is shown. Figure 3 As shown, screen 310 is the second screen in the stacked screen. Generally speaking, point 11, point 12, point 21, point 22, point 31, point 32, point 41, point 42, point 51, point 52, point 61, and point 62 all correspond to a pixel point in the target image.
[0052] Figure 4 FIG. 4 shows a schematic diagram of a stacked screen structure viewed from above. Figure 4 As shown, the screen 410 is a stacked screen.
[0053] Based on this, after acquiring the image data of the target image A, the following can be obtained according to the image data: Figure 2 The initial sampling value of the first screen 210 shown in FIG. Figure 2 The area sampling values of the target area S11 and the area sampling values of the target area S21 are shown. Specifically, Figure 5 The data storage structure of the regional sampling value is shown as Figure 5 As shown, the data position 510 stores the current regional sampling value in the regional sampling value, and the data position 520 stores the previous regional correction value in the regional sampling value.
[0054] In an alternative embodiment, Figure 6A schematic diagram of a process of obtaining an initial sampling value of a first screen in an image display method is shown, wherein the target area includes at least two row areas, such as Figure 6 As shown, the method at least includes the following steps: in step S610, row image data corresponding to a preset number of row areas are determined from the image data, and the row image data is calculated to obtain a first calculation result and a second calculation result.
[0055] Among them, the target area can be divided into multiple row areas, and the row image data refers to the image data corresponding to the row area in the image data. After obtaining the row image data, the row image data needs to be calculated to obtain two calculation results, namely the first calculation result and the second calculation result.
[0056] For example, Figure 2 As shown, there are four row areas in the target area S11, which are a row area X1 composed of points 11 and 12, a row area X2 composed of points 21 and 22, a row area X3 composed of points 31 and 32, and a row area X4 composed of points 41 and 42. Assuming that the preset number is 2, only row image data corresponding to the two row areas of the target area S11 are obtained from the image data. Specifically, the two row image data include row image data 1 corresponding to the row area X1 and row image data 2 corresponding to the row area X2.
[0057] Based on this, the row image data corresponding to the first row area includes image data m11 corresponding to point 11 and image data m12 corresponding to point 12, and the row image data corresponding to the second row area includes image data m21 corresponding to point 21 and image data m22 corresponding to point 22.
[0058] The maximum value of m11 and m12 is calculated to obtain the first calculation result, and the average value of m11 and m12 is calculated to obtain 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 area.
[0059] After obtaining the first calculation result and the second calculation result, the data occupancy of the first calculation result and the second calculation result can also be limited. Specifically, a calculation result data occupancy threshold 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; 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.
[0060] In step S620, the previous row correction value corresponding to the row area and the current row sampling value corresponding to the row area are obtained according to the first calculation result and the second calculation result, wherein the previous row correction value and the current row sampling value constitute the row area sampling value.
[0061] According to the first calculation result and the second calculation result, a previous row correction value corresponding to the row area and a current row sampling value corresponding to the row area can be obtained.
[0062] For example, the maximum value of m11 and m12 is calculated to obtain the first calculation result, and the average value of m11 and m12 is calculated to obtain 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 area.
[0063] According to the first calculation result and the second calculation result obtained by calculating m11 and m12, the row area sampling value corresponding to the first row area is obtained, and according to the first calculation result and the second calculation result obtained by calculating m21 and m22, the row area sampling value corresponding to the second row area is obtained.
[0064] In step S630, data at the same bit in the row area sampling values are compared to obtain a comparison result, and the area sampling value of the target area in the first screen is obtained according to the comparison result.
[0065] The same bit refers to using one data bit to compare data on the same data bit, and obtaining the area sampling value of the first screen according to the comparison result.
[0066] For example, based on the first calculation result and the second calculation result obtained by calculating m11 and m12, the row area sampling value B corresponding to the first row area is obtained, and based on the first calculation result and the second calculation result obtained by calculating m21 and m22, the row area sampling value C corresponding to the second row area is obtained.
[0067] Compare the data on the same data bit of the row area sampling value B and the row area sampling value C, and determine the following according to the comparison result: Figure 2 The area sampling values of the target area S11 are shown.
[0068] In this exemplary embodiment, the acquired row areas are a preset number of row areas, which reduces the amount of data required to calculate the initial sampling value of the first screen, saves memory space, and further reduces the construction cost of the chip used to display the target image.
[0069] In an alternative embodiment, Figure 7 FIG. 4 shows a schematic diagram of a process for obtaining a current row sampling value in an image display method. Figure 7As shown, the method includes at least the following steps: in step S710, determine the first calculation relationship between the first calculation result, the first weight corresponding to the first calculation result, the second calculation result, the second weight corresponding to the second calculation result, the current row sampling weight and the current row sampling value, and determine the second calculation relationship between the first calculation result, the second calculation result, the first weight, the second weight, the current row correction weight and the previous row correction value.
[0070] The first weight refers to the weight of the first calculation result on the sampling value of the current row, and the second weight refers to the weight of the second calculation result on the correction value of the previous row. The current sampling weight refers to a weighted value, and correspondingly, the current correction weight also refers to a weighted value.
[0071] The first calculation relationship refers to the calculation relationship formula between the first calculation result, the first weight, the second calculation result, the second weight, the current sampling weight and the current row sampling value. Correspondingly, the second calculation relationship refers to the calculation relationship formula between the first calculation result, the first weight, the second calculation result, the second weight, the current corrected weight and the previous row corrected value.
[0072] For example, the first calculation relationship is shown in formula (1).
[0073]
[0074] Among them, n max is the first calculation result, n mean is the second calculation result, is the first weight, is the second weight, K_L1 is the current row sampling weight, and VLX1 is the current row sampling value.
[0075] The second calculation relationship is shown in formula (2).
[0076]
[0077] Among them, n max is the first calculation result, n mean is the second calculation result, is the first weight, is the second weight, K_X1 is the current correction weight, and VLF1 is the correction value of the previous row.
[0078] 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 area, and based on the second calculation relationship, the first calculation result and the second calculation result are calculated to obtain the previous row correction value corresponding to the row area.
[0079] 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.
[0080] For example, using formula (1), the sampling value of the current row can be obtained. Similarly, using formula (2), the correction value of the previous row can be obtained.
[0081] In this exemplary embodiment, the first calculation relationship and the second calculation relationship include a first weight and a second weight. By setting the first weight and the second weight differently, different current row sampling values and previous row correction values can be obtained, thereby producing different impacts on the display effect of subsequent target images. According to different application scenarios, the first weight and the second weight can be flexibly adjusted, thereby facilitating the subsequent display of target images that meet the scene requirements.
[0082] In an alternative embodiment, Figure 8 FIG. 4 shows a flow chart of updating the current row sampling value in the image display method. Figure 8 As shown, the method includes at least the following steps: in step S810, a row sampling threshold is obtained, and if the data occupancy of the previous row correction value is greater than the row sampling threshold, the previous row correction value is truncated to obtain a first truncation result, so as to update the previous row correction value according to the first truncation result.
[0083] Among them, 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 correction value to obtain a first truncation result in which the data occupancy is less than the sampling threshold, and update the first truncation result to the previous row correction value.
[0084] For example, the sampling threshold is 1023. If the data occupancy of the previous row of correction values is greater than 1023, the previous correction value is truncated, and the result of the truncation, ie, the first truncation result, is updated as the previous row of correction values.
[0085] In step S820, if the data occupancy of the current row sampling value is greater than the row sampling threshold, the current row sampling value is truncated to obtain a second truncation result, so as to update the current row sampling value according to the second truncation result.
[0086] 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 truncation result, that is, the second truncation result.
[0087] 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 result of the truncation, ie, the second truncation result, is updated as the current sampling value.
[0088] In this exemplary embodiment, the sampling threshold is used to limit the data usage of the previous row correction value and the current row sampling value, which not only saves memory space but also saves the construction cost of the subsequent chip that displays the target image.
[0089] In an optional embodiment, the regional sampling value of the target area in the first screen is obtained according to the comparison result, including: 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 regional sampling value of the target area in the first screen.
[0090] Among them, the comparison result is the comparison result of the data at the same position in the row area sampling value, and the target data can be the maximum value of the data at the same position. After determining the target data, the target data can be arranged according to the data positions corresponding to different bits, so as to obtain the regional sampling value of the target area in the first screen.
[0091] For example, based on the comparison results of the data on one bit in the row area sampling value B and the row area sampling value C, the target data on the same bit is obtained. Specifically, the data on the first bit of the row area sampling value B is 8, and the data on the first bit in the row area 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.
[0092] Based on this, the target data is arranged according to the data positions of different bits, and then the regional sampling value of the target area in the first screen is obtained.
[0093] 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.
[0094] In an exemplary embodiment of the present disclosure, after the regional sampling value is determined, since the regional sampling value is only determined based on the row image data of a preset number of rows of the target area, the regional sampling value needs to be corrected to obtain an accurate regional sampling value.
[0095] The mapping relationship refers to the relationship between the previous row of regional correction values in a regional sampling value and the corrected target regional sampling value. Therefore, based on the mapping relationship, the current regional sampling value in the target regional sampling value can be corrected to obtain the first data displayed on the first screen.
[0096] For example, Fig. 9 The mapping relationship between the sampling values of different target areas is shown, such as Fig. 9 As shown, the target area 910 is the first target area S11 in the first screen, the target area 920 is the second target area S21 in the first screen, the data 911 is the area sampling value corresponding to the target area 910, the data 922 is the area sampling value corresponding to the target area 920, and the arrow 930 is the mapping relationship between the previous area correction value in the data 922 and the target area sampling value 911.
[0097] Based on this mapping relationship, the current area sampling value in the target area sampling value 911 is corrected. Similarly, other target area sampling values are also corrected to obtain the first data.
[0098] In an alternative embodiment, Fig.10 FIG. 4 shows a schematic diagram of a process of obtaining first data in an image display method. Fig.10 As shown, the method at least includes the following steps: in step S1010, the current area sampling value in the target area sampling value is determined, and the previous area correction value having the mapping relationship with the target area sampling value is determined.
[0099] When correcting the target area sampling value, it is first necessary to determine the current area sampling value in the target area sampling value, and then determine the previous area correction value for correcting the current area sampling value according to the mapping relationship.
[0100] For example, the target area sampling value is Fig. 9 The data 911 shown in FIG. 9A , then the previous area correction value having a mapping relationship with the target area sampling value 911 is determined as follows: Fig. 9 The previous area correction value in the data 921 is shown.
[0101] 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.
[0102] 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.
[0103] For example, the correction calculation relationship is shown in formula (3).
[0104] K pixel =K XS ×LSB+(1-K XS )×MSB (3)
[0105] Among them, Kxs is the weight assigned to the previous area correction value, LSB is the previous area correction value, and MSB is the current area sampling value in the target area sampling value.
[0106] Based on formula (3), Kpixel can be updated to the current area sampling value in the target area sampling value to achieve the correction of the current sampling value of the target area.
[0107] In this exemplary embodiment, by correcting the sampling value of the target area, accurate first data displayed on the first screen can be obtained based on obtaining only the image data of a preset number of row areas, thereby ensuring the accuracy of the first data, solving the problem of jagged edges in the target image during the stacked screen display process in the prior art, reducing memory, and thereby reducing the construction cost of the chip that displays the target image.
[0108] In an alternative embodiment, Fig.11 The schematic diagram of the process of determining the previous area correction value having a mapping relationship with the target area sampling value in the image display method is shown as follows: Fig.11 As shown, the method at least includes the following steps: in step S1110, the region identifier corresponding to the target region sampling value is determined, and the adjacent region identifier having a region adjacent relationship with the region identifier is determined according to the storage order of the region identifier.
[0109] Among them, the area identifier refers to information that can distinguish different target areas. Each time a regional sampling value is determined, the regional sampling value is stored, and the regional identifier corresponding to the regional sampling value is stored accordingly. Therefore, the adjacent regional identifiers of the regional identifier can be determined according to the storage order.
[0110] For example, the region identifier of the target region sampling value B is S11, and 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.
[0111] In step S1120, the area sampling value corresponding to the adjacent area identifier is determined, and the previous area correction value is determined from the area sampling.
[0112] The area sampling value identified with the adjacent area is determined, and the previous area correction value in the area sampling value is used as the value of the current area sampling value in the correction target area sampling value.
[0113] For example, Fig. 9 As shown, the area sampling value corresponding to the adjacent area identifier S21 is data 921, and at this time, the previous area correction value in the data 921 is the value of the current area sampling value in the correction data 911.
[0114] In this exemplary embodiment, the previous area correction value of the current area sampling value of the corrected target area is determined, which can ensure the accuracy of the first data on the basis of obtaining only a preset number of lines of image data, solve the problem of jagged edges in the target image during the stacked screen display process in the prior art, reduce memory, and further reduce the construction cost of the chip that displays the target image.
[0115] In step S130, second data corresponding to the second screen is determined according to the first data, so as to display the target image in the stacked screen according to the first data and the second data; wherein the first screen and the second screen form the stacked screen in a vertically overlapping manner.
[0116] In an exemplary embodiment of the present disclosure, after the first data is determined, a convolution operation needs to be performed on the first data, thereby suppressing the noise of the target image while retaining the detail features of the target image as much as possible.
[0117] After the convolution operation, the second data corresponding to the second screen is determined according to the first data after the convolution operation. Specifically, Figure 2 When determining the second data at the second screen point 31, it is first necessary to obtain the regional sampling value of the target area S11 where the point 31 is located, and the regional sampling value of the target area S21 where the point 31 is located, and then determine the overlapping area of the target area S11 and the target area S21, that is, the area of the area composed of the point 31 and the point 32, and then obtain the grayscale value of the target image at the point 31, and finally determine the second data at the point 31 by combining the regional sampling value of the target area S11, the regional sampling value of the target area S21, the overlapping area of the target area S11 and the target area S21, the grayscale value of the target image at the point 31 and the optical capability of the display. Similarly, it can be determined Figure 2 The second data of other points in the.
[0118] 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 achieved.
[0119] In this exemplary embodiment, the first data is obtained after correction, which ensures the accuracy of the first data, thereby improving the accuracy of the second data, avoiding the occurrence of jagged problems in the target image during the stacked screen display process in the prior art. Based on this, since the second data is determined based on the first data, the accuracy of the second data is also improved, thereby ultimately improving the display effect of the target object on the stacked screen and improving the user experience of viewing the target image.
[0120] In the method and device provided by the exemplary embodiments of the present disclosure, the current area sampling value in the target area sampling value is corrected according to the mapping relationship between the previous area correction value and the target area sampling value, thereby avoiding the problem of jagged image edges during image display caused by irregular distribution of pixels on the first screen in the prior art, improving the image display effect, and further improving the user experience of viewing the image.
[0121] The following is a detailed description of the image display method in the embodiment of the present disclosure in conjunction with an application scenario.
[0122] Fig.12 A schematic diagram of a process flow of an embodiment of the present disclosure in an application scenario is shown. Fig.12 As shown, step S1210 is a process of acquiring image data of a target image A, step S1220 is a process of obtaining an initial sampling value of a first screen according to the image data, and the initial sampling value includes a previous area correction value and a current area sampling value, step S1230 is a process of correcting a current sampling value in the target area sampling value based on a mapping relationship between the previous area correction value and the target area sampling value to obtain first data, step S1240 is a process of performing a convolution operation on the first data, step S1250 is a process of determining second data according to the first data, and step S1260 is a process of displaying the target image A on a stacked screen according to a correspondence between the first data and the first screen and a correspondence between the second data and the second screen.
[0123] In this application scenario, the current area sampling value in the target area sampling value is corrected according to the mapping relationship between the previous area correction value and the target area sampling value, thereby avoiding the problem of jagged image edges during image display caused by irregular pixel distribution of the first screen in the prior art, improving the image display effect, and further improving the user experience of viewing the image.
[0124] Furthermore, in an exemplary embodiment of the present disclosure, a picture display device is also provided. Fig.13 FIG. 4 shows a schematic diagram of the structure of a picture display device, such as Fig.13 As shown, the image display device 1300 may include: a calculation module 1310, a correction module 1320 and a display module 1330. Among them:
[0125] The calculation module 1310 is configured to obtain image data of the target image and obtain an initial sampling value of the first screen based on the image data; wherein the initial sampling value includes regional sampling values of at least two target areas in the first screen, and the regional sampling values include a previous regional correction value and a current regional sampling value; the correction module 1320 is configured to correct the current regional sampling value in the target area sampling value based on a mapping relationship between the previous regional correction value and the target area sampling value, so as to obtain the first data; the display module 1330 is configured to determine the second data corresponding to the second screen based on the first data, so as to display the first data on the first screen and the second data on the second screen, so as to realize the display of the target image in the stacked screen; wherein the first screen and the second screen form a stacked screen in a manner of overlapping up and down.
[0126] The specific details of the above-mentioned image display device 1300 have been described in detail in the corresponding image display method, so they are not repeated here.
[0127] It should be noted that although several modules or units of the image display device 1300 are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0128] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0129] Refer to the following Fig.14 1400 according to this embodiment of the present invention is described. Fig.14 The electronic device 1400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0130] like Fig.14 As shown, the electronic device 1400 is in the form of a general computing device. The components of the electronic device 1400 may include, but are not limited to: the at least one processing unit 1410, the at least one storage unit 1420, a bus 1430 connecting different system components (including the storage unit 1420 and the processing unit 1410), and a display unit 1440.
[0131] The storage unit stores program codes, which can be executed by the processing unit 1410, so that the processing unit 1410 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0132] 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 .
[0133] The storage unit 1420 may also include a program / utility 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 of which or some combination may include the reality of a network environment.
[0134] Bus 1430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0135] The electronic device 1400 may also communicate with one or more external devices 1470 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1400, and / or communicate with any device that enables the electronic device 1400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1450. Furthermore, the electronic device 1400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1460. As shown, the network adapter 1460 communicates with other modules of the electronic device 1400 via a bus 1430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the 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.
[0136] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0137] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0138] refer to Fig.15 As shown, a program product 1500 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0139] The program product may use 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, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, 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.
[0140] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. 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 above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0141] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0142] Program code for performing the 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., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0143] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing 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 customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. An image display method, characterized in that: The method comprises: Acquire image data of a target image, and obtain initial sampling values of a first screen according to the image data; wherein the initial sampling values include regional sampling values of at least two target areas in the first screen, and the regional sampling values include a previous regional correction value and a current regional sampling value; the previous regional correction value is used to correct the current regional sampling value of the previous target area of the current target area in the vertical direction; Based on the mapping relationship between the previous area correction value and the target area sampling value, the current area sampling value in the target area sampling value is corrected to obtain first data; Determine second data corresponding to the second screen according to the first data, so as to display the target image in the stacked screen according to the first data and the second data; wherein the first screen and the second screen form a stacked screen in a vertically overlapping manner.
2. The image display method according to claim 1, characterized in that: The target area includes at least two row areas; The obtaining of the initial sampling value of the first screen according to the image data comprises: Determining row image data corresponding to a preset number of row areas from the image data, and calculating the row image data to obtain a first calculation result and a second calculation result; According to the first calculation result and the second calculation result, a previous row correction value corresponding to the row area and a current row sampling value corresponding to the row area are obtained, wherein the previous row correction value and the current row sampling value constitute the row area sampling value; The data at the same bit in the row area sampling values are compared to obtain a comparison result, and the area sampling value of the target area in the first screen is obtained according to the comparison result.
3. The image display method according to claim 2, characterized in that: The obtaining, according to the first calculation result and the second calculation result, a previous row correction value corresponding to the row area and a current row sampling value corresponding to the row area, comprises: Determine a first calculation relationship among the first calculation result, a first weight corresponding to the first calculation result, the second calculation result, a second weight corresponding to the second calculation result, a current row sampling weight, and a current row sampling value, and determine a second calculation relationship among the first calculation result, the second calculation result, the first weight, the second weight, a current row correction weight, and a previous row correction value; 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 area, and based on the second calculation relationship, the first calculation result and the second calculation result are calculated to obtain the previous row correction value corresponding to the row area.
4. The image display method according to claim 3, characterized in that: The method further comprises: Obtaining a row sampling threshold, and if the data occupation amount of the previous row correction value is greater than the row sampling threshold, truncating the previous row correction value to obtain a first truncation result, so as to update the previous row correction value according to the first truncation result; If the data occupancy of the current row sampling value is greater than the row sampling threshold, the current row sampling value is truncated to obtain a second truncation result, so as to update the current row sampling value according to the second truncation result.
5. The image display method according to claim 4, characterized in that: The step of correcting the current area sampling value in the target area sampling value to obtain first data includes: Determine the current area sampling value in the target area sampling value, and determine the previous area correction value having the mapping relationship with the target area sampling value; 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.
6. The image display method according to claim 5, characterized in that: The determining of the previous area correction value having the mapping relationship with the target area sampling value includes: Determine the region identifier corresponding to the target region sampling value, and determine the adjacent region identifier having a region adjacent relationship with the region identifier according to the storage order of the region identifier; Determine the area sampling value corresponding to the adjacent area identifier, and determine the previous area correction value from the area sampling.
7. The image display method according to claim 2, characterized in that: The obtaining, according to the comparison result, a region sampling value of the target region in the first screen includes: According to the comparison result, target data corresponding to different bits are determined, and the target data are arranged according to the data positions corresponding to the different bits to obtain the area sampling value of the target area in the first screen.
8. An image display device, characterized in that: include: A calculation module 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 includes regional sampling values of at least two target areas in the first screen, and the regional sampling values include a previous regional correction value and a current regional sampling value; the previous regional correction value is used to correct the current regional sampling value of the previous target area of the current target area in the vertical direction; a correction module configured to correct the current area sampling value in the target area sampling value based on a mapping relationship between the previous area correction value and the target area sampling value to obtain first data; The display module is configured to determine second data corresponding to the second screen based on the first data, so as to display the first data on the first screen and the second data on the second screen, thereby realizing the display of the target image in the stacked screen; wherein the first screen and the second screen form a stacked screen in a manner of overlapping each other up and down.
9. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the image display method according to any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the image display method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for adjusting Gamma value in stacked screen, stacked screen and storage medium
CN112925498A
Dual cell display panel, manufacturing method and driving method thereof and display device
CN112992095A