Field of the Invention
The disclosure relates to an image processing method and, more specifically, to an image processing method applied in a low-light environment.
Description of the Related Art
Nowadays, electronic devices, such as mobile phones, tablet computers and notebooks, are usually equipped with a photographic device for capturing images. However, the images taken in a low-light environment are too dark with many noises.
According to a first aspect of the present disclosure, an image processing method comprises: obtaining at least one original image; performing a pixel binning progress on the original image, wherein the pixel binning progress is used for combing a plurality of adjacent pixel signals in the original image into a new pixel signal to generate a first image with the new pixel signal; continuously obtaining a plurality of the first images with the new pixel signal; and performing a super resolution reconstruction process on the first images by an interpolation method to generate a second image.
According to a second aspect of the disclosure, a non-transitory computer-readable storage medium for storing a computer program, after the computer program is loaded on an electronic device, an image processing method is performed by the electronic device, the image processing method comprises: obtaining at least one original image; performing a pixel binning progress on the original image, wherein the pixel binning progress is used for combing a plurality of adjacent pixel signals in the original image into a new pixel signal to generate a first image with the new pixel signal; continuously obtaining a plurality of the first images with the new pixel signal; and performing a super resolution reconstruction process on the first images by interpolation method to generate a second image.
According to a third aspect of the disclosure, an electronic device comprises: an image capturing unit for outputting an original image or combining a plurality of adjacent pixel signals in the original image into a new pixel signal to generate a first image with the new pixel signal; and a processor connected to the image capturing unit for continuously obtaining a plurality of the first images and generating a second image from the first images by an interpolation method.
In sum, in embodiments, the brightness of the image is enhanced via the pixel binning process, and then the image is reconstructed via the super resolution reconstruction process to restore the original resolution of the image. Therefore, images taken in the low-light environment are bright enough without reducing the resolution.
These and other features, aspects and advantages of the disclosure will become better understood with regard to the following embodiments and accompanying drawings.
Multiple embodiments are disclosed below accompanying with the figures. For clarity, details in practice will also be described hereinafter. However, it should be understand that the details in practice are not used for limiting the disclosure. In other words, in some of the embodiments, the details in practical are not essential. Additionally, for concise illustration, some commonly-used components or structures in the art are shown simply in the figures.
In the embodiment, the electronic device 200 is, but not limited to, a smart phone, a tablet computer or a notebook computer, or other electronic devices that are capable of capturing images. The electronic device 200 further includes a non-transitory computer-readable storage medium 250 connected to the processor 210. The non-transitory computer-readable storage medium 250 is, but not limited to, a read-only memory, a flash memory or a hard disk. Computer programs are stored in the non-transitory computer-readable storage medium 250. The image processing method 100 is performed by the processor 210 of the electronic device 200.
Please refer to
In an embodiment, whether the pixel binning process is executed is determined according to a practical filming environment. That is, before step 120, the processor 210 determines an ambient brightness according to the original image received from the image capturing unit, and then whether the image capturing unit needs to perform the pixel binning progress on the original image is determined according to the ambient brightness. In an embodiment, a parameter of the ambient brightness is sensed by an ambient light sensor configured at the electronic device 200. The processor 210 receives the parameter of the ambient brightness from the ambient light sensor, and determines whether to output a pixel binning command according to the parameter of the ambient brightness. That is, if the parameter of the ambient brightness is less than a preset value, a low-light environment is determined. Then, step 120 is performed and the processor 210 outputs the pixel binning command to the image capturing unit 230 to perform the pixel binning progress to output a first image. Conversely, if the parameter of the ambient brightness is not less than the preset value, the filming environment is not a low-light environment, then, the image capturing unit 230 outputs the original image to the processor 210 directly without the pixel binning progress. A super resolution reconstruction process also can be executed on the multiple continuous original images by the processor 210.
In step 130, after steps 110 to 120 are repeatedly performed by the processor 210, a plurality of the first images that are processed by the pixel binning process are continuously obtained. The continuous first images refer to those images that are taken in short time intervals (such as 1/30 second). The time intervals are different in an embodiment. In an embodiment, the number of the first images is more than four to provide enough data for the subsequent steps.
Then, in step 140, the processor 210 performs a super resolution reconstruction process to the first images by an interpolation method to generate a second image. The second image has the same resolution as the original image. Please refer to
In an embodiment, some of the above steps are performed by the image capturing unit 230. In an embodiment, in step 110, images are captured by the image capturing unit 230 to obtain the original images. In step 120, the pixel binning progress is executed by the image capturing unit 230 to generate the first images, and the first images are output to the processor 210 from the image capturing unit 230. Then, the processor 210 executes the step 130 and next steps.
In an embodiment, after step 140, some edges of the second image are usually having blurring and aliasing problems. Then, the second image is smoothed via an image smoothing filter to overcome the blurring and aliasing problems of the edges of the second image. In the embodiment, the image smoothing filter is, but not limited to, a Bilateral Filter, a Trilateral Filter or a Guided Image Filter.
In an embodiment, the first images that are processed by the pixel binning process have many noises. Therefore, before step 140, the first images are smoothed via an image smoothing filter. Similarly, the image smoothing filter is, but not limited to, a Bilateral Filter, a Trilateral Filter or a Guided Image Filter. As a result, the quality of the second image generated in step 140 is better.
In sum, in the embodiments, the brightness of the image is enhanced via the pixel binning process, and then the image is reconstructed via the super resolution reconstruction process to restore the original resolution of the image. Therefore, images taken in the low-light environment are bright enough without reducing the resolution.
Although the disclosure has been disclosed with reference to certain embodiments thereof, the disclosure is not for limiting the scope. Persons having ordinary skill in the art may make various modifications and changes without departing from the scope of the disclosure. Therefore, the scope of the appended claims should not be limited to the description of the embodiments described above.
Number | Date | Country | Kind |
---|---|---|---|
105116170 | May 2016 | TW | national |
This application claims the priority benefit of U.S. provisional application Ser. No. 62/191,538, filed on Jul. 13, 2015 and TW application serial No. 105116170, filed on May 24, 2016. The entirety of the above-mentioned patent applications are hereby incorporated by references herein and made a part of specification.
Number | Date | Country | |
---|---|---|---|
62191538 | Jul 2015 | US |