WO2021217463A1 - Image processing algorithm device, image processing method, and camera - Google Patents

Image processing algorithm device, image processing method, and camera Download PDF

Info

Publication number
WO2021217463A1
WO2021217463A1 PCT/CN2020/087625 CN2020087625W WO2021217463A1 WO 2021217463 A1 WO2021217463 A1 WO 2021217463A1 CN 2020087625 W CN2020087625 W CN 2020087625W WO 2021217463 A1 WO2021217463 A1 WO 2021217463A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
image processing
algorithm
data
frequency band
Prior art date
Application number
PCT/CN2020/087625
Other languages
French (fr)
Chinese (zh)
Inventor
廖文山
李静
郭浩铭
卢庆博
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/087625 priority Critical patent/WO2021217463A1/en
Publication of WO2021217463A1 publication Critical patent/WO2021217463A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof

Definitions

  • This application relates to the field of image processing, and in particular to an image processing algorithm device, an image processing method, a camera, and a computer-readable storage medium.
  • each image processing algorithm usually corresponds to an algorithm module.
  • the required algorithm module can be easily called to process the image.
  • each image processing algorithm contains multiple image processing steps, and some steps in different image processing algorithms may be the same, or in other words, the image processing functions corresponding to these steps are the same. These steps can be referred to as shared steps.
  • each algorithm module independently executes each step in their respective algorithm, then in the entire image processing process, there are common steps Will be repeatedly executed, resulting in a waste of computing resources.
  • embodiments of the present application provide an image processing algorithm device, an image processing method, a camera, and a computer-readable storage medium, which are used to solve the common steps in different image processing algorithms when image processing algorithms are used to process images. It is repeatedly executed, causing a technical problem of wasting computing resources.
  • the first aspect of the embodiments of the present application provides an image processing algorithm device for processing an image using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to Different image processing functions in the image processing algorithm;
  • the device includes a first image processing layer and a second image processing layer, the first image processing layer includes a common algorithm module, the common algorithm module is at least two kinds of Algorithm modules corresponding to the same image processing function in the image processing algorithm;
  • the second image processing layer includes various other algorithm modules of the image processing algorithm;
  • the first image processing layer is configured to use the common algorithm module to process the acquired first image to obtain an image data set corresponding to the first image;
  • the second image processing layer is configured to use the other algorithm module to process the corresponding target data obtained from the image data set.
  • the second aspect of the embodiments of the present application provides an image processing method for processing an image by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to The different image processing functions in the image processing algorithm; the method includes:
  • the shared algorithm module is used to process the acquired first image to obtain the image data set corresponding to the first image; wherein the shared algorithm module is at least two of the image processing algorithms corresponding to the same image processing function Module
  • target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithm modules to process the corresponding target data.
  • a third aspect of the embodiments of the present application provides a camera, including: a body, a lens provided on the body, an image sensor, an ISP chip, and a DSP chip provided in the body;
  • the image sensor is used to collect an original image through the lens
  • the ISP chip is used to obtain the original image from the image sensor, and process the original image to obtain a first image
  • the DSP chip is used to obtain a first image from the ISP chip, and use a common algorithm module to process the first image to obtain an image data set corresponding to the first image; wherein, the common algorithm module is at least Algorithm modules corresponding to the same image processing function in the two image processing algorithms; respectively obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithms
  • the module processes the corresponding target data.
  • the fourth aspect of the embodiments of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium.
  • Image processing method
  • the first image processing layer includes a shared algorithm module
  • the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application, Common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as an algorithm module shared by these image processing algorithms at the same time. Then, in application, executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm. The image data set obtained by executing the shared algorithm module can be provided to each image.
  • the sharing of processing algorithms realizes that without affecting the functional realization of various image processing algorithms, the number of executions of shared steps is reduced, and computing resources and memory resources are saved.
  • FIG. 1 is a schematic structural diagram of an image processing algorithm device provided by an embodiment of the present application.
  • Fig. 2 is a schematic structural diagram of a Gaussian pyramid provided by an embodiment of the present application.
  • Fig. 3 is a flowchart of a fusion algorithm provided by an embodiment of the present application.
  • Fig. 4 is a flowchart of an image processing method provided by an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a camera provided by an embodiment of the present application.
  • each image processing algorithm In the field of image processing, there are a variety of image processing algorithms used to achieve different image processing effects, such as image noise reduction algorithms, image contrast enhancement algorithms, image de-purple fringing algorithms, dead pixel correction algorithms, automatic white balance algorithms, etc.
  • image processing algorithms used to achieve different image processing effects, such as image noise reduction algorithms, image contrast enhancement algorithms, image de-purple fringing algorithms, dead pixel correction algorithms, automatic white balance algorithms, etc.
  • each image processing algorithm can be considered as a large algorithm module. Based on the reusability of the algorithm module, it can be used in application. , You can conveniently call the algorithm module you want to call according to your needs.
  • each image processing algorithm is independent of each other, each image processing algorithm contains multiple image processing steps. Some steps in different image processing algorithms may be the same, or , The image processing functions corresponding to these steps are the same. These steps with the same or corresponding image processing functions can be referred to as shared steps. Then, when the algorithm modules corresponding to these image processing algorithms are used to process images, each algorithm module independently executes each step in each algorithm. From the point of view of the image processing process, the common steps will be repeated, resulting in a waste of computing resources. Moreover, since each algorithm runs independently, the data obtained by executing the common steps will also be stored independently, which causes a waste of memory resources.
  • the embodiments of the present application provide a solution, which can merge the image processing algorithms that need to be used in image processing, and merge the common steps in the image processing algorithms, thereby reducing the number of times the common steps are executed. Realize the saving of computing resources and memory resources.
  • FIG. 1 is a schematic structural diagram of an image processing algorithm device provided by an embodiment of the present application.
  • the device provided by the embodiment of the application can be used to process images by using at least two image processing algorithms, each of which can include at least two algorithm modules, and each algorithm module corresponds to a different image in the image processing algorithm. Processing function.
  • Algorithm A is an image processing algorithm.
  • Algorithm A includes four steps, namely step a1, step a2, step a3, and step a4.
  • the A algorithm can be decomposed into two algorithm modules.
  • the first algorithm module can correspond to an image processing function, which includes steps a1 and a2, and the second algorithm module can correspond to another This image processing function includes step a3 and step a4.
  • the image processing function corresponding to the algorithm module it is necessary to pay attention to the difference in the function corresponding to the algorithm as a whole.
  • the A algorithm is an image noise reduction algorithm, and the A algorithm as a whole corresponds to the noise reduction function, which can also be said to be the noise reduction effect.
  • the image processing function corresponding to each algorithm module in the A algorithm can be a lower level function.
  • the first algorithm module can correspond to the frequency separation function
  • the second algorithm module can correspond to the filtering function.
  • the device provided by the embodiment of the present application may include two image processing layers, that is, a first image processing layer and a second image processing layer.
  • the first image processing layer may include a common algorithm module.
  • the shared algorithm module can be an algorithm module shared by at least two image processing algorithms, that is, a shared algorithm module can belong to several image processing algorithms at the same time, for example, a shared algorithm module can be an algorithm module in algorithm A, or it can be at the same time An algorithm module in an algorithm. It is not difficult to understand that the image processing function corresponding to the shared algorithm module is shared by at least two image processing algorithms.
  • algorithm A includes a step corresponding to frequency separation
  • algorithm B also includes a step corresponding to frequency separation
  • a shared algorithm module is set, and its corresponding image processing function is frequency separation.
  • the shared algorithm module can be located in the first image processing layer of the device, and it serves as an algorithm module in the A algorithm and the B algorithm at the same time.
  • the algorithm modules other than the common algorithm module of the image processing algorithm it can be set in the second image processing layer of the device.
  • the above example can be used.
  • the algorithm module corresponding to the frequency separation function in the A algorithm is a common algorithm module and is set in the first image processing layer, and another algorithm module corresponding to the filtering function can be set in the second image processing layer.
  • the first image processing layer can be used to process the acquired first image using a common algorithm module to obtain the image data set corresponding to the first image
  • the second image processing layer can be used to process the target data using other algorithm modules, where
  • the target data is the data required by the other algorithm modules, and the target data can be obtained from the image data set corresponding to the first image.
  • the image data set can contain the image data of multiple images, or it can only contain the image data of one image, and it can also contain part of the image data of one image. In short, for the image data set, it can contain any image type.
  • the data contained in the data depends on what kind of processing the shared algorithm module has performed on the image, which is not limited in this application.
  • the first image it can also be called a to-be-processed image, which can be acquired in various ways, for example, it can be an image acquired from an external electronic device, or an image acquired by the image sensor of the electronic device of the machine, or It can be an image generated by an electronic device of the machine, and so on.
  • the first image may be an image output by an ISP chip (image signal processing chip), that is, the image may be pre-processed by the ISP chip, and then input to the machine for a series of post-processing.
  • ISP chip image signal processing chip
  • the first image processing layer includes a shared algorithm module
  • the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application, Common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as an algorithm module shared by these image processing algorithms at the same time. Then, in application, executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm. The image data set obtained by executing the shared algorithm module can be provided to each image.
  • the sharing of processing algorithms reduces the number of executions of shared steps and saves computing resources and memory resources on the basis of not affecting the functional realization of various image processing algorithms.
  • the shared algorithm module may include a first algorithm module, and the image processing function corresponding to the first algorithm module may be to decompose second images in different frequency bands corresponding to the first image.
  • the obtained image data set may be a set of image data of multiple second images.
  • the image contains information of different frequencies.
  • different processing can be performed on the information of different frequencies of the image.
  • better results can be obtained than processing only on the original image.
  • the image noise reduction algorithm can get a better noise reduction effect if the information of different frequencies of the image is processed.
  • the image contrast enhancement algorithm is another example. If the image information of different frequencies is processed, it can also get better Contrast enhancement effect. Therefore, the above-mentioned first algorithm module can be applied to various image processing algorithms, that is, it can be used as an algorithm module shared by various image processing algorithms.
  • the frequency division processing of the first image there are many feasible implementation manners, for example, Fourier transform can be performed on the image to determine the frequency distribution of the image, and the frequency distribution of the image can also be quantitatively measured by wavelet transform.
  • Fourier transform can be performed on the image to determine the frequency distribution of the image, and the frequency distribution of the image can also be quantitatively measured by wavelet transform.
  • an optional implementation manner is provided, and the second image in different frequency bands corresponding to the first image can be obtained by performing Gaussian pyramid decomposition on the first image.
  • the process of Gaussian pyramid decomposition can include two steps.
  • the first step is to perform Gaussian smoothing on the image. Specifically, it can be to filter the check image generated by the Gaussian function; the second step is to filter the image after Gaussian smoothing. Perform downsampling.
  • the image of the second layer in the pyramid can be obtained, and then by processing the image of the second layer through these two steps, the image of the third layer in the pyramid can be obtained.
  • FIG. 2 is a schematic structural diagram of a Gaussian pyramid provided by an embodiment of the present application.
  • the Gaussian pyramid can include multiple layers, and each layer corresponds to an image, and the images of each layer correspond to different resolutions, scales, and frequency bands. Since the process of Gaussian smoothing can be considered as the process of low-pass filtering, the process of decomposing the image by Gaussian pyramid is also the process of dividing the image. In the Gaussian pyramid, the higher the level of the image, the number of low-pass filtering The more, the lower the frequency in the corresponding frequency band. That is to say, in the Gaussian pyramid, high-level images correspond to low-frequency information, and low-level images correspond to high-frequency information.
  • the above-mentioned first algorithm module can be applied to various image processing algorithms.
  • the image processing algorithm may specifically be any of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
  • the image processing algorithm may include an image noise reduction algorithm.
  • the corresponding processing effect of the image noise reduction algorithm is to remove the noise in the image and improve the image signal-to-noise ratio.
  • Image noise reduction algorithms usually run when shooting at high ISO (sensitivity), or in other words, usually process images shot at high ISO (images captured at high ISO are usually noisy).
  • There are multiple image noise reduction algorithms and the device provided in the embodiment of the present application uses an optional image noise reduction algorithm.
  • the optional image noise reduction algorithm includes multiple algorithm modules, including a first algorithm module (common algorithm module) in the first image processing layer and other algorithm modules in the second image processing layer.
  • the first algorithm module of the image noise reduction algorithm has been described in the foregoing, and will not be repeated here.
  • Other algorithm modules of the image noise reduction algorithm may include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module.
  • the image processing function corresponding to the luminance noise reduction algorithm module may include noise reduction processing on luminance data, and chrominance noise reduction algorithm.
  • the image processing function corresponding to the module may include noise reduction processing on the chrominance data.
  • the aforementioned image noise reduction algorithm includes noise reduction processing on luminance data and noise reduction processing on chrominance data, where both luminance data and chrominance data are image data.
  • image data There are many color coding methods for image data, such as RGB, YUV, etc.
  • the image data may adopt YUV color coding, where Y corresponds to brightness data and UV corresponds to chromaticity data.
  • performing noise reduction processing on brightness data there are multiple specific implementation manners.
  • the embodiment of the present application provides an alternative.
  • performing noise reduction processing on brightness data may include the following steps:
  • the brightness data of the first image can be frequency separated to separate the high-frequency information and low-frequency information of the brightness data of the first image. After that, the high-frequency information and the low-frequency information can be separately Filter to get a better noise reduction effect.
  • the frequency separation of the brightness data of the first image can be performed by using the brightness data of the second image corresponding to the original frequency band and the brightness data of the second image corresponding to the designated frequency band.
  • the second image corresponding to the original frequency band may also be referred to as the second image corresponding to the original scale or original resolution.
  • the Gaussian pyramid it corresponds to the bottom layer image in the Gaussian pyramid.
  • the second image corresponding to the original frequency band has not undergone Gaussian smoothing, so there is no loss of high-frequency information.
  • the corresponding frequency band is the most complete and original, that is, the second image corresponding to the original frequency band is actually the first image.
  • the designated frequency band can be any frequency band other than the original frequency band. Because the second image corresponding to the designated frequency band is obtained after at least one Gaussian smoothing process (low-pass filtering) is performed on the first image, Therefore, it corresponds to low-frequency information.
  • the brightness data of the second image corresponding to the designated frequency band can be directly used as the low-frequency information of the brightness data of the first graphic. After the low-frequency information is determined, the high-frequency information can be easily separated.
  • the Gaussian pyramid in Figure 2 includes four levels, namely the first layer, the second layer, the third layer, and the fourth layer. Each layer corresponds to a frequency band.
  • the second image corresponding to the designated frequency band may be the image d4 corresponding to the third layer, that is, the brightness data of the image d4 of the third layer may be selected as the low-frequency information.
  • the brightness data of the second layer image d2 can also be selected as the low-frequency information, but it needs to be considered that the resolution of the second layer image d2 is four times that of the third layer image d4. Therefore, if the second layer image is selected d2, the calculation amount will be correspondingly increased by four times. Therefore, choosing the image d4 corresponding to the third layer is a choice after balancing the calculation amount and the noise reduction effect.
  • the brightness data of the noise-reduced first image obtained by the combination may also be brightness sharpened, so as to improve the definition of the brightness edge.
  • performing noise reduction processing on chrominance data may include the following steps:
  • the chrominance data corresponding to the filtered low frequency band is adaptively fused with the chrominance data corresponding to other frequency bands other than the low frequency band to obtain the chrominance data of the first image after noise reduction.
  • the above-mentioned low-frequency frequency band may be the frequency band whose highest frequency is lower than the preset frequency.
  • the second image corresponding to the low-frequency frequency band may be the image corresponding to the highest several layers.
  • the second image corresponding to the fixed low-frequency band is the image corresponding to the highest two layers, and the second image corresponding to the low-frequency band includes the image d4 corresponding to the third layer and the image d8 corresponding to the fourth layer.
  • the chrominance data of the second image corresponding to the low frequency band can be filtered, and the specific filtering method can be bilateral filtering. After filtering, the chrominance data corresponding to each frequency band can be fused to obtain the chrominance data of the first image after noise reduction.
  • the chrominance data corresponding to other frequency bands other than the low frequency band may not be filtered. The reason for this is that the noise of the chrominance data mainly exists in the low frequency part. Therefore, filtering the chrominance data corresponding to the low frequency band is only necessary. The noise reduction of chrominance data can be achieved.
  • the luminance data corresponding to the reference frequency band can also be used as a guide to filter the chrominance data corresponding to the low-frequency frequency band.
  • the lower frequency band The Gaussian pyramid shown in Figure 2 can be used as an example.
  • the chrominance data corresponding to the third layer When filtering d4_uv, you can refer to the brightness data d8_y of the image d8 corresponding to the 4th layer (the image d8 of the 4th layer is obtained by low-pass filtering the image d4 of the 3rd layer, which is higher in frequency than the image d4 of the 3rd layer. One level lower). Similarly, when filtering the chrominance data d8_uv corresponding to the fourth layer, you can refer to the brightness data d16_y of the image corresponding to the fifth layer.
  • the image d8 corresponding to the fourth layer is obtained through the most low-pass filtering, so its corresponding frequency band is the frequency band with the lowest frequency, which can be called the lowest frequency band. It is easy to understand that the lowest frequency band is one of the low frequency frequency bands.
  • the chrominance data d8_uv corresponding to the fourth layer in the above example needs to be filtered with reference to the brightness data d16_y corresponding to the fifth layer.
  • the first image when the first image is decomposed by the Gaussian pyramid, the first image can be decomposed into 5 layers of images, that is, the image d0 and the image can be decomposed.
  • d2, image d4, image d8, image d16 and in the second implementation, the brightness data d16_y corresponding to the fifth layer can be obtained by down-sampling the brightness data d8_y corresponding to the fourth layer.
  • the second implementation is less computationally intensive than the first implementation.
  • the edge fusion weight can be further referenced.
  • the edge fusion weight may be determined by performing edge detection on the chrominance data corresponding to other frequency bands other than the low frequency frequency band.
  • the noise reduction effect of chrominance data by the above-mentioned method is still not ideal. Considering that the noise of chrominance data is mainly concentrated in the low frequency part, it is Before the chrominance data is filtered, the chrominance data corresponding to the lowest frequency band can be further de-saturated, thereby improving the noise reduction effect of the chrominance data.
  • the image processing algorithm may also include an image contrast enhancement algorithm.
  • the corresponding processing effect of the image contrast enhancement algorithm is to improve the contrast of the image.
  • the device provided in this embodiment of the present application uses an optional image contrast enhancement algorithm.
  • the optional image contrast enhancement algorithm includes multiple algorithm modules, including a first algorithm module in the first image processing layer (the first algorithm module can be shared with the image noise reduction algorithm) and in the second image processing layer Other algorithm modules.
  • the first algorithm module of the image contrast enhancement algorithm has been described in the foregoing, and will not be repeated here.
  • Other algorithm modules of the image contrast enhancement algorithm may include a brightness enhancement algorithm module and a chrominance enhancement algorithm module.
  • the image processing function corresponding to the brightness enhancement algorithm module may include the contrast enhancement of the brightness data, and the image corresponding to the chrominance noise reduction algorithm module.
  • the processing function may include contrast enhancement of the chrominance data.
  • performing contrast enhancement processing on brightness data there are multiple specific implementation manners.
  • the embodiment of the present application provides one of the options.
  • performing contrast enhancement processing on brightness data may include the following steps:
  • the low-frequency information can be specifically decomposed by a pyramid to obtain the Gaussian pyramid and Laplacian pyramid corresponding to the low-frequency information, and then enhance the low-frequency information of each layer in the pyramid, and finally use the enhanced Pyramid reconstruction is performed on the low-frequency information of each layer, so as to obtain contrast-enhanced low-frequency information.
  • the contrast enhancement of the chrominance data is carried out on the basis of the contrast enhancement of the brightness data. Specifically, because the image has been contrast enhanced in the brightness, in order to make the image more coordinated in the visual effect, the corresponding color matching is also required.
  • the degree data is contrast enhanced, and the enhancement process can be based on the amount of change of the brightness data before and after the contrast enhancement.
  • performing contrast enhancement on the chrominance data may include adjusting the chrominance data of the second image corresponding to the original frequency band according to the amount of change in the low-frequency information of the brightness data of the first image before and after the contrast enhancement.
  • the low-frequency information may be the brightness data of the second image corresponding to the specified frequency band. According to the amount of change of the brightness data of the second image corresponding to the designated frequency band before and after the contrast enhancement, the chromaticity data of the second image corresponding to the original frequency band (that is, the chromaticity data of the first image) can be adjusted.
  • the chroma mapping ratio can be calculated according to the amount of change in the low-frequency information before and after the contrast enhancement, and the chroma data corresponding to the original frequency band can be remapped according to the calculated chroma mapping ratio to obtain the first image after the contrast enhancement. Chromaticity data.
  • the image processing algorithm may also include an image de-purplening algorithm.
  • the corresponding processing effect of the image de-purple fringing algorithm is to remove the purple fringing problem generated at the brightness boundary.
  • the device provided in the embodiment of the present application uses an optional image de-purple-removing algorithm.
  • the optional image de-purplening algorithm includes multiple algorithm modules, including the first algorithm module in the first image processing layer (the first algorithm module can be shared with the image noise reduction algorithm and the image contrast enhancement algorithm) and the Other algorithm modules in the second image processing layer.
  • the image processing function corresponding to other algorithm modules of the image de-purple algorithm may include the following steps:
  • the chromaticity data of the second image corresponding to the original frequency band is desaturated.
  • the color information and the position information can be determined according to the image data corresponding to different frequency bands. Specifically, the color information can be determined according to the chromaticity data of the second image corresponding to the first frequency band. , The location information may be determined according to the brightness data of the second image corresponding to the second frequency band.
  • the first frequency band can correspond to the highest layer in the Gaussian pyramid, that is, the first frequency band can correspond to the fourth layer
  • the second frequency band can correspond to the middle layer in the Gaussian pyramid, such as the second frequency band Can correspond to the second layer.
  • edge detection can be performed on the brightness data corresponding to the second frequency band to determine the position information of the purple fringing.
  • the color information and the position information can be fused to obtain the purple fringing mask; and then according to the purple fringing mask, the color corresponding to the original frequency band
  • the degree data is desaturated.
  • the color information may specifically be color weights
  • the position information may specifically be edge weights.
  • the aforementioned purple fringe mask may be obtained by fusing the color weight and the edge weight.
  • the image noise reduction algorithm when the brightness data is denoised, the high-frequency information and low-frequency information of the brightness data of the first image are filtered separately.
  • the image contrast enhancement algorithm when the brightness data is contrast-enhanced, the high-frequency information and the low-frequency information of the brightness data of the first image are also contrast-enhanced separately. It can be found that the above two algorithms both include the step of separating the high-frequency information and low-frequency information of the brightness data of the first image. Therefore, this step is a common step of the two algorithms. A common algorithm corresponding to the common step can be set. Module.
  • a second algorithm module may be set in the first image processing layer of the device.
  • the second algorithm module is also a shared algorithm module.
  • the corresponding image processing function may include the brightness data of the second image corresponding to the original frequency band and the designated frequency band.
  • the brightness data of the corresponding second image separates high-frequency information and low-frequency information of the brightness data of the first image.
  • both the image noise reduction algorithm and the image contrast enhancement algorithm include the step of combining high-frequency information with low-frequency information. Therefore, this step is also a common step.
  • a third algorithm module can also be set in the first image processing layer. The image processing function corresponding to the algorithm module includes combining the high-frequency information with the low-frequency information.
  • the image processing algorithm device provided by the embodiment of the present application divides the image processing algorithm into smaller granular modules, so that the modules corresponding to the same image processing function can be merged, and the image processing algorithms can be merged.
  • the first image processing layer includes a shared algorithm module, and the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application .
  • the common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as the algorithm module shared by these image processing algorithms at the same time.
  • executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm.
  • the image data set obtained by executing the shared algorithm module can be provided to each image.
  • the sharing of processing algorithms reduces the number of executions of shared steps and saves computing resources and memory resources on the basis of not affecting the functional realization of various image processing algorithms.
  • FIG. 3 is a flowchart of a fusion algorithm provided by an embodiment of the present application. It should be noted that this fusion algorithm is only used as an example. It combines the device provided in the embodiment of the present application, and integrates the image noise reduction algorithm, the image contrast enhancement algorithm, and the image depurple removal algorithm.
  • the image data yuv_in of the first image can be input to the first algorithm module.
  • the first algorithm module can be Gaussian Pyramid Decomposition, which can be set in the first image processing layer of the device, and is a common algorithm module for image denoising algorithm, image de-purplening algorithm, and image contrast enhancement algorithm.
  • the first image can be decomposed into second images of multiple frequency bands.
  • the Gaussian pyramid obtained after decomposition corresponds to the Gaussian pyramid in Figure 2.
  • An image is decomposed into second images corresponding to four different frequency bands, d0, d2, d4, and d8.
  • the image data set obtained after decomposition includes image data of each second image, corresponding to FIG. 3, the image data set includes image data of four second images d0, d2, d4, and d8, and these image data specifically include The luminance data d0_y and chrominance data d0_uv of the second image d0, the luminance data d2_y and chrominance data d2_uv of the second image d2, the luminance data d4_y and chrominance data d4_uv of the second image d4, and the luminance data d8_y of the second image d8 And chromaticity data d8_uv.
  • Figure 3 can be divided into two parts: luminance data processing and chrominance data processing.
  • d0_y is the brightness data corresponding to the original frequency band
  • the brightness data d4_y corresponding to the designated frequency band is input to the second algorithm module.
  • the second algorithm module corresponds to the specific GENRATE_HF module in Figure 3, and its corresponding image processing function is to separate the first image from the brightness data d0_y of the second image corresponding to the original frequency band and the brightness data d4_y of the second image corresponding to the specified frequency band.
  • the high-frequency information hf_src and the low-frequency information d4_y of the brightness data (d4_y itself can be used as the low-frequency information).
  • the second algorithm module is also a shared algorithm module in the first image processing layer, which is specifically a shared algorithm module of the image noise reduction algorithm and the image contrast enhancement algorithm.
  • the HF_FILTER module and the LF_FILTER module are the high frequency filter module and the low frequency filter module respectively.
  • the HF_FILTER module is used to filter high frequency information
  • the LF_FILTER module is used to filter low frequency information.
  • the HF_GAIN module and the LF_GAIN module are the high-frequency enhancement module and the low-frequency enhancement module respectively.
  • the HF_GAIN module is used to enhance the contrast of high-frequency information
  • the LF_GAIN module is used to enhance the contrast of the low-frequency information.
  • the UP_COMBINE module corresponds to the third algorithm module, which is used to combine high-frequency information and low-frequency information, corresponding to Figure 3, which is specifically used to perform filtering and contrast-enhanced high-frequency information hf and low-frequency information lf_after Up-sampling is combined to obtain the brightness data d0_combine.
  • the steps corresponding to this module are shared by the image noise reduction algorithm and image contrast enhancement. Therefore, this module can also be used as a shared algorithm module and set in the first image processing layer.
  • the LUMA_SHARPEN module is used to sharpen the brightness data, which is an algorithm module in the image noise reduction algorithm.
  • the chroma denoising algorithm module Chroma Denoising, CDNS
  • the image de-purple removal module Purple Fringe Remove, PFR
  • the chroma enhancement algorithm module UV_REMAPPING
  • algorithm module shown above is only an example.
  • algorithm module is specifically divided, a smaller module granularity can be used.
  • algorithm modules can be further subdivided into sub-modules.
  • the module may also be an algorithm module referred to in the embodiment of the present application.
  • FIG. 4 is a flowchart of an image processing method provided by an embodiment of the present application.
  • the method is used to process images by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to a different image processing function in the image processing algorithm;
  • the methods include:
  • S401 Use a common algorithm module to process the acquired first image to obtain an image data set corresponding to the first image.
  • the common algorithm module is an algorithm module corresponding to the same image processing function in at least two of the image processing algorithms
  • S402 Obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithm modules to process the corresponding target data.
  • the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing second images of different frequency bands corresponding to the first image; the image data set includes multiple Image data of the second image.
  • the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
  • the image data includes luminance data and chrominance data.
  • the image processing algorithm includes any one of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
  • the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module
  • the image processing function corresponding to the luminance noise reduction algorithm module includes noise reduction processing on luminance data
  • the image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on the chrominance data.
  • the performing noise reduction processing on the brightness data includes:
  • the method further includes:
  • Brightness sharpening is performed on the combined brightness data of the noise-reduced first image.
  • the performing noise reduction processing on the chrominance data includes:
  • the low frequency frequency band is a frequency band in which the highest frequency in the frequency band is lower than a preset frequency
  • the filtering of the chrominance data corresponding to the low-frequency frequency band is performed according to the brightness data corresponding to a reference frequency band;
  • the reference frequency band is a frequency band whose frequency is one level lower than the low-frequency frequency band.
  • the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
  • the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on the chrominance data corresponding to the other frequency bands.
  • the chrominance data corresponding to the lowest frequency band it also includes:
  • the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and the image processing function corresponding to the brightness enhancement algorithm module includes contrast enhancement of brightness data, and the color The image processing function corresponding to the degree enhancement algorithm module includes the contrast enhancement of the chrominance data.
  • the performing contrast enhancement on the brightness data includes:
  • the high-frequency information and low-frequency information of the brightness data of the first image are obtained from the brightness data of the second image corresponding to an original frequency band and the brightness data of the second image corresponding to a designated frequency band.
  • the performing contrast enhancement on the chrominance data includes:
  • the chromaticity data of the second image corresponding to the original frequency band is adjusted according to the amount of change of the low-frequency information before and after the contrast enhancement.
  • the adjusting the chromaticity data of the second image corresponding to the original frequency band according to the amount of change of the low-frequency information before and after the contrast enhancement includes:
  • the image processing functions corresponding to the other algorithm modules of the image de-purplening algorithm include:
  • the chroma data of the second image corresponding to the original frequency band is desaturated.
  • the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; the position information is determined according to the brightness data of the second image corresponding to the second frequency band.
  • the location information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
  • desaturating the chroma data of the second image corresponding to the original frequency band according to the color information and the position information includes:
  • the shared algorithm module further includes a second algorithm module, and the image processing function corresponding to the second algorithm module includes the second image processing function corresponding to the specified frequency band through the brightness data of the second image corresponding to the original frequency band.
  • the brightness data of the image separates high-frequency information and low-frequency information of the brightness data of the first image.
  • the shared algorithm module further includes a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information.
  • the first image is an image output by an ISP chip.
  • FIG. 5 is a schematic structural diagram of a camera provided by an embodiment of the present application.
  • the camera includes: a body 501, a lens 502 arranged on the body 501, an image sensor 503, an ISP chip 504 and a DSP chip 505 arranged in the body 501;
  • the image sensor 503 is used to collect original images through the lens 502;
  • the ISP chip 504 is used to obtain the original image from the image sensor 503, and process the original image to obtain a first image;
  • the DSP chip 505 is configured to obtain a first image from the ISP chip 504, and process the first image by using a common algorithm module to obtain an image data set corresponding to the first image; wherein, the common algorithm module Are algorithm modules corresponding to the same image processing function in at least two of the image processing algorithms; respectively obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the Other algorithm modules process the corresponding target data.
  • the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing second images of different frequency bands corresponding to the first image; the image data set includes multiple Image data of the second image.
  • the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
  • the image data includes luminance data and chrominance data.
  • the image processing algorithm includes any one of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
  • the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module
  • the image processing function corresponding to the luminance noise reduction algorithm module includes noise reduction processing on luminance data
  • the image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on the chrominance data.
  • the DSP chip is further configured to filter the high frequency information and low frequency information of the brightness data of the first image separately; combine the filtered high frequency information with the low frequency information to obtain a reduction Luminance data of the first image after noise.
  • the DSP chip is further configured to, after combining the filtered high-frequency information with the low-frequency information, compare the combined brightness data of the noise-reduced first image Perform brightness sharpening.
  • the DSP chip is also used to filter the chrominance data of the second image corresponding to the low frequency frequency band; wherein the low frequency frequency band is a frequency band in which the highest frequency is lower than a preset frequency;
  • the filtered chromaticity data corresponding to the low-frequency frequency band is adaptively fused with chromaticity data corresponding to other frequency bands other than the low-frequency frequency band to obtain the chromaticity data of the first image after noise reduction.
  • the filtering of the chrominance data corresponding to the low-frequency frequency band is performed according to the brightness data corresponding to a reference frequency band;
  • the reference frequency band is a frequency band whose frequency is one level lower than the low-frequency frequency band.
  • the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
  • the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on the chrominance data corresponding to the other frequency bands.
  • the DSP chip is also used to desaturate the chromaticity data corresponding to the lowest frequency band before filtering the chromaticity data corresponding to the lowest frequency band.
  • the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and the image processing function corresponding to the brightness enhancement algorithm module includes contrast enhancement of brightness data, and the color The image processing function corresponding to the degree enhancement algorithm module includes the contrast enhancement of the chrominance data.
  • the DSP chip is further configured to perform contrast enhancement on the high-frequency information and low-frequency information of the brightness data of the first image respectively; combine the high-frequency information with the contrast-enhanced high-frequency information and the low-frequency information, Obtain brightness data of the first image after contrast enhancement.
  • the high-frequency information and low-frequency information of the brightness data of the first image are obtained from the brightness data of the second image corresponding to an original frequency band and the brightness data of the second image corresponding to a designated frequency band.
  • the DSP chip is further configured to adjust the chromaticity data of the second image corresponding to the original frequency band according to the amount of change in the low-frequency information before and after the contrast enhancement.
  • the DSP chip is further configured to calculate a chrominance mapping ratio according to the amount of change in the low-frequency information before and after the contrast enhancement; and to remap the chrominance data corresponding to the original frequency band according to the chrominance mapping ratio , To obtain the chromaticity data of the first image after contrast enhancement.
  • the DSP chip is further configured to determine the color information and position information corresponding to the purple fringing; according to the color information and the position information, reduce the chromaticity data of the second image corresponding to the original frequency band. saturation.
  • the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; the position information is determined according to the brightness data of the second image corresponding to the second frequency band.
  • the location information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
  • the DSP chip is further configured to fuse the color information and the position information to obtain a purple fringing mask; and desaturate the chromaticity data corresponding to the original frequency band according to the purple fringing mask.
  • the shared algorithm module further includes a second algorithm module, and the image processing function corresponding to the second algorithm module includes the second image processing function corresponding to the specified frequency band through the brightness data of the second image corresponding to the original frequency band.
  • the brightness data of the image separates high-frequency information and low-frequency information of the brightness data of the first image.
  • the shared algorithm module further includes a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information.
  • the embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, any one of the image processing provided in the embodiments of the present application is implemented. method.
  • the embodiments of the present application may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes.
  • Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc
  • Magnetic cassettes magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.

Abstract

Disclosed in embodiments of the present application is an image processing algorithm device. The device comprises a first image processing layer and a second image processing layer, wherein the first image processing layer comprises a common algorithm module, and the common algorithm module is an algorithm module corresponding to a same image processing function in at least two image processing algorithms; the second image processing layer comprises other algorithm modules of different image processing algorithms; the first image processing layer is used for processing an obtained first image by using the common algorithm module to obtain an image data set corresponding to the first image; and the second image processing layer is used for processing, by using other algorithm modules, corresponding target data obtained from the image data set. The device provided in the embodiments of the present application solves the technical problem of the waste of computing resources caused by repeatedly executing common steps in different image processing algorithms when an image is processed by using the image processing algorithms.

Description

图像处理算法装置、图像处理方法及相机Image processing algorithm device, image processing method and camera 技术领域Technical field
本申请涉及图像处理领域,尤其涉及一种图像处理算法装置、图像处理方法、相机及计算机可读存储介质。This application relates to the field of image processing, and in particular to an image processing algorithm device, an image processing method, a camera, and a computer-readable storage medium.
背景技术Background technique
在图像处理领域,有多种用于实现不同图像处理效果的图像处理算法。在软件层面,每一种图像处理算法通常对应一个算法模块,在应用时,可以方便的调用需要的算法模块对图像进行处理。In the field of image processing, there are a variety of image processing algorithms used to achieve different image processing effects. At the software level, each image processing algorithm usually corresponds to an algorithm module. During application, the required algorithm module can be easily called to process the image.
然而,每一种图像处理算法中都包含了多个图像处理的步骤,不同图像处理算法中的某些步骤可能是相同的,或者说,这些步骤对应的图像处理功能是相同。可以把这些步骤称为共有步骤,如此,在利用这些图像处理算法对应的算法模块对图像进行处理时,各个算法模块独立执行各自算法中的各个步骤,则在整个图像处理过程上看,共有步骤将会被重复执行,造成了计算资源的浪费。However, each image processing algorithm contains multiple image processing steps, and some steps in different image processing algorithms may be the same, or in other words, the image processing functions corresponding to these steps are the same. These steps can be referred to as shared steps. Thus, when the algorithm modules corresponding to these image processing algorithms are used to process images, each algorithm module independently executes each step in their respective algorithm, then in the entire image processing process, there are common steps Will be repeatedly executed, resulting in a waste of computing resources.
发明内容Summary of the invention
有鉴于此,本申请实施例提供一种图像处理算法装置、图像处理方法、相机及计算机可读存储介质,用于解决在利用图像处理算法对图像进行处理时,不同图像处理算法中的共有步骤被重复执行,造成计算资源浪费的技术问题。In view of this, embodiments of the present application provide an image processing algorithm device, an image processing method, a camera, and a computer-readable storage medium, which are used to solve the common steps in different image processing algorithms when image processing algorithms are used to process images. It is repeatedly executed, causing a technical problem of wasting computing resources.
本申请实施例第一方面提供一种图像处理算法装置,用于利用至少两种图像处理算法对图像进行处理,每种所述图像处理算法包括至少两个算法模块,每个所述算法模块对应所述图像处理算法中的不同图像处理功能;所述装置包括第一图像处理层和第二图像处理层,所述第一图像处理层包括共用算法模块,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;所述第二图像处理层包括各种所述图像处理算法的其他算法模块;The first aspect of the embodiments of the present application provides an image processing algorithm device for processing an image using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to Different image processing functions in the image processing algorithm; the device includes a first image processing layer and a second image processing layer, the first image processing layer includes a common algorithm module, the common algorithm module is at least two kinds of Algorithm modules corresponding to the same image processing function in the image processing algorithm; the second image processing layer includes various other algorithm modules of the image processing algorithm;
所述第一图像处理层用于利用所述共用算法模块对获取的第一图像进行处理,得到所述第一图像对应的图像数据集合;The first image processing layer is configured to use the common algorithm module to process the acquired first image to obtain an image data set corresponding to the first image;
所述第二图像处理层用于利用所述其他算法模块对从所述图像数据集合获取的对应的目标数据进行处理。The second image processing layer is configured to use the other algorithm module to process the corresponding target data obtained from the image data set.
本申请实施例第二方面提供一种图像处理方法,用于利用至少两种图像处理算法对图像进行处理,每种所述图像处理算法包括至少两个算法模块,每个所述算法模块对应所述图像处理算法中的不同图像处理功能;所述方法包括:The second aspect of the embodiments of the present application provides an image processing method for processing an image by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to The different image processing functions in the image processing algorithm; the method includes:
利用共用算法模块对获取的第一图像进行处理,得到所述第一图像对应的图像数据集合;其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;The shared algorithm module is used to process the acquired first image to obtain the image data set corresponding to the first image; wherein the shared algorithm module is at least two of the image processing algorithms corresponding to the same image processing function Module
从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。Obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithm modules to process the corresponding target data.
本申请实施例第三方面提供一种相机,包括:机身,设置在所述机身上的镜头,设置在所述机身内的图像传感器、ISP芯片和DSP芯片;A third aspect of the embodiments of the present application provides a camera, including: a body, a lens provided on the body, an image sensor, an ISP chip, and a DSP chip provided in the body;
所述图像传感器用于通过所述镜头采集原始图像;The image sensor is used to collect an original image through the lens;
所述ISP芯片用于对自所述图像传感器获取所述原始图像,并对所述原始图像进行处理,得到第一图像;The ISP chip is used to obtain the original image from the image sensor, and process the original image to obtain a first image;
所述DSP芯片用于从所述ISP芯片获取第一图像,利用共用算法模块对所述第一图像进行处理,得到所述第一图像对应的图像数据集合;其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。The DSP chip is used to obtain a first image from the ISP chip, and use a common algorithm module to process the first image to obtain an image data set corresponding to the first image; wherein, the common algorithm module is at least Algorithm modules corresponding to the same image processing function in the two image processing algorithms; respectively obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithms The module processes the corresponding target data.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述第二方面的任一种所述的图像处理方法。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium. Image processing method.
本申请实施例提供的图像处理算法装置,第一图像处理层包括共用算法模块,共用算法模块是至少两个图像处理算法共用的算法模块,也就是说,在本申请实施例提供的装置中,不同图像处理算法中的共有步骤可以作为一个算法模块分离出来,并且,该算法模块可以同时作为这些图像处理算法共有的算法模块。那么,在应用时,执行一次该共用算法模块,就等同于在各图像处理算法中都分别执行了一次该共用算法模块对应的步骤,执行该共用算法模块得到的图像数据集可以提供给各图像处理算法的共用,实现了在不影响各种图像处理算法的功能实现的基础上,减少了共有步骤的执行次数,节省了计算资源与内存资源。In the image processing algorithm device provided by the embodiment of the present application, the first image processing layer includes a shared algorithm module, and the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application, Common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as an algorithm module shared by these image processing algorithms at the same time. Then, in application, executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm. The image data set obtained by executing the shared algorithm module can be provided to each image. The sharing of processing algorithms realizes that without affecting the functional realization of various image processing algorithms, the number of executions of shared steps is reduced, and computing resources and memory resources are saved.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是本申请实施例提供的一种图像处理算法装置的结构示意图。FIG. 1 is a schematic structural diagram of an image processing algorithm device provided by an embodiment of the present application.
图2是本申请实施例提供的一种高斯金字塔的结构示意图。Fig. 2 is a schematic structural diagram of a Gaussian pyramid provided by an embodiment of the present application.
图3是本申请实施例提供的一种融合算法的流程框图。Fig. 3 is a flowchart of a fusion algorithm provided by an embodiment of the present application.
图4是本申请实施例提供的一种图像处理方法的流程图。Fig. 4 is a flowchart of an image processing method provided by an embodiment of the present application.
图5是本申请实施例提供的一种相机的结构示意图。Fig. 5 is a schematic structural diagram of a camera provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
在图像处理领域,有多种用于实现不同图像处理效果的图像处理算法,比如图像降噪算法、图像对比度增强算法、图像去紫边算法、坏点校正算法、自动白平衡算法等。在软件层面,每种图像处理算法由于是独立开发的,算法与算法之间彼此独立,因此每种图像处理算法可以认为是一个大的算法模块,基于算法模块的可复用性,在应用时,可以根据需求方便的调用想要调用的算法模块。举个例子,比如想得到经过降噪、去紫边、对比度增强的图像,则可以将图像串行的输入图像降噪算法对应的算法模块、图像对比度增强对应的算法模块和图像去紫边算法对应的算法模块。In the field of image processing, there are a variety of image processing algorithms used to achieve different image processing effects, such as image noise reduction algorithms, image contrast enhancement algorithms, image de-purple fringing algorithms, dead pixel correction algorithms, automatic white balance algorithms, etc. At the software level, because each image processing algorithm is independently developed, and the algorithm and the algorithm are independent of each other, each image processing algorithm can be considered as a large algorithm module. Based on the reusability of the algorithm module, it can be used in application. , You can conveniently call the algorithm module you want to call according to your needs. For example, if you want to get an image that has been denoised, de-purpled, and contrast-enhanced, you can match the algorithm module corresponding to the image serial input image noise reduction algorithm, the algorithm module corresponding to the image contrast enhancement, and the image de-purplening algorithm. Algorithm module.
但申请人发现,虽然每种图像处理算法之间相互独立,但每一种图像处理算法中都包含了多个图像处理的步骤,不同图像处理算法中的某些步骤可能是相同的,或者说,这些步骤对应的图像处理功能是相同。可以将这些相同或对应的图像处理功能相同的步骤称为共有步骤,那么,在利用这些图像处理算法对应的算法模块对图像进行处理时,各个算法模块独立执行各自算法中各个步骤,则在整个图像处理过程上看, 共有步骤将会被重复执行,造成了计算资源的浪费。并且,由于每个算法是独立运行的,因此,执行共有步骤得到的数据也会独立存储,从而造成内存资源的浪费。However, the applicant found that although each image processing algorithm is independent of each other, each image processing algorithm contains multiple image processing steps. Some steps in different image processing algorithms may be the same, or , The image processing functions corresponding to these steps are the same. These steps with the same or corresponding image processing functions can be referred to as shared steps. Then, when the algorithm modules corresponding to these image processing algorithms are used to process images, each algorithm module independently executes each step in each algorithm. From the point of view of the image processing process, the common steps will be repeated, resulting in a waste of computing resources. Moreover, since each algorithm runs independently, the data obtained by executing the common steps will also be stored independently, which causes a waste of memory resources.
为解决上述问题,本申请实施例提供了一种解决思路,可以将图像处理中需要利用的图像处理算法进行融合,将图像处理算法中的共有步骤进行合并,从而减少共有步骤被执行的次数,实现计算资源和内存资源的节省。In order to solve the above problems, the embodiments of the present application provide a solution, which can merge the image processing algorithms that need to be used in image processing, and merge the common steps in the image processing algorithms, thereby reducing the number of times the common steps are executed. Realize the saving of computing resources and memory resources.
要将几种图像处理算法中的共有步骤进行整合,需要先从图像处理算法中将这些共有步骤提取出来,或者说,将图像处理算法中的这些共有步骤和其他步骤分离开。但图像处理算法在开发时,通常是以整个算法为一个模块进行开发的,基于其所选用的框架,算法中各个步骤对应的代码的耦合度很高,无法在不影响整个算法实现的前提下直接分离出共有步骤对应的代码。To integrate the common steps in several image processing algorithms, it is necessary to extract these common steps from the image processing algorithm first, or in other words, to separate these common steps from other steps in the image processing algorithm. However, when image processing algorithms are developed, the entire algorithm is usually developed as a module. Based on the selected framework, the code corresponding to each step in the algorithm is highly coupled and cannot be implemented without affecting the implementation of the entire algorithm. Directly separate the codes corresponding to the common steps.
基于上述问题,本申请实施例提供一种图像处理算法装置。可以参见图1,图1是本申请实施例提供的一种图像处理算法装置的结构示意图。Based on the foregoing problems, an embodiment of the present application provides an image processing algorithm device. Refer to FIG. 1, which is a schematic structural diagram of an image processing algorithm device provided by an embodiment of the present application.
本申请实施例提供的装置,可以用于利用至少两种图像处理算法对图像进行处理,其中的每种图像处理算法可以包括至少两个算法模块,每个算法模块对应图像处理算法中的不同图像处理功能。The device provided by the embodiment of the application can be used to process images by using at least two image processing algorithms, each of which can include at least two algorithm modules, and each algorithm module corresponds to a different image in the image processing algorithm. Processing function.
为方便理解,可以举个简单的例子,比如A算法是一种图像处理算法,A算法中包括四个步骤,分别是步骤a1、步骤a2、步骤a3和步骤a4。在本申请实施例提供的装置中,A算法可以分解成两个算法模块,第一个算法模块可以对应一种图像处理功能,其包括步骤a1、步骤a2,第二个算法模块可以对应另一种图像处理功能,其包括步骤a3、步骤a4。对于算法模块对应的图像处理功能,需要注意其与算法整体对应的功能不同,比如A算法是一种图像降噪算法,则A算法整体对应的是降噪功能,也可以说是降噪效果,而A算法中的各个算法模块对应的图像处理功能可以是更底层的功能,比如第一个算法模块可以对应的是频率分离的功能,第二个算法模块可以对应的是滤波的功能。To facilitate understanding, a simple example can be given. For example, Algorithm A is an image processing algorithm. Algorithm A includes four steps, namely step a1, step a2, step a3, and step a4. In the device provided by the embodiment of this application, the A algorithm can be decomposed into two algorithm modules. The first algorithm module can correspond to an image processing function, which includes steps a1 and a2, and the second algorithm module can correspond to another This image processing function includes step a3 and step a4. For the image processing function corresponding to the algorithm module, it is necessary to pay attention to the difference in the function corresponding to the algorithm as a whole. For example, the A algorithm is an image noise reduction algorithm, and the A algorithm as a whole corresponds to the noise reduction function, which can also be said to be the noise reduction effect. The image processing function corresponding to each algorithm module in the A algorithm can be a lower level function. For example, the first algorithm module can correspond to the frequency separation function, and the second algorithm module can correspond to the filtering function.
本申请实施例提供的装置可以包括两个图像处理层,即第一图像处理层和第二图像处理层。其中,第一图像处理层可以包括共用算法模块。共用算法模块可以是至少两种图像处理算法共用的算法模块,即共用算法模块可以同时属于几种图像处理算法,比如一个共用算法模块可以是A算法中的一个算法模块,其也可以同时是B算法中的一个算法模块。不难理解,共用算法模块对应的图像处理功能是至少两种图像处理算法共有的,对应到上述例子中,若A算法包含对应频率分离的步骤,B算法也包含对应频率分离的步骤,则可以设置一个共用算法模块,其对应的图像处理功能是频率分 离,该共用算法模块可以处于装置的第一图像处理层,其同时作为A算法和B算法中的一个算法模块。The device provided by the embodiment of the present application may include two image processing layers, that is, a first image processing layer and a second image processing layer. Wherein, the first image processing layer may include a common algorithm module. The shared algorithm module can be an algorithm module shared by at least two image processing algorithms, that is, a shared algorithm module can belong to several image processing algorithms at the same time, for example, a shared algorithm module can be an algorithm module in algorithm A, or it can be at the same time An algorithm module in an algorithm. It is not difficult to understand that the image processing function corresponding to the shared algorithm module is shared by at least two image processing algorithms. Corresponding to the above example, if algorithm A includes a step corresponding to frequency separation, and algorithm B also includes a step corresponding to frequency separation, then A shared algorithm module is set, and its corresponding image processing function is frequency separation. The shared algorithm module can be located in the first image processing layer of the device, and it serves as an algorithm module in the A algorithm and the B algorithm at the same time.
而对于图像处理算法的共用算法模块以外的其它算法模块,可以设置在装置的第二图像处理层。比如,可以沿用上述例子,A算法中的频率分离功能对应的算法模块是共用算法模块,设置在第一图像处理层,则其另一个对应滤波功能的算法模块可以设置在第二图像处理层。As for the algorithm modules other than the common algorithm module of the image processing algorithm, it can be set in the second image processing layer of the device. For example, the above example can be used. The algorithm module corresponding to the frequency separation function in the A algorithm is a common algorithm module and is set in the first image processing layer, and another algorithm module corresponding to the filtering function can be set in the second image processing layer.
第一图像处理层可以用于利用共用算法模块对获取的第一图像进行处理,得到第一图像对应的图像数据集合,第二图像处理层可以用于利用其他算法模块对目标数据进行处理,其中,目标数据是所述的其它算法模块需要的数据,目标数据可以从第一图像对应的图像数据集合中获取。The first image processing layer can be used to process the acquired first image using a common algorithm module to obtain the image data set corresponding to the first image, and the second image processing layer can be used to process the target data using other algorithm modules, where The target data is the data required by the other algorithm modules, and the target data can be obtained from the image data set corresponding to the first image.
需要说明的是,图像数据集合可以包含多个图像的图像数据,也可以仅包含一个图像的图像数据,还可以包含一个图像的部分图像数据,总之,对于图像数据集合,其可以包含任何图像类的数据,具体包含的是什么数据,取决于共用算法模块对图像进行了何种处理,本申请对此不做限定。It should be noted that the image data set can contain the image data of multiple images, or it can only contain the image data of one image, and it can also contain part of the image data of one image. In short, for the image data set, it can contain any image type. The data contained in the data depends on what kind of processing the shared algorithm module has performed on the image, which is not limited in this application.
对于第一图像,其也可以称为待处理图像,其可以通过各种方式获取,比如可以是从外部的电子设备获取的图像,也可以是本机的电子设备的图像传感器采集的图像,还可以是本机的电子设备生成的图像等等。在一种实施中,第一图像可以是ISP芯片(图像信号处理芯片)输出的图像,即图像可以先经过ISP芯片的前处理,再输入本机进行一系列的后处理。For the first image, it can also be called a to-be-processed image, which can be acquired in various ways, for example, it can be an image acquired from an external electronic device, or an image acquired by the image sensor of the electronic device of the machine, or It can be an image generated by an electronic device of the machine, and so on. In an implementation, the first image may be an image output by an ISP chip (image signal processing chip), that is, the image may be pre-processed by the ISP chip, and then input to the machine for a series of post-processing.
本申请实施例提供的图像处理算法装置,第一图像处理层包括共用算法模块,共用算法模块是至少两个图像处理算法共用的算法模块,也就是说,在本申请实施例提供的装置中,不同图像处理算法中的共有步骤可以作为一个算法模块分离出来,并且,该算法模块可以同时作为这些图像处理算法共有的算法模块。那么,在应用时,执行一次该共用算法模块,就等同于在各图像处理算法中都分别执行了一次该共用算法模块对应的步骤,执行该共用算法模块得到的图像数据集可以提供给各图像处理算法的共用,在不影响各种图像处理算法的功能实现的基础上,减少了共有步骤的执行次数,节省了计算资源与内存资源。In the image processing algorithm device provided by the embodiment of the present application, the first image processing layer includes a shared algorithm module, and the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application, Common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as an algorithm module shared by these image processing algorithms at the same time. Then, in application, executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm. The image data set obtained by executing the shared algorithm module can be provided to each image. The sharing of processing algorithms reduces the number of executions of shared steps and saves computing resources and memory resources on the basis of not affecting the functional realization of various image processing algorithms.
在一个可选的实施方式中,共用算法模块可以包括第一算法模块,第一算法模块对应的图像处理功能可以是分解出第一图像对应的不同频段的第二图像。相应的,基于第一算法模块对第一图像的处理,得到的图像数据集合可以是多个所述第二图像的图像数据的集合。In an optional implementation manner, the shared algorithm module may include a first algorithm module, and the image processing function corresponding to the first algorithm module may be to decompose second images in different frequency bands corresponding to the first image. Correspondingly, based on the processing of the first image by the first algorithm module, the obtained image data set may be a set of image data of multiple second images.
图像中包含不同频率的信息,在图像处理过程中,可以针对图像不同频率的信息做不同的处理,这样,相比仅针对原始图像进行处理,可以得到更好的效果。比如图像降噪算法,若针对图像的不同频率的信息进行处理,可以得到更好的降噪效果,又比如图像对比度增强算法,若针对图像的不同频率的信息进行处理,也可以得到更好的对比度增强效果。因此,上述的第一算法模块可以应用于各种图像处理算法,也就是说,其可以作为各种图像处理算法共用的算法模块。The image contains information of different frequencies. In the process of image processing, different processing can be performed on the information of different frequencies of the image. In this way, better results can be obtained than processing only on the original image. For example, the image noise reduction algorithm can get a better noise reduction effect if the information of different frequencies of the image is processed. Another example is the image contrast enhancement algorithm. If the image information of different frequencies is processed, it can also get better Contrast enhancement effect. Therefore, the above-mentioned first algorithm module can be applied to various image processing algorithms, that is, it can be used as an algorithm module shared by various image processing algorithms.
而在实现对第一图像的分频处理时,有多种可行的实施方式,比如可以对图像进行傅里叶变换,确定图像的频率分布,还可以通过小波变换对图像频率分布进行定量测量。本申请实施例中,提供一种可选的实施方式,可以通过对第一图形进行高斯金字塔分解,得到第一图像对应的不同频段的第二图像。When implementing the frequency division processing of the first image, there are many feasible implementation manners, for example, Fourier transform can be performed on the image to determine the frequency distribution of the image, and the frequency distribution of the image can also be quantitatively measured by wavelet transform. In the embodiment of the present application, an optional implementation manner is provided, and the second image in different frequency bands corresponding to the first image can be obtained by performing Gaussian pyramid decomposition on the first image.
高斯金字塔分解的过程可以包括两个步骤,第一步,可以对图像进行高斯平滑处理,具体的,可以是通过高斯函数生成的核对图像进行滤波;第二步,可以对经过高斯平滑处理的图像进行下采样。通过这两步对第一图像(是金字塔底层的图像)进行处理,可以得到金字塔中第二层的图像,再通过这两步对第二层的图像进行处理,可以得到金字塔中第三层的图像……The process of Gaussian pyramid decomposition can include two steps. The first step is to perform Gaussian smoothing on the image. Specifically, it can be to filter the check image generated by the Gaussian function; the second step is to filter the image after Gaussian smoothing. Perform downsampling. By processing the first image (the image at the bottom of the pyramid) through these two steps, the image of the second layer in the pyramid can be obtained, and then by processing the image of the second layer through these two steps, the image of the third layer in the pyramid can be obtained. image……
可以参见图2,图2是本申请实施例提供的一种高斯金字塔的结构示意图。可见,高斯金字塔中可以包括多层,每一层对应有一个图像,并且,各层的图像对应分辨率不同、尺度不同、频段也不同。由于高斯平滑处理的过程可以认为是低通滤波的过程,因此,对图像进行高斯金字塔分解的过程也是对图像进行分频的过程,在高斯金字塔中,层级越高的图像经过的低通滤波次数就越多,其对应的频段中的频率就越低,也就是说,在高斯金字塔中,高层的图像对应低频信息,低层级的图像对应高频信息。Refer to FIG. 2, which is a schematic structural diagram of a Gaussian pyramid provided by an embodiment of the present application. It can be seen that the Gaussian pyramid can include multiple layers, and each layer corresponds to an image, and the images of each layer correspond to different resolutions, scales, and frequency bands. Since the process of Gaussian smoothing can be considered as the process of low-pass filtering, the process of decomposing the image by Gaussian pyramid is also the process of dividing the image. In the Gaussian pyramid, the higher the level of the image, the number of low-pass filtering The more, the lower the frequency in the corresponding frequency band. That is to say, in the Gaussian pyramid, high-level images correspond to low-frequency information, and low-level images correspond to high-frequency information.
上述的第一算法模块可以应用于各种图像处理算法。而作为一种示例,图像处理算法具体可以是以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。The above-mentioned first algorithm module can be applied to various image processing algorithms. As an example, the image processing algorithm may specifically be any of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
在一种实施中,图像处理算法可以包括图像降噪算法。图像降噪算法对应的处理效果是去除图像中的噪点、提升图像信噪比。图像降噪算法通常在高ISO(感光度)拍摄时运行,或者说,通常对高ISO下拍摄的图像进行处理(高ISO下采集的图像通常噪点明显)。图像降噪算法有多种,本申请实施例提供的装置中,利用了一种可选的图像降噪算法。该可选的图像降噪算法包括多个算法模块,其中包括在第一图像处理层中的第一算法模块(共用算法模块)以及在第二图像处理层中的其它算法模块。In one implementation, the image processing algorithm may include an image noise reduction algorithm. The corresponding processing effect of the image noise reduction algorithm is to remove the noise in the image and improve the image signal-to-noise ratio. Image noise reduction algorithms usually run when shooting at high ISO (sensitivity), or in other words, usually process images shot at high ISO (images captured at high ISO are usually noisy). There are multiple image noise reduction algorithms, and the device provided in the embodiment of the present application uses an optional image noise reduction algorithm. The optional image noise reduction algorithm includes multiple algorithm modules, including a first algorithm module (common algorithm module) in the first image processing layer and other algorithm modules in the second image processing layer.
图像降噪算法的第一算法模块在前文中已有相关说明,在此不再赘述。图像降噪算法的其它算法模块可以包括亮度降噪算法模块与色度降噪算法模块,其中,亮度降 噪算法模块对应的图像处理功能可以包括对亮度数据进行降噪处理,色度降噪算法模块对应的图像处理功能可以包括对色度数据进行降噪处理。The first algorithm module of the image noise reduction algorithm has been described in the foregoing, and will not be repeated here. Other algorithm modules of the image noise reduction algorithm may include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module. Among them, the image processing function corresponding to the luminance noise reduction algorithm module may include noise reduction processing on luminance data, and chrominance noise reduction algorithm. The image processing function corresponding to the module may include noise reduction processing on the chrominance data.
上述的图像降噪算法中包括对亮度数据的降噪处理与对色度数据的降噪处理,其中,亮度数据与色度数据都是图像数据。图像数据有多种颜色编码方式,比如RGB、YUV等。本申请实施例中,图像数据可以采用YUV的颜色编码,其中Y对应的亮度数据,UV对应的色度数据。The aforementioned image noise reduction algorithm includes noise reduction processing on luminance data and noise reduction processing on chrominance data, where both luminance data and chrominance data are image data. There are many color coding methods for image data, such as RGB, YUV, etc. In the embodiment of the present application, the image data may adopt YUV color coding, where Y corresponds to brightness data and UV corresponds to chromaticity data.
在对亮度数据进行降噪处理时,有多种具体的实施方式,本申请实施例提供一种可选的,该可选的实施方式中,对亮度数据进行降噪处理可以包括以下步骤:When performing noise reduction processing on brightness data, there are multiple specific implementation manners. The embodiment of the present application provides an alternative. In this optional implementation manner, performing noise reduction processing on brightness data may include the following steps:
对第一图像的亮度数据的高频信息与低频信息分别进行滤波;Filtering the high-frequency information and low-frequency information of the brightness data of the first image separately;
将滤波后的高频信息与低频信息结合,得到降噪后的第一图像的亮度数据。Combine the filtered high-frequency information with the low-frequency information to obtain the brightness data of the first image after noise reduction.
在对亮度数据进行降噪处理时,可以对第一图像的亮度数据进行频率分离,分离出第一图像的亮度数据的高频信息与低频信息,之后,可以分别针对高频信息和低频信息进行滤波,以得到更好的降噪效果。其中,在对第一图像的亮度数据的频率分离时,可以通过原始频段对应的第二图像的亮度数据与指定频段对应的第二图像的亮度数据进行。When noise reduction is performed on the brightness data, the brightness data of the first image can be frequency separated to separate the high-frequency information and low-frequency information of the brightness data of the first image. After that, the high-frequency information and the low-frequency information can be separately Filter to get a better noise reduction effect. Wherein, the frequency separation of the brightness data of the first image can be performed by using the brightness data of the second image corresponding to the original frequency band and the brightness data of the second image corresponding to the designated frequency band.
原始频段对应的第二图像,也可以称为原始尺度或原始分辨率对应的第二图像,在高斯金字塔中,其对应高斯金字塔中的底层图像。原始频段对应的第二图像没有经过高斯平滑处理,因此没有高频信息的丢失,对应的频段是最完整的、原始的,即原始频段对应的第二图像实际就是第一图像。The second image corresponding to the original frequency band may also be referred to as the second image corresponding to the original scale or original resolution. In the Gaussian pyramid, it corresponds to the bottom layer image in the Gaussian pyramid. The second image corresponding to the original frequency band has not undergone Gaussian smoothing, so there is no loss of high-frequency information. The corresponding frequency band is the most complete and original, that is, the second image corresponding to the original frequency band is actually the first image.
而指定频段对应的第二图像,指定频段可以是原始频段以外的任一频段,由于是指定频段对应的第二图像是对第一图像经过至少一次高斯平滑处理(低通滤波)后得到的,因此其对应的是低频信息,在一种实施中,可以直接将该指定频段对应的第二图像的亮度数据作为第一图形的亮度数据的低频信息。而在低频信息确定后,高频信息也容易分离出来。For the second image corresponding to the designated frequency band, the designated frequency band can be any frequency band other than the original frequency band. Because the second image corresponding to the designated frequency band is obtained after at least one Gaussian smoothing process (low-pass filtering) is performed on the first image, Therefore, it corresponds to low-frequency information. In an implementation, the brightness data of the second image corresponding to the designated frequency band can be directly used as the low-frequency information of the brightness data of the first graphic. After the low-frequency information is determined, the high-frequency information can be easily separated.
具体的,可以对应到图2中的高斯金字塔,图2中的高斯金字塔包括四个层级,分别是第1层、第2层、第3层、第4层,每一层对应一个频段。在一个例子中,指定频段对应的第二图像可以是第3层对应的图像d4,即可以选择第3层的图像d4的亮度数据作为低频信息。当然,也可以选择第2层的图像d2的亮度数据作为低频信息,但需要考虑的是,第2层图像d2的分辨率是第3层图像d4的四倍,因此,若选用第2层图像d2,计算量也会的相应增大四倍,所以,选用第3层对应的图像d4是平衡了计算量与降噪效果后的选择。Specifically, it can correspond to the Gaussian pyramid in Figure 2. The Gaussian pyramid in Figure 2 includes four levels, namely the first layer, the second layer, the third layer, and the fourth layer. Each layer corresponds to a frequency band. In an example, the second image corresponding to the designated frequency band may be the image d4 corresponding to the third layer, that is, the brightness data of the image d4 of the third layer may be selected as the low-frequency information. Of course, the brightness data of the second layer image d2 can also be selected as the low-frequency information, but it needs to be considered that the resolution of the second layer image d2 is four times that of the third layer image d4. Therefore, if the second layer image is selected d2, the calculation amount will be correspondingly increased by four times. Therefore, choosing the image d4 corresponding to the third layer is a choice after balancing the calculation amount and the noise reduction effect.
进一步的,将滤波后的高频信息与低频信息结合之后,还可以对结合得到的降噪后的第一图像的亮度数据进行亮度锐化,以提高亮度边缘的清晰度。Further, after the filtered high-frequency information is combined with the low-frequency information, the brightness data of the noise-reduced first image obtained by the combination may also be brightness sharpened, so as to improve the definition of the brightness edge.
在对色度数据进行降噪处理时,也可以有多种实施方式。本申请实施例提供其中一种可选的,在该可选的实施方式中,对色度数据进行降噪处理可以包括以下步骤:When performing noise reduction processing on chrominance data, there may also be multiple implementation manners. The embodiment of the present application provides one of the optional ones. In this optional implementation manner, performing noise reduction processing on chrominance data may include the following steps:
对低频频段对应的第二图像的色度数据进行滤波;Filtering the chrominance data of the second image corresponding to the low frequency band;
将滤波后的低频频段对应的色度数据与该低频频段以外的其他频段对应的色度数据进行自适应融合,得到降噪后的第一图像的色度数据。The chrominance data corresponding to the filtered low frequency band is adaptively fused with the chrominance data corresponding to other frequency bands other than the low frequency band to obtain the chrominance data of the first image after noise reduction.
由前述内容可知,不同频段对应的第二图像实际都是通过对第一图像进行低通滤波得到的。因此,经过的低通滤波的次数越多,对应的第二图像的频段就越低频。上述的低频频段可以是频段中的最高频率低于预设频率的频段,对应在图2所示的高斯金字塔中,低频频段对应的第二图像可以是最高的若干层对应的图像,比如若设定低频频段对应的第二图像是最高的两层对应的图像,则低频频段对应的第二图像包括第3层对应的图像d4和第4层对应的图像d8。It can be seen from the foregoing that the second images corresponding to different frequency bands are actually obtained by low-pass filtering the first image. Therefore, the more low-pass filtering passes, the lower the frequency band of the corresponding second image. The above-mentioned low-frequency frequency band may be the frequency band whose highest frequency is lower than the preset frequency. Corresponding to the Gaussian pyramid shown in Fig. 2, the second image corresponding to the low-frequency frequency band may be the image corresponding to the highest several layers. The second image corresponding to the fixed low-frequency band is the image corresponding to the highest two layers, and the second image corresponding to the low-frequency band includes the image d4 corresponding to the third layer and the image d8 corresponding to the fourth layer.
可以对低频频段对应的第二图像的色度数据进行滤波,具体的滤波方式可以选择双边滤波。在滤波之后,可以将各个频段对应的色度数据进行融合,从而得到降噪后的第一图像的色度数据。在上述方案中,低频频段以外的其他频段对应的色度数据可以不进行滤波,之所以如此,是因为色度数据的噪声主要存在于低频部分,因此对低频频段对应的色度数据进行滤波就可以实现色度数据的降噪。The chrominance data of the second image corresponding to the low frequency band can be filtered, and the specific filtering method can be bilateral filtering. After filtering, the chrominance data corresponding to each frequency band can be fused to obtain the chrominance data of the first image after noise reduction. In the above scheme, the chrominance data corresponding to other frequency bands other than the low frequency band may not be filtered. The reason for this is that the noise of the chrominance data mainly exists in the low frequency part. Therefore, filtering the chrominance data corresponding to the low frequency band is only necessary. The noise reduction of chrominance data can be achieved.
在一种实施中,在对低频频段对应的色度数据进行滤波时,还可以以参考频段对应的亮度数据为指导对低频频段对应的色度数据进行滤波,其中,参考频段是频率比低频频段低一级的频段。可以继续以图2所示的高斯金字塔为例进行说明,若低频频段对应的第二图像包括第3层对应的图像d4和第4层对应的图像d8,则对第3层对应的色度数据d4_uv进行滤波时,可以参考第4层对应的图像d8的亮度数据d8_y(第4层的图像d8是对第3层的图像d4进行低通滤波得到的,在频率上比第3层的图像d4低一级),同理,对第4层对应的色度数据d8_uv进行滤波时,可以参考第5层对应的图像的亮度数据d16_y。In one implementation, when filtering the chrominance data corresponding to the low-frequency frequency band, the luminance data corresponding to the reference frequency band can also be used as a guide to filter the chrominance data corresponding to the low-frequency frequency band. The lower frequency band. The Gaussian pyramid shown in Figure 2 can be used as an example. If the second image corresponding to the low-frequency band includes the image d4 corresponding to the third layer and the image d8 corresponding to the fourth layer, then the chrominance data corresponding to the third layer When filtering d4_uv, you can refer to the brightness data d8_y of the image d8 corresponding to the 4th layer (the image d8 of the 4th layer is obtained by low-pass filtering the image d4 of the 3rd layer, which is higher in frequency than the image d4 of the 3rd layer. One level lower). Similarly, when filtering the chrominance data d8_uv corresponding to the fourth layer, you can refer to the brightness data d16_y of the image corresponding to the fifth layer.
上述例子中,第4层对应的图像d8是经过最多次低通滤波得到的,因此其对应频段是频率最低的频段,可以称为最低频段。容易理解,最低频段是低频频段之一,在对最低频段对应的色度数据进行滤波时,需要参考比该最低频段在频率上还要低一级的频段对应的亮度数据。比如,上述例子中的第4层对应的色度数据d8_uv需要参考第5层对应的亮度数据d16_y进行滤波。关于该第5层对应的亮度数据d16_y的获取 方式,在第一种实施中,可以在对第一图像进行高斯金字塔分解时,将第一图像分解出5层图像,即分解出图像d0、图像d2、图像d4、图像d8、图像d16,而在第二种实施中,该第5层对应的亮度数据d16_y可以通过对第4层对应的亮度数据d8_y进行下采样得到。第二种实施相比第一种实施而言,计算量更小。In the above example, the image d8 corresponding to the fourth layer is obtained through the most low-pass filtering, so its corresponding frequency band is the frequency band with the lowest frequency, which can be called the lowest frequency band. It is easy to understand that the lowest frequency band is one of the low frequency frequency bands. When filtering the chrominance data corresponding to the lowest frequency band, it is necessary to refer to the brightness data corresponding to the frequency band that is one level lower in frequency than the lowest frequency band. For example, the chrominance data d8_uv corresponding to the fourth layer in the above example needs to be filtered with reference to the brightness data d16_y corresponding to the fifth layer. Regarding the acquisition method of the brightness data d16_y corresponding to the fifth layer, in the first implementation, when the first image is decomposed by the Gaussian pyramid, the first image can be decomposed into 5 layers of images, that is, the image d0 and the image can be decomposed. d2, image d4, image d8, image d16, and in the second implementation, the brightness data d16_y corresponding to the fifth layer can be obtained by down-sampling the brightness data d8_y corresponding to the fourth layer. The second implementation is less computationally intensive than the first implementation.
在将各个频段对应的色度数据进行自适应融合时,可以进一步参考边缘融合权重进行。边缘融合权重可以是对低频频段以外的其它频段对应的色度数据进行边缘检测确定的。When adaptively fusing the chrominance data corresponding to each frequency band, the edge fusion weight can be further referenced. The edge fusion weight may be determined by performing edge detection on the chrominance data corresponding to other frequency bands other than the low frequency frequency band.
申请人发现,在某些场景中,通过上述的方式对色度数据进行降噪,降噪效果仍然不够理想,考虑到色度数据的噪点主要集中在低频部分,因此,在对最低频段对应的色度数据进行滤波之前,还可以进一步对最低频段对应的色度数据进行降饱和,从而提高色度数据的降噪效果。The applicant found that in some scenes, the noise reduction effect of chrominance data by the above-mentioned method is still not ideal. Considering that the noise of chrominance data is mainly concentrated in the low frequency part, it is Before the chrominance data is filtered, the chrominance data corresponding to the lowest frequency band can be further de-saturated, thereby improving the noise reduction effect of the chrominance data.
在一种实施中,图像处理算法还可以包括图像对比度增强算法。图像对比度增强算法对应的处理效果是提高图像的对比度。图像对比度增强算法也有多种,本申请实施例提供的装置中,利用了一种可选的图像对比度增强算法。该可选的图像对比度增强算法包括多个算法模块,其中包括在第一图像处理层中的第一算法模块(该第一算法模块可以与图像降噪算法共用)以及在第二图像处理层中的其它算法模块。In an implementation, the image processing algorithm may also include an image contrast enhancement algorithm. The corresponding processing effect of the image contrast enhancement algorithm is to improve the contrast of the image. There are also multiple image contrast enhancement algorithms. The device provided in this embodiment of the present application uses an optional image contrast enhancement algorithm. The optional image contrast enhancement algorithm includes multiple algorithm modules, including a first algorithm module in the first image processing layer (the first algorithm module can be shared with the image noise reduction algorithm) and in the second image processing layer Other algorithm modules.
同样的,图像对比度增强算法的第一算法模块在前文中已有相关说明,在此不再赘述。图像对比度增强算法的其它算法模块可以包括亮度增强算法模块与色度增强算法模块,其中,亮度增强算法模块对应的图像处理功能可以包括对亮度数据进行对比度增强,色度降噪算法模块对应的图像处理功能可以包括对色度数据进行对比度增强。Similarly, the first algorithm module of the image contrast enhancement algorithm has been described in the foregoing, and will not be repeated here. Other algorithm modules of the image contrast enhancement algorithm may include a brightness enhancement algorithm module and a chrominance enhancement algorithm module. Among them, the image processing function corresponding to the brightness enhancement algorithm module may include the contrast enhancement of the brightness data, and the image corresponding to the chrominance noise reduction algorithm module. The processing function may include contrast enhancement of the chrominance data.
在对亮度数据进行对比度增强处理时,有多种具体的实施方式,本申请实施例提供其中一种可选的,该可选的实施方式中,对亮度数据进行对比度增强处理可以包括以下步骤:When performing contrast enhancement processing on brightness data, there are multiple specific implementation manners. The embodiment of the present application provides one of the options. In this optional implementation manner, performing contrast enhancement processing on brightness data may include the following steps:
对第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;Performing contrast enhancement on the high-frequency information and the low-frequency information of the brightness data of the first image respectively;
将对比度增强后的高频信息与低频信息结合,得到对比度增强后的第一图像的亮度数据。Combine the contrast-enhanced high-frequency information with the low-frequency information to obtain the brightness data of the contrast-enhanced first image.
关于第一图像的亮度数据的高频信息与低频信息的说明可以参见前文中图像降噪算法的相应内容,在此不再赘述。For the description of the high-frequency information and low-frequency information of the brightness data of the first image, please refer to the corresponding content of the image noise reduction algorithm in the foregoing, which will not be repeated here.
在对低频信息进行对比度增强时,具体可以将低频信息通过金字塔分解,得到低频信息对应的高斯金字塔与拉普拉斯金字塔,然后针对金字塔中每一层的低频信息进行增强处理,最后利用增强后的每一层的低频信息进行金字塔重建操作,从而得到对 比度增强后的低频信息。When performing contrast enhancement on low-frequency information, the low-frequency information can be specifically decomposed by a pyramid to obtain the Gaussian pyramid and Laplacian pyramid corresponding to the low-frequency information, and then enhance the low-frequency information of each layer in the pyramid, and finally use the enhanced Pyramid reconstruction is performed on the low-frequency information of each layer, so as to obtain contrast-enhanced low-frequency information.
色度数据的对比度增强是在亮度数据的对比度增强的基础上进行的,具体而言,由于图像在亮度上进行了对比度增强,为使图像在视觉效果上更协调,因此也需要相应的对色度数据进行对比度增强,而该增强的过程可以以亮度数据在对比度增强前后的变化量为参考。The contrast enhancement of the chrominance data is carried out on the basis of the contrast enhancement of the brightness data. Specifically, because the image has been contrast enhanced in the brightness, in order to make the image more coordinated in the visual effect, the corresponding color matching is also required. The degree data is contrast enhanced, and the enhancement process can be based on the amount of change of the brightness data before and after the contrast enhancement.
具体的,对色度数据进行对比度增强可以包括,根据对比度增强前后的第一图像的亮度数据的低频信息的变化量,对原始频段对应的第二图像的色度数据进行调整。Specifically, performing contrast enhancement on the chrominance data may include adjusting the chrominance data of the second image corresponding to the original frequency band according to the amount of change in the low-frequency information of the brightness data of the first image before and after the contrast enhancement.
由前文关于低频信息的说明可知,低频信息在一些实施中可以是指定频段对应的第二图像的亮度数据。根据该指定频段对应的第二图像的亮度数据在对比度增强前后的变化量,可以对原始频段对应的第二图像的色度数据(即第一图像的色度数据)进行调整。It can be seen from the foregoing description of the low-frequency information that, in some implementations, the low-frequency information may be the brightness data of the second image corresponding to the specified frequency band. According to the amount of change of the brightness data of the second image corresponding to the designated frequency band before and after the contrast enhancement, the chromaticity data of the second image corresponding to the original frequency band (that is, the chromaticity data of the first image) can be adjusted.
更具体的,还可以根据对比度增强前后低频信息的变化量,计算色度映射比值,根据计算出的色度映射比值对原始频段对应的色度数据进行重映射,得到对比度增强后的第一图像的色度数据。More specifically, the chroma mapping ratio can be calculated according to the amount of change in the low-frequency information before and after the contrast enhancement, and the chroma data corresponding to the original frequency band can be remapped according to the calculated chroma mapping ratio to obtain the first image after the contrast enhancement. Chromaticity data.
在一种实施中,图像处理算法还可以包括图像去紫边算法。图像去紫边算法对应的处理效果是去除亮度边界处产生的紫边问题。图像去紫边算法也有多种,本申请实施例提供的装置中,利用了一种可选的图像去紫边算法。该可选的图像去紫边算法包括多个算法模块,其中包括在第一图像处理层中的第一算法模块(该第一算法模块可以与图像降噪算法、图像对比度增强算法共用)以及在第二图像处理层中的其它算法模块。In an implementation, the image processing algorithm may also include an image de-purplening algorithm. The corresponding processing effect of the image de-purple fringing algorithm is to remove the purple fringing problem generated at the brightness boundary. There are also multiple image de-purple-removing algorithms. The device provided in the embodiment of the present application uses an optional image de-purple-removing algorithm. The optional image de-purplening algorithm includes multiple algorithm modules, including the first algorithm module in the first image processing layer (the first algorithm module can be shared with the image noise reduction algorithm and the image contrast enhancement algorithm) and the Other algorithm modules in the second image processing layer.
同样的,图像去紫边算法的第一算法模块在前文中已有相关说明,在此不再赘述。图像去紫边算法的其它算法模块对应的图像处理功能可以包括以下步骤:Similarly, the first algorithm module of the image de-purple fringing algorithm has been described in the previous section, and will not be repeated here. The image processing function corresponding to other algorithm modules of the image de-purple algorithm may include the following steps:
确定紫边对应的颜色信息与位置信息;Determine the color information and location information corresponding to the purple fringe;
根据确定的颜色信息与位置信息,对原始频段对应的第二图像的色度数据进行降饱和。According to the determined color information and position information, the chromaticity data of the second image corresponding to the original frequency band is desaturated.
为去除图像中的紫边,需要先确定紫边对应的颜色与位置,在确定紫边的颜色和位置后,可以在图像中紫边的位置处针对紫边的颜色进行降饱和,从而消除图像中的紫边。在本申请实施例提供的图像去紫边算法中,颜色信息和位置信息可以分别根据不同频段对应的图像数据确定,具体的,颜色信息可以根据第一频段对应的第二图像的色度数据确定,位置信息可以根据第二频段对应的第二图像的亮度数据确定。对应到图2所示的高斯金字塔中,第一频段可以对应高斯金字塔中的最高层,即第一频段 可以对应第4层,而第二频段可以对应高斯金字塔中的中间层,比如第二频段可以对应第2层。In order to remove the purple fringe in the image, you need to determine the color and position of the purple fringe first. After determining the color and position of the purple fringe, you can desaturate the purple fringe color at the position of the purple fringe in the image to eliminate the image The purple fringe. In the image de-purple fringing algorithm provided by the embodiment of the application, the color information and the position information can be determined according to the image data corresponding to different frequency bands. Specifically, the color information can be determined according to the chromaticity data of the second image corresponding to the first frequency band. , The location information may be determined according to the brightness data of the second image corresponding to the second frequency band. Corresponding to the Gaussian pyramid shown in Figure 2, the first frequency band can correspond to the highest layer in the Gaussian pyramid, that is, the first frequency band can correspond to the fourth layer, and the second frequency band can correspond to the middle layer in the Gaussian pyramid, such as the second frequency band Can correspond to the second layer.
在具体确定位置信息时,由于紫边现象存在于亮度边界处,因此可以对第二频段对应的亮度数据进行边缘检测,以确定出紫边的位置信息。When the position information is specifically determined, since the purple fringing phenomenon exists at the brightness boundary, edge detection can be performed on the brightness data corresponding to the second frequency band to determine the position information of the purple fringing.
在确定颜色信息和位置信息后,在具体根据颜色信息与位置信息进行降饱和时,可以将颜色信息与位置信息融合,得到紫边掩码;再根据该紫边掩码对原始频段对应的色度数据进行降饱和。在一种实施中,颜色信息具体可以是颜色权重,位置信息具体可以是边缘权重,上述的紫边掩码可以是根据该颜色权重和边缘权重融合得到的。After determining the color information and position information, when desaturation is performed according to the color information and the position information, the color information and the position information can be fused to obtain the purple fringing mask; and then according to the purple fringing mask, the color corresponding to the original frequency band The degree data is desaturated. In an implementation, the color information may specifically be color weights, and the position information may specifically be edge weights. The aforementioned purple fringe mask may be obtained by fusing the color weight and the edge weight.
以上是对本申请实施例提供的图像降噪算法、图像对比度增强算法以及图像去紫边算法的详细说明。进一步分析其中的图像降噪算法与图像对比度增强算法,图像降噪算法中在对亮度数据进行降噪处理时,是对第一图像的亮度数据的高频信息与低频信息分别进行滤波的,而图像对比度增强算法中在对亮度数据进行对比度增强时,也是对第一图像的亮度数据的高频信息与低频信息分别进行对比度增强的。可以发现,上述的两种算法都包括分离出第一图像的亮度数据的高频信息与低频信息的步骤,因此,该步骤是两个算法的共有步骤,可以设置一个对应该共有步骤的共用算法模块。The above is a detailed description of the image noise reduction algorithm, the image contrast enhancement algorithm, and the image depurple removal algorithm provided by the embodiments of the present application. Further analyze the image noise reduction algorithm and image contrast enhancement algorithm. In the image noise reduction algorithm, when the brightness data is denoised, the high-frequency information and low-frequency information of the brightness data of the first image are filtered separately. In the image contrast enhancement algorithm, when the brightness data is contrast-enhanced, the high-frequency information and the low-frequency information of the brightness data of the first image are also contrast-enhanced separately. It can be found that the above two algorithms both include the step of separating the high-frequency information and low-frequency information of the brightness data of the first image. Therefore, this step is a common step of the two algorithms. A common algorithm corresponding to the common step can be set. Module.
具体的,可以在装置的第一图像处理层中设置第二算法模块,第二算法模块也是共用算法模块,其对应的图像处理功能可以包括通过原始频段对应的第二图像的亮度数据与指定频段对应的第二图像的亮度数据分离出第一图像的亮度数据的高频信息与低频信息。通过该第二算法模块,可以将图像降噪算法与图像对比度增强算法中的共有的分离高频信息与低频信息的步骤合并,使得分离出第一图像的亮度数据的高频信息与低频信息在整个图像处理过程只需要被执行一次,进一步节省了计算资源。Specifically, a second algorithm module may be set in the first image processing layer of the device. The second algorithm module is also a shared algorithm module. The corresponding image processing function may include the brightness data of the second image corresponding to the original frequency band and the designated frequency band. The brightness data of the corresponding second image separates high-frequency information and low-frequency information of the brightness data of the first image. Through this second algorithm module, the steps of separating high frequency information and low frequency information shared by the image noise reduction algorithm and the image contrast enhancement algorithm can be combined, so that the high frequency information and low frequency information of the brightness data of the first image can be separated. The entire image processing process only needs to be executed once, which further saves computing resources.
进一步的,图像降噪算法与图像对比度增强算法都包括将高频信息与低频信息结合的步骤,因此该步骤也是共有步骤,也可以在第一图像处理层中设置第三算法模块,该第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。Further, both the image noise reduction algorithm and the image contrast enhancement algorithm include the step of combining high-frequency information with low-frequency information. Therefore, this step is also a common step. A third algorithm module can also be set in the first image processing layer. The image processing function corresponding to the algorithm module includes combining the high-frequency information with the low-frequency information.
以上是对本申请实施例提供的图像处理算法装置的详细说明。本申请实施例提供的图像处理算法装置,将图像处理算法进行了更小粒度的模块划分,从而可以对其中对应相同图像处理功能的模块进行合并,将各图像处理算法融合。具体的,本申请实施例提供的装置中,第一图像处理层包括共用算法模块,共用算法模块是至少两个图像处理算法共用的算法模块,也就是说,在本申请实施例提供的装置中,不同图像处理算法中的共有步骤可以作为一个算法模块分离出来,并且,该算法模块可以同时作为这些图像处理算法共有的算法模块。那么,在应用时,执行一次该共用算法模块, 就等同于在各图像处理算法中都分别执行了一次该共用算法模块对应的步骤,执行该共用算法模块得到的图像数据集可以提供给各图像处理算法的共用,在不影响各种图像处理算法的功能实现的基础上,减少了共有步骤的执行次数,节省了计算资源与内存资源。The foregoing is a detailed description of the image processing algorithm device provided by the embodiment of the present application. The image processing algorithm device provided by the embodiment of the present application divides the image processing algorithm into smaller granular modules, so that the modules corresponding to the same image processing function can be merged, and the image processing algorithms can be merged. Specifically, in the device provided by the embodiment of the present application, the first image processing layer includes a shared algorithm module, and the shared algorithm module is an algorithm module shared by at least two image processing algorithms, that is, in the device provided by the embodiment of the present application , The common steps in different image processing algorithms can be separated as an algorithm module, and the algorithm module can be used as the algorithm module shared by these image processing algorithms at the same time. Then, in application, executing the shared algorithm module once is equivalent to executing the steps corresponding to the shared algorithm module once in each image processing algorithm. The image data set obtained by executing the shared algorithm module can be provided to each image. The sharing of processing algorithms reduces the number of executions of shared steps and saves computing resources and memory resources on the basis of not affecting the functional realization of various image processing algorithms.
下面可以参见图3,图3是本申请实施例提供的一种融合算法的流程框图。需要注意的是,该融合算法仅作为一个例子,其结合了本申请实施例提供的装置,融合了图像降噪算法、图像对比度增强算法以及图像去紫边算法。Refer to FIG. 3 below, which is a flowchart of a fusion algorithm provided by an embodiment of the present application. It should be noted that this fusion algorithm is only used as an example. It combines the device provided in the embodiment of the present application, and integrates the image noise reduction algorithm, the image contrast enhancement algorithm, and the image depurple removal algorithm.
图3中,圆角框可以表示数据,矩形框可以表示模块。第一图像的图像数据yuv_in可以输入第一算法模块。第一算法模块具体可以是高斯金字塔分解模块(Gaussian Pyramid Decomposition),其可以设置在装置中的第一图像处理层,是图像降噪算法、图像去紫边算法与图像对比度增强算法的共用算法模块。通过第一算法模块对第一图像进行处理后,可以将第一图像分解成多个频段的第二图像,具体到图3中,分解后得到的高斯金字塔与图2的高斯金字塔相对应,第一图像被分解成d0、d2、d4、d8四个不同频段对应的第二图像。In Figure 3, rounded boxes can represent data, and rectangular boxes can represent modules. The image data yuv_in of the first image can be input to the first algorithm module. Specifically, the first algorithm module can be Gaussian Pyramid Decomposition, which can be set in the first image processing layer of the device, and is a common algorithm module for image denoising algorithm, image de-purplening algorithm, and image contrast enhancement algorithm. . After the first image is processed by the first algorithm module, the first image can be decomposed into second images of multiple frequency bands. Specifically, as shown in Figure 3, the Gaussian pyramid obtained after decomposition corresponds to the Gaussian pyramid in Figure 2. An image is decomposed into second images corresponding to four different frequency bands, d0, d2, d4, and d8.
相应的,分解后得到的图像数据集中包括各个第二图像的图像数据,对应到图3中,图像数据集中包括d0、d2、d4、d8四个第二图像的图像数据,这些图像数据具体包括第二图像d0的亮度数据d0_y与色度数据d0_uv、第二图像d2的亮度数据d2_y与色度数据d2_uv、第二图像d4的亮度数据d4_y与色度数据d4_uv、第二图像d8的亮度数据d8_y与色度数据d8_uv。Correspondingly, the image data set obtained after decomposition includes image data of each second image, corresponding to FIG. 3, the image data set includes image data of four second images d0, d2, d4, and d8, and these image data specifically include The luminance data d0_y and chrominance data d0_uv of the second image d0, the luminance data d2_y and chrominance data d2_uv of the second image d2, the luminance data d4_y and chrominance data d4_uv of the second image d4, and the luminance data d8_y of the second image d8 And chromaticity data d8_uv.
图3可以分为亮度数据的处理与色度数据的处理两部分。其中,亮度数据的处理中,d0_y是原始频段对应的亮度数据,其与指定频段对应的亮度数据d4_y输入第二算法模块。第二算法模块对应到图3中具体是GENRATE_HF模块,其对应的图像处理功能是通过原始频段对应的第二图像的亮度数据d0_y与指定频段对应的第二图像的亮度数据d4_y分离出第一图像的亮度数据的高频信息hf_src与低频信息d4_y(d4_y本身可以作为低频信息)。第二算法模块也是在第一图像处理层中的共用算法模块,其具体是图像降噪算法与图像对比度增强算法的共用算法模块。Figure 3 can be divided into two parts: luminance data processing and chrominance data processing. Among them, in the processing of the brightness data, d0_y is the brightness data corresponding to the original frequency band, and the brightness data d4_y corresponding to the designated frequency band is input to the second algorithm module. The second algorithm module corresponds to the specific GENRATE_HF module in Figure 3, and its corresponding image processing function is to separate the first image from the brightness data d0_y of the second image corresponding to the original frequency band and the brightness data d4_y of the second image corresponding to the specified frequency band. The high-frequency information hf_src and the low-frequency information d4_y of the brightness data (d4_y itself can be used as the low-frequency information). The second algorithm module is also a shared algorithm module in the first image processing layer, which is specifically a shared algorithm module of the image noise reduction algorithm and the image contrast enhancement algorithm.
HF_FILTER模块与LF_FILTER模块分别是高频滤波模块与低频滤波模块,HF_FILTER模块用于对高频信息进行滤波,LF_FILTER模块用于对低频信息进行滤波,这两个算法模块是图像降噪算法中的算法模块。The HF_FILTER module and the LF_FILTER module are the high frequency filter module and the low frequency filter module respectively. The HF_FILTER module is used to filter high frequency information, and the LF_FILTER module is used to filter low frequency information. These two algorithm modules are algorithms in the image noise reduction algorithm. Module.
HF_GAIN模块与LF_GAIN模块分别是高频增强模块与低频增强模块,HF_GAIN模块用于对高频信息进行对比度增强,LF_GAIN模块用于对低频信息进行对比度增 强,这两个算法模块是图像对比度增强算法中的算法模块。The HF_GAIN module and the LF_GAIN module are the high-frequency enhancement module and the low-frequency enhancement module respectively. The HF_GAIN module is used to enhance the contrast of high-frequency information, and the LF_GAIN module is used to enhance the contrast of the low-frequency information. These two algorithm modules are in the image contrast enhancement algorithm. Algorithm module.
UP_COMBINE模块对应的是第三算法模块,其用于对高频信息与低频信息进行结合,对应到图3中,其具体用于对滤波后且对比度增强后的高频信息hf与低频信息lf_after进行上采样结合,从而得到亮度数据d0_combine。该模块对应的步骤是图像降噪算法与图像对比度增强中共有的,因此,该模块也可以作为共用算法模块,设置在第一图像处理层。The UP_COMBINE module corresponds to the third algorithm module, which is used to combine high-frequency information and low-frequency information, corresponding to Figure 3, which is specifically used to perform filtering and contrast-enhanced high-frequency information hf and low-frequency information lf_after Up-sampling is combined to obtain the brightness data d0_combine. The steps corresponding to this module are shared by the image noise reduction algorithm and image contrast enhancement. Therefore, this module can also be used as a shared algorithm module and set in the first image processing layer.
LUMA_SHARPEN模块用于对亮度数据进行锐化,其是图像降噪算法中的算法模块。The LUMA_SHARPEN module is used to sharpen the brightness data, which is an algorithm module in the image noise reduction algorithm.
对于色度数据的处理,可以将色度降噪算法模块(Chroma Denoising,CDNS)、图像去紫边模块(Purple Fringe Remove,PFR)和色度增强算法模块(UV_REMAPPING)三个模块依次串联起来,实现图像降噪算法、图像对比度增强算法与图像去紫边算法三种算法在色度数据处理上的融合。For the processing of chrominance data, the chroma denoising algorithm module (Chroma Denoising, CDNS), the image de-purple removal module (Purple Fringe Remove, PFR) and the chroma enhancement algorithm module (UV_REMAPPING) can be connected in series in sequence. Realize the fusion of the three algorithms of image noise reduction algorithm, image contrast enhancement algorithm and image de-purple algorithm in the processing of chrominance data.
对于图3中的各个算法模块,其对应的具体步骤与具体实现方式可以参考前文中已有的相应说明,在此不再赘述。For each algorithm module in FIG. 3, the corresponding specific steps and specific implementation manners can refer to the corresponding descriptions already in the previous text, which will not be repeated here.
需要说明的是,以上所展示的算法模块仅作为一种示例,算法模块在具体划分时,可以采用更小的模块粒度,比如一些算法模块还可以进一步细分出子模块,细分出的子模块也可以是本申请实施例指代的算法模块。It should be noted that the algorithm module shown above is only an example. When the algorithm module is specifically divided, a smaller module granularity can be used. For example, some algorithm modules can be further subdivided into sub-modules. The module may also be an algorithm module referred to in the embodiment of the present application.
下面请参见图4,图4是本申请实施例提供的一种图像处理方法的流程图。该方法用于利用至少两种图像处理算法对图像进行处理,每种所述图像处理算法包括至少两个算法模块,每个所述算法模块对应所述图像处理算法中的不同图像处理功能;所述方法包括:Please refer to FIG. 4 below, which is a flowchart of an image processing method provided by an embodiment of the present application. The method is used to process images by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to a different image processing function in the image processing algorithm; The methods include:
S401、利用共用算法模块对获取的第一图像进行处理,得到所述第一图像对应的图像数据集合。S401: Use a common algorithm module to process the acquired first image to obtain an image data set corresponding to the first image.
其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;Wherein, the common algorithm module is an algorithm module corresponding to the same image processing function in at least two of the image processing algorithms;
S402、从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。S402: Obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithm modules to process the corresponding target data.
可选的,所述共用算法模块包括第一算法模块,所述第一算法模块对应的图像处理功能包括分解出所述第一图像对应的不同频段的第二图像;所述图像数据集合包括多个所述第二图像的图像数据。Optionally, the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing second images of different frequency bands corresponding to the first image; the image data set includes multiple Image data of the second image.
可选的,所述第一图像对应的不同频段的所述第二图像是对所述第一图像进行高 斯金字塔分解得到的。Optionally, the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
可选的,所述图像数据包括亮度数据与色度数据。Optionally, the image data includes luminance data and chrominance data.
可选的,所述图像处理算法包括以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。Optionally, the image processing algorithm includes any one of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
可选的,所述图像降噪算法的所述其他算法模块包括亮度降噪算法模块与色度降噪算法模块,所述亮度降噪算法模块对应的图像处理功能包括对亮度数据进行降噪处理,所述色度降噪算法模块对应的图像处理功能包括对色度数据进行降噪处理。Optionally, the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module, and the image processing function corresponding to the luminance noise reduction algorithm module includes noise reduction processing on luminance data The image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on the chrominance data.
可选的,所述对亮度数据进行降噪处理,包括:Optionally, the performing noise reduction processing on the brightness data includes:
对所述第一图像的亮度数据的高频信息与低频信息分别进行滤波;Filtering high-frequency information and low-frequency information of the brightness data of the first image separately;
将滤波后的所述高频信息与所述低频信息结合,得到降噪后的所述第一图像的亮度数据。Combining the filtered high frequency information and the low frequency information to obtain the brightness data of the first image after noise reduction.
可选的,在所述将滤波后的所述高频信息与所述低频信息结合之后,还包括:Optionally, after the combining the filtered high-frequency information with the low-frequency information, the method further includes:
对结合得到的所述降噪后的所述第一图像的亮度数据进行亮度锐化。Brightness sharpening is performed on the combined brightness data of the noise-reduced first image.
可选的,所述对色度数据进行降噪处理,包括:Optionally, the performing noise reduction processing on the chrominance data includes:
对低频频段对应的所述第二图像的色度数据进行滤波;其中,所述低频频段是频段中的最高频率低于预设频率的频段;Filtering the chromaticity data of the second image corresponding to the low frequency frequency band; wherein the low frequency frequency band is a frequency band in which the highest frequency in the frequency band is lower than a preset frequency;
将滤波后的所述低频频段对应的色度数据与所述低频频段以外的其他频段对应的色度数据进行自适应融合,得到降噪后的所述第一图像的色度数据。Adaptively fusing the filtered chrominance data corresponding to the low-frequency frequency band and the chrominance data corresponding to other frequency bands other than the low-frequency frequency band to obtain the chrominance data of the first image after noise reduction.
可选的,对所述低频频段对应的色度数据进行的滤波是根据参考频段对应的亮度数据进行的;所述参考频段是频率比所述低频频段低一级的频段。Optionally, the filtering of the chrominance data corresponding to the low-frequency frequency band is performed according to the brightness data corresponding to a reference frequency band; the reference frequency band is a frequency band whose frequency is one level lower than the low-frequency frequency band.
可选的,最低频段对应的所述参考频段的亮度数据是对所述最低频段对应的亮度数据进行下采样得到的。Optionally, the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
可选的,所述自适应融合是根据边缘融合权重进行的,所述边缘融合权重是对所述其他频段对应的色度数据的进行边缘检测确定的。Optionally, the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on the chrominance data corresponding to the other frequency bands.
可选的,在对最低频段对应的色度数据进行滤波之前,还包括:Optionally, before filtering the chrominance data corresponding to the lowest frequency band, it also includes:
对最低频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the lowest frequency band.
可选的,所述图像对比度增强算法的所述其他算法模块包括亮度增强算法模块与色度增强算法模块,所述亮度增强算法模块对应的图像处理功能包括对亮度数据进行对比度增强,所述色度增强算法模块对应的图像处理功能包括对色度数据进行对比度增强。Optionally, the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and the image processing function corresponding to the brightness enhancement algorithm module includes contrast enhancement of brightness data, and the color The image processing function corresponding to the degree enhancement algorithm module includes the contrast enhancement of the chrominance data.
可选的,所述对亮度数据进行对比度增强,包括:Optionally, the performing contrast enhancement on the brightness data includes:
对所述第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;Performing contrast enhancement on the high-frequency information and the low-frequency information of the brightness data of the first image respectively;
将对比度增强后的所述高频信息与所述低频信息结合,得到对比度增强后的所述第一图像的亮度数据。Combining the contrast-enhanced high-frequency information and the low-frequency information to obtain the brightness data of the first image after the contrast-enhancement.
可选的,所述第一图像的亮度数据的高频信息与低频信息是通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据得到的。Optionally, the high-frequency information and low-frequency information of the brightness data of the first image are obtained from the brightness data of the second image corresponding to an original frequency band and the brightness data of the second image corresponding to a designated frequency band.
可选的,所述对色度数据进行对比度增强,包括:Optionally, the performing contrast enhancement on the chrominance data includes:
根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整。The chromaticity data of the second image corresponding to the original frequency band is adjusted according to the amount of change of the low-frequency information before and after the contrast enhancement.
可选的,所述根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整,包括:Optionally, the adjusting the chromaticity data of the second image corresponding to the original frequency band according to the amount of change of the low-frequency information before and after the contrast enhancement includes:
根据对比度增强前后所述低频信息的变化量,计算色度映射比值;Calculating the chromaticity mapping ratio according to the amount of change in the low-frequency information before and after the contrast enhancement;
根据所述色度映射比值对所述原始频段对应的色度数据进行重映射,得到对比度增强后的所述第一图像的色度数据。Remapping the chrominance data corresponding to the original frequency band according to the chrominance mapping ratio to obtain the chrominance data of the first image after contrast enhancement.
可选的,所述图像去紫边算法的所述其他算法模块对应的图像处理功能包括:Optionally, the image processing functions corresponding to the other algorithm modules of the image de-purplening algorithm include:
确定紫边对应的颜色信息与位置信息;Determine the color information and location information corresponding to the purple fringe;
根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和。According to the color information and the position information, the chroma data of the second image corresponding to the original frequency band is desaturated.
可选的,所述颜色信息是根据第一频段对应的所述第二图像的色度数据确定的;所述位置信息是根据第二频段对应的所述第二图像的亮度数据确定的。Optionally, the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; the position information is determined according to the brightness data of the second image corresponding to the second frequency band.
可选的,所述位置信息是对所述第二频段对应的亮度数据进行边缘检测确定的。Optionally, the location information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
可选的,根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和,包括:Optionally, desaturating the chroma data of the second image corresponding to the original frequency band according to the color information and the position information includes:
将所述颜色信息与所述位置信息融合,得到紫边掩码;Fusing the color information and the position information to obtain a purple fringing mask;
根据所述紫边掩码对所述原始频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the original frequency band according to the purple fringing mask.
可选的,所述共用算法模块还包括第二算法模块,所述第二算法模块对应的图像处理功能包括通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据分离出所述第一图像的亮度数据的高频信息与低频信息。Optionally, the shared algorithm module further includes a second algorithm module, and the image processing function corresponding to the second algorithm module includes the second image processing function corresponding to the specified frequency band through the brightness data of the second image corresponding to the original frequency band. The brightness data of the image separates high-frequency information and low-frequency information of the brightness data of the first image.
可选的,所述共用算法模块还包括第三算法模块,所述第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。Optionally, the shared algorithm module further includes a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information.
可选的,所述第一图像是ISP芯片输出的图像。Optionally, the first image is an image output by an ISP chip.
上述提供的任一种图像处理方法,其具体的实现方式可以参见本申请实施例提供 的图像处理算法装置的相关说明,在此不再赘述。For the specific implementation of any image processing method provided above, refer to the relevant description of the image processing algorithm device provided in the embodiment of the present application, which will not be repeated here.
下面请参见图5,图5是本申请实施例提供的一种相机的结构示意图。该相机包括包括:机身501,设置在所述机身501上的镜头502,设置在所述机身内的图像传感器503、ISP芯片504和DSP芯片505;Please refer to FIG. 5 below. FIG. 5 is a schematic structural diagram of a camera provided by an embodiment of the present application. The camera includes: a body 501, a lens 502 arranged on the body 501, an image sensor 503, an ISP chip 504 and a DSP chip 505 arranged in the body 501;
所述图像传感器503用于通过所述镜头502采集原始图像;The image sensor 503 is used to collect original images through the lens 502;
所述ISP芯片504用于对自所述图像传感器503获取所述原始图像,并对所述原始图像进行处理,得到第一图像;The ISP chip 504 is used to obtain the original image from the image sensor 503, and process the original image to obtain a first image;
所述DSP芯片505用于从所述ISP芯片504获取第一图像,利用共用算法模块对所述第一图像进行处理,得到所述第一图像对应的图像数据集合;其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。The DSP chip 505 is configured to obtain a first image from the ISP chip 504, and process the first image by using a common algorithm module to obtain an image data set corresponding to the first image; wherein, the common algorithm module Are algorithm modules corresponding to the same image processing function in at least two of the image processing algorithms; respectively obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the Other algorithm modules process the corresponding target data.
可选的,所述共用算法模块包括第一算法模块,所述第一算法模块对应的图像处理功能包括分解出所述第一图像对应的不同频段的第二图像;所述图像数据集合包括多个所述第二图像的图像数据。Optionally, the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing second images of different frequency bands corresponding to the first image; the image data set includes multiple Image data of the second image.
可选的,所述第一图像对应的不同频段的所述第二图像是对所述第一图像进行高斯金字塔分解得到的。Optionally, the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
可选的,所述图像数据包括亮度数据与色度数据。Optionally, the image data includes luminance data and chrominance data.
可选的,所述图像处理算法包括以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。Optionally, the image processing algorithm includes any one of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
可选的,所述图像降噪算法的所述其他算法模块包括亮度降噪算法模块与色度降噪算法模块,所述亮度降噪算法模块对应的图像处理功能包括对亮度数据进行降噪处理,所述色度降噪算法模块对应的图像处理功能包括对色度数据进行降噪处理。Optionally, the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module, and the image processing function corresponding to the luminance noise reduction algorithm module includes noise reduction processing on luminance data The image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on the chrominance data.
可选的,所述DSP芯片还用于,对所述第一图像的亮度数据的高频信息与低频信息分别进行滤波;将滤波后的所述高频信息与所述低频信息结合,得到降噪后的所述第一图像的亮度数据。Optionally, the DSP chip is further configured to filter the high frequency information and low frequency information of the brightness data of the first image separately; combine the filtered high frequency information with the low frequency information to obtain a reduction Luminance data of the first image after noise.
可选的,所述DSP芯片还用于,在所述将滤波后的所述高频信息与所述低频信息结合之后,对结合得到的所述降噪后的所述第一图像的亮度数据进行亮度锐化。Optionally, the DSP chip is further configured to, after combining the filtered high-frequency information with the low-frequency information, compare the combined brightness data of the noise-reduced first image Perform brightness sharpening.
可选的,所述DSP芯片还用于,对低频频段对应的所述第二图像的色度数据进行滤波;其中,所述低频频段是频段中的最高频率低于预设频率的频段;将滤波后的所述低频频段对应的色度数据与所述低频频段以外的其他频段对应的色度数据进行自适 应融合,得到降噪后的所述第一图像的色度数据。Optionally, the DSP chip is also used to filter the chrominance data of the second image corresponding to the low frequency frequency band; wherein the low frequency frequency band is a frequency band in which the highest frequency is lower than a preset frequency; The filtered chromaticity data corresponding to the low-frequency frequency band is adaptively fused with chromaticity data corresponding to other frequency bands other than the low-frequency frequency band to obtain the chromaticity data of the first image after noise reduction.
可选的,对所述低频频段对应的色度数据进行的滤波是根据参考频段对应的亮度数据进行的;所述参考频段是频率比所述低频频段低一级的频段。Optionally, the filtering of the chrominance data corresponding to the low-frequency frequency band is performed according to the brightness data corresponding to a reference frequency band; the reference frequency band is a frequency band whose frequency is one level lower than the low-frequency frequency band.
可选的,最低频段对应的所述参考频段的亮度数据是对所述最低频段对应的亮度数据进行下采样得到的。Optionally, the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
可选的,所述自适应融合是根据边缘融合权重进行的,所述边缘融合权重是对所述其他频段对应的色度数据的进行边缘检测确定的。Optionally, the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on the chrominance data corresponding to the other frequency bands.
可选的,所述DSP芯片还用于,在对最低频段对应的色度数据进行滤波之前,对最低频段对应的色度数据进行降饱和。Optionally, the DSP chip is also used to desaturate the chromaticity data corresponding to the lowest frequency band before filtering the chromaticity data corresponding to the lowest frequency band.
可选的,所述图像对比度增强算法的所述其他算法模块包括亮度增强算法模块与色度增强算法模块,所述亮度增强算法模块对应的图像处理功能包括对亮度数据进行对比度增强,所述色度增强算法模块对应的图像处理功能包括对色度数据进行对比度增强。Optionally, the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and the image processing function corresponding to the brightness enhancement algorithm module includes contrast enhancement of brightness data, and the color The image processing function corresponding to the degree enhancement algorithm module includes the contrast enhancement of the chrominance data.
可选的,所述DSP芯片还用于,对所述第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;将对比度增强后的所述高频信息与所述低频信息结合,得到对比度增强后的所述第一图像的亮度数据。Optionally, the DSP chip is further configured to perform contrast enhancement on the high-frequency information and low-frequency information of the brightness data of the first image respectively; combine the high-frequency information with the contrast-enhanced high-frequency information and the low-frequency information, Obtain brightness data of the first image after contrast enhancement.
可选的,所述第一图像的亮度数据的高频信息与低频信息是通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据得到的。Optionally, the high-frequency information and low-frequency information of the brightness data of the first image are obtained from the brightness data of the second image corresponding to an original frequency band and the brightness data of the second image corresponding to a designated frequency band.
可选的,所述DSP芯片还用于,根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整。Optionally, the DSP chip is further configured to adjust the chromaticity data of the second image corresponding to the original frequency band according to the amount of change in the low-frequency information before and after the contrast enhancement.
可选的,所述DSP芯片还用于,根据对比度增强前后所述低频信息的变化量,计算色度映射比值;根据所述色度映射比值对所述原始频段对应的色度数据进行重映射,得到对比度增强后的所述第一图像的色度数据。Optionally, the DSP chip is further configured to calculate a chrominance mapping ratio according to the amount of change in the low-frequency information before and after the contrast enhancement; and to remap the chrominance data corresponding to the original frequency band according to the chrominance mapping ratio , To obtain the chromaticity data of the first image after contrast enhancement.
可选的,所述DSP芯片还用于,确定紫边对应的颜色信息与位置信息;根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和。Optionally, the DSP chip is further configured to determine the color information and position information corresponding to the purple fringing; according to the color information and the position information, reduce the chromaticity data of the second image corresponding to the original frequency band. saturation.
可选的,所述颜色信息是根据第一频段对应的所述第二图像的色度数据确定的;所述位置信息是根据第二频段对应的所述第二图像的亮度数据确定的。Optionally, the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; the position information is determined according to the brightness data of the second image corresponding to the second frequency band.
可选的,所述位置信息是对所述第二频段对应的亮度数据进行边缘检测确定的。Optionally, the location information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
可选的,所述DSP芯片还用于,所述颜色信息与所述位置信息融合,得到紫边掩码;根据所述紫边掩码对所述原始频段对应的色度数据进行降饱和。Optionally, the DSP chip is further configured to fuse the color information and the position information to obtain a purple fringing mask; and desaturate the chromaticity data corresponding to the original frequency band according to the purple fringing mask.
可选的,所述共用算法模块还包括第二算法模块,所述第二算法模块对应的图像 处理功能包括通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据分离出所述第一图像的亮度数据的高频信息与低频信息。Optionally, the shared algorithm module further includes a second algorithm module, and the image processing function corresponding to the second algorithm module includes the second image processing function corresponding to the specified frequency band through the brightness data of the second image corresponding to the original frequency band. The brightness data of the image separates high-frequency information and low-frequency information of the brightness data of the first image.
可选的,所述共用算法模块还包括第三算法模块,所述第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。Optionally, the shared algorithm module further includes a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information.
上述提供的任一种相机,其具体的实现方式可以参见本申请实施例提供的图像处理算法装置的相关说明,在此不再赘述。For the specific implementation of any camera provided above, refer to the related description of the image processing algorithm device provided in the embodiment of the present application, which will not be repeated here.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例提供任一种所述的图像处理方法。The embodiments of the present application also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, any one of the image processing provided in the embodiments of the present application is implemented. method.
以上实施例中提供的技术特征,只要不存在冲突或矛盾,本领域技术人员可以根据实际情况对各个技术特征进行组合,从而构成各种不同的实施例。而本申请文件限于篇幅,未对各种不同的实施例展开说明,但可以理解的是,各种不同的实施例也属于本申请实施例公开的范围。As long as there is no conflict or contradiction between the technical features provided in the above embodiments, those skilled in the art can combine the various technical features according to actual conditions to form various different embodiments. However, the document of this application is limited in length and does not describe various embodiments. However, it is understandable that various embodiments also belong to the scope of the disclosure of the embodiments of this application.
本申请实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The embodiments of the present application may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. The terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements that are not explicitly listed. Elements, or also include elements inherent to such processes, methods, articles, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
以上对本申请实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The methods and devices provided in the embodiments of the application are described in detail above. Specific examples are used in this article to illustrate the principles and implementations of the application. The descriptions of the above embodiments are only used to help understand the methods and methods of the application. Core idea; At the same time, for ordinary technicians in the field, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as a limitation to this application .

Claims (75)

  1. 一种图像处理算法装置,其特征在于,用于利用至少两种图像处理算法对图像进行处理,每种所述图像处理算法包括至少两个算法模块,每个所述算法模块对应所述图像处理算法中的不同图像处理功能;所述装置包括第一图像处理层和第二图像处理层,所述第一图像处理层包括共用算法模块,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;所述第二图像处理层包括各种所述图像处理算法的其他算法模块;An image processing algorithm device, characterized in that it is used to process images by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to the image processing Different image processing functions in the algorithm; the device includes a first image processing layer and a second image processing layer, the first image processing layer includes a common algorithm module, and the common algorithm module is at least two of the image processing algorithms Algorithm modules corresponding to the same image processing function in the image processing; the second image processing layer includes various other algorithm modules of the image processing algorithm;
    所述第一图像处理层用于利用所述共用算法模块对获取的第一图像进行处理,得到所述第一图像对应的图像数据集合;The first image processing layer is configured to use the common algorithm module to process the acquired first image to obtain an image data set corresponding to the first image;
    所述第二图像处理层用于利用所述其他算法模块对从所述图像数据集合获取的对应的目标数据进行处理。The second image processing layer is configured to use the other algorithm module to process the corresponding target data obtained from the image data set.
  2. 根据权利要求1所述的图像处理算法装置,其特征在于,所述共用算法模块包括第一算法模块,所述第一算法模块对应的图像处理功能包括分解出所述第一图像对应的不同频段的第二图像;所述图像数据集合包括多个所述第二图像的图像数据。The image processing algorithm device according to claim 1, wherein the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing different frequency bands corresponding to the first image The second image; the image data set includes a plurality of image data of the second image.
  3. 根据权利要求2所述的图像处理算法装置,其特征在于,所述第一图像对应的不同频段的所述第二图像是对所述第一图像进行高斯金字塔分解得到的。3. The image processing algorithm device according to claim 2, wherein the second image in different frequency bands corresponding to the first image is obtained by performing Gaussian pyramid decomposition on the first image.
  4. 根据权利要求2所述的图像处理算法装置,其特征在于,所述图像数据包括亮度数据与色度数据。The image processing algorithm device according to claim 2, wherein the image data includes luminance data and chrominance data.
  5. 根据权利要求4所述的图像处理算法装置,其特征在于,所述图像处理算法包括以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。The image processing algorithm device according to claim 4, wherein the image processing algorithm comprises any one of the following: an image noise reduction algorithm, an image de-purple fringing algorithm, and an image contrast enhancement algorithm.
  6. 根据权利要求5所述的图像处理算法装置,其特征在于,所述图像降噪算法的所述其他算法模块包括亮度降噪算法模块与色度降噪算法模块,所述亮度降噪算法模块对应的图像处理功能包括对亮度数据进行降噪处理,所述色度降噪算法模块对应的图像处理功能包括对色度数据进行降噪处理。The image processing algorithm device according to claim 5, wherein the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module, and the luminance noise reduction algorithm module corresponds to The image processing function includes performing noise reduction processing on luminance data, and the image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on chrominance data.
  7. 根据权利要求6所述的图像处理算法装置,其特征在于,所述对亮度数据进行降噪处理,包括:The image processing algorithm device according to claim 6, wherein said performing noise reduction processing on brightness data comprises:
    对所述第一图像的亮度数据的高频信息与低频信息分别进行滤波;Filtering high-frequency information and low-frequency information of the brightness data of the first image separately;
    将滤波后的所述高频信息与所述低频信息结合,得到降噪后的所述第一图像的亮度数据。Combining the filtered high frequency information and the low frequency information to obtain the brightness data of the first image after noise reduction.
  8. 根据权利要求7所述的图像处理算法装置,其特征在于,在所述将滤波后的所述高频信息与所述低频信息结合之后,还包括:8. The image processing algorithm device according to claim 7, wherein after said combining the filtered high frequency information with the low frequency information, the method further comprises:
    对结合得到的所述降噪后的所述第一图像的亮度数据进行亮度锐化。Brightness sharpening is performed on the combined brightness data of the noise-reduced first image.
  9. 根据权利要求6所述的图像处理算法装置,其特征在于,所述对色度数据进行降噪处理,包括:The image processing algorithm device according to claim 6, wherein said performing noise reduction processing on chrominance data comprises:
    对低频频段对应的所述第二图像的色度数据进行滤波;其中,所述低频频段是频段中的最高频率低于预设频率的频段;Filtering the chromaticity data of the second image corresponding to the low frequency frequency band; wherein the low frequency frequency band is a frequency band in which the highest frequency in the frequency band is lower than a preset frequency;
    将滤波后的所述低频频段对应的色度数据与所述低频频段以外的其他频段对应的色度数据进行自适应融合,得到降噪后的所述第一图像的色度数据。Adaptively fusing the filtered chrominance data corresponding to the low-frequency frequency band and the chrominance data corresponding to other frequency bands other than the low-frequency frequency band to obtain the chrominance data of the first image after noise reduction.
  10. 根据权利要求9所述的图像处理算法装置,其特征在于,对所述低频频段对应的色度数据进行的滤波是根据参考频段对应的亮度数据进行的;所述参考频段是频率比所述低频频段低一级的频段。The image processing algorithm device according to claim 9, wherein the filtering of the chrominance data corresponding to the low frequency band is performed according to the brightness data corresponding to the reference frequency band; The frequency band one level lower than the frequency band.
  11. 根据权利要求10所述的图像处理算法装置,其特征在于,最低频段对应的所述参考频段的亮度数据是对所述最低频段对应的亮度数据进行下采样得到的。The image processing algorithm device according to claim 10, wherein the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
  12. 根据权利要求9所述的图像处理算法装置,其特征在于,所述自适应融合是根据边缘融合权重进行的,所述边缘融合权重是对所述其他频段对应的色度数据的进行边缘检测确定的。The image processing algorithm device according to claim 9, wherein the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by edge detection of chrominance data corresponding to the other frequency bands. of.
  13. 根据权利要求9所述的图像处理算法装置,其特征在于,在对最低频段对应的色度数据进行滤波之前,还包括:The image processing algorithm device according to claim 9, wherein before filtering the chrominance data corresponding to the lowest frequency band, the method further comprises:
    对最低频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the lowest frequency band.
  14. 根据权利要求5所述的图像处理算法装置,其特征在于,所述图像对比度增强算法的所述其他算法模块包括亮度增强算法模块与色度增强算法模块,所述亮度增强算法模块对应的图像处理功能包括对亮度数据进行对比度增强,所述色度增强算法模块对应的图像处理功能包括对色度数据进行对比度增强。The image processing algorithm device according to claim 5, wherein the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and image processing corresponding to the brightness enhancement algorithm module The function includes the contrast enhancement of the luminance data, and the image processing function corresponding to the chrominance enhancement algorithm module includes the contrast enhancement of the chrominance data.
  15. 根据权利要求14所述的图像处理算法装置,其特征在于,所述对亮度数据进行对比度增强,包括:The image processing algorithm device according to claim 14, wherein said performing contrast enhancement on brightness data comprises:
    对所述第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;Performing contrast enhancement on the high-frequency information and the low-frequency information of the brightness data of the first image respectively;
    将对比度增强后的所述高频信息与所述低频信息结合,得到对比度增强后的所述第一图像的亮度数据。Combining the contrast-enhanced high-frequency information and the low-frequency information to obtain the brightness data of the first image after the contrast-enhancement.
  16. 根据权利要求7或15所述的图像处理算法装置,其特征在于,所述第一图像的亮度数据的高频信息与低频信息是通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据得到的。The image processing algorithm device according to claim 7 or 15, wherein the high-frequency information and low-frequency information of the brightness data of the first image pass through the brightness data of the second image and the designated frequency band corresponding to the original frequency band. Corresponding to the brightness data of the second image.
  17. 根据权利要求15所述的图像处理算法装置,其特征在于,所述对色度数据进 行对比度增强,包括:The image processing algorithm device according to claim 15, wherein said performing contrast enhancement on chrominance data comprises:
    根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整。The chromaticity data of the second image corresponding to the original frequency band is adjusted according to the amount of change of the low-frequency information before and after the contrast enhancement.
  18. 根据权利要求17所述的图像处理算法装置,其特征在于,所述根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整,包括:The image processing algorithm device according to claim 17, wherein the adjusting the chromaticity data of the second image corresponding to the original frequency band according to the amount of change of the low-frequency information before and after the contrast enhancement comprises:
    根据对比度增强前后所述低频信息的变化量,计算色度映射比值;Calculating the chromaticity mapping ratio according to the amount of change in the low-frequency information before and after the contrast enhancement;
    根据所述色度映射比值对所述原始频段对应的色度数据进行重映射,得到对比度增强后的所述第一图像的色度数据。Remapping the chrominance data corresponding to the original frequency band according to the chrominance mapping ratio to obtain the chrominance data of the first image after contrast enhancement.
  19. 根据权利要求5所述的图像处理算法装置,其特征在于,所述图像去紫边算法的所述其他算法模块对应的图像处理功能包括:The image processing algorithm device according to claim 5, wherein the image processing functions corresponding to the other algorithm modules of the image de-purplening algorithm include:
    确定紫边对应的颜色信息与位置信息;Determine the color information and location information corresponding to the purple fringe;
    根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和。According to the color information and the position information, the chroma data of the second image corresponding to the original frequency band is desaturated.
  20. 根据权利要求19所述的图像处理算法装置,其特征在于,所述颜色信息是根据第一频段对应的所述第二图像的色度数据确定的;所述位置信息是根据第二频段对应的所述第二图像的亮度数据确定的。The image processing algorithm device according to claim 19, wherein the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; and the position information is determined according to the second frequency band The brightness data of the second image is determined.
  21. 根据权利要求20所述的图像处理算法装置,其特征在于,所述位置信息是对所述第二频段对应的亮度数据进行边缘检测确定的。22. The image processing algorithm device of claim 20, wherein the position information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
  22. 根据权利要求19所述的图像处理算法装置,其特征在于,根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和,包括:The image processing algorithm device according to claim 19, wherein, according to the color information and the position information, de-saturating the chroma data of the second image corresponding to the original frequency band comprises:
    将所述颜色信息与所述位置信息融合,得到紫边掩码;Fusing the color information and the position information to obtain a purple fringing mask;
    根据所述紫边掩码对所述原始频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the original frequency band according to the purple fringing mask.
  23. 根据权利要求2所述的图像处理算法装置,其特征在于,所述共用算法模块还包括第二算法模块,所述第二算法模块对应的图像处理功能包括通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据分离出所述第一图像的亮度数据的高频信息与低频信息。The image processing algorithm device according to claim 2, wherein the shared algorithm module further comprises a second algorithm module, and the image processing function corresponding to the second algorithm module includes the second image corresponding to the original frequency band. The brightness data of and the brightness data of the second image corresponding to the designated frequency band are separated into high-frequency information and low-frequency information of the brightness data of the first image.
  24. 根据权利要求23所述的图像处理算法装置,其特征在于,所述共用算法模块还包括第三算法模块,所述第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。The image processing algorithm device according to claim 23, wherein the shared algorithm module further comprises a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information. Information integration.
  25. 根据权利要求1所述的图像处理算法装置,其特征在于,所述第一图像是ISP 芯片输出的图像。The image processing algorithm device according to claim 1, wherein the first image is an image output by an ISP chip.
  26. 一种图像处理方法,其特征在于,用于利用至少两种图像处理算法对图像进行处理,每种所述图像处理算法包括至少两个算法模块,每个所述算法模块对应所述图像处理算法中的不同图像处理功能;所述方法包括:An image processing method, characterized in that it is used to process images by using at least two image processing algorithms, each of the image processing algorithms includes at least two algorithm modules, and each of the algorithm modules corresponds to the image processing algorithm The different image processing functions in the; the method includes:
    利用共用算法模块对获取的第一图像进行处理,得到所述第一图像对应的图像数据集合;其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;The shared algorithm module is used to process the acquired first image to obtain the image data set corresponding to the first image; wherein the shared algorithm module is at least two of the image processing algorithms corresponding to the same image processing function Module
    从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。Obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithm modules to process the corresponding target data.
  27. 根据权利要求26所述的图像处理方法,其特征在于,所述共用算法模块包括第一算法模块,所述第一算法模块对应的图像处理功能包括分解出所述第一图像对应的不同频段的第二图像;所述图像数据集合包括多个所述第二图像的图像数据。The image processing method according to claim 26, wherein the shared algorithm module includes a first algorithm module, and the image processing function corresponding to the first algorithm module includes decomposing different frequency bands corresponding to the first image. A second image; the image data set includes image data of a plurality of the second images.
  28. 根据权利要求27所述的图像处理方法,其特征在于,所述第一图像对应的不同频段的所述第二图像是对所述第一图像进行高斯金字塔分解得到的。28. The image processing method according to claim 27, wherein the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
  29. 根据权利要求27所述的图像处理方法,其特征在于,所述图像数据包括亮度数据与色度数据。The image processing method according to claim 27, wherein the image data includes luminance data and chrominance data.
  30. 根据权利要求29所述的图像处理方法,其特征在于,所述图像处理算法包括以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。The image processing method according to claim 29, wherein the image processing algorithm comprises any one of the following: an image noise reduction algorithm, an image de-purple fringing algorithm, and an image contrast enhancement algorithm.
  31. 根据权利要求30所述的图像处理方法,其特征在于,所述图像降噪算法的所述其他算法模块包括亮度降噪算法模块与色度降噪算法模块,所述亮度降噪算法模块对应的图像处理功能包括对亮度数据进行降噪处理,所述色度降噪算法模块对应的图像处理功能包括对色度数据进行降噪处理。The image processing method according to claim 30, wherein the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module, and the luminance noise reduction algorithm module corresponds to The image processing function includes performing noise reduction processing on luminance data, and the image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on chrominance data.
  32. 根据权利要求31所述的图像处理方法,其特征在于,所述对亮度数据进行降噪处理,包括:The image processing method according to claim 31, wherein said performing noise reduction processing on brightness data comprises:
    对所述第一图像的亮度数据的高频信息与低频信息分别进行滤波;Filtering high-frequency information and low-frequency information of the brightness data of the first image separately;
    将滤波后的所述高频信息与所述低频信息结合,得到降噪后的所述第一图像的亮度数据。Combining the filtered high frequency information and the low frequency information to obtain the brightness data of the first image after noise reduction.
  33. 根据权利要求32所述的图像处理方法,其特征在于,在所述将滤波后的所述高频信息与所述低频信息结合之后,还包括:The image processing method according to claim 32, wherein after said combining the filtered high frequency information with the low frequency information, the method further comprises:
    对结合得到的所述降噪后的所述第一图像的亮度数据进行亮度锐化。Brightness sharpening is performed on the combined brightness data of the noise-reduced first image.
  34. 根据权利要求31所述的图像处理方法,其特征在于,所述对色度数据进行降噪处理,包括:The image processing method according to claim 31, wherein said performing noise reduction processing on chrominance data comprises:
    对低频频段对应的所述第二图像的色度数据进行滤波;其中,所述低频频段是频段中的最高频率低于预设频率的频段;Filtering the chromaticity data of the second image corresponding to the low frequency frequency band; wherein the low frequency frequency band is a frequency band in which the highest frequency in the frequency band is lower than a preset frequency;
    将滤波后的所述低频频段对应的色度数据与所述低频频段以外的其他频段对应的色度数据进行自适应融合,得到降噪后的所述第一图像的色度数据。Adaptively fusing the filtered chrominance data corresponding to the low-frequency frequency band and the chrominance data corresponding to other frequency bands other than the low-frequency frequency band to obtain the chrominance data of the first image after noise reduction.
  35. 根据权利要求34所述的图像处理方法,其特征在于,对所述低频频段对应的色度数据进行的滤波是根据参考频段对应的亮度数据进行的;所述参考频段是频率比所述低频频段低一级的频段。The image processing method according to claim 34, wherein the filtering of the chrominance data corresponding to the low-frequency frequency band is performed according to the brightness data corresponding to the reference frequency band; The lower frequency band.
  36. 根据权利要求35所述的图像处理方法,其特征在于,最低频段对应的所述参考频段的亮度数据是对所述最低频段对应的亮度数据进行下采样得到的。The image processing method according to claim 35, wherein the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
  37. 根据权利要求34所述的图像处理方法,其特征在于,所述自适应融合是根据边缘融合权重进行的,所述边缘融合权重是对所述其他频段对应的色度数据的进行边缘检测确定的。The image processing method according to claim 34, wherein the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on the chrominance data corresponding to the other frequency bands. .
  38. 根据权利要求34所述的图像处理方法,其特征在于,在对最低频段对应的色度数据进行滤波之前,还包括:The image processing method according to claim 34, wherein before filtering the chrominance data corresponding to the lowest frequency band, the method further comprises:
    对最低频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the lowest frequency band.
  39. 根据权利要求30所述的图像处理方法,其特征在于,所述图像对比度增强算法的所述其他算法模块包括亮度增强算法模块与色度增强算法模块,所述亮度增强算法模块对应的图像处理功能包括对亮度数据进行对比度增强,所述色度增强算法模块对应的图像处理功能包括对色度数据进行对比度增强。The image processing method according to claim 30, wherein the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and image processing functions corresponding to the brightness enhancement algorithm module It includes performing contrast enhancement on brightness data, and the image processing function corresponding to the chrominance enhancement algorithm module includes performing contrast enhancement on chrominance data.
  40. 根据权利要求39所述的图像处理方法,其特征在于,所述对亮度数据进行对比度增强,包括:The image processing method according to claim 39, wherein said performing contrast enhancement on brightness data comprises:
    对所述第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;Performing contrast enhancement on the high-frequency information and the low-frequency information of the brightness data of the first image respectively;
    将对比度增强后的所述高频信息与所述低频信息结合,得到对比度增强后的所述第一图像的亮度数据。Combining the contrast-enhanced high-frequency information and the low-frequency information to obtain the brightness data of the first image after the contrast-enhancement.
  41. 根据权利要求32或40所述的图像处理方法,其特征在于,所述第一图像的亮度数据的高频信息与低频信息是通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据得到的。The image processing method according to claim 32 or 40, wherein the high-frequency information and low-frequency information of the brightness data of the first image correspond to the specified frequency band by the brightness data of the second image corresponding to the original frequency band. Is obtained from the brightness data of the second image.
  42. 根据权利要求40所述的图像处理方法,其特征在于,所述对色度数据进行对比度增强,包括:The image processing method according to claim 40, wherein said performing contrast enhancement on chrominance data comprises:
    根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整。The chromaticity data of the second image corresponding to the original frequency band is adjusted according to the amount of change of the low-frequency information before and after the contrast enhancement.
  43. 根据权利要求42所述的图像处理方法,其特征在于,所述根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整,包括:The image processing method according to claim 42, wherein the adjusting the chrominance data of the second image corresponding to the original frequency band according to the amount of change of the low-frequency information before and after the contrast enhancement comprises:
    根据对比度增强前后所述低频信息的变化量,计算色度映射比值;Calculating the chromaticity mapping ratio according to the amount of change in the low-frequency information before and after the contrast enhancement;
    根据所述色度映射比值对所述原始频段对应的色度数据进行重映射,得到对比度增强后的所述第一图像的色度数据。Remapping the chrominance data corresponding to the original frequency band according to the chrominance mapping ratio to obtain the chrominance data of the first image after contrast enhancement.
  44. 根据权利要求30所述的图像处理方法,其特征在于,所述图像去紫边算法的所述其他算法模块对应的图像处理功能包括:The image processing method according to claim 30, wherein the image processing functions corresponding to the other algorithm modules of the image de-purplening algorithm comprise:
    确定紫边对应的颜色信息与位置信息;Determine the color information and location information corresponding to the purple fringe;
    根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和。According to the color information and the position information, the chroma data of the second image corresponding to the original frequency band is desaturated.
  45. 根据权利要求44所述的图像处理方法,其特征在于,所述颜色信息是根据第一频段对应的所述第二图像的色度数据确定的;所述位置信息是根据第二频段对应的所述第二图像的亮度数据确定的。The image processing method according to claim 44, wherein the color information is determined according to the chrominance data of the second image corresponding to the first frequency band; and the position information is determined according to the all corresponding to the second frequency band. The brightness data of the second image is determined.
  46. 根据权利要求45所述的图像处理方法,其特征在于,所述位置信息是对所述第二频段对应的亮度数据进行边缘检测确定的。The image processing method according to claim 45, wherein the position information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
  47. 根据权利要求44所述的图像处理方法,其特征在于,根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和,包括:The image processing method according to claim 44, wherein, according to the color information and the position information, de-saturating the chrominance data of the second image corresponding to the original frequency band comprises:
    将所述颜色信息与所述位置信息融合,得到紫边掩码;Fusing the color information and the position information to obtain a purple fringing mask;
    根据所述紫边掩码对所述原始频段对应的色度数据进行降饱和。Desaturate the chrominance data corresponding to the original frequency band according to the purple fringing mask.
  48. 根据权利要求27所述的图像处理方法,其特征在于,所述共用算法模块还包括第二算法模块,所述第二算法模块对应的图像处理功能包括通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据分离出所述第一图像的亮度数据的高频信息与低频信息。The image processing method according to claim 27, wherein the shared algorithm module further comprises a second algorithm module, and the image processing function corresponding to the second algorithm module includes the image processing function of the second image corresponding to the original frequency band. The brightness data and the brightness data of the second image corresponding to the designated frequency band separate high-frequency information and low-frequency information of the brightness data of the first image.
  49. 根据权利要求48所述的图像处理方法,其特征在于,所述共用算法模块还包括第三算法模块,所述第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。The image processing method according to claim 48, wherein the shared algorithm module further comprises a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high-frequency information with the low-frequency information Combine.
  50. 根据权利要求26所述的图像处理方法,其特征在于,所述第一图像是ISP芯片输出的图像。The image processing method according to claim 26, wherein the first image is an image output by an ISP chip.
  51. 一种相机,其特征在于,包括:机身,设置在所述机身上的镜头,设置在所述机身内的图像传感器、ISP芯片和DSP芯片;A camera, characterized by comprising: a body, a lens arranged on the body, an image sensor, an ISP chip, and a DSP chip arranged in the body;
    所述图像传感器用于通过所述镜头采集原始图像;The image sensor is used to collect an original image through the lens;
    所述ISP芯片用于对自所述图像传感器获取所述原始图像,并对所述原始图像进行处理,得到第一图像;The ISP chip is used to obtain the original image from the image sensor, and process the original image to obtain a first image;
    所述DSP芯片用于从所述ISP芯片获取第一图像,利用共用算法模块对所述第一图像进行处理,得到所述第一图像对应的图像数据集合;其中,所述共用算法模块是至少两种所述图像处理算法中的对应相同图像处理功能的算法模块;从所述图像数据集合中分别获取每一种所述图像处理算法的其他算法模块对应的目标数据,并利用所述其他算法模块对对应的所述目标数据进行处理。The DSP chip is used to obtain a first image from the ISP chip, and use a common algorithm module to process the first image to obtain an image data set corresponding to the first image; wherein, the common algorithm module is at least Algorithm modules corresponding to the same image processing function in the two image processing algorithms; respectively obtain target data corresponding to other algorithm modules of each of the image processing algorithms from the image data set, and use the other algorithms The module processes the corresponding target data.
  52. 根据权利要求51所述的相机,其特征在于,所述共用算法模块包括第一算法模块,所述第一算法模块对应的图像处理功能包括分解出所述第一图像对应的不同频段的第二图像;所述图像数据集合包括多个所述第二图像的图像数据。The camera according to claim 51, wherein the shared algorithm module comprises a first algorithm module, and the image processing function corresponding to the first algorithm module comprises decomposing the second image in different frequency bands corresponding to the first image. Image; the image data set includes a plurality of image data of the second image.
  53. 根据权利要求52所述的相机,其特征在于,所述第一图像对应的不同频段的所述第二图像是对所述第一图像进行高斯金字塔分解得到的。The camera of claim 52, wherein the second images of different frequency bands corresponding to the first image are obtained by performing Gaussian pyramid decomposition on the first image.
  54. 根据权利要求52所述的相机,其特征在于,所述图像数据包括亮度数据与色度数据。The camera of claim 52, wherein the image data includes luminance data and chrominance data.
  55. 根据权利要求54所述的相机,其特征在于,所述图像处理算法包括以下任一种:图像降噪算法、图像去紫边算法、图像对比度增强算法。The camera according to claim 54, wherein the image processing algorithm comprises any one of the following: an image noise reduction algorithm, an image de-purplening algorithm, and an image contrast enhancement algorithm.
  56. 根据权利要求55所述的相机,其特征在于,所述图像降噪算法的所述其他算法模块包括亮度降噪算法模块与色度降噪算法模块,所述亮度降噪算法模块对应的图像处理功能包括对亮度数据进行降噪处理,所述色度降噪算法模块对应的图像处理功能包括对色度数据进行降噪处理。The camera according to claim 55, wherein the other algorithm modules of the image noise reduction algorithm include a luminance noise reduction algorithm module and a chrominance noise reduction algorithm module, and image processing corresponding to the luminance noise reduction algorithm module The function includes performing noise reduction processing on luminance data, and the image processing function corresponding to the chrominance noise reduction algorithm module includes performing noise reduction processing on chrominance data.
  57. 根据权利要求56所述的相机,其特征在于,所述DSP芯片在调用所述亮度降噪算法模块时,具体用于对所述第一图像的亮度数据的高频信息与低频信息分别进行滤波;将滤波后的所述高频信息与所述低频信息结合,得到降噪后的所述第一图像的亮度数据。The camera according to claim 56, wherein the DSP chip is specifically used to filter high-frequency information and low-frequency information of the brightness data of the first image when the brightness noise reduction algorithm module is invoked. ; Combine the filtered high-frequency information with the low-frequency information to obtain the luminance data of the first image after noise reduction.
  58. 根据权利要求57所述的相机,其特征在于,所述DSP芯片还用于,在所述将滤波后的所述高频信息与所述低频信息结合之后,对结合得到的所述降噪后的所述第一图像的亮度数据进行亮度锐化。The camera according to claim 57, wherein the DSP chip is further configured to: after the filtering the high frequency information and the low frequency information are combined, the combined noise reduction Brightness sharpening is performed on the brightness data of the first image.
  59. 根据权利要求56所述的相机,其特征在于,所述DSP芯片在调用所述色度降噪算法模块时,具体用于对低频频段对应的所述第二图像的色度数据进行滤波;其中,所述低频频段是频段中的最高频率低于预设频率的频段;将滤波后的所述低频频段对应的色度数据与所述低频频段以外的其他频段对应的色度数据进行自适应融合,得到降噪后的所述第一图像的色度数据。The camera according to claim 56, wherein the DSP chip is specifically used to filter the chromaticity data of the second image corresponding to the low frequency band when the chromaticity noise reduction algorithm module is invoked; wherein The low-frequency frequency band is a frequency band whose highest frequency is lower than a preset frequency; the filtered chromaticity data corresponding to the low-frequency frequency band and the chromaticity data corresponding to other frequency bands other than the low-frequency frequency band are adaptively fused To obtain the chromaticity data of the first image after noise reduction.
  60. 根据权利要求59所述的相机,其特征在于,对所述低频频段对应的色度数据进行的滤波是根据参考频段对应的亮度数据进行的;所述参考频段是频率比所述低频频段低一级的频段。The camera of claim 59, wherein the filtering of the chrominance data corresponding to the low frequency band is performed according to the brightness data corresponding to the reference frequency band; the reference frequency band has a frequency lower than the low frequency band by one. Grade frequency band.
  61. 根据权利要求60所述的相机,其特征在于,最低频段对应的所述参考频段的亮度数据是对所述最低频段对应的亮度数据进行下采样得到的。The camera of claim 60, wherein the brightness data of the reference frequency band corresponding to the lowest frequency band is obtained by down-sampling the brightness data corresponding to the lowest frequency band.
  62. 根据权利要求59所述的相机,其特征在于,所述自适应融合是根据边缘融合权重进行的,所述边缘融合权重是对所述其他频段对应的色度数据的进行边缘检测确定的。The camera of claim 59, wherein the adaptive fusion is performed according to edge fusion weights, and the edge fusion weights are determined by performing edge detection on chrominance data corresponding to the other frequency bands.
  63. 根据权利要求59所述的相机,其特征在于,所述DSP芯片还用于,在对最低频段对应的色度数据进行滤波之前,对最低频段对应的色度数据进行降饱和。The camera of claim 59, wherein the DSP chip is further configured to desaturate the chrominance data corresponding to the lowest frequency band before filtering the chrominance data corresponding to the lowest frequency band.
  64. 根据权利要求55所述的相机,其特征在于,所述图像对比度增强算法的所述其他算法模块包括亮度增强算法模块与色度增强算法模块,所述亮度增强算法模块对应的图像处理功能包括对亮度数据进行对比度增强,所述色度增强算法模块对应的图像处理功能包括对色度数据进行对比度增强。The camera of claim 55, wherein the other algorithm modules of the image contrast enhancement algorithm include a brightness enhancement algorithm module and a chrominance enhancement algorithm module, and the image processing function corresponding to the brightness enhancement algorithm module includes The brightness data is contrast enhanced, and the image processing function corresponding to the chrominance enhancement algorithm module includes the contrast enhancement of the chrominance data.
  65. 根据权利要求64所述的相机,其特征在于,所述DSP芯片在调用所述亮度增强算法模块时,具体用于对所述第一图像的亮度数据的高频信息与低频信息分别进行对比度增强;将对比度增强后的所述高频信息与所述低频信息结合,得到对比度增强后的所述第一图像的亮度数据。The camera according to claim 64, wherein the DSP chip is specifically configured to perform contrast enhancement on high-frequency information and low-frequency information of the brightness data of the first image when the brightness enhancement algorithm module is invoked. ; Combining the contrast-enhanced high-frequency information with the low-frequency information to obtain the contrast-enhanced brightness data of the first image.
  66. 根据权利要求57或65所述的相机,其特征在于,所述第一图像的亮度数据的高频信息与低频信息是通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据得到的。The camera according to claim 57 or 65, wherein the high-frequency information and low-frequency information of the brightness data of the first image are obtained from the brightness data of the second image corresponding to the original frequency band and the specified frequency band. The brightness data of the second image is obtained.
  67. 根据权利要求65所述的相机,其特征在于,所述DSP芯片在调用所述色度增强算法模块时,具体用于根据对比度增强前后所述低频信息的变化量,对原始频段对应的所述第二图像的色度数据进行调整。The camera according to claim 65, wherein when the DSP chip calls the chrominance enhancement algorithm module, it is specifically configured to determine the amount of change in the low-frequency information before and after the contrast enhancement to the original frequency band corresponding to the The chromaticity data of the second image is adjusted.
  68. 根据权利要求67所述的相机,其特征在于,所述DSP芯片还用于,根据对比度增强前后所述低频信息的变化量,计算色度映射比值;根据所述色度映射比值对 所述原始频段对应的色度数据进行重映射,得到对比度增强后的所述第一图像的色度数据。The camera of claim 67, wherein the DSP chip is further configured to calculate a chromaticity mapping ratio according to the amount of change of the low-frequency information before and after contrast enhancement; The chromaticity data corresponding to the frequency band is remapped to obtain the chromaticity data of the first image after contrast enhancement.
  69. 根据权利要求55所述的相机,其特征在于,所述DSP芯片在调用所述图像去紫边算法的所述其他算法模块时,具体用于确定紫边对应的颜色信息与位置信息;根据所述颜色信息与所述位置信息,对原始频段对应的所述第二图像的色度数据进行降饱和。The camera of claim 55, wherein the DSP chip is specifically used to determine the color information and position information corresponding to the purple fringing when calling the other algorithm modules of the image de-purple fringing algorithm; The color information and the position information desaturate the chromaticity data of the second image corresponding to the original frequency band.
  70. 根据权利要求69所述的相机,其特征在于,所述颜色信息是根据第一频段对应的所述第二图像的色度数据确定的;所述位置信息是根据第二频段对应的所述第二图像的亮度数据确定的。The camera according to claim 69, wherein the color information is determined according to the chromaticity data of the second image corresponding to the first frequency band; and the position information is determined according to the first image corresponding to the second frequency band. The brightness data of the second image is determined.
  71. 根据权利要求70所述的相机,其特征在于,所述位置信息是对所述第二频段对应的亮度数据进行边缘检测确定的。The camera of claim 70, wherein the position information is determined by performing edge detection on the brightness data corresponding to the second frequency band.
  72. 根据权利要求69所述的相机,其特征在于,所述DSP芯片还用于,将所述颜色信息与所述位置信息融合,得到紫边掩码;根据所述紫边掩码对所述原始频段对应的色度数据进行降饱和。The camera according to claim 69, wherein the DSP chip is further configured to fuse the color information and the position information to obtain a purple fringing mask; according to the purple fringing mask, the original The chrominance data corresponding to the frequency band is desaturated.
  73. 根据权利要求52所述的相机,其特征在于,所述共用算法模块还包括第二算法模块,所述第二算法模块对应的图像处理功能包括通过原始频段对应的所述第二图像的亮度数据与指定频段对应的所述第二图像的亮度数据分离出所述第一图像的亮度数据的高频信息与低频信息。The camera according to claim 52, wherein the shared algorithm module further comprises a second algorithm module, and the image processing function corresponding to the second algorithm module includes brightness data of the second image corresponding to the original frequency band. The brightness data of the second image corresponding to the designated frequency band separates high-frequency information and low-frequency information of the brightness data of the first image.
  74. 根据权利要求73所述的相机,其特征在于,所述共用算法模块还包括第三算法模块,所述第三算法模块对应的图像处理功能包括将所述高频信息与所述低频信息结合。The camera according to claim 73, wherein the shared algorithm module further comprises a third algorithm module, and the image processing function corresponding to the third algorithm module includes combining the high frequency information with the low frequency information.
  75. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求26至50任一项所述的图像处理方法。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the image processing method according to any one of claims 26 to 50 is realized .
PCT/CN2020/087625 2020-04-28 2020-04-28 Image processing algorithm device, image processing method, and camera WO2021217463A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/087625 WO2021217463A1 (en) 2020-04-28 2020-04-28 Image processing algorithm device, image processing method, and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/087625 WO2021217463A1 (en) 2020-04-28 2020-04-28 Image processing algorithm device, image processing method, and camera

Publications (1)

Publication Number Publication Date
WO2021217463A1 true WO2021217463A1 (en) 2021-11-04

Family

ID=78331704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087625 WO2021217463A1 (en) 2020-04-28 2020-04-28 Image processing algorithm device, image processing method, and camera

Country Status (1)

Country Link
WO (1) WO2021217463A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703692A (en) * 2022-12-30 2023-09-05 荣耀终端有限公司 Shooting performance optimization method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458173A (en) * 2012-06-01 2013-12-18 华为技术有限公司 Device, method and terminal for processing image relevant data
US20150015736A1 (en) * 2012-03-15 2015-01-15 Nokia Corporation Method, Apparatus and Computer Program for Capturing Images
CN110278373A (en) * 2019-06-26 2019-09-24 Oppo广东移动通信有限公司 Image processor, image processing method, filming apparatus and electronic equipment
US20190295209A1 (en) * 2018-03-23 2019-09-26 Canon Kabushiki Kaisha Image processing apparatus, data processing apparatus, and image processing method
WO2020042149A1 (en) * 2018-08-31 2020-03-05 深圳市大疆创新科技有限公司 Image processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150015736A1 (en) * 2012-03-15 2015-01-15 Nokia Corporation Method, Apparatus and Computer Program for Capturing Images
CN103458173A (en) * 2012-06-01 2013-12-18 华为技术有限公司 Device, method and terminal for processing image relevant data
US20190295209A1 (en) * 2018-03-23 2019-09-26 Canon Kabushiki Kaisha Image processing apparatus, data processing apparatus, and image processing method
WO2020042149A1 (en) * 2018-08-31 2020-03-05 深圳市大疆创新科技有限公司 Image processing system and method
CN110278373A (en) * 2019-06-26 2019-09-24 Oppo广东移动通信有限公司 Image processor, image processing method, filming apparatus and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116703692A (en) * 2022-12-30 2023-09-05 荣耀终端有限公司 Shooting performance optimization method and device

Similar Documents

Publication Publication Date Title
JP4858610B2 (en) Image processing method
CN111882504B (en) Method and system for processing color noise in image, electronic device and storage medium
US8311356B2 (en) Image processing apparatus and image processing method
US10129437B2 (en) Image processing apparatus, image processing method, recording medium, and program
Talebi et al. Fast multilayer Laplacian enhancement
CN109389560B (en) Adaptive weighted filtering image noise reduction method and device and image processing equipment
US9390479B2 (en) Image processing device and image processing method
WO2009107197A1 (en) Picture processor, picture processing method and picture processing program
CN109903294B (en) Image processing method and device, electronic equipment and readable storage medium
US20140050417A1 (en) Image filtering based on structural information
CN111260580B (en) Image denoising method, computer device and computer readable storage medium
CN111383181B (en) Image enhancement method and device, storage medium and terminal
WO2021217463A1 (en) Image processing algorithm device, image processing method, and camera
CN113344801A (en) Image enhancement method, system, terminal and storage medium applied to gas metering facility environment
Chen et al. A solution to the deficiencies of image enhancement
Kheradmand et al. Non-linear structure-aware image sharpening with difference of smoothing operators
CN113744294A (en) Image processing method and related device
Ramadan Monochromatic-based method for impulse noise detection and suppression in color images
CN113269686B (en) Method and device for processing brightness noise, storage medium and terminal
CN113256534B (en) Image enhancement method, device and medium
US8849057B2 (en) Methods for digital image sharpening with noise amplification avoidance
CN115018817A (en) Scratch detection method, scratch detection device, electronic equipment and readable storage medium
Okado et al. Fast and high-quality regional histogram equalization
CN115689906A (en) Image processing method and device
CN109712094B (en) Image processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20933066

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20933066

Country of ref document: EP

Kind code of ref document: A1