CN114063945B - Mobile terminal and image display method thereof - Google Patents

Mobile terminal and image display method thereof Download PDF

Info

Publication number
CN114063945B
CN114063945B CN202010756823.2A CN202010756823A CN114063945B CN 114063945 B CN114063945 B CN 114063945B CN 202010756823 A CN202010756823 A CN 202010756823A CN 114063945 B CN114063945 B CN 114063945B
Authority
CN
China
Prior art keywords
pixel
pixel point
gray
value
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010756823.2A
Other languages
Chinese (zh)
Other versions
CN114063945A (en
Inventor
王续澎
徐晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202010756823.2A priority Critical patent/CN114063945B/en
Publication of CN114063945A publication Critical patent/CN114063945A/en
Application granted granted Critical
Publication of CN114063945B publication Critical patent/CN114063945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a mobile terminal and an image display method thereof, and relates to the technical field of image processing. The mobile terminal can transfer the error of each pixel point in the gray level image of the first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point is reduced, the change of the gray value of the adjacent pixel point is smoother, and the displayed image is natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.

Description

Mobile terminal and image display method thereof
Technical Field
The application relates to the technical field of image processing, in particular to a mobile terminal and an image display method thereof.
Background
The mobile terminal can convert the gray-scale image with higher gray-scale level into the gray-scale image with lower gray-scale level, and display the gray-scale image with lower gray-scale level on the electronic ink screen of the mobile terminal.
However, the gray-scale image with the lower gray-scale level is displayed on the electronic ink screen with poor effect.
Disclosure of Invention
The application provides a mobile terminal and an image display method thereof, which can solve the problem of poor display effect of a gray-scale image with lower gray-scale number on an electronic ink screen in the related technology. The technical scheme is as follows:
in one aspect, a mobile terminal is provided, the mobile terminal including a processor and an electronic ink screen; the processor is configured to:
traversing pixel points in a gray level image of a first gray level, and determining a first target gray level of the pixel point under a second gray level and an error of the pixel point based on an initial gray level of the pixel point for each traversed pixel point, wherein the second gray level is smaller than the first gray level, and the error of the pixel point is related to the initial gray level and the second gray level of the pixel point;
updating an initial gray value of a target pixel which is not traversed and is positioned in the neighborhood of the pixel based on the error of the pixel;
processing the traversed gray level image by adopting a contrast enhancement algorithm to obtain a target image;
the electronic ink screen is used for displaying the target image.
Optionally, the first target gray value is proportional to a quotient of the initial gray value of the pixel point and the second gray level.
Optionally, the processor is configured to:
if the remainder of the division of the initial gray value of the pixel point and the second gray level is greater than or equal to a remainder threshold value, determining that the first target gray value V of the pixel point under the second gray level meets the following conditions:
if the remainder of the division between the initial gray value and the second gray level number of the pixel point is smaller than the remainder threshold value, determining that the first target gray value V of the pixel point under the second gray level number meets the following conditions:
wherein, the liquid crystal display device comprises a liquid crystal display device,and the representation is rounded downwards, the remainder threshold is one half of the second gray level, X is the initial gray value of the pixel point, and H is the second gray level.
Optionally, the error of the pixel point is a remainder of dividing the initial gray value of the pixel point with the second gray level number;
or the error of the pixel point is the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point.
Optionally, the gray image includes a plurality of pixel points arranged in an array; the processor is configured to:
Traversing pixel points in the gray level image line by line;
the processor is configured to:
for a first target pixel point which is positioned in the same row of the pixel points and is positioned in the next column of the pixel points, increasing the initial gray value of the first target pixel point by a first numerical value, wherein the first numerical value is the product of the error of the pixel point and a first duty ratio;
for a second target pixel point which is positioned on the next row of the pixel points and is positioned on the front column of the pixel points, increasing the initial gray value of the second target pixel point by a second numerical value, wherein the second numerical value is the product of the error of the pixel point and a second duty ratio;
for a third target pixel point which is positioned on the next row of the pixel points and is positioned on the same column of the pixel points, increasing the initial gray value of the third target pixel point by a third numerical value, wherein the third numerical value is the product of the error of the pixel point and a third duty ratio;
for a fourth target pixel point located in the next row of the pixel points and in the next column of the pixel points, increasing the initial gray value of the fourth target pixel point by a fourth numerical value, wherein the fourth numerical value is the product of the error of the pixel point and a fourth duty ratio;
Wherein the third and fourth duty cycles are each less than the first duty cycle, the first duty cycle being less than the second duty cycle.
Optionally, the processor is further configured to:
acquiring a first maximum value and a first minimum value in initial gray values of pixel points of the gray image;
acquiring a second maximum value and a second minimum value in a first target gray value of the pixel point of the gray image after traversing;
the processor is configured to:
updating a first target gray value of the pixel point of the gray image after traversing to a second target gray value to obtain a target image;
for each pixel point in the traversed gray image, if the initial gray value of the pixel point is equal to the first minimum value, the second target gray value of the pixel point is twice the first target gray value of the pixel point;
if the initial gray value of the pixel point is greater than the first minimum value and less than the first maximum value, the second target gray value W of the pixel point satisfies: w=r+ (X-m) × (s-r)/(n-m);
if the initial gray value of the pixel is equal to the first maximum value, the second target gray value W of the pixel satisfies: w=s+r;
The m is the first minimum value, the n is the first maximum value, the r is the second minimum value, the s is the second maximum value, and the X is the initial gray value of the pixel point.
Optionally, the electronic ink screen is a color ink screen, and the color ink screen includes a plurality of color blocks with different colors, where each color block corresponds to one pixel point in the gray scale image; the processor is configured to:
updating the initial gray value of the target pixel which is not traversed and is positioned in the neighborhood of the pixel in the pixel corresponding to the color block with the same color as the color block corresponding to the pixel based on the error of the pixel.
In another aspect, an image display method of a mobile terminal is provided, the mobile terminal includes an electronic ink screen, and the method includes:
traversing pixel points in a gray level image of a first gray level, and determining a first target gray level of the pixel point under a second gray level and an error of the pixel point based on an initial gray level of the pixel point for each traversed pixel point, wherein the second gray level is smaller than the first gray level, and the error of the pixel point is related to the initial gray level and the second gray level of the pixel point;
Updating an initial gray value of a target pixel which is not traversed and is positioned in the neighborhood of the pixel based on the error of the pixel;
processing the traversed gray level image by adopting a contrast enhancement algorithm to obtain a target image;
and displaying the target image in the electronic ink screen.
Optionally, the first target gray value is proportional to a quotient of the initial gray value of the pixel point and the second gray level.
Optionally, the determining, based on the initial gray value of the pixel, the first target gray value of the pixel under the second gray level includes:
if the remainder of the division of the initial gray value of the pixel point and the second gray level is greater than or equal to a remainder threshold value, determining that the first target gray value V of the pixel point under the second gray level meets the following conditions:
if the remainder of the division between the initial gray value and the second gray level number of the pixel point is smaller than the remainder threshold value, determining that the first target gray value V of the pixel point under the second gray level number meets the following conditions:
wherein, the liquid crystal display device comprises a liquid crystal display device,and the representation is rounded downwards, the remainder threshold is one half of the second gray level, X is the initial gray value of the pixel point, and H is the second gray level.
Optionally, the error of the pixel point is a remainder of dividing the initial gray value of the pixel point with the second gray level number;
or the error of the pixel point is the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point.
In yet another aspect, there is provided a computer-readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the image display method of a mobile terminal as set forth in the above aspect.
In yet another aspect, there is provided a computer program product containing instructions which, when run on the computer, cause the computer to perform the image display method of a mobile terminal according to the above aspect.
The technical scheme provided by the application has the beneficial effects that at least:
the application provides a mobile terminal and an image display method thereof, wherein the mobile terminal can transfer the error of each pixel point in a gray level image of a first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point is reduced, the change of the gray level value of the adjacent pixel point is smoother, and the displayed image is natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an image display method of a mobile terminal according to an embodiment of the present application;
fig. 2 is a flowchart of another image display method of a mobile terminal according to an embodiment of the present application;
fig. 3 is a flowchart of a mobile terminal determining a first target gray value and an error of a pixel point in a gray image according to an embodiment of the present application;
fig. 4 is a schematic diagram of a positional relationship of pixels of a gray scale image according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a gray scale image at a second gray scale level obtained by converting a gray scale image at a first gray scale level using a method in the related art;
FIG. 6 is a schematic diagram of a target image according to an embodiment of the present application;
FIG. 7 is a schematic illustration of another object image provided by an embodiment of the present application;
FIG. 8 is a schematic illustration of yet another object image provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application;
fig. 11 is a software architecture block diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
In the related art, the process of converting a gray-scale image with a higher gray-scale level (for example, 256 gray-scale images) into a gray-scale image with a lower gray-scale level (for example, 16 gray-scale images) by the mobile terminal may include: for each pixel in the 256-gray-scale image, the mobile terminal may divide the gray value of the pixel by 16 and round up to obtain an updated gray value. The mobile terminal can then display a 16 gray scale image on its electronic ink screen based on the updated gray scale values of the pixels.
However, if the gray values of the pixels in the partial region are similar in the 256-gray-scale image, the gray values of the pixels in the partial region are the same after the conversion into the 16-gray-scale image. Further, the transition between each region in the 16 gray-scale image is unnatural, and a fault phenomenon occurs, that is, the display effect of the 16 gray-scale image is poor.
The embodiment of the application provides an image display method of a mobile terminal, which can be applied to the mobile terminal, wherein the mobile terminal comprises an electronic ink screen. Optionally, the mobile terminal may be a mobile phone or a tablet computer, and the electronic ink screen may be a black-and-white ink screen. Referring to fig. 1, the method may include:
step 101, traversing pixel points in the gray level image of the first gray level number, and determining a first target gray level value of the pixel point under the second gray level number and an error of the pixel point based on the initial gray level value of the pixel point for each traversed pixel point.
In the embodiment of the present application, the second gray level number may be smaller than the first gray level number, and the second gray level number may be stored in the mobile terminal in advance. For example, the second gray level may be 256 and the first gray level may be 16. The error of a pixel may be related to the initial gray value and the second gray level number of the pixel.
The number of gray levels of the gray image may refer to the number of gray levels of different levels that each pixel point in the gray image can display. Therefore, the higher the number of gradation levels of the gradation image, the more gradation levels of gradation that the gradation image can display, and the better the display effect of the gradation image. For example, if the number of gray levels of a gray level image is 256, each pixel in the gray level image can display 256 gray levels, that is, the gray value of each pixel can be in the range of 0 to 255. If the gray level number of a gray level image is 16, each pixel point in the gray level image can display 16 gray levels, that is, the gray value of each pixel point can be in the range of 0 to 15.
Step 102, updating an initial gray value of a target pixel which is not traversed and is positioned in a neighborhood of the pixel based on the error of the pixel.
After determining the error of the pixel, the mobile terminal may update the initial gray value of the target pixel that is located in the neighborhood of the pixel and is not traversed based on the error of the pixel. That is, the mobile terminal may transfer the error of the pixel to the target pixel adjacent to the pixel and not traversed, so as to update the initial gray value of the target pixel.
And 103, processing the traversed gray image by adopting a contrast enhancement algorithm to obtain a target image.
After obtaining the first target gray value of each pixel point of the gray image, the mobile terminal may process the traversed gray image by adopting a contrast enhancement algorithm, for example, the first target gray value of each pixel point of the gray image may be updated to a second target gray value, so as to obtain the target image.
And 104, displaying the target image in the electronic ink screen.
After obtaining the target image, the mobile terminal can display the target image in an electronic ink screen of the mobile terminal.
In summary, the embodiment of the application provides an image display method of a mobile terminal, which can transfer the error of each pixel point in a gray level image of a first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point is smaller, the change of the gray value of the adjacent pixel point is smoother, and the displayed image is more natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.
Fig. 2 is a flowchart of another method for displaying an image of a mobile terminal according to an embodiment of the present application, where the method may be applied to a mobile terminal, and the mobile terminal may include an electronic ink screen. Optionally, the mobile terminal may be a mobile phone or a tablet computer, and the electronic ink screen may be a black-and-white ink screen. Referring to fig. 2, the method may include:
step 201, traversing pixel points in the gray level image of the first gray level, and for each traversed pixel point, determining a first target gray level value of the pixel point under the second gray level and an error of the pixel point based on an initial gray level value of the pixel point.
The mobile terminal may acquire a gray image of a first gray level to be displayed, and may traverse a pixel point in the gray image of the first gray level. For each pixel point in the traversed gray image, the mobile terminal can determine a first target gray value of the pixel point under the second gray level based on the initial gray value of the pixel point, and can determine an error of the pixel point. Alternatively, the gray image may include a plurality of pixel points arranged in an array. The mobile terminal may traverse the grayscale image row by row or may traverse the grayscale image column by column.
The second gray level may be smaller than the first gray level, and the second gray level may be pre-stored in the mobile terminal. For example, the first number of gray levels is 256 and the second number of gray levels may be 16, 4 or 2. The error of the pixel may be related to the initial gray value and the second gray level number of the pixel. The number of gray levels of a gray image may refer to the number of gray levels of different levels that each pixel in the gray image can display. Therefore, the higher the number of gradation levels of the gradation image, the more gradation levels of gradation that the gradation image can display, and the better the display effect of the gradation image. For example, if the number of gray levels of a gray level image is 256, each pixel in the gray level image can display 256 gray levels, that is, the gray value of each pixel can be in the range of 0 to 255. If the gray level number of a gray level image is 16, each pixel point in the gray level image can display 16 gray levels, that is, the gray value of each pixel point can be in the range of 0 to 15.
In the embodiment of the present application, for each pixel in the gray image of the first gray level, the first target gray value of the pixel may be proportional to the quotient of the initial gray value and the second gray level of the pixel. That is, the larger the quotient value of the initial gray level value and the second gray level value of the pixel point, the larger the first target gray level value of the pixel point. The smaller the quotient value of the initial gray value and the second gray level number of the pixel point is, the smaller the first target gray value of the pixel point is.
The method for determining the first target gray value of the pixel point under the second gray level and the error of the pixel point by the mobile terminal based on the initial gray value of the pixel point can be various, and the following three optional implementation methods are taken as examples in the embodiment of the application, and the process for determining the first target gray value of the pixel point of the gray image under the second gray level and the error of the pixel point by the mobile terminal is exemplified.
In a first alternative implementation, for each pixel traversed in the gray image of the first gray level, the mobile terminal may determine that the first target gray value V of the pixel at the second gray level satisfies:and the mobile terminal can determine that the error of the pixel point is the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point. That is, the error e of the pixel point may satisfy: e=v-X. Wherein X is the initial gray value of the pixel, H is the second gray level number, +.>Representing a rounding down.
For example, assuming that the first gray level is 256, the second gray level is 16, and the initial gray value X of a pixel is 225, the mobile terminal may determine thatAt 14, the first target gray value V of the pixel point can be determined to be 240, and the error e of the pixel point is 15.
In a second alternative implementation manner, for each pixel point traversed in the gray image of the first gray level, the mobile terminal may determine that the first target gray value V of the pixel point under the second gray level satisfies:moreover, the mobile terminal can determine the error of the pixel point as the initial gray value and the second gray level number of the pixel pointThe remainder after division, i.e. the error e of the pixel point, can be satisfied: e=x% H. Wherein,% represents the remainder.
For example, assuming that the first gray level is 256, the second gray level is 16, and the initial gray value X of a pixel is 225, the mobile terminal may determine thatAt 14, it may then be determined that the first target gray value V of the mobile terminal is 210, and the error e of the pixel point is 1.
In a third alternative implementation, referring to fig. 3, the manner in which the mobile terminal determines the first target gray value of the pixel point in the second gray level and the error of the pixel point may include:
step 2011, determining the remainder of dividing the initial gray value of the pixel point by the second gray level number.
For each pixel traversed in the gray image of the first gray level, the mobile terminal may first determine a remainder of the division of the initial gray value of the pixel with the second gray level.
Step 2012, detect if the remainder is less than a remainder threshold.
After determining a remainder of the division of the initial gray value of the pixel point with the second gray level number, the mobile terminal may detect whether the remainder is less than a remainder threshold. If the mobile terminal determines that the remainder is greater than or equal to the remainder threshold, step 2013 may be performed. If the mobile terminal determines that the remainder is less than the remainder threshold, step 2015 may be performed.
Wherein the remainder threshold may be one-half of the second number of gray levels. For example, the second gray level number is 16, and the remainder threshold may be 8.
Step 2013, determining that the first target gray value V of the pixel point satisfies:
if the mobile terminal determines that the remainder of dividing the initial gray value of the traversed pixel point by the second gray level is largeAt or equal to the remainder threshold, it may be determined that the first target gray value V of the pixel satisfies:
step 2014, determining that the error of the pixel is a difference between the first target gray value of the pixel and the initial gray value of the pixel.
In the embodiment of the application, if the mobile terminal determines that the remainder of the division of the initial gray value of the traversed pixel point and the second gray level is greater than or equal to the remainder threshold, the error of the pixel point can be determined as the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point.
Step 2015, determining that the first target gray value V of the pixel point satisfies:
if the mobile terminal determines that the remainder of the division of the initial gray value and the second gray level number of the traversed pixel point is smaller than the remainder threshold value, the mobile terminal can determine that the first target gray value V of the pixel point meets the following conditions:
in step 2016, the error of the pixel is determined as the remainder of the division of the initial gray level of the pixel and the second gray level.
In the embodiment of the application, if the mobile terminal determines that the remainder of the division of the initial gray value and the second gray level number of the traversed pixel point is smaller than the remainder threshold value, the error of the pixel point can be determined as the remainder of the division of the initial gray value and the second gray level number of the pixel point.
For example, assume a first gray level of 256, a second gray level of 16, and a remainder threshold of 8. If the initial gray value X of a pixel traversed by the mobile terminal is 225, the mobile terminal may determine that the remainder between the initial gray value 225 and the second gray level 16 of the pixel is 1. Since 1 is smaller than 8, the mobile terminal may determine that the first target gray value V of the pixel point is 224, and may determine that the error e of the pixel point is 1.
Assuming that the initial gray value X of the pixel traversed by the mobile terminal is 125, the mobile terminal may determine that the remainder of the initial gray value 125 and the second gray level 16 of the pixel is 13. Since 13 is greater than 8, the mobile terminal may determine that the first target gray value V of the pixel is 128 and determine that the error e of the pixel is 3.
Step 202, updating an initial gray value of a target pixel point which is not traversed and is located in a neighborhood of the pixel point based on the error of the pixel point.
After determining the error of the pixel, the mobile terminal may update the initial gray value of the target pixel that is located in the neighborhood of the pixel and is not traversed based on the error of the pixel. That is, the mobile terminal may transfer the error of the pixel to the target pixel adjacent to the pixel and not traversed, so as to update the initial gray value of the target pixel.
In the embodiment of the present application, if the mobile terminal performs row-by-row traversal on the pixel points in the gray-scale image, and for each row of pixel points in the gray-scale image, the mobile terminal may traverse the row of pixel points row by row, for example, may traverse the row by row in a left-to-right order, or may traverse the row by row in a right-to-left order, and the process of updating, by the mobile terminal, the initial gray value of the target pixel point that is located in the neighborhood of the pixel point and is not traversed based on the error of the pixel point may include:
And a, for a first target pixel point which is positioned in the same row of the pixel points and is positioned in the next column of the pixel points, increasing the initial gray value of the first target pixel point by a first numerical value.
For a first target pixel located in the same row of pixels and in the next column of pixels, that is, a pixel located to the right of the pixel, the mobile terminal may increase the initial gray value of the first target pixel by a first value, that is, the mobile terminal may update the initial gray value of the first target pixel to the sum of the previous initial gray value and the first value. The first value may be a product of an error of the pixel point and a first duty ratio. That is, the updated initial gray value X of the first target pixel point satisfies:
X=X+c 1 xe formula (1)
In the formula (1), c 1 Is a first duty cycle.
And b, for a second target pixel point which is positioned on the next row of the pixel points and is positioned on the front column of the pixel points, increasing the initial gray value of the second target pixel point by a second numerical value.
For a second target pixel located in the next row of the pixel and located in the previous column of the pixel, that is, the pixel located at the lower left of the pixel, the mobile terminal may increase the initial gray value of the second target pixel by a second value, that is, the mobile terminal may update the initial gray value of the second target pixel to the sum of the previous initial gray value and the second value. The second value may be a product of an error of the pixel point and a second duty ratio. That is, the updated initial gray value X of the second target pixel point satisfies:
X=X+c 2 Xe formula (2)
In the formula (2), c 2 Is a second duty cycle.
And c, for a third target pixel point which is positioned on the next row of the pixel points and is positioned on the same column of the pixel points, increasing the initial gray value of the third target pixel point by a third numerical value.
For a third target pixel located in the next row of pixels and in the same column of pixels, that is, a pixel located below the pixel, the mobile terminal may increase the initial gray value of the third target pixel by a third value, that is, the mobile terminal may update the initial gray value of the third target pixel to the sum of the previous initial gray value and the third value. The third value may be a product of an error of the pixel and a third duty ratio. That is, the updated initial gray value X of the third target pixel satisfies:
X=X+c 3 xe formula (3)
In the formula (1), c 3 A third duty cycle.
And d, for a fourth target pixel point which is positioned on the next row of the pixel points and is positioned on the next column of the pixel points, increasing the initial gray value of the fourth target pixel point by a fourth numerical value.
For a fourth target pixel located in the next row of pixels and in the next column of pixels, i.e. a pixel located at the lower right of the pixel, the mobile terminal may increase the initial gray value of the fourth target pixel by a fourth value, i.e. the mobile terminal may update the initial gray value of the fourth target pixel to the sum of the previous initial gray value and the fourth value. The fourth value may be a product of the error of the pixel and the fourth duty ratio. That is, the updated initial gray value X of the fourth target pixel satisfies:
X=X+c 4 Xe formula (4)
In the formula (1), c 4 A fourth duty cycle.
In an embodiment of the application, the third duty cycle c 3 And a fourth duty cycle c 4 May be smaller than the first duty cycle c 1 First duty cycle c 1 May be smaller than the second duty cycle c 2 . For example, the third duty cycle c 3 And a fourth duty cycle c 4 May be 2/16, a first duty cycle c 1 May be 5/16, the second duty cycle c 2 May be 7/16. Wherein 7/16 represents seventeen sixteenth.
For example, referring to fig. 5, fig. 5 is a position relationship diagram of pixel points in a gray scale image according to an embodiment of the present application. The straight lines of the pixel points 1, 2 and 3 are the extending directions of the pixel rows in the gray level image, and the pixel points 1, 4 and 7 are the extending directions of the pixel columns in the gray level image. Assuming that the pixel point currently traversed by the mobile terminal is pixel point 2, the initial gray value of the pixel point 2 is 224, the second gray level is 16, the error e of the pixel point 2 is the difference value 16 between the first target gray value of the pixel point 2 and the initial gray value of the pixel point 2, and the first duty ratio c 1 At a second duty cycle c of 5/16 2 At a third duty cycle c of 7/16 3 A fourth duty cycle c of 2/16 4 2/16. Then the first targetThe pixel points are pixel points 3, the second target pixel point is a pixel point 4, the third target pixel point is a pixel point 5, and the fourth target pixel point is a pixel point 6. The initial gray value of the pixel 3 is 125, the initial gray value of the pixel 4 is 127, the initial gray value of the pixel 5 is 134, and the initial gray value of the pixel 6 is 128. Therefore, the mobile terminal may update the initial gray value of the first target pixel point, that is, the initial gray value of the pixel point 3, to 125+5=130; updating the initial gray value of the second target pixel point, namely the initial gray value of the pixel point 4, to 127+7=134; updating the initial gray value of the third target pixel point, namely the initial gray value of the pixel point 5, to 134+2=136; the initial gray value of the fourth target pixel, i.e., the initial gray value of the pixel 6, is updated to 128+2=130.
Step 203, a first maximum value and a first minimum value in initial gray values of pixel points of the gray image are obtained.
In the embodiment of the application, after the mobile terminal completes the traversal of the gray image with the first gray level number, the mobile terminal can acquire the first maximum value and the first minimum value in the initial gray values of all the pixel points of the gray image.
And 204, acquiring a second maximum value and a second minimum value in the first target gray values of the pixel points of the traversed gray image.
After the mobile terminal completes the traversal of the gray level image with the first gray level number, that is, after the first target gray level value of each pixel point of the gray level image is obtained, a second maximum value and a second minimum value in the first target gray level values of each pixel point of the traversed gray level image can be obtained.
And 205, processing the traversed gray image by adopting a contrast enhancement algorithm to obtain a target image.
After obtaining a first maximum value and a first minimum value in the initial gray values of the pixel points of the gray image and a second maximum value and a second minimum value in the first target gray values of the pixel points of the traversed gray image, the mobile terminal can process the traversed gray image by adopting a contrast enhancement algorithm to obtain a target image.
Optionally, the mobile terminal may update the first target gray value of the pixel point of the traversed gray image to the second target gray value, to obtain the target image. Wherein, the second target gray value W for each pixel point in the traversed gray image satisfies:
in the above formula (5), m is a first minimum value, n is a first maximum value, r is a second minimum value, and s is a second maximum value. According to the above formula (5), if the initial gray value X of the pixel is equal to the first minimum value m, the second target gray value W of the pixel may be twice the first target gray value V of the pixel. If the initial gray value X of the pixel is greater than the first minimum value m and less than the first maximum value n, the second target gray value W of the pixel may satisfy: w=r+ (X-m) × (s-r)/(n-m). If the initial gray value X of the pixel is equal to the first maximum value n, the second target gray value W of the pixel may satisfy: w=s+r, i.e. the sum of the second minimum value and the second maximum value.
For example, it is assumed that the minimum value of the initial gray value of the pixel point of the gray image before traversal is 12, that is, the first minimum value m is 12, and the maximum value of the initial gray value of the pixel point is 200, that is, the first maximum value n is 200. The minimum value of the first target gray value of the pixel point of the gray image after traversing is 32, namely, the second minimum value r is 32, and the maximum value of the first target gray value is 208, namely, the second maximum value s is 208.
Assuming that an initial gray value of a certain pixel is 12, a first target gray value is 32, and since 12 is equal to 12, the mobile terminal may update the first target gray value 32 to 64 while a second target gray value of the certain pixel is 64. Assuming that an initial gray value of a certain pixel is 180, a first target gray value is 192, and since 180 is less than 200, the mobile terminal may determine a second target gray value w=32+ (180-12) (208-32)/(200-12) =189 for the pixel, and may update the first target gray value 180 for the pixel to 189. Assuming that the initial gray value of a certain pixel is 200, since 200 is equal to 200, the mobile terminal may determine that the second target gray value w=32+208=240 of the pixel, and may update the first target gray value 200 of the pixel to 240.
And 206, displaying the target image in the electronic ink screen.
After the mobile terminal processes the traversed gray image by adopting a contrast enhancement algorithm, the target image can be displayed on the electronic ink screen of the mobile terminal.
Fig. 5 is a schematic diagram of a gray image at a second gray level obtained by converting a gray image at a first gray level using a method in the related art. Fig. 6 is a schematic diagram of a target image provided in an embodiment of the present application, where the target image may be obtained after the mobile terminal determines a first target gray value and an error of a pixel point of the gray image by using a first alternative implementation manner. Fig. 7 is a schematic diagram of another target image provided in an embodiment of the present application, where the target image may be obtained after the mobile terminal determines the first target gray value and the error of the pixel point of the gray image by using the second alternative implementation method. Fig. 8 is a schematic diagram of still another target image provided in an embodiment of the present application, where the target image may be obtained after the mobile terminal determines the first target gray value and the error of the pixel point of the gray image in a third alternative implementation manner.
As can be seen from fig. 5, after the gray level image of the first gray level is converted by the method in the related art, the obtained gray level image of the second gray level has obvious water ripple, for example, the cup cover of the cup shown in fig. 5 has obvious fault phenomenon, the display effect of the image is poor, and the transition is unnatural. Comparing fig. 5 and 6, fig. 5 and 7, and fig. 5 and 8, it can be seen that no obvious water ripple exists in fig. 6, fig. 7, and fig. 8, the display effect of the image is better, and the display is more natural.
It should be noted that the electronic ink screen may be a black-and-white ink screen or may be a color ink screen. If the electronic ink screen is a color ink screen, the mobile terminal can also acquire the position of each color block in the color filter layer of the color ink screen. The plurality of color blocks can be arranged in an array, and the plurality of color blocks can be in one-to-one correspondence with a plurality of pixel points in the gray scale image. Then, for each pixel in the gray level image of the first gray level number, the mobile terminal can update the initial gray value of the target pixel which is not traversed and is located in the neighborhood of the pixel in the pixel corresponding to the color block with the same color as the color block corresponding to the pixel based on the error of the pixel. That is, the mobile terminal may transfer the error of the pixel to the pixel that is not traversed in the pixel corresponding to the color block with the same color as the color corresponding to the pixel and the color block adjacent to the color block. For example, if the color of the color block corresponding to a certain pixel point is red, the mobile terminal may transmit the error of the pixel point to the pixel point which is not traversed among the pixel points corresponding to the other four red color blocks adjacent to the red color block.
It should be further noted that, the sequence of the steps of the image display method of the mobile terminal provided by the embodiment of the application may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation. For example, step 203 may also be performed before step 201. Step 204 may also be optionally omitted, for example, in the process of processing the traversed gray-scale image by using the contrast enhancement algorithm, the mobile terminal may use the histogram normalization algorithm to process the traversed gray-scale image, so as to enhance the contrast of the traversed gray-scale image. Only the maximum value and the minimum value, that is, the first maximum value and the first minimum value, of the initial gray value of the gray image of the first gray level number are needed to be obtained in the histogram normalization algorithm. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present application, and thus will not be repeated.
In summary, the embodiment of the application provides an image display method of a mobile terminal, which can transfer the error of each pixel point in a gray level image of a first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point is smaller, the change of the gray value of the adjacent pixel point is smoother, and the displayed image is more natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.
Fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal may include a processor 1101 and an electronic ink screen 1102. The processor 1101 may be configured to:
traversing pixel points in the gray level image of the first gray level, and determining a first target gray level of the pixel points under a second gray level and errors of the pixel points based on the initial gray level of the pixel points for each traversed pixel point, wherein the second gray level is smaller than the first gray level, and the errors of the pixel points are related to the initial gray level and the second gray level of the pixel points;
updating an initial gray value of a target pixel which is not traversed and is positioned in a neighborhood of the pixel based on the error of the pixel;
processing the traversed gray level image by adopting a contrast enhancement algorithm to obtain a target image;
the electronic ink screen 1102 is used to display a target image.
In summary, the embodiment of the present application provides a mobile terminal, which can transfer the error of each pixel point in the gray level image of the first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point becomes smaller, the gray value of the adjacent pixel point changes smoothly, and the displayed image is natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.
Optionally, the first target gray level is proportional to a quotient of the initial gray level and the second gray level of the pixel.
Optionally, the processor 1101 may be configured to:
if the remainder of the division of the initial gray value and the second gray level of the pixel point is greater than or equal to the remainder threshold, determining that the first target gray value V of the pixel point under the second gray level meets the following conditions:if the remainder of the division of the initial gray value and the second gray level number of the pixel point is smaller than the remainder threshold value, determining that the first target gray value V of the pixel point under the second gray level number meets the following conditions: />Wherein (1)>The representation is rounded down, the remainder threshold is one half of the second gray level, X is the initial gray value of the pixel, and H is the second gray level.
Optionally, the error of the pixel point is a remainder of dividing the initial gray value of the pixel point by the second gray level number; or the error of the pixel point is the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point.
Optionally, the gray image includes a plurality of pixel points arranged in an array; the processor 1101 may be configured to: and traversing the pixel points in the gray level image row by row.
The processor 1101 may be configured to: for a first target pixel point which is positioned in the same row of the pixel points and is positioned in the next column of the pixel points, increasing the initial gray value of the first target pixel point by a first numerical value, wherein the first numerical value is the product of the error of the pixel point and a first duty ratio; for a second target pixel point which is positioned on the next row of the pixel points and is positioned on the front column of the pixel points, increasing the initial gray value of the second target pixel point by a second numerical value, wherein the second numerical value is the product of the error of the pixel point and a second duty ratio; for a third target pixel point which is positioned on the next row of the pixel points and is positioned on the same column of the pixel points, increasing the initial gray value of the third target pixel point by a third numerical value, wherein the third numerical value is the product of the error of the pixel point and a third duty ratio; for a fourth target pixel point which is positioned on the next row of the pixel points and on the next column of the pixel points, increasing the initial gray value of the fourth target pixel point by a fourth numerical value, wherein the fourth numerical value is the product of the error of the pixel point and a fourth duty ratio; wherein the third and fourth duty cycles are each less than the first duty cycle, and the first duty cycle is less than the second duty cycle.
Optionally, the processor 1101 may be further configured to:
acquiring a first maximum value and a first minimum value in initial gray values of pixel points of a gray image;
acquiring a second maximum value and a second minimum value in a first target gray value of a pixel point of the gray image after traversing;
the processor 1101 may be configured to:
updating a first target gray value of a pixel point of the traversed gray image to a second target gray value to obtain a target image;
for each pixel point in the traversed gray image, if the initial gray value of the pixel point is equal to the first minimum value, the second target gray value of the pixel point is twice the first target gray value of the pixel point;
if the initial gray value of the pixel point is greater than the first minimum value and less than the first maximum value, the second target gray value W of the pixel point satisfies: w=r+ (X-m) × (s-r)/(n-m);
if the initial gray value of the pixel point is equal to the first maximum value, the second target gray value W of the pixel point satisfies: w=s+r;
wherein m is a first minimum value, n is a first maximum value, r is a second minimum value, s is a second maximum value, and X is an initial gray value of the pixel point.
Optionally, the electronic ink screen is a color ink screen, and the color ink screen includes a plurality of color blocks with different colors, where each color block corresponds to one pixel point in the gray scale image. The processor 1101 may be configured to:
And updating the initial gray value of the target pixel which is not traversed and is positioned in the neighborhood of the pixel in the pixel corresponding to the color block with the same color as the color block corresponding to the pixel based on the error of the pixel.
In summary, the embodiment of the present application provides a mobile terminal, which can transfer the error of each pixel point in the gray level image of the first gray level number to the pixel point in the neighborhood of the mobile terminal, so that the error of the adjacent pixel point becomes smaller, the gray value of the adjacent pixel point changes smoothly, and the displayed image is natural. After each pixel in the gray level image is traversed, the mobile terminal can also process the traversed gray level image by adopting a contrast enhancement algorithm, so that the contrast of the image is enhanced, and the display effect of the image is effectively improved.
Fig. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application. As shown in fig. 10, the mobile terminal 110 may further include: display unit 130, radio Frequency (RF) circuit 150, audio circuit 160, wireless fidelity (wireless fidelity, wi-Fi) module 170, bluetooth module 180, power supply 190, camera 121, and processor 1101.
Wherein camera 121 may be used to capture still pictures or video. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the processor 1101 for conversion into a digital picture signal.
The processor 1101 is a control center of the mobile terminal 110, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the mobile terminal 110 and processes data by running or executing software programs stored in the memory 140, and calling data stored in the memory 140. In some embodiments, the processor 1101 may include one or more processing units; the processor 1101 may also integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., and a baseband processor that primarily processes wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. The processor 1101 in the present application may run an operating system and an application program, may control a user interface to display, and may implement the image display method of the mobile terminal provided in the embodiment of the present application. In addition, the processor 1101 is coupled to the input unit and the display unit 130.
The display unit 130 may be used to receive input numeric or character information, generate signal inputs related to user settings and function control of the mobile terminal 110, and optionally, the display unit 130 may be used to display information input by a user or information provided to a user and a graphical user interface (graphical user interface, GUI) of various menus of the mobile terminal 110. The display unit 130 may include a display 131 disposed on the front surface of the mobile terminal 110. The display 131 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described in the present application.
The display unit 130 includes: a display screen 131 and a touch screen 132 provided on the front surface of the mobile terminal 110. The display 131 may be used to display preview pictures. Touch screen 132 may collect touch operations on or near the user, such as clicking a button, dragging a scroll box, and the like. The touch screen 132 may cover the display screen 131, or the touch screen 132 and the display screen 131 may be integrated to realize the input and output functions of the mobile terminal 110, and the integrated touch screen may be simply referred to as a touch display screen.
Memory 140 may be used to store software programs and data. The processor 1101 performs various functions of the mobile terminal 110 and data processing by running software programs or data stored in the memory 140. Memory 140 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The memory 140 stores an operating system that enables the mobile terminal 110 to operate. The memory 140 in the present application may store an operating system and various application programs, and may also store codes for executing the image display method of the mobile terminal provided in the embodiment of the present application.
The RF circuit 150 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, and may receive downlink data of the base station and then transmit the downlink data to the processor 1101 for processing; uplink data may be sent to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers, diplexers, and the like.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between the user and mobile terminal 110. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the speaker 161 converts the electrical signal into a sound signal and outputs the sound signal. The mobile terminal 110 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is output to the RF circuit 150 for transmission to, for example, another terminal, or to the memory 140 for further processing. The microphone 162 of the present application may acquire the voice of the user.
Wi-Fi, which is a short-range wireless transmission technology, can help users to send and receive e-mail, browse web pages, access streaming media, etc. through the Wi-Fi module 170, and provides wireless broadband internet access to users.
The bluetooth module 180 is configured to interact with other bluetooth devices having bluetooth modules through a bluetooth protocol. For example, the mobile terminal 110 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) also provided with a bluetooth module through the bluetooth module 180, thereby performing data interaction.
The mobile terminal 110 also includes a power supply 190 (e.g., a battery) that provides power to the various components. The power supply may be logically connected to the processor 1101 through a power management system, so that functions of managing charging, discharging, power consumption, etc. are implemented through the power management system. The mobile terminal 110 may also be configured with a power button for powering on and off the terminal, and for locking the screen.
The mobile terminal 110 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. The mobile terminal 110 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the mobile terminal and each device described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fig. 11 is a software structure block diagram of a mobile terminal according to an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 11, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc. The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 11, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is operable to provide communication functions for mobile terminal 110. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is presented in a status bar, a presentation sound is emitted, the communication terminal vibrates, and an indicator light blinks.
an android run includes a core library and virtual machines. android run is responsible for scheduling and management of android systems.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGLES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still picture files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
An embodiment of the present application provides a computer-readable storage medium, in which instructions are stored, which when executed on a computer, cause the computer to perform the image display method of the mobile terminal provided in the above embodiment, for example, the method shown in fig. 1 or fig. 2.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the image display method of the mobile terminal provided by the above method embodiment, for example, the method shown in fig. 1 or fig. 2.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the exemplary embodiments of the application is not intended to limit the application to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the application.

Claims (6)

1. A mobile terminal, characterized in that the mobile terminal comprises a processor and an electronic ink screen; the processor is configured to:
traversing pixel points in a gray level image of a first gray level, and determining a first target gray level of the pixel point under a second gray level and an error of the pixel point based on an initial gray level of the pixel point for each traversed pixel point, wherein the second gray level is smaller than the first gray level, and the error of the pixel point is related to the initial gray level and the second gray level of the pixel point;
updating an initial gray value of a target pixel which is not traversed and is positioned in the neighborhood of the pixel based on the error of the pixel;
processing the traversed gray level image by adopting a contrast enhancement algorithm to obtain a target image;
the electronic ink screen is used for displaying the target image;
If the remainder of the division between the initial gray value and the second gray level is greater than or equal to the remainder threshold, the first target gray value V of the pixel under the second gray level satisfies:
if the remainder of the division between the initial gray value and the second gray level number of the pixel point is smaller than the remainder threshold value, the first target gray value V of the pixel point under the second gray level number meets the following conditions:
and the representation is rounded downwards, the remainder threshold is one half of the second gray level, X is the initial gray value of the pixel point, and H is the second gray level.
2. The mobile terminal of claim 1, wherein the error of the pixel is a remainder of the division of the initial gray value of the pixel with the second gray level number;
or the error of the pixel point is the difference value between the first target gray value of the pixel point and the initial gray value of the pixel point.
3. The mobile terminal according to claim 1 or 2, wherein the grayscale image includes a plurality of pixel points arranged in an array; the processor is configured to:
traversing pixel points in the gray level image line by line;
The processor is configured to:
for a first target pixel point which is positioned in the same row of the pixel points and is positioned in the next column of the pixel points, increasing the initial gray value of the first target pixel point by a first numerical value, wherein the first numerical value is the product of the error of the pixel point and a first duty ratio;
for a second target pixel point which is positioned on the next row of the pixel points and is positioned on the front column of the pixel points, increasing the initial gray value of the second target pixel point by a second numerical value, wherein the second numerical value is the product of the error of the pixel point and a second duty ratio;
for a third target pixel point which is positioned on the next row of the pixel points and is positioned on the same column of the pixel points, increasing the initial gray value of the third target pixel point by a third numerical value, wherein the third numerical value is the product of the error of the pixel point and a third duty ratio;
for a fourth target pixel point located in the next row of the pixel points and in the next column of the pixel points, increasing the initial gray value of the fourth target pixel point by a fourth numerical value, wherein the fourth numerical value is the product of the error of the pixel point and a fourth duty ratio;
wherein the third and fourth duty cycles are each less than the first duty cycle, the first duty cycle being less than the second duty cycle.
4. The mobile terminal of claim 1 or 2, wherein the processor is further configured to:
acquiring a first maximum value and a first minimum value in initial gray values of pixel points of the gray image;
acquiring a second maximum value and a second minimum value in a first target gray value of the pixel point of the gray image after traversing;
the processor is configured to:
updating a first target gray value of the pixel point of the gray image after traversing to a second target gray value to obtain a target image;
for each pixel point in the traversed gray image, if the initial gray value of the pixel point is equal to the first minimum value, the second target gray value of the pixel point is twice the first target gray value of the pixel point;
if the initial gray value of the pixel point is greater than the first minimum value and less than the first maximum value, the second target gray value W of the pixel point satisfies: w=r+ (X-m) × (s-r)/(n-m);
if the initial gray value of the pixel is equal to the first maximum value, the second target gray value W of the pixel satisfies: w=s+r;
the m is the first minimum value, the n is the first maximum value, the r is the second minimum value, the s is the second maximum value, and the X is the initial gray value of the pixel point.
5. The mobile terminal according to claim 1 or 2, wherein the electronic ink screen is a color ink screen, the color ink screen includes a plurality of color blocks of different colors, and each color block corresponds to one pixel point in the grayscale image; the processor is configured to:
updating the initial gray value of the target pixel which is not traversed and is positioned in the neighborhood of the pixel in the pixel corresponding to the color block with the same color as the color block corresponding to the pixel based on the error of the pixel.
6. An image display method of a mobile terminal, wherein the mobile terminal comprises an electronic ink screen, the method comprising:
traversing pixel points in a gray level image of a first gray level, and determining a first target gray level of the pixel point under a second gray level and an error of the pixel point based on an initial gray level of the pixel point for each traversed pixel point, wherein the second gray level is smaller than the first gray level, and the error of the pixel point is related to the initial gray level and the second gray level of the pixel point;
updating an initial gray value of a target pixel which is not traversed and is positioned in the neighborhood of the pixel based on the error of the pixel;
Processing the traversed gray level image by adopting a contrast enhancement algorithm to obtain a target image;
displaying the target image in the electronic ink screen;
if the remainder of the division between the initial gray value and the second gray level is greater than or equal to the remainder threshold, the first target gray value V of the pixel under the second gray level satisfies:
if the remainder of the division between the initial gray value and the second gray level number of the pixel point is smaller than the remainder threshold value, the first target gray value V of the pixel point under the second gray level number meets the following conditions:
and the representation is rounded downwards, the remainder threshold is one half of the second gray level, X is the initial gray value of the pixel point, and H is the second gray level.
CN202010756823.2A 2020-07-31 2020-07-31 Mobile terminal and image display method thereof Active CN114063945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010756823.2A CN114063945B (en) 2020-07-31 2020-07-31 Mobile terminal and image display method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010756823.2A CN114063945B (en) 2020-07-31 2020-07-31 Mobile terminal and image display method thereof

Publications (2)

Publication Number Publication Date
CN114063945A CN114063945A (en) 2022-02-18
CN114063945B true CN114063945B (en) 2023-11-03

Family

ID=80227426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010756823.2A Active CN114063945B (en) 2020-07-31 2020-07-31 Mobile terminal and image display method thereof

Country Status (1)

Country Link
CN (1) CN114063945B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115802056B (en) * 2023-01-31 2023-05-05 南通凯沃智能装备有限公司 User data compression storage method for mobile terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001144961A (en) * 1999-11-18 2001-05-25 Minolta Co Ltd Image processing unit
CN1996384A (en) * 2006-12-25 2007-07-11 华中科技大学 Infrared image multistage mean contrast enhancement method
CN101742084A (en) * 2010-01-29 2010-06-16 昆山锐芯微电子有限公司 Contrast ratio enhancement processing method and processing device
CN103295545A (en) * 2012-02-27 2013-09-11 株式会社日本显示器西 Image display apparatus, method of driving image display apparatus, grayscale conversion program, and grayscale conversion apparatus
CN104092918A (en) * 2014-07-03 2014-10-08 苏州佳世达光电有限公司 Image transformation method and circuit for image transformation
CN104166969A (en) * 2014-08-25 2014-11-26 广东威创视讯科技股份有限公司 Digital image enhancement method and system
CN105391912A (en) * 2015-11-13 2016-03-09 西安诺瓦电子科技有限公司 Imaging processing method based on error diffusion
CN107948462A (en) * 2017-11-24 2018-04-20 无锡祥生医疗科技股份有限公司 Ultrasound image optimization method and system
CN109191384A (en) * 2018-07-04 2019-01-11 青岛海信移动通信技术股份有限公司 Image processing method, device, mobile terminal and storage medium based on ink screen

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8243004B2 (en) * 2003-03-10 2012-08-14 Fergason Patent Properties, Llc Apparatus and method for preparing, storing, transmitting and displaying images
TWI315961B (en) * 2006-03-16 2009-10-11 Quanta Comp Inc Method and apparatus for adjusting contrast of image
US8977944B2 (en) * 2010-12-14 2015-03-10 Cavium, Inc. DRAM address protection
JP5750968B2 (en) * 2011-03-24 2015-07-22 セイコーエプソン株式会社 Image processing apparatus, printing apparatus, image processing method, and image processing program
JP6289425B2 (en) * 2015-09-25 2018-03-07 キヤノン株式会社 IMAGING ELEMENT AND MANUFACTURING METHOD THEREOF, IMAGING DEVICE, IMAGING METHOD, AND PROGRAM

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001144961A (en) * 1999-11-18 2001-05-25 Minolta Co Ltd Image processing unit
CN1996384A (en) * 2006-12-25 2007-07-11 华中科技大学 Infrared image multistage mean contrast enhancement method
CN101742084A (en) * 2010-01-29 2010-06-16 昆山锐芯微电子有限公司 Contrast ratio enhancement processing method and processing device
CN103295545A (en) * 2012-02-27 2013-09-11 株式会社日本显示器西 Image display apparatus, method of driving image display apparatus, grayscale conversion program, and grayscale conversion apparatus
CN104092918A (en) * 2014-07-03 2014-10-08 苏州佳世达光电有限公司 Image transformation method and circuit for image transformation
CN104166969A (en) * 2014-08-25 2014-11-26 广东威创视讯科技股份有限公司 Digital image enhancement method and system
CN105391912A (en) * 2015-11-13 2016-03-09 西安诺瓦电子科技有限公司 Imaging processing method based on error diffusion
CN107948462A (en) * 2017-11-24 2018-04-20 无锡祥生医疗科技股份有限公司 Ultrasound image optimization method and system
CN109191384A (en) * 2018-07-04 2019-01-11 青岛海信移动通信技术股份有限公司 Image processing method, device, mobile terminal and storage medium based on ink screen

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于邻域灰度信息误差扩散算法的电润湿电子纸研究;曾素云;林珊玲;林志贤;郭太良;唐彪;;液晶与显示(第03期);全文 *

Also Published As

Publication number Publication date
CN114063945A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN111508039B (en) Word processing method of ink screen and communication terminal
CN111343339B (en) Mobile terminal and image display method thereof
CN112114929B (en) Display device and image display method thereof
CN112184595B (en) Mobile terminal and image display method thereof
CN112925596B (en) Mobile terminal and display method of display object thereof
CN113038141B (en) Video frame processing method and electronic equipment
CN114449243A (en) White balance method and terminal equipment
CN114063945B (en) Mobile terminal and image display method thereof
CN111193874B (en) Image display parameter adjusting method and mobile terminal
CN111031377B (en) Mobile terminal and video production method
CN114067758B (en) Mobile terminal and image display method thereof
CN113360122B (en) Mobile terminal and text display method thereof
CN114639358B (en) Ink screen refreshing method, terminal device, storage medium and program product
CN115033199A (en) Mobile terminal and image display method thereof
CN112799557B (en) Ink screen display control method, terminal and computer readable storage medium
CN114489429B (en) Terminal equipment, long screen capturing method and storage medium
CN113253905B (en) Touch method based on multi-finger operation and intelligent terminal
CN114863432A (en) Terminal device, contrast adjusting method, device and medium
CN113760164A (en) Display device and response method of control operation thereof
CN111479075B (en) Photographing terminal and image processing method thereof
CN111988530B (en) Mobile terminal and photographing method thereof
CN117055779B (en) Application interface display method, terminal equipment and storage medium
CN111414142B (en) Mobile terminal and display method of application interface thereof
CN113259582B (en) Picture generation method and terminal
CN113407135A (en) Display control method applied to ink screen and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant