CN110084764B - Image noise reduction processing method, mobile terminal, device and computer storage medium - Google Patents

Image noise reduction processing method, mobile terminal, device and computer storage medium Download PDF

Info

Publication number
CN110084764B
CN110084764B CN201910360401.0A CN201910360401A CN110084764B CN 110084764 B CN110084764 B CN 110084764B CN 201910360401 A CN201910360401 A CN 201910360401A CN 110084764 B CN110084764 B CN 110084764B
Authority
CN
China
Prior art keywords
image
block
image block
size
noise reduction
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
CN201910360401.0A
Other languages
Chinese (zh)
Other versions
CN110084764A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910360401.0A priority Critical patent/CN110084764B/en
Publication of CN110084764A publication Critical patent/CN110084764A/en
Application granted granted Critical
Publication of CN110084764B publication Critical patent/CN110084764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image noise reduction processing method, a mobile terminal, a device and a computer storage medium, wherein the method comprises the following steps: acquiring a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to acquire first image blocks after the blocking processing; traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; the second image block is a first image block of which the regional brightness degree is not matched with the first block size; if a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until the traversal of each first image block is completed, and performing noise reduction processing on each first image block after the traversal is completed. The technical problem that the image is easy to distort after the image is subjected to image noise reduction processing in the prior art is solved.

Description

Image noise reduction processing method, mobile terminal, device and computer storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image noise reduction processing method, a mobile terminal, a device, and a computer storage medium.
Background
In the process of image noise reduction processing of a mobile terminal, generally, in order to obtain a good image noise reduction processing effect, an image is generally segmented to obtain each image block, and then each image block is processed. The sizes of the image blocks suitable for the image noise reduction processing are different in different light scenes, the processed image is blurred due to the fact that the blocks are too small in a dark scene, the noise reduction effect is poor due to the fact that the blocks are too large in a bright scene, for example, the size of 32 x 32 is suitable for the blocks in a photo shot in the bright scene, and the size of the image blocks is suitable for the blocks in the photo shot in the dark scene, and therefore the image noise reduction processing effect is seriously affected by the size of the image blocks. In addition, in the HDR (High-DYNAMIC RANGE, high dynamic range image) image at present, because the image has both a bright light portion and a dark light portion, when the image noise reduction processing is performed according to the above-mentioned blocking method, a better image noise reduction processing effect cannot be obtained, and image details are easily lost, that is, image distortion is easily caused. Therefore, how to avoid the problem that the image is easy to be distorted after the image is subjected to the noise reduction process becomes a technical problem to be solved in the present day.
Disclosure of Invention
The invention mainly aims to provide an image noise reduction processing method, a mobile terminal, a device and a computer storage medium, and aims to solve the technical problem that an image is easy to distort after noise reduction processing is carried out on the image in the prior art.
In order to achieve the above object, the present invention provides an image noise reduction processing method, comprising the steps of:
Acquiring a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to acquire first image blocks after the blocking processing;
traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size;
If a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until traversal of each first image block is completed, and performing noise reduction processing on each first image block which has been traversed.
Optionally, the step of updating the first block size if there is a second image block in each of the first image blocks includes:
If a second image block exists in each first image block, acquiring standard light and shade degrees corresponding to the second image block, and detecting whether the first light and shade degrees corresponding to the second image block are larger than the standard light and shade degrees or not;
and if the first brightness is greater than the standard brightness, increasing and updating the first block size.
Optionally, after the step of detecting whether the first shading level is greater than the standard shading level, the step of detecting includes:
and if the first brightness is smaller than the standard brightness, reducing and updating the first block size.
Optionally, the step of judging whether the second image block exists in each of the first image blocks one by one includes:
Acquiring a current image block from each first image block, and acquiring a current brightness degree corresponding to the current image block;
Detecting whether the first block size is matched with the current brightness degree;
and if the first block size is not matched with the current brightness degree, the current image block is a second image block.
Optionally, the step of obtaining the current brightness corresponding to the current image block includes:
acquiring a histogram corresponding to the current image block, and determining a pixel value of the current image block in the histogram;
and determining the current brightness degree corresponding to the current image block according to the pixel value.
Optionally, the step of detecting whether the current image size of the current image block matches the current brightness level includes:
Acquiring preset mapping tables between preset different image sizes and different brightness degrees;
Searching a second image size corresponding to the current brightness degree in the preset mapping table, and detecting whether the second image size is the same as the first block size;
And if the second image size is different from the first block size, the first block size is not matched with the current brightness degree.
Optionally, after the step of judging whether the second image block exists in each of the first image blocks one by one, the method includes:
and if the second image block does not exist in the first image blocks, directly carrying out noise reduction processing on the first image blocks.
In addition, in order to achieve the above object, the present invention also provides an image noise reduction processing apparatus including:
The display device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a display image to be processed, and performing blocking processing on the display image based on a preset first blocking size so as to acquire first image blocks after blocking processing;
The detection module is used for traversing each image block in sequence and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size;
And the block processing module is used for updating the first block size if a second image block exists in each first image block, re-performing block processing on the second image block according to the updated first block size until the traversal of each first image block is completed, performing noise reduction processing on each first image block which is traversed, and performing noise reduction processing on each first image block which is traversed.
In addition, in order to achieve the above purpose, the present invention also provides a mobile terminal;
the mobile terminal includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program when executed by the processor implements the steps of the image noise reduction processing method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium;
The computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the image noise reduction processing method as described above.
According to the invention, the display image to be subjected to noise reduction processing is obtained, and the display image is subjected to blocking processing based on a preset first blocking size, so that each first image block after the blocking processing is obtained; traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size; if a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until traversal of each first image block is completed, and performing noise reduction processing on each first image block which has been traversed. The display image is firstly subjected to blocking processing according to the first blocking size so as to obtain each first image block, then whether second image blocks with unmatched first blocking sizes and area brightness degrees exist in each first image block is determined, and when the existence of the second image blocks is determined, the display image is subjected to blocking processing again, so that different blocking strategies can be used according to brightness degrees of different areas in the display image, the image noise reduction processing effect is better, and the technical problem that the image is easy to distort after the noise reduction processing is performed on the image in the prior art is solved.
Drawings
FIG. 1 is a schematic diagram of an alternative hardware architecture of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a wireless communication device of the mobile terminal of FIG. 1;
FIG. 3 is a flowchart of a first embodiment of an image denoising method according to the present invention;
FIG. 4 is a flowchart of a second embodiment of an image denoising method according to the present invention;
FIG. 5 is a schematic diagram of functional blocks of an image noise reduction device according to the present invention;
FIG. 6 is a schematic view of a display image block processing scenario in the image denoising method according to the present invention;
FIG. 7 is a schematic view of a scene of a display image in the image denoising method according to the present invention;
fig. 8 is a flowchart of an image denoising process in the image denoising method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a Portable media player (Portable MEDIA PLAYER, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, and the like, as well as fixed terminals such as a digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to an element particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
The radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the 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 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (GENERAL PACKET Radio Service), CDMA2000 (Code Division Multiple Access, code Division multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change 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 talk 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 (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still images or videos 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 graphics 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 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone 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 the audio signal.
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 and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
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 (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 to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, 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 thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by 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 azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. 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, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (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 an external device 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 an external device.
Memory 109 may be used to store software programs as well as various data, and memory 109 may be a computer storage medium, with memory 109 storing the message alert program of the present invention. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, 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 running 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. Such as processor 110, executes the message alert program in memory 109 to implement the steps of the message alert method embodiments of the present invention.
Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily 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 the respective components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through 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 herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility MANAGEMENT ENTITY ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (SERVING GATE WAY ) 2034, pgw (PDN GATE WAY, packet data network gateway) 2035, PCRF (Policy AND CHARGING Rules Function) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the mobile terminal hardware structure and the communication network system, various embodiments of the image noise reduction processing method are provided.
The invention provides an image noise reduction processing method, which is mainly applied to mobile terminal equipment, but is not limited to mobile terminals, and can also be other intelligent terminals, and comprises the following steps:
Acquiring a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to acquire first image blocks after the blocking processing;
traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size;
If a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until traversal of each first image block is completed, and performing noise reduction processing on each first image block which has been traversed.
Referring to fig. 3, the present invention provides an image noise reduction processing method, in a first embodiment of the image noise reduction processing method, the image noise reduction processing method includes the steps of:
Step S10, obtaining a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to obtain first image blocks after the blocking processing;
The display image may be an image displayed on a screen interface in the mobile terminal, and may be an HDR image or a normal image. The first block size may be a size preset by a user in advance, for example, 16×16, 8×8, etc., and it should be noted that the first block size cannot be larger than an image size of the display image. The blocking process may be to virtually divide the display image into individual image blocks of the same size. The first image block may be an image of the display image after the blocking process. When the mobile terminal detects that a user needs to perform image noise reduction processing on a display image, the size of the display image is required to be acquired first, then a first block size preset by the user in advance is acquired according to the size of the display image, then the display image is subjected to block processing, and each first image block after the block processing is acquired, wherein the size of each first image block is the same.
To assist understanding of the method of performing the blocking process on the display image in this embodiment, the following will be exemplified.
For example, as shown in fig. 6, when it is detected in the mobile terminal that the displayed image needs to be subjected to image denoising processing, the image size of the displayed image is detected to be 64×64, then a first block size is acquired according to the image size, if the acquired preset size is 16×16, then the displayed image may be subjected to blocking processing according to the preset size, 16 x 16 image blocks may be acquired after the blocking processing, then the 16 x 16 image blocks are traversed, and when it is found that the regional brightness degree of the image blocks does not match with the preset size, the image blocks need to be subjected to blocking processing again according to different sizes.
Step S20, traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein, the first image block is the first image block with unmatched regional brightness and first block size;
The second image block may be one of the first image blocks, and the first image block size (i.e., the first block size) corresponding to the second image block and the region brightness corresponding to the second image block are not matched. The area brightness may be the brightness of the area where the second image block is located, i.e. the brightness of the second image block may be considered. When each first image block is acquired, each first image block can be traversed in sequence, and the traversing sequence mode can be from left to right and from top to bottom. And detecting whether the second image block exists in the process of traversing each first image block, and directly carrying out image noise reduction processing on each second image block when determining that the second image block does not exist in each first image block, wherein when the second image exists in each first image, the displayed image needs to be subjected to blocking processing again.
The method for detecting whether the second image block exists in each first image block may be to select one image block as the current block in each image block, obtain a histogram of the current block, obtain pixels of the current block from the histogram, determine the brightness level of the current block based on the pixels, determine whether the brightness level of the current block matches the size of the current block, if so, obtain an image block of the next unprocessed area, and determine whether the brightness level of the next image block matches the size of the next image block again, but when it is found that the size of the current block does not match the brightness level of the current block, update the block size according to the brightness level of the current block, and at this time the current block may be the second image block.
Step S30, if there is a second image block in each of the first image blocks, updating the first block size, and re-performing the block division processing on the second image block according to the updated first block size until the traversal of each of the first image blocks is completed, and performing the noise reduction processing on each of the first image blocks that has been traversed.
When judging that second image blocks exist in each first image block, determining all the second image blocks, determining whether the sizes of the second image blocks need to be increased or decreased according to the regional brightness of the region where the second image blocks are located, if the sizes need to be increased, increasing the sizes of the first image blocks, and re-performing the block dividing processing on each second image block according to the increased and updated first block sizes; if the size needs to be reduced, the first block size is reduced, and the second image blocks are re-blocked according to the updated first block size. And performing image noise reduction processing on each image block until the traversal of each first image block is completed, and performing fusion processing on each image block after the noise reduction processing is completed.
To assist in understanding, when there is a second image block in each first image block, the second image block is re-blocked, as will be exemplified below.
For example, as shown in fig. 7, when the display image is segmented according to the preset first segmentation size, when each first image block is obtained, when it is detected that there is a second image block in which the area brightness and the first segmentation size are not matched, the first segmentation size needs to be updated to obtain a new first segmentation size, then the second image blocks are segmented again according to the new first segmentation size, the new image blocks after the segmentation processing are obtained again, whether there is any image block in the new image block in which the area brightness and the new first segmentation size are not matched is determined again, if yes, the new first segmentation size is updated again, and the segmentation processing is performed again until the sizes of the image blocks in the display image are matched with the area brightness and the area brightness corresponding to each image block, namely, the noise reduction processing is performed again on the image blocks corresponding to the display image, and after the noise reduction processing is completed, the image blocks in different positions are fused.
In addition, to assist understanding of the image noise reduction processing method in the present embodiment, an example will be described below.
For example, as shown in fig. 8, image blocking processing is performed on a display image in a mobile terminal according to a default size (for example, 16×16), whether there is an unremoved block is determined, if there is an unremoved block, the next unremoved block is obtained, the block histogram is calculated, the brightness of the block is obtained according to the histogram, whether the size of the block (current block) matches the brightness corresponding to the block is determined, if there is a unremoved block, if there is no match, whether the size of the current block reaches a maximum value is determined, if the size of the current block has reached a maximum value, whether there is an unremoved block is determined again, if the size of the current block does not reach a maximum value, the size of the current block is updated based on the brightness corresponding to the current block, and the image block is obtained in the display image again according to the size of the current block. If the non-traversed block does not exist, the block processing operation is ended.
The method comprises the steps of performing blocking processing on a display image based on a preset first blocking size by acquiring the display image to be subjected to noise reduction processing, so as to acquire first image blocks after the blocking processing; traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size; if a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until traversal of each first image block is completed, and performing noise reduction processing on each first image block which has been traversed. The display image is firstly subjected to blocking processing according to the first blocking size so as to obtain each first image block, then whether second image blocks with unmatched first blocking sizes and area brightness degrees exist in each first image block is determined, and when the existence of the second image blocks is determined, the display image is subjected to blocking processing again, so that different blocking strategies can be used according to brightness degrees of different areas in the display image, the image noise reduction processing effect is better, and the technical problem that the image is easy to distort after the noise reduction processing is performed on the image in the prior art is solved.
Further, on the basis of the first embodiment of the present invention, a second embodiment of the image noise reduction processing method of the present invention is provided, and this embodiment is step S30 of the first embodiment of the present invention, and if there is a second image block in each of the first image blocks, the step of updating the first block size is refined, referring to fig. 4, including:
Step S31, if a second image block exists in each first image block, obtaining a standard light and shade degree corresponding to the second image block, and detecting whether the first light and shade degree corresponding to the second image block is greater than the standard light and shade degree;
The standard shading level may be the best shading level in the second image block at which the second image block is processed most efficiently. When the second image block is detected in each first image block, the standard light and shade degree corresponding to the second image block is required to be acquired first, then whether the first light and shade degree of the second image block at the current moment is larger than the standard light and shade degree is detected and judged, and different operations are executed based on the judging result.
And step S32, if the first brightness degree is larger than the standard brightness degree, increasing and updating the first block size.
When the first brightness degree is larger than the standard brightness degree through judgment, the size of the first block which is originally set is increased, so that the first updated size of the first block is obtained, and then the second image blocks are subjected to block division again according to the updated first size of the first block.
In this embodiment, the standard brightness of the second image block is obtained, and when the first brightness corresponding to the second image block is greater than the standard brightness, the first block size is increased to re-perform the block processing on the second image block, so that the efficiency of the block processing is ensured, and the speed of the image noise reduction processing is improved.
Specifically, after the step of detecting whether the first shading degree is greater than the standard shading degree, the method includes:
and a step a of reducing and updating the first block size if the first brightness is smaller than the standard brightness.
When the first brightness degree is smaller than the standard brightness degree through judgment, the first block size is reduced, the updated first block size is reduced, and then the second image block is subjected to block division again according to the updated first block size. For example, when the first block size is 16×16, if it is found that the image block obtained by performing the block processing according to the first block size does not meet the requirement, the first block size is reduced, and if the first block size is reduced to 8×8, then 8×8 is taken as the updated first block size.
In this embodiment, when the first brightness level corresponding to the second image block is smaller than the standard brightness level, the first block size is reduced to re-perform the block processing on the second image block, so that the efficiency of the block processing is ensured, and the speed of the image noise reduction processing is improved.
Further, on the basis of any one of the first to second embodiments of the present invention, a third embodiment of the image noise reduction processing method of the present invention is proposed, the present embodiment is a step S20 of the first embodiment of the present invention, a refinement of the step of judging one by one whether or not there is a second image block in each of the first image blocks, including:
Step c, obtaining a current image block from each first image block, and obtaining a current brightness degree corresponding to the current image block;
The current image block may be an image block in the mobile terminal that is being detected at the current time. The current brightness level may be the brightness level of the current image block at the current moment, that is, the brightness of the image. And acquiring the current image block traversed at the current moment from each first image block, and determining the current brightness degree corresponding to the current image block.
Step d, detecting whether the first block size is matched with the current brightness degree;
when the current brightness level corresponding to the current image block is obtained, the current image size (namely the first block size) of the current image block is required to be determined, whether the current image size of the current image block is matched with the current brightness level is detected, when the current image size is judged to be matched with the current brightness level, the next first image block which is not traversed can be continuously traversed, but when the current image size is judged to be not matched with the current brightness level, the block processing is required to be carried out on the display image again.
And e, if the first block size is not matched with the current brightness, the current image block is a second image block.
When the current image size (i.e. the first block size) of the current image block is not matched with the current brightness degree through judgment, the current image block can be considered as a second image block, and at the moment, the display image needs to be blocked by adopting a new size again.
In this embodiment, the accuracy of determining the second image block is ensured by acquiring the current image block from each first image block and determining that the current image block is the second image block when the first block size is determined to be not matched with the current brightness.
Specifically, the step of obtaining the current brightness corresponding to the current image block includes:
Step c1, acquiring a histogram corresponding to the current image block, and determining a pixel value of the current image block in the histogram;
The histogram is also called a histogram, and the exposure accuracy of the image is displayed in the form of a waveform chart on the coordinate axis, and the horizontal axis thereof represents the brightness level. When the current image block is acquired, it is also necessary to determine a histogram having all the pixel values of the current image block and determine the size of the pixel values of the current image block in the histogram.
And c2, determining the current brightness degree corresponding to the current image block according to the pixel value.
When the pixel value is obtained, the current brightness degree corresponding to the current image block can be determined according to the pixel value, namely, the larger the pixel value is, the better the current brightness degree is, and the higher the brightness of the image is; the smaller the pixel value, the worse the current shading, and the darker the brightness of the image.
In this embodiment, the current brightness corresponding to the current image block is obtained according to the pixel value of the current image block, so that the accuracy of the obtained current brightness is ensured.
Specifically, the step of detecting whether the first block size matches the current brightness level includes:
Step d1, obtaining preset mapping tables between preset different image sizes and different brightness degrees;
The preset mapping table may be a mapping table set by a user in advance, and a preset mapping table between different preset image sizes and different brightness degrees needs to be obtained in the mobile terminal.
Step d2, searching a second image size corresponding to the current brightness degree in the preset mapping table, and detecting whether the second image size is the same as the first block size;
The second image size may be an image optimal size corresponding to the current darkness. After the preset mapping table is obtained, a second image size corresponding to the current brightness level is required to be searched in the preset mapping table, and whether the second image size is identical to the first block size or not is detected. When the second image size is the same as the first block size through judgment, the next first image block which is not traversed can be directly traversed. When the second image size is judged to be different from the first block size, the display image needs to be subjected to block processing again.
And d3, if the second image size is different from the first block size, the first block size is not matched with the current brightness degree.
When the second image size is judged to be different from the first block size, the first block size is not matched with the current brightness degree, and the size is required to be reset to perform block processing on the display image.
In this embodiment, the second image size is obtained in the preset mapping table, and when it is determined that the second image size is different from the first block size, it is determined that the first block size is not matched with the current brightness, so that accuracy of detecting whether the current image size is matched with the current brightness is ensured.
Further, after the step of judging whether the second image block exists in each of the first image blocks one by one, it includes:
and g, if the second image block does not exist in the first image blocks, directly carrying out noise reduction processing on the first image blocks.
When judging that the second image blocks do not exist in the first image blocks, the noise reduction processing can be directly carried out on the first image blocks so as to meet the requirements of users.
In this embodiment, when it is detected and determined in each first image block that the second image block does not exist, the noise reduction processing is directly performed on each first image block, so that the efficiency of the image noise reduction processing is improved.
In addition, referring to fig. 5, an embodiment of the present invention further proposes an image noise reduction processing apparatus, including:
The display image processing module is used for obtaining a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to obtain first image blocks after the blocking processing;
The detection module is used for traversing each image block in sequence and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size;
And the block processing module is used for updating the first block size if a second image block exists in each first image block, re-performing block processing on the second image block according to the updated first block size until the traversal of each first image block is completed, and performing noise reduction processing on each first image block after the traversal is completed.
Optionally, the block processing module is further configured to:
If a second image block exists in each first image block, acquiring standard light and shade degrees corresponding to the second image block, and detecting whether the first light and shade degrees corresponding to the second image block are larger than the standard light and shade degrees or not;
and if the first brightness is greater than the standard brightness, increasing and updating the first block size.
Optionally, the block processing module is further configured to:
and if the first brightness is smaller than the standard brightness, reducing and updating the first block size.
Optionally, the detection module is further configured to:
Acquiring a current image block from each first image block, and acquiring a current brightness degree corresponding to the current image block;
Detecting whether the first block size is matched with the current brightness degree;
and if the first block size is not matched with the current brightness degree, the current image block is a second image block.
Optionally, the detection module is further configured to:
acquiring a histogram corresponding to the current image block, and determining a pixel value of the current image block in the histogram;
and determining the current brightness degree corresponding to the current image block according to the pixel value.
Optionally, the detection module is further configured to:
Acquiring preset mapping tables between preset different image sizes and different brightness degrees;
Searching a second image size corresponding to the current brightness degree in the preset mapping table, and detecting whether the second image size is the same as the first block size;
And if the second image size is different from the first block size, the first block size is not matched with the current brightness degree.
Optionally, the image noise reduction processing device further includes:
and if the second image block does not exist in the first image blocks, directly carrying out noise reduction processing on the first image blocks.
The steps of implementing each functional module of the image noise reduction processing device may refer to each embodiment of the image noise reduction processing method of the present invention, which is not described herein again.
The invention also provides a mobile terminal, which comprises: memory, processor, communication bus, and image noise reduction processing program stored on the memory:
The communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the image noise reduction processing program to implement the steps of the embodiments of the image noise reduction processing method.
The present invention also provides a computer storage medium storing one or more programs executable by one or more processors for implementing the steps of the embodiments of the image noise reduction processing method described above.
The specific implementation manner of the computer storage medium of the present invention is basically the same as that of each embodiment of the image noise reduction processing method, and will not be repeated here.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (4)

1. An image noise reduction processing method, characterized in that the image noise reduction processing method comprises the following steps:
Acquiring a display image to be subjected to noise reduction processing, and performing blocking processing on the display image based on a preset first blocking size so as to acquire first image blocks after the blocking processing;
traversing each first image block in sequence, and judging whether a second image block exists in each first image block one by one; wherein the second image block is the first image block of which the regional brightness degree is not matched with the first block size;
If a second image block exists in each first image block, updating the first block size, re-performing block division processing on the second image block according to the updated first block size until traversal of each first image block is completed, and performing noise reduction processing on each first image block which has been traversed;
The step of updating the first block size if there is a second image block in each of the first image blocks includes:
If a second image block exists in each first image block, acquiring standard light and shade degrees corresponding to the second image block, and detecting whether the first light and shade degrees corresponding to the second image block are larger than the standard light and shade degrees or not;
If the first brightness is greater than the standard brightness, increasing and updating the first block size;
after the step of detecting whether the first brightness is greater than the standard brightness, the method includes:
if the first brightness is smaller than the standard brightness, reducing and updating the first block size;
the step of judging whether the second image block exists in each first image block one by one includes:
Acquiring a current image block from each first image block, and acquiring a current brightness degree corresponding to the current image block;
Detecting whether the first block size is matched with the current brightness degree;
If the first block size is not matched with the current brightness, the current image block is a second image block;
the step of detecting whether the first block size matches the current brightness level includes:
Acquiring preset mapping tables between preset different image sizes and different brightness degrees;
Searching a second image size corresponding to the current brightness degree in the preset mapping table, and detecting whether the second image size is the same as the first block size;
If the second image size is different from the first block size, the first block size is not matched with the current brightness degree;
after the step of judging whether the second image block exists in each first image block one by one, the method comprises the following steps:
and if the second image block does not exist in the first image blocks, directly carrying out noise reduction processing on the first image blocks.
2. The image noise reduction processing method according to claim 1, wherein the step of obtaining the current brightness level corresponding to the current image block includes:
acquiring a histogram corresponding to the current image block, and determining a pixel value of the current image block in the histogram;
and determining the current brightness degree corresponding to the current image block according to the pixel value.
3. A mobile terminal, the mobile terminal comprising: memory, a processor and an image noise reduction processing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the image noise reduction processing method according to any one of claims 1 to 2.
4. A computer storage medium, wherein an image noise reduction processing program is stored on the computer storage medium, which when executed by a processor, implements the steps of the image noise reduction processing method according to any one of claims 1 to 2.
CN201910360401.0A 2019-04-29 2019-04-29 Image noise reduction processing method, mobile terminal, device and computer storage medium Active CN110084764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910360401.0A CN110084764B (en) 2019-04-29 2019-04-29 Image noise reduction processing method, mobile terminal, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910360401.0A CN110084764B (en) 2019-04-29 2019-04-29 Image noise reduction processing method, mobile terminal, device and computer storage medium

Publications (2)

Publication Number Publication Date
CN110084764A CN110084764A (en) 2019-08-02
CN110084764B true CN110084764B (en) 2024-06-25

Family

ID=67418102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910360401.0A Active CN110084764B (en) 2019-04-29 2019-04-29 Image noise reduction processing method, mobile terminal, device and computer storage medium

Country Status (1)

Country Link
CN (1) CN110084764B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763275B (en) * 2021-09-09 2024-07-12 深圳市文立科技有限公司 Adaptive image noise reduction method, system and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751416A (en) * 2013-12-31 2015-07-01 展讯通信(上海)有限公司 Image denoising method and device and image processing system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI376645B (en) * 2008-07-29 2012-11-11 Sonix Technology Co Ltd Image processing methof of noise reduction and apparatus thereof
US9123103B2 (en) * 2013-12-26 2015-09-01 Mediatek Inc. Method and apparatus for image denoising with three-dimensional block-matching
CN104751415B (en) * 2013-12-31 2017-12-26 展讯通信(上海)有限公司 The method, apparatus and image processing system of a kind of image noise reduction and enhancement
CN107909554B (en) * 2017-11-16 2020-05-19 深圳市共进电子股份有限公司 Image noise reduction method and device, terminal equipment and medium
CN108305222B (en) * 2018-01-04 2020-08-04 浙江大华技术股份有限公司 Image noise reduction method and device, electronic equipment and storage medium
CN108898567B (en) * 2018-09-20 2021-05-28 北京旷视科技有限公司 Image noise reduction method, device and system
CN109639982B (en) * 2019-01-04 2020-06-30 Oppo广东移动通信有限公司 Image noise reduction method and device, storage medium and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751416A (en) * 2013-12-31 2015-07-01 展讯通信(上海)有限公司 Image denoising method and device and image processing system

Also Published As

Publication number Publication date
CN110084764A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN107093418B (en) Screen display method, computer equipment and storage medium
CN109639996B (en) High dynamic scene imaging method, mobile terminal and computer readable storage medium
CN110086993B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN107295270B (en) Image brightness value determination method and device, terminal and computer-readable storage medium
CN108198150B (en) Method for eliminating image dead pixel, terminal and storage medium
CN108038834B (en) Method, terminal and computer readable storage medium for reducing noise
CN110675342A (en) Video frame optimization method, mobile terminal and computer readable storage medium
CN108459799B (en) Picture processing method, mobile terminal and computer readable storage medium
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
CN111885307B (en) Depth-of-field shooting method and device and computer readable storage medium
CN109816619B (en) Image fusion method, device, terminal and computer readable storage medium
CN109584897B (en) Video noise reduction method, mobile terminal and computer readable storage medium
CN109710159B (en) Flexible screen response method and device and computer readable storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN112135053A (en) Image processing method, mobile terminal and computer readable storage medium
CN112437472A (en) Network switching method, equipment and computer readable storage medium
CN112598678A (en) Image processing method, terminal and computer readable storage medium
CN109510941B (en) Shooting processing method and device and computer readable storage medium
CN110084764B (en) Image noise reduction processing method, mobile terminal, device and computer storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN113542605A (en) Camera shooting control method, mobile terminal and storage medium
CN108989695B (en) Initial automatic exposure convergence method, mobile terminal and computer-readable storage medium
CN108335301B (en) Photographing method and mobile terminal

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
GR01 Patent grant