Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 1071 (e.g., operations performed by the user on or near the touch panel 1071 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 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 processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Fig. 2 is a flowchart of a method for implementing image display according to an embodiment of the present invention, as shown in fig. 2, including:
step 200, when the first image is locally amplified, determining a second image displayed by local amplification;
it should be noted that, the first image in the embodiment of the present invention may be an already saved image, or may be an image obtained by current shooting; the image may be displayed in full screen, or may be displayed in full screen in landscape mode. The embodiment of the invention can be implemented on a mobile phone, a tablet computer or a computer, and the first image is displayed and processed by the mobile phone, the tablet computer or the computer.
Optionally, before determining to partially enlarge the displayed second image, the method according to the embodiment of the present invention further includes:
it is determined whether the first image is locally enlarged.
It should be noted that the determination as to whether the first image is locally enlarged may be performed by an embodiment known in the related art. FIG. 3 is a schematic diagram of an image without local enlargement according to an embodiment of the present invention, as shown in FIG. 3, when the image is not locally enlarged, a person is in the center of the display area and occupies a smaller area; fig. 4 is a schematic diagram of an image partially enlarged according to an embodiment of the present invention, as shown in fig. 4, the image of the displayed person is enlarged by the thumb and the index finger, and the person occupies the whole display window. In the embodiment of the present invention, the performing the local amplification on the first image may be performed by an existing implementation manner in the related art, and the determining process may include: acquiring touch operation of a user; judging whether the touch operation of the user is a local amplification operation; here, the determining whether the user is the zoom-in operation may include: the method comprises the steps of receiving touch operation of a user through a screen, judging whether the distance between two coordinate points after touch operation is larger than the distance between coordinates of a starting point or not when detecting that the coordinate points of the starting point are changed by the user in continuous touch operation, and determining that the touch operation of the user is amplification operation when the distance between the two coordinate points after touch operation is larger than the distance between the coordinates of the starting point. After the touch operation of the user is detected to be the operation of local amplification through the process, the first image is amplified according to the operation of local amplification. When the currently displayed image does not change within the preset time length, the partially enlarged displayed image is determined as a second image (the second image may be defined as an image in which the information in the pixels does not change within the preset time length). The preset duration can be about 2 seconds (S), and the preset duration can be directly defined in the related technology or set according to user definition. The user can also determine whether to finish the local amplification operation of the first image according to a preset operation key or an external instruction, so that the image display processing of the embodiment of the invention can be efficiently performed in real time.
Step 201, determining a local image in a first image corresponding to a second image;
when the first image is locally enlarged, the first image may be processed according to an image processing rule existing in the related art, for example, the local image in the first image is enlarged by a pixel interpolation method, and the second image may be determined according to a processing principle of the pixel interpolation method; according to the embodiment of the invention, the image information before interpolation, that is, the information of the partial image in the first image in the embodiment of the invention, in other words, the information of the partial image in the first image corresponding to the second image after partial enlargement can be obtained through the processing principle of the interpolation mode. For example, after a local portion of the first image is four times amplified by the interpolation method of the pixels, theoretically, the processing principle of the interpolation method can be used to reversely deduce that one pixel on the local image can correspond to four pixels of the amplified second image.
And 202, adjusting display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image.
Optionally, the image parameters in the embodiment of the present invention include part or all of the following:
pixel point position of the image, color of the pixel, brightness of the pixel, transparency of the pixel.
It should be noted that, the image parameters in the embodiment of the present invention may include one or more of a pixel point position of an image, a color of a pixel, a brightness of a pixel, and a transparency of a pixel, and may further include other image parameters, for example, sharpness of a pixel, and other information, and the addition and deletion of the image parameters may be set by a person skilled in the art according to the quality requirement of the image display.
Optionally, the display parameters in the embodiment of the present invention include part or all of the following: color, brightness, transparency of the display screen.
It should be noted that the display parameters of the display screen according to the embodiment of the present invention may include one or more of color, brightness, and transparency of the display screen, and those skilled in the art may perform addition and deletion adjustment of the display parameters according to the display quality of the image.
Optionally, the adjusting the display parameters of the display screen according to the image parameters of the second image and the local image in the embodiment of the present invention includes:
dividing pixels of which the difference value of the color parameters in the adjacent pixels is smaller than a first preset difference value into a color block area according to the position information and the color parameters of each pixel in the local image, and calculating the average value of the color parameters of all the pixels in each divided color block area;
for example, a local image displayed in an enlarged manner in the first image is divided into different color block regions according to the color parameters (for example, five-star red flags are divided into a yellow region and a red region according to the color parameters), and the color parameter mean value of each color block region is calculated.
According to the position information and the color parameters of each pixel in the second image, for each pixel, the color parameters of the pixel and the color parameter mean value of each color block area of the local image are subtracted to obtain a mean value difference value corresponding to each color block area, and when the mean value difference value is smaller than a second preset difference value, the pixel is mapped to the color block area of which the mean value difference value is smaller than the second preset difference value;
and adjusting the color of the display screen according to the color parameter of each pixel and the mean value difference value of the mapped color block area.
It should be noted that, in the embodiment of the present invention, the first preset difference and the second preset difference may be set by a person skilled in the art according to the image display quality, the operation rate of the device implementing the embodiment of the present invention, the power consumption, and the like. The higher the display quality requirement, the smaller the first predetermined difference value and the second predetermined difference value should theoretically be. Fig. 5 is an interactive block diagram for setting a first preset difference and a second preset difference in the embodiment of the present invention, and as shown in fig. 5, the value setting of the first preset difference and the second preset difference can be realized through the text box 1 and the text box 2, and the value setting can also be set by using other controls for adjusting a numerical value, which is not described herein again.
In addition, the color parameters of the embodiment of the present invention may include red (R), green (G), and blue (B) values, and the RGB values of the pixels may be obtained by an existing obtaining method in the related art; the location information of the embodiment of the present invention may include coordinate information of the pixel, for example, coordinate information [145, 168], and the coordinate information may be obtained by using a sensor in the related art or reading the related parameter. Referring to the adjustment of the color of the display screen in the embodiment of the present invention, the embodiment of the present invention may also adjust other display parameters, and the adjustment principle and the color adjustment principle are the same, as long as the parameter difference between the second image and the local image is determined. The embodiment of the invention can adjust the display parameters of the display screen through the controller, namely the controller adjusts the parameters of the display screen to the second image after the local image is amplified according to the display of the local image, so as to obtain the image displayed to the user.
Compared with the related art, the technical scheme of the embodiment of the invention comprises the following steps: when the first image is locally amplified, determining a second image displayed by local amplification; determining a partial image in the first image corresponding to the second image; and adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image. According to the embodiment of the invention, the display parameters of the display screen are adjusted according to the image parameters of the local image before amplification, so that the display quality of the amplified second image is improved, and the use experience of a user is improved.
Fig. 6 is a flowchart of a method for implementing image display according to another embodiment of the present invention, as shown in fig. 6, including:
step 600, acquiring touch operation of a user;
step 601, judging whether the touch operation of the user is a local amplification operation;
in addition, the determination as to whether or not the first image is locally enlarged may be performed by an embodiment known in the related art. According to the embodiment of the invention, when the coordinate points of the starting point are detected to be changed during continuous touch operation of the user, whether the distance between the two coordinate points after the touch operation is greater than the distance between the coordinates of the starting point or not is judged, and when the distance between the two coordinate points after the touch operation is greater than the distance between the coordinates of the starting point, the touch operation of the user is determined to be the amplification operation. After the touch operation of the user is detected to be the operation of local amplification through the process, the first image is amplified according to the operation of local amplification. When the currently displayed image does not change within the preset time length, the partially enlarged displayed image is determined as a second image (the second image may be defined as an image in which the information in the pixels does not change within the preset time length). The preset duration can be about 2 seconds (S), and the preset duration can be directly defined in the related technology or set according to user definition. The user can also determine whether to finish the local amplification operation of the first image according to a preset operation key or an external instruction, so that the image display processing of the embodiment of the invention can be efficiently performed in real time.
Step 602, when the first image is locally enlarged, determining a second image displayed by local enlargement;
it should be noted that, the first image in the embodiment of the present invention may be an already saved image, or may be an image obtained by current shooting; the image may be displayed in full screen, or may be displayed in full screen in landscape mode. The embodiment of the invention can be implemented on a mobile phone, a tablet computer or a computer, and the first image is displayed and processed by the mobile phone, the tablet computer or the computer.
Step 603, determining a local image in the first image corresponding to the second image;
when the first image is locally enlarged, the first image may be processed according to an image processing rule existing in the related art, for example, the local image in the first image is enlarged by a pixel interpolation method, and the second image may be determined according to a processing principle of the pixel interpolation method; according to the embodiment of the invention, the image information before interpolation, that is, the information of the partial image in the first image in the embodiment of the invention, in other words, the information of the partial image in the first image corresponding to the second image after partial enlargement can be obtained through the processing principle of the interpolation mode. For example, after a local portion of the first image is four times amplified by the interpolation method of the pixels, theoretically, the processing principle of the interpolation method can be used to reversely deduce that one pixel on the local image can correspond to four pixels of the amplified second image.
And step 604, adjusting display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image.
Optionally, the image parameters in the embodiment of the present invention include part or all of the following:
pixel point position of the image, color of the pixel, brightness of the pixel, transparency of the pixel.
It should be noted that, the image parameters in the embodiment of the present invention may include one or more of a pixel point position of an image, a color of a pixel, a brightness of a pixel, and a transparency of a pixel, and may further include other image parameters, for example, sharpness of a pixel, and other information, and the addition and deletion of the image parameters may be set by a person skilled in the art according to the quality requirement of the image display.
Optionally, the display parameters in the embodiment of the present invention include part or all of the following: color, brightness, transparency of the display screen.
It should be noted that the display parameters of the display screen according to the embodiment of the present invention may include one or more of color, brightness, and transparency of the display screen, and those skilled in the art may perform addition and deletion adjustment of the display parameters according to the display quality of the image.
Optionally, the adjusting the display parameters of the display screen according to the image parameters of the second image and the local image in the embodiment of the present invention includes:
dividing pixels of which the difference value of the color parameters in the adjacent pixels is smaller than a first preset difference value into a color block area according to the position information and the color parameters of each pixel in the local image, and calculating the average value of the color parameters of all the pixels in each divided color block area;
for example, a local image displayed in an enlarged manner in the first image is divided into different color block regions according to the color parameters (for example, five-star red flags are divided into a yellow region and a red region according to the color parameters), and the color parameter mean value of each color block region is calculated.
According to the position information and the color parameters of each pixel in the second image, for each pixel, the color parameters of the pixel and the color parameter mean value of each color block area of the local image are subtracted to obtain a mean value difference value corresponding to each color block area, and when the mean value difference value is smaller than a second preset difference value, the pixel is mapped to the color block area of which the mean value difference value is smaller than the second preset difference value;
and adjusting the color of the display screen according to the color parameter of each pixel and the mean value difference value of the mapped color block area.
It should be noted that, in the embodiment of the present invention, the first preset difference and the second preset difference may be set by a person skilled in the art according to the image display quality, the operation rate of the device implementing the embodiment of the present invention, the power consumption, and the like.
In addition, the color parameters of the embodiment of the present invention may include red (R), green (G), and blue (B) values, and the RGB values of the pixels may be obtained by an existing obtaining method in the related art; the location information of the embodiment of the present invention may include coordinate information of the pixel, for example, coordinate information [145, 168], and the coordinate information may be obtained by using a sensor in the related art or reading the related parameter. Referring to the adjustment of the color of the display screen in the embodiment of the present invention, the embodiment of the present invention may also adjust other display parameters, and the adjustment principle and the color adjustment principle are the same, as long as the parameter difference between the second image and the local image is determined. The embodiment of the invention can adjust the display parameters of the display screen through the controller, namely the controller adjusts the parameters of the display screen to the second image after the local image is amplified according to the display of the local image, so as to obtain the image displayed to the user.
Compared with the related art, the technical scheme of the embodiment of the invention comprises the following steps: when the first image is locally amplified, determining a second image displayed by local amplification; determining a partial image in the first image corresponding to the second image; and adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image. According to the embodiment of the invention, the display parameters of the display screen are adjusted according to the image parameters of the local image before amplification, so that the display quality of the amplified second image is improved, and the use experience of a user is improved.
FIG. 7 is a block diagram of an apparatus for displaying an image according to an embodiment of the present invention, as shown in FIG. 7, the apparatus includes a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the image display program stored in the memory to realize the following steps:
when the first image is locally amplified, determining a second image displayed by local amplification;
determining a partial image in the first image corresponding to the second image;
and adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image.
It should be noted that, the first image in the embodiment of the present invention may be an already saved image, or may be an image obtained by current shooting; the image may be displayed in full screen, or may be displayed in full screen in landscape mode. The embodiment of the invention can be implemented on a mobile phone, a tablet computer or a computer, and the first image is displayed and processed by the mobile phone, the tablet computer or the computer. When the first image is locally enlarged, the first image may be processed according to an existing image processing rule in the related art, for example, the local image in the first image is enlarged in a pixel interpolation manner, and a second image may be determined according to a processing principle of the interpolation manner; according to the embodiment of the invention, the image information before interpolation, that is, the information of the partial image in the first image in the embodiment of the invention, in other words, the information of the partial image in the first image corresponding to the second image after partial enlargement can be obtained through the processing principle of the interpolation mode.
Optionally, the image parameters in the embodiment of the present invention include part or all of the following:
pixel point position of the image, color of the pixel, brightness of the pixel, transparency of the pixel.
It should be noted that, the image parameters in the embodiment of the present invention may include one or more of a pixel point position of an image, a color of a pixel, a brightness of a pixel, and a transparency of a pixel, and may further include other image parameters, for example, sharpness of a pixel, and other information, and the addition and deletion of the image parameters may be set by a person skilled in the art according to the quality requirement of the image display.
Optionally, the display parameters in the embodiment of the present invention include part or all of the following: color, brightness, transparency of the display screen.
It should be noted that the display parameters of the display screen according to the embodiment of the present invention may include one or more of color, brightness, and transparency of the display screen, and those skilled in the art may perform addition and deletion adjustment of the display parameters according to the display quality of the image.
Optionally, the adjusting, by the processor according to the image parameters of the second image and the local image, the display parameters of the display screen includes:
dividing pixels of which the difference value of the color parameters in the adjacent pixels is smaller than a first preset difference value into a color block area according to the position information and the color parameters of each pixel in the local image, and calculating the average value of the color parameters of all the pixels in each divided color block area;
for example, a local image displayed in an enlarged manner in the first image is divided into different color block regions according to the color parameters (for example, five-star red flags are divided into a yellow region and a red region according to the color parameters), and the color parameter mean value of each color block region is calculated.
According to the position information and the color parameters of each pixel in the second image, for each pixel, the color parameters of the pixel and the color parameter mean value of each color block area of the local image are subtracted to obtain a mean value difference value corresponding to each color block area, and when the mean value difference value is smaller than a second preset difference value, the pixel is mapped to the color block area of which the mean value difference value is smaller than the second preset difference value;
and adjusting the color of the display screen according to the color parameter of each pixel and the mean value difference value of the mapped color block area.
It should be noted that, in the embodiment of the present invention, the first preset difference and the second preset difference may be set by a person skilled in the art according to the image display quality, the operation rate of the device implementing the embodiment of the present invention, the power consumption, and the like.
In addition, the color parameters of the embodiment of the present invention may include red (R), green (G), and blue (B) values, and the RGB values of the pixels may be obtained by an existing obtaining method in the related art; the location information of the embodiment of the present invention may include coordinate information of the pixel, for example, coordinate information [145, 168], and the coordinate information may be obtained by using a sensor in the related art or reading the related parameter. Referring to the adjustment of the color of the display screen in the embodiment of the present invention, the embodiment of the present invention may also adjust other display parameters, and the adjustment principle and the color adjustment principle are the same, as long as the parameter difference between the second image and the local image is determined. The embodiment of the invention can adjust the display parameters of the display screen through the controller, namely the controller adjusts the parameters of the display screen to the second image after the local image is amplified according to the display of the local image, so as to obtain the image displayed to the user.
Optionally, the processor is configured to execute the image display program stored in the memory, and further includes:
it is determined whether the first image is locally enlarged before it is determined that the displayed second image is locally enlarged.
It should be noted that the determination as to whether the first image is locally enlarged may be performed by an embodiment known in the related art. The method can comprise the following steps: acquiring touch operation of a user; judging whether the touch operation of the user is a local amplification operation; here, the determining whether the user is the zoom-in operation may include: the method comprises the steps of receiving touch operation of a user through a screen, judging whether the distance between two coordinate points after touch operation is larger than the distance between coordinates of a starting point or not when detecting that the coordinate points of the starting point are changed by the user in continuous touch operation, and determining that the touch operation of the user is amplification operation when the distance between the two coordinate points after touch operation is larger than the distance between the coordinates of the starting point. After the touch operation of the user is detected to be the operation of local amplification through the process, the first image is amplified according to the operation of local amplification. When the currently displayed image does not change within the preset time length, the partially enlarged displayed image is determined as a second image (the second image may be defined as an image in which the information in the pixels does not change within the preset time length). The preset duration can be about 2 seconds (S), and the preset duration can be directly defined in the related technology or set according to user definition. The user can also determine whether to finish the local amplification operation of the first image according to a preset operation key or an external instruction, so that the image display processing of the embodiment of the invention can be efficiently performed in real time.
Compared with the related art, the technical scheme of the embodiment of the invention comprises the following steps: when the first image is locally amplified, determining a second image displayed by local amplification; determining a partial image in the first image corresponding to the second image; and adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image. According to the embodiment of the invention, the display parameters of the display screen are adjusted according to the image parameters of the local image before amplification, so that the display quality of the amplified second image is improved, and the use experience of a user is improved.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
when the first image is locally amplified, determining a second image displayed by local amplification;
it should be noted that, the first image in the embodiment of the present invention may be an already saved image, or may be an image obtained by current shooting; the image may be displayed in full screen, or may be displayed in full screen in landscape mode. The embodiment of the invention can be implemented on a mobile phone, a tablet computer or a computer, and the first image is displayed and processed by the mobile phone, the tablet computer or the computer.
Alternatively, one or more programs that may be executed by one or more processors in accordance with an embodiment of the present invention perform the following steps:
it is determined whether the first image is locally enlarged before it is determined that the displayed second image is locally enlarged.
It should be noted that the determination as to whether the first image is locally enlarged may be performed by an embodiment known in the related art. The method can comprise the following steps: acquiring touch operation of a user; judging whether the touch operation of the user is a local amplification operation; here, the determining whether the user is the zoom-in operation may include: the method comprises the steps of receiving touch operation of a user through a screen, judging whether the distance between two coordinate points after touch operation is larger than the distance between coordinates of a starting point or not when detecting that the coordinate points of the starting point are changed by the user in continuous touch operation, and determining that the touch operation of the user is amplification operation when the distance between the two coordinate points after touch operation is larger than the distance between the coordinates of the starting point. After the touch operation of the user is detected to be the operation of local amplification through the process, the first image is amplified according to the operation of local amplification. When the currently displayed image does not change within the preset time length, the partially enlarged displayed image is determined as a second image (the second image may be defined as an image in which the information in the pixels does not change within the preset time length). The preset duration can be about 2 seconds (S), and the preset duration can be directly defined in the related technology or set according to user definition. The user can also determine whether to finish the local amplification operation of the first image according to a preset operation key or an external instruction, so that the image display processing of the embodiment of the invention can be efficiently performed in real time.
Determining a partial image in the first image corresponding to the second image;
when the first image is locally enlarged, the first image may be processed according to an image processing rule existing in the related art, for example, the local image in the first image is enlarged by a pixel interpolation method, and the second image may be determined according to a processing principle of the pixel interpolation method; according to the embodiment of the invention, the image information before interpolation, that is, the information of the partial image in the first image in the embodiment of the invention, in other words, the information of the partial image in the first image corresponding to the second image after partial enlargement can be obtained through the processing principle of the interpolation mode. For example, after a local portion of the first image is four times amplified by the interpolation method of the pixels, theoretically, the processing principle of the interpolation method can be used to reversely deduce that one pixel on the local image can correspond to four pixels of the amplified second image.
And adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image.
Optionally, the image parameters in the embodiment of the present invention include part or all of the following:
pixel point position of the image, color of the pixel, brightness of the pixel, transparency of the pixel.
It should be noted that, the image parameters in the embodiment of the present invention may include one or more of a pixel point position of an image, a color of a pixel, a brightness of a pixel, and a transparency of a pixel, and may further include other image parameters, for example, sharpness of a pixel, and other information, and the addition and deletion of the image parameters may be set by a person skilled in the art according to the quality requirement of the image display.
Optionally, the display parameters in the embodiment of the present invention include part or all of the following: color, brightness, transparency of the display screen.
It should be noted that the display parameters of the display screen according to the embodiment of the present invention may include one or more of color, brightness, and transparency of the display screen, and those skilled in the art may perform addition and deletion adjustment of the display parameters according to the display quality of the image.
Optionally, the adjusting the display parameters of the display screen according to the image parameters of the second image and the local image in the embodiment of the present invention includes:
dividing pixels of which the difference value of the color parameters in the adjacent pixels is smaller than a first preset difference value into a color block area according to the position information and the color parameters of each pixel in the local image, and calculating the average value of the color parameters of all the pixels in each divided color block area;
for example, a local image displayed in an enlarged manner in the first image is divided into different color block regions according to the color parameters (for example, five-star red flags are divided into a yellow region and a red region according to the color parameters), and the color parameter mean value of each color block region is calculated.
According to the position information and the color parameters of each pixel in the second image, for each pixel, the color parameters of the pixel and the color parameter mean value of each color block area of the local image are subtracted to obtain a mean value difference value corresponding to each color block area, and when the mean value difference value is smaller than a second preset difference value, the pixel is mapped to the color block area of which the mean value difference value is smaller than the second preset difference value;
and adjusting the color of the display screen according to the color parameter of each pixel and the mean value difference value of the mapped color block area.
It should be noted that, in the embodiment of the present invention, the first preset difference and the second preset difference may be set by a person skilled in the art according to the image display quality, the operation rate of the device implementing the embodiment of the present invention, the power consumption, and the like.
In addition, the color parameters of the embodiment of the present invention may include red (R), green (G), and blue (B) values, and the RGB values of the pixels may be obtained by an existing obtaining method in the related art; the location information of the embodiment of the present invention may include coordinate information of the pixel, for example, coordinate information [145, 168], and the coordinate information may be obtained by using a sensor in the related art or reading the related parameter. Referring to the adjustment of the color of the display screen in the embodiment of the present invention, the embodiment of the present invention may also adjust other display parameters, and the adjustment principle and the color adjustment principle are the same, as long as the parameter difference between the second image and the local image is determined. The embodiment of the invention can adjust the display parameters of the display screen through the controller, namely the controller adjusts the parameters of the display screen to the second image after the local image is amplified according to the display of the local image, so as to obtain the image displayed to the user.
Compared with the related art, the technical scheme of the embodiment of the invention comprises the following steps: when the first image is locally amplified, determining a second image displayed by local amplification; determining a partial image in the first image corresponding to the second image; and adjusting the display parameters of the display screen according to the image parameters of the second image and the local image so as to display the second image. According to the embodiment of the invention, the display parameters of the display screen are adjusted according to the image parameters of the local image before amplification, so that the display quality of the amplified second image is improved, and the use experience of a user is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.