TWI576789B - Image processing method, non-transitory computer-readable storage medium and electrical device thereof - Google Patents
Image processing method, non-transitory computer-readable storage medium and electrical device thereof Download PDFInfo
- Publication number
- TWI576789B TWI576789B TW105116170A TW105116170A TWI576789B TW I576789 B TWI576789 B TW I576789B TW 105116170 A TW105116170 A TW 105116170A TW 105116170 A TW105116170 A TW 105116170A TW I576789 B TWI576789 B TW I576789B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- images
- super
- interpolation
- processing method
- Prior art date
Links
Landscapes
- Image Processing (AREA)
- Studio Devices (AREA)
Description
本案是有關於一種影像處理方法,特別是有關於一種應用於低光源環境的影像處理方法。This case is related to an image processing method, and in particular to an image processing method applied to a low light source environment.
目前,舉凡行動電話、平板電腦、筆記型電腦等,已有諸多電子產品配備有攝影裝置,而可用來擷取影像。然而,在低光源環境下,此些攝影裝置所拍攝的影像將偏暗且具有許多雜訊。At present, there are many electronic products equipped with camera devices, such as mobile phones, tablet computers, notebook computers, etc., which can be used to capture images. However, in low light source environments, the images captured by such cameras will be dark and have many noises.
本案提供一種影像處理方法。根據本案的一實施例,影像處理方法包含:取得至少一原始影像;對至少一原始影像執行一像素合併程序,像素合併程序是將原始影像中複數個相鄰的像素訊號合併為一個新像素訊號,以產生具有新像素訊號的一第一影像;連續取得經像素合併程序後所產生的複數張第一影像;及執行一超解析度重建程序,使第一影像透過一內插法產生一第二影像。This case provides an image processing method. According to an embodiment of the present invention, an image processing method includes: acquiring at least one original image; performing a pixel merging process on at least one original image, wherein the pixel merging process combines a plurality of adjacent pixel signals in the original image into a new pixel signal. For generating a first image having a new pixel signal; continuously obtaining a plurality of first images generated by the pixel combining process; and performing an over-resolution reconstruction process to cause the first image to be generated by an interpolation method Two images.
本案之提供一種非暫態電腦可讀取記錄媒體,根據本案的一實施例,非暫態電腦可讀取記錄媒體儲存一電腦程式指令,電腦程式指令在載入一電子裝置後執行一影像處理方法,影像處理方法包含:取得至少一原始影像;對該至少一原始影像執行一像素合併程序,像素合併程序是將原始影像中複數個相鄰的像素訊號合併為一個新像素訊號,以產生具有新像素訊號的一第一影像;連續取得經像素合併程序後所產生的複數張第一影像;及執行一超解析度重建程序,使第一影像透過一內插法產生一第二影像。The present invention provides a non-transitory computer readable recording medium. According to an embodiment of the present invention, a non-transitory computer readable recording medium stores a computer program instruction, and the computer program instruction performs an image processing after loading an electronic device. The image processing method includes: acquiring at least one original image; performing a pixel merging process on the at least one original image, wherein the pixel merging process combines the plurality of adjacent pixel signals in the original image into a new pixel signal to generate a first image of the new pixel signal; successively obtaining a plurality of first images generated by the pixel binning process; and performing a super-resolution reconstruction process to cause the first image to generate a second image by an interpolation method.
本案之提供一種電子裝置,包含一影像擷取單元,影像擷取單元用以輸出一原始影像或對原始影像中複數個相鄰的像素訊號合併為一個新像素訊號所產生具有該新像素訊號的一第一影像;及一處理器,連接影像擷取單元,並取得連續產生的複數張第一影像,以使第一影像透過一內插法產生一第二影像。The present invention provides an electronic device, comprising an image capturing unit, wherein the image capturing unit outputs an original image or combines a plurality of adjacent pixel signals in the original image into a new pixel signal to generate the new pixel signal. a first image; and a processor connected to the image capturing unit and obtaining a plurality of successively generated first images to cause the first image to generate a second image through an interpolation method.
綜上所述,藉由應用本案之一實施例,透過像素合併來增加照片亮度,其後再以超解析度重建影像,以將照片還原成原解析度,因此,可在低光源環境下取得足夠亮度且不會犧牲影像解析度的照片In summary, by applying an embodiment of the present invention, the brightness of the photo is increased by pixel combination, and then the image is reconstructed by super-resolution to restore the photo to the original resolution, so that the image can be obtained in a low light source environment. Photos that are bright enough without sacrificing image resolution
以下將以圖式揭露本案的複數個實施方式,為明確說明起見,許多實務上的細節將在以下敘述中一併說明。然而,應瞭解到,這些實務上的細節不應用以限制本案。也就是說,在本案部分實施方式中,這些實務上的細節是非必要的。此外,為簡化圖式起見,一些習知慣用的結構與元件在圖式中將以簡單示意的方式繪示之。In the following, a plurality of embodiments of the present invention will be disclosed in the drawings. For the sake of clarity, a number of practical details will be described in the following description. However, it should be understood that these practical details are not applied to limit the case. That is to say, in some implementations of this case, these practical details are not necessary. In addition, some of the conventional structures and elements are shown in the drawings in a simplified schematic manner in order to simplify the drawings.
圖1是依據本案之一實施例繪示的影像處理方法100的流程圖。圖2是依據本案之一實施例繪示的電子裝置200的方塊示意圖。合併參照圖1及圖2,影像處理方法100可應用於電子裝置200。電子裝置200包含相互電連接的處理器210及影像擷取單元230,影像擷取單元230實質可為相機模組,用以輸出原始影像。FIG. 1 is a flow chart of an image processing method 100 according to an embodiment of the present disclosure. FIG. 2 is a block diagram of an electronic device 200 according to an embodiment of the present disclosure. Referring to FIGS. 1 and 2 together, the image processing method 100 can be applied to the electronic device 200. The electronic device 200 includes a processor 210 and an image capturing unit 230 that are electrically connected to each other. The image capturing unit 230 can be a camera module for outputting an original image.
圖3是依據本案之一實施例繪示的原始影像220之示意圖。如圖3所示,原始影像220包含多個像素221。於此,為了清楚呈現圖式,僅繪出部分的像素221,且特意將像素221放大呈現。FIG. 3 is a schematic diagram of an original image 220 according to an embodiment of the present disclosure. As shown in FIG. 3, the original image 220 includes a plurality of pixels 221. Here, in order to clearly present the drawing, only a part of the pixels 221 are drawn, and the pixels 221 are intentionally enlarged.
在本實施例中,電子裝置200可以是手機、平板電腦、筆記型電腦等可拍攝影像的電子裝置。電子裝置200還包含連接至處理器210的非暫態電腦可讀取記錄媒體250,係可為唯讀記憶體、快閃記憶體或硬碟等電腦可讀取記錄媒體。非暫態電腦可讀取記錄媒體250儲存電腦程式指令,而可由電子裝置200之處理器210執行以下的影像處理方法100。In this embodiment, the electronic device 200 can be an image-capable electronic device such as a mobile phone, a tablet computer, or a notebook computer. The electronic device 200 further includes a non-transitory computer readable recording medium 250 coupled to the processor 210, which may be a computer readable recording medium such as a read only memory, a flash memory or a hard disk. The non-transitory computer readable recording medium 250 stores computer program instructions, and the following image processing method 100 can be executed by the processor 210 of the electronic device 200.
復參照圖1,於步驟110中,處理器210接收影像擷取單元230所擷取的至少一原始影像。接著,處理器210傳送一像素合併指令給影像擷取單元,使影像擷取單元對原始影像執行一像素合併程序(步驟120)。像素合併程序是將複數個相鄰的像素221(在本實施例中為四個相鄰的像素)的像素訊號合併為一個新像素訊號,以產生具有新像素訊號的第一影像。在此,所述合併是將四個像素訊號加總為新的像素訊號。因此,透過本步驟,將可使原始影像提昇四倍的亮度而形成第一影像。然而,因為經過像素合併程序,因此影像的解析度將較原本的解析度低了四倍。對此,將再執行後續步驟,以還原為原本的影像解析度。Referring to FIG. 1, in step 110, the processor 210 receives at least one original image captured by the image capturing unit 230. Then, the processor 210 transmits a pixel merging instruction to the image capturing unit, so that the image capturing unit performs a pixel merging process on the original image (step 120). The pixel merging process combines the pixel signals of a plurality of adjacent pixels 221 (four adjacent pixels in this embodiment) into a new pixel signal to generate a first image with a new pixel signal. Here, the merging adds up the four pixel signals to a new pixel signal. Therefore, through this step, the original image can be increased by four times the brightness to form a first image. However, because of the pixel binning process, the resolution of the image will be four times lower than the original resolution. In this regard, the subsequent steps will be performed to restore the original image resolution.
在一實施例中,還可視實際的拍攝環境來決定是否進行像素合併。亦即,在步驟120之前,處理器210會根據自影像擷取單元接收的原始影像判斷一環境亮度,並根據環境亮度判斷是否讓影像擷取單元對原始影像執行像素合併程序。或者,可另行透過電子裝置200上設置的亮度感測器來取得環境亮度的數值。處理器210自亮度感測器來取得環境亮度數值之後,便可根據環境亮度數值決定是否輸出像素合併指令。也就是說,若環境亮度低於預設值,則可認定屬於低光源環境,於是可接著執行步驟120,使得處理器210輸出像素合併指令至影像擷取單元230,以讓影像擷取單元230執行像素合併程序,以輸出第一影像。反之,若拍攝環境非屬低光源環境,則影像擷取單元230不執行像素合併程序而直接輸出原始影像給處理器210,然而處理器210仍可對連續的多張原始影像執行超解析度重建程序。In an embodiment, whether or not pixel merging is performed may also be determined depending on the actual shooting 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 determines whether to cause the image capturing unit to perform a pixel combining process on the original image according to the ambient brightness. Alternatively, the brightness of the ambient light can be separately obtained by the brightness sensor provided on the electronic device 200. After the processor 210 obtains the ambient brightness value from the brightness sensor, it can determine whether to output the pixel combination instruction according to the ambient brightness value. That is, if the ambient brightness is lower than the preset value, it may be determined to belong to the low light source environment, and then step 120 may be performed, so that the processor 210 outputs a pixel merge command to the image capturing unit 230 to allow the image capturing unit 230. A pixel binning process is performed to output the first image. On the other hand, if the shooting environment is not a low light source environment, the image capturing unit 230 directly outputs the original image to the processor 210 without performing a pixel merging process, but the processor 210 can still perform super-resolution reconstruction on successive multiple original images. program.
於步驟130中,處理器210重複前述步驟110至步驟120,以連續取得經過前述像素合併步驟之複數張第一影像。所述連續的第一影像是指此些影像的擷取時間皆間隔短暫的時間(如1/30秒),但間隔的時間不必然相同。在一些實施例中,第一影像的數量為四張以上,以取得足夠的資料來進行演算。In step 130, the processor 210 repeats the foregoing steps 110 to 120 to successively obtain a plurality of first images that have passed through the pixel combining step. The continuous first image means that the capture times of the images are separated by a short time (eg, 1/30 second), but the intervals are not necessarily the same. In some embodiments, the number of first images is four or more to obtain sufficient data for calculation.
續而,於步驟140中,處理器210執行一超解析度重建步驟,使此些第一影像透過內插法產生一第二影像,藉此可獲得與原始影像相同解析度的第二影像。參照圖4,係為圖1之步驟140的細部流程圖。首先,係分別尋找此些第一影像的複數特徵點,特徵點可以是邊緣、轉角、斑點或脊(步驟141)。特徵點的選取可利用如Harris檢測法、FAST檢測法、SURF檢測法、SIFT檢測法或MSER檢測法等。接著,由於使用者手持電子裝置200,必然會使得每張擷取的第一影像的攝影範圍略有差異,因此透過尋找同一個特徵點在各個第一影像上的位置,可計算得各個第一影像之間的位移訊息。藉由對位此些第一影像,即將同一特徵點移動到相同座標,而可完成對位(步驟142)。對位完畢後,任意位置的像素周圍必定會有來自不同第一影像的其他像素,在綜合參照此些像素的位置與色彩訊息之後可形成第二影像,使用的方法可以為內插法或中值濾波器等方法(步驟143)。於此,所述內插法可以是利用非為疊代(iterative)式之內插法,換言之,即為可透過一次解法完成的內插法。例如:線性內插法。Then, in step 140, the processor 210 performs an super-resolution reconstruction step to generate a second image by using the first image by interpolation, thereby obtaining a second image with the same resolution as the original image. Referring to Figure 4, there is shown a detailed flow chart of step 140 of Figure 1. First, the plurality of feature points of the first images are respectively searched for, and the feature points may be edges, corners, spots or ridges (step 141). The feature points can be selected, for example, by Harris detection, FAST detection, SURF detection, SIFT detection or MSER detection. Then, since the user holds the electronic device 200, the photographic range of each captured first image is inevitably slightly different. Therefore, by searching for the position of the same feature point on each of the first images, each first can be calculated. The displacement message between images. The alignment can be accomplished by aligning the first images by moving the same feature point to the same coordinate (step 142). After the alignment is completed, there must be other pixels from different first images around the pixels at any position. After comprehensively referring to the positions of the pixels and the color information, a second image can be formed, and the method can be interpolation or medium. A method such as a value filter (step 143). Herein, the interpolation method may be an interpolation method that is not an iterative type, in other words, an interpolation method that can be completed by one-time solution. For example: linear interpolation.
在一些實施例中,前述部分步驟可由影像感測單元230完成。例如:在步驟110中,影像感測單元230擷取影像以取得原始影像。在步驟120中,可由影像感測單元230執行像素合併程序,以產生第一影像,並輸出第一影像給處理器210,使得處理器210可接續處理步驟130及其後的步驟。In some embodiments, the foregoing partial steps may be performed by the image sensing unit 230. For example, in step 110, the image sensing unit 230 captures an image to obtain an original image. In step 120, the pixel merging process may be performed by the image sensing unit 230 to generate a first image, and the first image is output to the processor 210, so that the processor 210 can continue to process the step 130 and subsequent steps.
在一實施例中,在前述步驟140之後,第二影像的一些邊緣可能不太自然,因此還可利用影像平滑濾波器,對第二影像進行影像平滑化處理。於此,影像平滑濾波器可為雙邊濾波器(Bilateral Filter)、三向濾波器(Trilateral Filter)或引導影像濾波器(Guided Image Filter)。In an embodiment, after the foregoing step 140, some edges of the second image may be less natural, and thus the image smoothing process may be performed on the second image by using an image smoothing filter. Here, the image smoothing filter may be a bilateral filter, a trilateral filter, or a Guided Image Filter.
在一實施例中,若所擷取的經像素合併步驟的第一影像具有過多的雜訊,可在步驟140之前,便預先對此些第一影像進行前述的影像平滑化處理。同樣的,採用的影像平滑濾波器可為雙邊濾波器、三向濾波器或引導影像濾波器。藉此,可讓後續執行步驟140產生的第二影像的影像品質更好。In an embodiment, if the captured first image of the pixel combining step has excessive noise, the image smoothing process may be performed on the first images before step 140. Similarly, the image smoothing filter used may be a bilateral filter, a three-way filter or a guided image filter. Thereby, the image quality of the second image generated by the subsequent execution of step 140 can be made better.
綜上所述,藉由應用本案之一實施例,透過像素合併來增加照片亮度,其後再以超解析度重建影像,以將照片還原成原解析度,因此,可在低光源環境下取得足夠亮度且不會犧牲影像解析度的照片。In summary, by applying an embodiment of the present invention, the brightness of the photo is increased by pixel combination, and then the image is reconstructed by super-resolution to restore the photo to the original resolution, so that the image can be obtained in a low light source environment. A photo that is bright enough and does not sacrifice image resolution.
雖然本案已以實施方式揭露如上,然其並非用以限定本案,任何熟習此技藝者,在不脫離本案之精神和範圍內,當可作各種之更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present case. Anyone skilled in the art can make various changes and refinements without departing from the spirit and scope of the case. Therefore, the scope of protection of this case is considered. The scope defined in the patent application is subject to change.
100‧‧‧影像處理方法
110、120、130、140‧‧‧步驟
141、142、143‧‧‧步驟
200‧‧‧電子裝置
210‧‧‧處理器
220‧‧‧原始影像
221‧‧‧像素
230‧‧‧影像擷取單元
250‧‧‧非暫態電腦可讀取記錄媒體100‧‧‧Image processing method
110, 120, 130, 140‧‧‧ steps
141, 142, 143‧‧ steps
200‧‧‧Electronic devices
210‧‧‧ processor
220‧‧‧ original image
221‧‧ ‧ pixels
230‧‧‧Image capture unit
250‧‧‧ Non-transient computer readable recording medium
[圖1]是依據本案之一實施例繪示的影像處理方法的流程圖。 [圖2]是依據本案之一實施例繪示的電子裝置的方塊示意圖。 [圖3]是依據本案之一實施例繪示的原始影像之示意圖。 [圖4]是圖1之步驟140的細部流程圖。FIG. 1 is a flowchart of an image processing method according to an embodiment of the present disclosure. FIG. 2 is a block diagram of an electronic device according to an embodiment of the present disclosure. FIG. 3 is a schematic diagram of an original image according to an embodiment of the present disclosure. FIG. 4 is a detailed flow chart of step 140 of FIG. 1.
100‧‧‧影像處理方法 100‧‧‧Image processing method
110、120、130、140‧‧‧步驟 110, 120, 130, 140‧‧‧ steps
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/202,676 US20170019615A1 (en) | 2015-07-13 | 2016-07-06 | Image processing method, non-transitory computer-readable storage medium and electrical device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201562191538P | 2015-07-13 | 2015-07-13 |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201702987A TW201702987A (en) | 2017-01-16 |
TWI576789B true TWI576789B (en) | 2017-04-01 |
Family
ID=58401026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105116170A TWI576789B (en) | 2015-07-13 | 2016-05-24 | Image processing method, non-transitory computer-readable storage medium and electrical device thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI576789B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI648708B (en) * | 2017-09-06 | 2019-01-21 | 奇景光電股份有限公司 | Pixel interpolation circuit and pixel interpolation method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060215932A1 (en) * | 2001-11-19 | 2006-09-28 | Stmicroelectronics S.R.L. | Method for merging digital images to obtain a high dynamic range digital image |
CN1874499A (en) * | 2006-05-12 | 2006-12-06 | 北京理工大学 | High dynamic equipment for reconstructing image in high resolution |
US20100250201A1 (en) * | 2007-11-27 | 2010-09-30 | Sergey Borisovich Sivovolenko | Method and System for Improved Optical Modeling of Gemstones |
CN102651127A (en) * | 2012-04-01 | 2012-08-29 | 深圳市万兴软件有限公司 | Image processing method and image processing system for super-resolution reconstruction |
CN103500445A (en) * | 2013-09-22 | 2014-01-08 | 华南理工大学 | Super-resolution processing method of color video |
CN103578427A (en) * | 2013-10-10 | 2014-02-12 | 北京金日恒升科技有限公司 | Pixel interpolation technology used for high-definition image display |
US20140375836A1 (en) * | 2013-06-19 | 2014-12-25 | Qualcomm Technologies, Inc. | System and method for single-frame based super resolution interpolation for digital cameras |
-
2016
- 2016-05-24 TW TW105116170A patent/TWI576789B/en active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060215932A1 (en) * | 2001-11-19 | 2006-09-28 | Stmicroelectronics S.R.L. | Method for merging digital images to obtain a high dynamic range digital image |
CN1874499A (en) * | 2006-05-12 | 2006-12-06 | 北京理工大学 | High dynamic equipment for reconstructing image in high resolution |
US20100250201A1 (en) * | 2007-11-27 | 2010-09-30 | Sergey Borisovich Sivovolenko | Method and System for Improved Optical Modeling of Gemstones |
CN102651127A (en) * | 2012-04-01 | 2012-08-29 | 深圳市万兴软件有限公司 | Image processing method and image processing system for super-resolution reconstruction |
US20140375836A1 (en) * | 2013-06-19 | 2014-12-25 | Qualcomm Technologies, Inc. | System and method for single-frame based super resolution interpolation for digital cameras |
CN103500445A (en) * | 2013-09-22 | 2014-01-08 | 华南理工大学 | Super-resolution processing method of color video |
CN103578427A (en) * | 2013-10-10 | 2014-02-12 | 北京金日恒升科技有限公司 | Pixel interpolation technology used for high-definition image display |
Also Published As
Publication number | Publication date |
---|---|
TW201702987A (en) | 2017-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6705065B1 (en) | Configurable convolution engine for interleaved channel data | |
US10284789B2 (en) | Dynamic generation of image of a scene based on removal of undesired object present in the scene | |
CN107409166B (en) | Automatic generation of panning shots | |
US9955056B2 (en) | Real time calibration for multi-camera wireless device | |
US10915998B2 (en) | Image processing method and device | |
US20170019615A1 (en) | Image processing method, non-transitory computer-readable storage medium and electrical device thereof | |
US9373187B2 (en) | Method and apparatus for producing a cinemagraph | |
WO2019056527A1 (en) | Capturing method and device | |
KR102424984B1 (en) | Electronic device comprising plurality of cameras and method for operating therepf | |
JP2016197858A (en) | Real time image stitch device and real time image stitch method | |
JP5141245B2 (en) | Image processing apparatus, correction information generation method, and imaging apparatus | |
US9589359B2 (en) | Structured stereo | |
JP2009165106A (en) | Image distortion correction | |
KR20210110679A (en) | Image Fusion Processing Module | |
US11470250B2 (en) | Methods and apparatus for shear correction in image projections | |
EP2692140A2 (en) | Real-time depth extraction using stereo correspondence | |
WO2018063606A1 (en) | Robust disparity estimation in the presence of significant intensity variations for camera arrays | |
JP2016081425A (en) | Image processing device, and image processing method and program | |
TWI576789B (en) | Image processing method, non-transitory computer-readable storage medium and electrical device thereof | |
WO2018214502A1 (en) | Background blurring method and device, terminal, and storage medium | |
US10303988B1 (en) | Visual search methods and systems | |
US10375368B2 (en) | Image data conversion | |
WO2016141984A1 (en) | Image processing device and method for geometric calibration of images | |
CN107395983A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN114390219B (en) | Shooting method, shooting device, electronic equipment and storage medium |