TWI357583B - Method of correcting bad spots for digital camera - Google Patents

Method of correcting bad spots for digital camera Download PDF

Info

Publication number
TWI357583B
TWI357583B TW97113903A TW97113903A TWI357583B TW I357583 B TWI357583 B TW I357583B TW 97113903 A TW97113903 A TW 97113903A TW 97113903 A TW97113903 A TW 97113903A TW I357583 B TWI357583 B TW I357583B
Authority
TW
Taiwan
Prior art keywords
channel
pixel
color
bad point
value
Prior art date
Application number
TW97113903A
Other languages
Chinese (zh)
Other versions
TW200945216A (en
Inventor
Jiecai Han
Original Assignee
Inventec Appliances Corp
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 Inventec Appliances Corp filed Critical Inventec Appliances Corp
Priority to TW97113903A priority Critical patent/TWI357583B/en
Publication of TW200945216A publication Critical patent/TW200945216A/en
Application granted granted Critical
Publication of TWI357583B publication Critical patent/TWI357583B/en

Links

Description

九、發明說明: 【發明所屬之技術領域】 本發明係關於一種解決數位影像上壞點之方法及一種 具壞點自動校正功能之數位照相設備,該方法係應用至一 數位照相設備,使用該數位照相設備拍攝一系列各具有不 同的單一灰階值的樣紙,以產生該等樣紙之數位影像,搜 尋出壞點座標及壞點通道,進而使用鄰近該壞點座標的一 像素之對應顏色通道之強度值’取代該壞點之強度值。 【先前技術】 按,一般數位照相設備(如:數位相機或裝設有數位攝 像頭的手機或個人數位助理器等)包含光學元件(如:鏡 頭、透鏡組等)及電子元件(如:光敏感測器、微處理器 及電路元件等)’當使用者以一數位照相設備拍攝一景物, 該景物的光線透過該數位照相設備的鏡頭,聚焦在内部的 光敏感測器(如:電荷輕合元件,簡稱Ccd)上,利用該 光敏感測器把該景物的光學影像轉換成電子訊號,再經過 處理後’即得到該等景物之數位影像(Digital image), 該數位影像係由像素(Pixels)陣列所構成,且其像素數 目與該數位照相設備之解析度有關,以一般脇顏色模式 為例,每-個像素皆具有紅色通道、綠色通道及藍色通道 等三顏色通道,各顏色通道皆具有—個強度值,意即每一 數位影像是由紅色、綠色及藍色的灰階影像(Gray Scale Image)混合而成。由於,數位影像相較於傳統照片,可以 方便的複製,或經由網路傳遞及分享,且透過數位資料保 存影像’不會因為年代久遠而泛黃,隨著家庭電腦普及、 數位貧料儲存方式多元化、電子技術的成熟及市場需求的 增加,數位照相設備已日益普及,其中,數位S機甚至取 代傳統底;ί式蝴,成為減市場的主流,各_製造薇 f莫不致力於提高產品齡f及降低生產成本,以期能在 而度競f的市場上取得競爭優勢。 由於’數位照相設備的光學元件和電子元件的製造工 藝不能保證不4現細小的碱,故會造絲倾相設備所 拍攝的數位f彡像上,有某些像素呈賴色彩及亮度與其目 標值不同’該等像切所謂的壞點,通常鱗壞點與其鄰 近像素的色彩及亮度差異極大,因*影響所拍攝的數位影 像的ηπ質,一般數位照相設備在出廠前會做壞點的檢查, 當一數位照相設備的壞點數目超過一容許值,即被判定為 不良品,而不良品可能需作檢修及更換零件等矯正措施, 或是直接作報廢,如此,將導致製造成本的上升,即使壞 點數目不超過該容許值,仍會目為有壞騎槪消費者的 抱怨’影響製造商之商譽’在現今高度競爭的市場環境下, 如何能研發出一種搜尋及校正數位照相設備上壞點之方 法,且該方法不僅運算程賴單快速,可絲易地被編寫 成軟體,歧地顧至各種數健相賴上,以有效解決 各該數位照相設備所產生之數位影像上發生壞點的問題, 即為數位難設__者致力研究,並藏解決之一重 要課題。 【發明内容】 有鑑赠絲健概備(如··練蝴錢設有數位 攝像頭辭機絲人數㈣等)上發生壞點所引發的 成本上升及_者抱料_ ’魏人_長久努力研究 與實驗,終魏仙本發_校正數健相設備上壞 點之方法及具軸自動校正雜之數位助設備,有別於 时的大部分的齡辦縣轉素之侧概,以判斷 壞點’而不考餘鑛姆像的總雜徵,本剌採用統 計的方式’以得_試㈣數位影像的總雜徵,再根據 該總體特徵鱗找紐位照相設備上所有的無,以期能 有效地搜尋出數健相設備上雜’魏及時加以校正, 讓這些壞點對所拍攝之數位影像的影響程度不致太多,甚 至達到讓使用者毫域覺紐職設備有無的效果。 本發明的-目_提供-種校正數位照相設備上壞點 之方法,該方法係顧至—數位助設備,包括使用該數 位照相設備拍攝-張具有單一灰階(Gray Scale)值的樣 紙’以產生雜紙之紐影像。-般言,透過良好的數位 …、相叹備’所產生該等樣紙之的數位影像,在每個像素與 其鄰近像素的色彩及亮度不會有太大的差異,而有壞點的 數位照相_生成的數位f彡像’在壞點處與其鄰近像素的 色彩及亮度,則會有極大的差異,這些壞點的成因,有可 月匕疋該壞點上的紅色通道、綠色通道及藍色通道都壞了, 亦有可能是某一個通道(如:綠色通道)壞了,所以必須 找出損壞的顏色通道。另,理論上,一個單一灰階值的樣 1357583 紙之數位&像的各像素的三個顏色通道具有相同的強度 =,但因絲元件和電子元件本身齡製造上的變異及環 i見光源的w響所致’該數位影像的各像素的三個顏色通道 的強度值不會都相同,而是—個常態分佈,採用統計分析 的方法’計算該常態分佈的平均值和鮮差,正常的情況 下所有的像素的各顏色通道的強度值的分佈,應當在離平 均值的&範圍(如:8倍的標準差)内,在有壞點的情 況下’ -個壞點至少有—健色通道的強度值大分情況就 在這個範®之外’因此,藉由—張單—灰階值的樣紙,能 尋找出-部分的壞點,藉由―系列各具有不同的單一灰階 值的樣紙,就能尋找出所有的壞點。 本發明之方法包括統計一該數位影像上所有像素的各 顏色通道的強度值,且計算出各顏色通道的強度值的平均 值及標準差,並以各顏色通道的強度值的標準差乘以一個 倍數(如:8倍)’作為該顏色通道的閾值(Thresh〇ld Umit Value,簡稱TLV),嗣,計算出該數位影像上所有像素的 各顏色通道的強度值之離均差,再判斷所有像素的各顏色 通道的強度值之離均差是否大於各顏色通道的閾值,若 是,則該像素為一個壞點,該顏色通道為一壞點通道,即 輸出該壞點座標及壞點通道,如此,使用該數位照相設備 拍攝一系列具有不同的單一灰階值的樣紙,以產生該等樣 紙之數位影像’重覆前述步驟’分別對各該數位影像,進 行統計及計算,即能針對所有的像素,搜尋出全部的壞點 座標及壞點通道’並將全部的壞點座標及壞點通道,紀錄 9 為該數位照相設備的特徵龍,以做為後續校正該數位照 相戌備所拍攝的數位影像之依據。 本發明的另一目的,該方法包括根據該數位照相設備 的特徵資料’判斷各該像素的各個顏色通道中是否有壞點 通道,若是,則將一壞點通道的強度值,用該壞點周圍的 某一像素之對應顏色通道之強度值取代,或用該壞點周圍 的複數個像素之對應顏色通道之強度值之一插值取代,該 插值係為各該對應顏色通道之強度值之中,介於最大與最 小的強度值之間的一數值,重覆前述步驟,直到對該數位 影像上所有的像素皆完成壞點之判斷及校正處理。該搜尋 及校正數位照相設備上壞點之方法,不僅運算程序簡單快 速,且可藉由被編寫成軟體而廣泛地應用至各種數位照相 設備上,以即時修正各該數位照相設備所產生之數位影像 上發生的壞點。 本發明的又一目的係提供一種具壞點自動校正功能之 數位照相設備,該數位照相設備具有一壞點處理軟體,該 壞點處理軟體能依據其儲存的壞點座標及壞點琿道,判斷 該數位照相設備拍攝一景物後所產生的一數位影像上,各 像素的各顏色通道是否為一個壞點通道,將一壞點通道的 強度值,用該壞點周圍的複數個像素之對應顏色通道之強 度值的一插值取代,故,該數位照相設備能即時校正壞點。 為便貴審查委員能對本發明之方法的原理及其功 效,有更進一步之認識與瞭解,茲列舉實施例,並配合圖 式,詳細說明如下: 【實施方式】 本發明提供一種校正數位照相設備上壞點之方法,該 方法係應用至一數位照相設備,在該方法之一較佳的實施 例中’請參閱第1圖所示,以-數位照相設備2拍攝一張 單一灰階值的樣紙1〇〇(如:全白的紙張),以產生樣紙i〇i 之數位影像200,數位影像200的每一個像素(pixel)皆 具有一紅色通道、一綠色通道及一藍色通道等三個顏色通 道,各顏色通道皆具有一個強度值。正常情況下數位影像 200的呈現的色彩與樣紙100 —致,而若有壞點的情況, 在壞點處就會出現變異,例如呈現暗點。 在該實施例中,透過統計數位影像2〇〇上所有像素的 各顏色通道的強度值,以計算出各顏色通道的強度值的平 均值及標準差,請參閱第2圖所示’茲將該統計及計算步 驟詳細說明如下: (601) 紅色通道的強度值之總和以Sum一R表示,綠色通道的 強度值之總和以Sum_G表示,藍色通道的強度值之總 和以Suin_B表示’紅色通道的強度值之平方和以 Sum_R2表示’綠色通道的強度值之平方和以Sum_G2 表示’藍色通道的強度值之平方和以Sum_B2表示, 並設定 Sum_R、Sum_G、SumJB、Sum_R2、Sum_G2 及 Sum_B2 之初始值(如:初始值為0); (602) 輸入一數位影像的一個像素的三個顏色通道的強度 1357583 (603) 令Sum_R=Sum—R+紅色通道的強度值,令 Sum_G=Sum_G+綠色通道的強度值,令Sum__B=Sum_3+ 藍色通道的強度值,令Sum一R2=Sum_R2+(紅色通道的 強度值)2,令Sum一G2=Sum一G2+(綠色通道的強度 值;Γ2 ’令Sum—B2=Sum_B2+(藍色通道的強度值;r2 ; (604) 判斷是否所有像素的三個顏色通道的強度值皆已輸 入’若是’進入步驟(6〇5),若否,到步驟(6〇2), 以輸入下一個像素的三個顏色通道的強度值;IX. Description of the Invention: [Technical Field] The present invention relates to a method for solving a dead pixel on a digital image and a digital camera device having a dead pixel automatic correction function, which is applied to a digital camera device, The digital camera device takes a series of sample papers each having a different single grayscale value to generate a digital image of the sample paper, searching for a bad point coordinate and a dead pixel channel, and then using a pixel corresponding to the bad point coordinate. The intensity value of the color channel 'replaces the intensity value of the dead point. [Prior Art] Press, general digital camera equipment (such as: digital camera or mobile phone with digital camera or personal digital assistant), etc., including optical components (such as lenses, lens groups, etc.) and electronic components (such as: light sensitive) Detector, microprocessor and circuit components, etc.) 'When a user takes a scene with a digital camera, the light of the scene passes through the lens of the digital camera, focusing on the internal light sensor (eg, charge-collecting) On the component, referred to as Ccd, the optical sensor is used to convert the optical image of the scene into an electronic signal, and after processing, the digital image of the scene is obtained, and the digital image is made up of pixels (Pixels). Array is formed, and the number of pixels is related to the resolution of the digital camera device. Taking the general threat color mode as an example, each pixel has three color channels such as a red channel, a green channel, and a blue channel, and each color channel All have an intensity value, meaning that each digital image is a mixture of red, green and blue grayscale images (Gray Scale Image)Because digital images can be easily copied, transmitted or shared via the Internet, and saved through digital data, 'will not be yellowed due to age, with the popularity of home computers, digital storage methods Diversification, the maturity of electronic technology and the increase in market demand, digital camera equipment has become increasingly popular, among which, digital S-machine even replaces the traditional bottom; ί-style butterfly has become the mainstream of reducing the market, each _ manufacturing Wei f is not committed to improving products Age f and lower production costs, in order to gain a competitive advantage in the market. Since the manufacturing process of the optical components and electronic components of the digital camera device cannot guarantee the small alkali, the digital image of the digital image captured by the tilting device will have some pixels depending on the color and brightness and its target. The value is different. The so-called bad points of the image cut, usually the difference between the color and the brightness of the neighboring pixels is very large. Because the * influences the ηπ quality of the digital image captured, the digital camera equipment will do the bad points before leaving the factory. Check that when the number of dead pixels of a digital camera exceeds a certain allowable value, it is judged to be a defective product, and the defective product may need to be repaired and replaced with corrective measures, or directly scrapped, thus, resulting in manufacturing costs. Rising, even if the number of bad points does not exceed the allowable value, it will still be a complaint of a bad rider's complaint 'affecting the goodwill of the manufacturer'. How can we develop a search and correction digital position in today's highly competitive market environment? The method of the dead point on the photographic equipment, and the method is not only fast in the calculation process, but also can be easily written into a software body, and the various aspects are related to each other. Effective solution to the problem of missing dots on the digital image produced by each of the digital camera equipment, namely digital set __'s difficult committed to research and solve one important Tibetan issue. [Summary of the Invention] There is an increase in the cost of the occurrence of a bad point on the silk health (such as ··············································································· Research and experiment, the final Wei Xianben hair _ correction method on the number of bad points on the health equipment and the automatic correction of the number of miscellaneous equipment with the axis, which is different from the majority of the age of the county, to determine the dead point 'Without the total miscellaneous traits of the remaining mine image, this book uses the statistical method to get the total miscellaneous traits of the digital image, and then find all the none of the photographic equipment according to the overall feature scale, in order to Effectively search for the number of health equipment on the 'Wei timely correction, so that these bad points do not affect the digital image captured too much, even to let the user feel the effect of the new equipment. The present invention provides a method for correcting a dead pixel on a digital camera device, the method being a digital assistant device comprising photographing a sheet having a single gray scale value using the digital camera device 'To create a new image of the paper. - Generally speaking, through the digital image of the good digital... and the sighing of the paper, the color and brightness of each pixel and its neighboring pixels will not be much different, and the number of dead pixels will be different. The digital image generated by the camera _ is 'very different from the color and brightness of the neighboring pixels at the bad point. The cause of these dead pixels is the red channel and the green channel on the dead point. The blue channel is broken. It is also possible that a certain channel (such as a green channel) is broken, so the damaged color channel must be found. In addition, in theory, a single gray scale value of the sample 1575583 paper digits & image of each pixel of the three color channels have the same intensity =, but due to the variation of the silk component and the electronic component itself, and the ring i see The intensity of the three color channels of each pixel of the digital image is not the same, but a normal distribution, and the average value and the difference of the normal distribution are calculated by the method of statistical analysis. Under normal circumstances, the distribution of the intensity values of each color channel of all pixels should be within the range of the average & (such as: 8 times the standard deviation), in the case of a bad point, - a bad point at least The intensity value of the color channel is outside the range of the standard. Therefore, by using the sheet-like gray-scale sample paper, it is possible to find the - part of the dead pixels, with the series being different. With a single grayscale sample, you can find all the dead pixels. The method of the present invention comprises counting the intensity values of the color channels of all the pixels on the digital image, and calculating the average value and the standard deviation of the intensity values of the color channels, and multiplying by the standard deviation of the intensity values of the color channels. A multiple (eg, 8 times) 'as the threshold of the color channel (Thresh〇ld Umit Value, TLV for short), 嗣, calculate the deviation of the intensity values of the color channels of all the pixels on the digital image, and then judge Whether the difference between the intensity values of the color channels of all the pixels is greater than the threshold of each color channel, and if so, the pixel is a dead pixel, and the color channel is a bad point channel, that is, the bad point coordinate and the bad point channel are output. Thus, using the digital camera device to take a series of sample papers having different single grayscale values, to generate a digital image of the sample papers, "repeating the foregoing steps", respectively performing statistics and calculations on each of the digital images, ie For all pixels, search for all bad point coordinates and dead point channels' and all the dead pixels and dead pixels, record 9 for the digital camera Long features to serve as a subsequent correction of the digital image based on digital photographic apparatus Xu captured. Another object of the present invention is to determine whether there is a dead pixel channel in each color channel of each pixel according to the feature data of the digital camera device, and if so, the intensity value of a bad dot channel is used for the dead pixel The intensity value of the corresponding color channel of a surrounding pixel is replaced, or is replaced by one of the intensity values of the corresponding color channels of the plurality of pixels around the dead point, and the interpolation is among the intensity values of the corresponding color channels. A value between the maximum and minimum intensity values, repeating the foregoing steps until all pixels on the digital image complete the determination of the dead pixels and the correction process. The method for searching and correcting dead pixels on a digital camera device is not only simple and fast, but can be widely applied to various digital camera devices by being programmed into software to instantly correct the digital position generated by each digital camera device. A dead pixel that occurs on the image. It is still another object of the present invention to provide a digital photographic apparatus having a dead-end automatic correction function, the digital photographic apparatus having a dead-point processing software capable of relying on stored dead-point coordinates and bad-point trajectories, Determining whether the color channel of each pixel is a bad point channel on a digital image generated by the digital camera after shooting a scene, and using the intensity value of a bad point channel with the corresponding number of pixels around the dead point The interpolation of the intensity value of the color channel is replaced, so that the digital camera can correct the dead pixel in real time. In order to facilitate the review committee, the principles and functions of the method of the present invention can be further understood and understood. The embodiments are illustrated and described in detail with reference to the following drawings: [Embodiment] The present invention provides a digital camera for correcting digital images. A method of applying a dead pixel to a digital camera device. In a preferred embodiment of the method, 'please refer to FIG. 1 to take a single grayscale value with the digital camera device 2 The sample paper 1〇〇 (eg, all white paper) is used to generate a digital image 200 of the sample i〇i, each pixel of the digital image 200 has a red channel, a green channel and a blue channel. Wait for three color channels, each color channel has an intensity value. Under normal circumstances, the color of the digital image 200 is displayed in the same manner as the sample 100, and if there is a bad point, a variation occurs at a bad point, such as a dark spot. In this embodiment, the intensity values of the color channels of all the pixels on the digital image 2 are counted to calculate the average value and standard deviation of the intensity values of the color channels, as shown in FIG. 2 The statistics and calculation steps are described in detail as follows: (601) The sum of the intensity values of the red channel is represented by Sum-R, the sum of the intensity values of the green channel is represented by Sum_G, and the sum of the intensity values of the blue channel is represented by Suin_B 'red channel The sum of the squares of the intensity values is represented by Sum_R2. The sum of the squares of the intensity values of the green channels is represented by Sum_G2. The sum of the squares of the intensity values of the blue channels is represented by Sum_B2, and the initials of Sum_R, Sum_G, SumJB, Sum_R2, Sum_G2, and Sum_B2 are set. Value (eg, initial value is 0); (602) Enter the intensity of the three color channels of a pixel of a digital image by 1575583 (603) Let Sum_R = Sum - R + the intensity value of the red channel, so that Sum_G = Sum_G + green channel Intensity value, let Sum__B=Sum_3+ the intensity value of the blue channel, let Sum-R2=Sum_R2+ (the intensity value of the red channel) 2, let Sum-G2=Sum-G2+ (the intensity value of the green channel; Γ2' to Su m—B2=Sum_B2+ (the intensity value of the blue channel; r2; (604) Determine whether the intensity values of the three color channels of all pixels have been input 'if yes' into the step (6〇5), if not, go to the step ( 6〇2), to input the intensity values of the three color channels of the next pixel;

(605) 計异紅色通道、綠色通道及藍色通道之強度值的平均 值AV一R、AV—G、AV一B ’及紅色通道、綠色通道及藍色 通道之強度值的標準差STD_R、STD_G、STD_B,並計 算紅色通道、綠色通道及藍色通道的閾值,設總像素 數目為pixs,則: AV_R = Sum_R/pixS > AV__G = Sum_G/pixs > AV一B = SumJB/pixs ,(605) Calculate the average value of the intensity values of the red, green, and blue channels AV-R, AV-G, AV-B', and the standard deviation STD_R of the intensity values of the red, green, and blue channels, STD_G, STD_B, and calculate the threshold of the red channel, the green channel and the blue channel, and set the total number of pixels to pixs, then: AV_R = Sum_R/pixS > AV__G = Sum_G/pixs > AV - B = SumJB/pixs,

STD GSTD G

STD B STD R Sum _ _R2- 2 Sum R pixs pixs -1 Sum _G1 — Sum _ G2 pixs pixs -1 Sum _B2~ Sum B2 ----— pixs pixs -1 紅色通道關料鮮差STD_K的alpha倍,alpha可以 12 1357583 透過實驗獲得’綠色通道的閾值為標準差STD—G的alpha 倍’藍色通道的閾值為標準差STD-B的alpha倍。 在該實施例+,4參閲第3目所示,兹將搜尋數位景》 像200的壞點座標及壞點通道之步驟詳細說明如下: (701) 輸入一個像素的紅、綠、藍等三個顏色通道的強度值; (702) 計算紅色通道、綠色通道及藍色通道的強度值之離均 差 DR、DG、DB : DR =丨紅色通道的強度值—战_反丨, ® 如=I綠色通道的強度值-AV_G| , DB= |藍色通道的強度值—Αν_β| ; σ〇3)判斷紅色通道的強度值之離均差DR是否超過紅色通 道的閾值,若是,則該像素為一個壞點,該紅色通道 為一壞點通道,進入步驟(704),若否,進入步驟 (705); - (7〇4)輸出壞點座標以及壞點通道,進入步驟(7〇5). • (7〇5)判斷綠色通道的強度值之離均差DG是否超過綠色通 道的閾值,若是,則該像素為一個壞點,該綠色通道 為一壞點通道,進入步驟(706),若否,進入步驟 (707); (706)輪出壞點座標以及壞點通道,進入步驟(το?). (7〇Ό判斷藍色通道的強度值之離均差DB是否超過藍色通 道的閾值,若是,則該像素為一個壞點,該藍色通道 為一壞點通道,進入步驟(708),若否,進入步驟 (709); 13 (708) 輸出壞點座標以及壞點通道,進入步驟(7〇9);及 (709) 判斷是否所有像素的三個顏色通道的強度值皆已輪 入,若是則結束,若否,到步驟(7〇1),以輸入下一 個像素的三個顏色通道的強度值。 在該實施例中,在數位照相設備2出廠前,先用數位 照相設備2拍攝一系列從全白到全黑,多張各具不同單一 灰階值的樣紙,以產生該等樣紙之數位影像,嗣,使用一 電腦設備,執行前述第2圖及第3圖之步驟,分別對各該 數位影像,進行統計及計算,俟搜尋出數位照相設備2上 全部的壞點座標及壞點通道,將該全部的壞點座標及壞點 通道紀錄為數位照相設備2的特徵資料,且將該特徵資料 儲存在數位照相設備2中,以做為後續數位照相設備2校 正所拍攝的數位影像之依據。 在該實施例中,在數位照相設備2出廠後,當使用者 以數位照相設備2拍攝一景物後,數位照相設備2依以下 步驟,如第4圖所示,判斷及校正該景物的數位影像上的 壞點座標及壞點通道: (810)輸入一個像素座標; (820)依據該特徵資料,判斷該像素的三個顏色通道中,是 否有壞點通道。若是,進入步驟(83〇),若否,進入 步驟(840); (830)當該像素的任何一個顏色通道為一個壞點通道時,用 該壞點周圍複數個像素中的一像素之對應顏色通道 之強度值取代該壞點通道之強度值,或用該壞點周圍 1357583 複數個像素之對應顏色通道之強度值之一插值取代 該壞點通道之強度值,如此,即能校正該壞點通道之 強度值’該插值係為各該對應顏色通道之強度值之 中’介於最大與最小的強度值之間的一數值,例如: 該插值為該壞點周圍的各個像素之對應顏色通道之 強度值的平均值;及 (840)判斷是否所有像素座標皆已輸入,若是則結束,若 否,到步驟(810),以輸入下一個像素座標。 重複前述⑽)至⑽)之步驟,直到_數位縣上所有 的像素皆完成壞點之判斷及校正處理。 在本發明的另一實施例係一具壞點自動校正功能之數 位照相設備5,參閱第5圖所示,數位照相設備5係包括 一感光元件51、一光學裝置50、一運算處理單元52、一 壞點處理軟體53、-記憶體54及-顯示幕55,該感光元 件51用以將一景物之光學影像轉換成一數位影像,以取得 該數位影像巾每-悔素之三顏色通道的強度值,光學裝 置50用以將一景物之光學影像投射及聚焦在該感光元件 51上’運算處理單元52係依據該壞點處理軟體53的指令, 進行數據運算及資料處理,壞减理倾53錢計一數位 影像上各個像素的各顏色通道的強度值,計算出各該顏色 通道的強度值辭均值及鮮差’財該顏色通道的強度 值的標準差乘以一倍數,作為該顏色通道的閾值,及判斷 每-像素的三紅通道㈣度值之離均差妓大於各該顏 色通道的閾值,當發現任一像素的任一顏色通道的強度值 15 1357583 之離均差大於各該顏色通道的閾值,則該像素為一個壞 點’該像素之座標被標示為一壞點座標,該顏色通道被標 示為一壞點通道,將各該閾值、壞點座標及壞點通道儲存 在該記憶體54中。 參閱第6圖所示,使用者以數位照相設備5拍攝一系 列從全白到全黑,多張各具不同單一灰階值的樣紙p,以 產生該等樣紙P之數位影像I。嗣,數位照相設備5分別 對各該數位影像I之各像素的三顏色通道的強度值,以前 述之方法步驟進行統計及計算,進而搜尋出數位照相設備 5上全部的壞點座標及壞點通道,將數位照相設備5上全 部的壞點座標及壞點通道儲存在數位照相設備5的記憶體 54中,以做為後數位照相設備5續校正所拍攝的數位影像 之依據,爾後,該壞點處理軟體53即能依據記憶體54中 儲存的該等壞點座標及壞點通道,判斷數位照相設備5拍 攝,7、物後所產生的一數位影像上,各像素的各顏色通道 是否係一個壞點通道,將判斷為一壞點通道的強度值,用 該壞點周圍的複數個像素之對應顏色通道之強度值之一插 值取代,其中,該插值係為各該對應顏色通道之強度值之 中,介於最大與最小的強度值之間的一數值,如此,數位 照相設備5能即時地自動校正壞點,使顯示幕55能呈現經 過該壞點處理軟體53校正處理後所產生之數位影像。 據上所述,本發明之方法不僅運算程序簡單快速,且 可很容易地被編g成軟體,廣泛地朗至各種數位照相設 備上’以有效且及時地紅各該數位照相設倾產生之數 1^7583 位衫像上發生的壞點,不僅可用於各該數位照相設備在出 薇前的檢查及校正,各概健相設備在使用過—段時間 後,發生新增的壞點時,亦可用該方法檢修,且不需更換 零件’即麟j£數位照相設備壞點,能有效降低製造及維 修成本’且對使用者,每:欠使用-數位照相設備拍照 後,該數位照相設備即能立刻修正數位影像的壞點,使輸 出數位影像均無壞點,大幅地提高使用上便利性。 以上所述,僅係本發明之較佳實施例,惟,本發明所 主張之權利範圍,並不局限於此,按凡熟悉該項技藝人士, 依據本發明所揭露之技術内容,可輕易思及之等效變化, 均應屬不脫離本發明之保護範_。 【圖式簡單說明】 第1圖係產生一單一灰階值的樣紙之數位影像的示意圖; 第2圖係本發明之計算各顏色通道的強度值的平均值及標 準差的流程圖; 第3圖係本發明之搜尋數位照相設備之壞點的流程圖; 第4圖係本發明之校正數位照相設備之壞點的流程圖; 第5圖係本發明之具壞點自動校正功能之數位照相設備系 統圖;及 第6圖係產生一系列各具不同單一灰階值的樣紙之數位影 像的示意圖。 【主要元件符號說明】 17 1357583 光學裝置 ............50 感光元件 ............51 運算處理單元 ............52 壞點處理軟體 ............53 記憶體 ............54 顯示幕 ............55STD B STD R Sum _ _R2- 2 Sum R pixs pixs -1 Sum _G1 — Sum _ G2 pixs pixs -1 Sum _B2~ Sum B2 ----- pixs pixs -1 The red channel is close to the alpha of the STD_K. Alpha can be 12 1357583 through experiments to obtain 'the green channel threshold is the standard deviation STD-G alpha times' blue channel threshold is the standard deviation STD-B alpha times. In the embodiment +, 4, as shown in the third item, the steps of searching for the bad point coordinates and the dead point channel of the digital scene image 200 are described in detail as follows: (701) Input one pixel of red, green, blue, etc. The intensity values of the three color channels; (702) Calculate the difference between the intensity values of the red, green, and blue channels DR, DG, DB: DR = the intensity of the red channel - war _ 丨, ® =I intensity value of green channel -AV_G| , DB= | intensity value of blue channel - Αν_β| ; σ〇3) Determine whether the deviation of the intensity value of the red channel exceeds the threshold of the red channel, and if so, The pixel is a dead pixel, the red channel is a bad point channel, and the process proceeds to step (704). If not, the process proceeds to step (705); - (7〇4) outputs the bad point coordinate and the bad point channel, and proceeds to the step (7〇). 5). (7〇5) Determine whether the intensity difference DG of the green channel exceeds the threshold of the green channel. If yes, the pixel is a dead pixel, and the green channel is a bad point channel, and the process proceeds to step 706. ), if not, proceed to step (707); (706) turn out the bad point coordinates and the bad point channel, enter the step (7ο?). (7) Determine whether the intensity difference DB of the blue channel exceeds the threshold of the blue channel. If yes, the pixel is a dead pixel, and the blue channel is a bad channel. Go to step (708), if no, go to step (709); 13 (708) output bad point coordinates and dead point channel, enter step (7〇9); and (709) determine whether all pixels have three color channels The intensity values are all rounded, if yes, if not, go to step (7〇1) to input the intensity values of the three color channels of the next pixel. In this embodiment, before the digital camera 2 is shipped from the factory, First, use the digital camera device 2 to take a series of samples from white to black, multiple sheets of different gray scale values to generate digital images of the samples, and use a computer device to perform the second In the steps of FIG. 3 and FIG. 3, statistics and calculations are performed on each of the digital images, and all the bad point coordinates and the bad point channels on the digital camera device 2 are searched for, and all the bad point coordinates and the bad point channel records are recorded. Characteristic data of the digital camera device 2, and the feature data It is stored in the digital camera device 2 as a basis for correcting the captured digital image by the subsequent digital camera device 2. In this embodiment, after the digital camera device 2 is shipped, the user takes a scene with the digital camera device 2 Thereafter, the digital camera device 2 determines and corrects the bad point coordinates and the dead pixel channel on the digital image of the scene according to the following steps: (810) inputting a pixel coordinate; (820) according to the characteristic data Determining whether there are dead pixels in the three color channels of the pixel. If yes, proceed to step (83〇), if not, proceed to step (840); (830) when any color channel of the pixel is a dead pixel In the channel, the intensity value of the corresponding color channel of one pixel of the plurality of pixels around the dead pixel is used to replace the intensity value of the bad point channel, or one of the intensity values of the corresponding color channel of the 1357583 plurality of pixels around the dead point is used. Interpolation replaces the intensity value of the dead pixel channel, so that the intensity value of the bad point channel can be corrected. 'The interpolation is the maximum and minimum among the intensity values of the corresponding color channels. a value between the intensity values, for example: the interpolation is an average of the intensity values of the corresponding color channels of the pixels surrounding the dead point; and (840) determining whether all pixel coordinates have been input, and if so, ending, if not Go to step (810) to enter the next pixel coordinate. The steps (10)) to (10) above are repeated until all the pixels in the _digit county complete the judgment of the dead point and the correction processing. In another embodiment of the present invention, a digital camera device 5 having a dead pixel automatic correction function is shown in FIG. 5. The digital camera device 5 includes a photosensitive member 51, an optical device 50, and an arithmetic processing unit 52. a bad point processing software 53, a memory 54 and a display screen 55, wherein the photosensitive element 51 is configured to convert an optical image of a scene into a digital image to obtain a three-color channel of the digital image towel. The optical device 50 is configured to project and focus an optical image of a scene on the photosensitive element 51. The arithmetic processing unit 52 performs data calculation and data processing according to the instruction of the dead pixel processing software 53, and performs data processing and data reduction. 53 money counts the intensity value of each color channel of each pixel on a digital image, calculates the intensity value of each color channel and the standard deviation of the intensity value of the color channel multiplied by a multiple, as the color The threshold of the channel, and the difference between the three red channel (four) degrees of each pixel is greater than the threshold of each color channel, and the intensity value of any color channel of any pixel is found 15 1357 If the averaging difference of 583 is greater than the threshold of each color channel, the pixel is a dead pixel. The coordinates of the pixel are marked as a bad point coordinate, and the color channel is marked as a bad point channel, and the threshold value is bad. Point coordinates and dead point channels are stored in the memory 54. Referring to Fig. 6, the user takes a series of photo papers 5 from a full white to a full black, and a plurality of sample sheets p each having a different single gray scale value to produce a digital image I of the sample paper P.嗣, the digital camera device 5 separately calculates the intensity values of the three color channels of each pixel of each digital image I, and performs the statistics and calculations in the foregoing method steps, thereby searching for all the bad point coordinates and dead pixels on the digital camera device 5. a channel for storing all of the dead pixel coordinates and the dead pixel channel of the digital camera device 5 in the memory 54 of the digital camera device 5 as a basis for the rear digital camera device 5 to continuously correct the captured digital image, and then The dead pixel processing software 53 can determine whether the digital camera device 5 is photographed according to the dead pixel coordinates and the dead pixel channel stored in the memory 54, and whether the color channels of each pixel are on a digital image generated after the object is Is a dead pixel channel, which is determined as the intensity value of a bad point channel, and is replaced by one of the intensity values of the corresponding color channels of the plurality of pixels around the dead point, wherein the interpolation is for each corresponding color channel Among the intensity values, a value between the maximum and minimum intensity values, so that the digital camera device 5 can automatically correct the dead pixels in real time, so that the display screen 55 can present the The digital image generated after the correction processing by the dead pixel processing software 53 is performed. According to the above description, the method of the invention not only is simple and fast, but can be easily edited into a soft body, which is widely applied to various digital camera devices to generate an effective and timely red color digital camera. The number of defects in the 1^7583 shirt image can be used not only for the inspection and correction of the digital camera equipment before the wei wei, but also when the new vital phase equipment has been used for a period of time. It can also be repaired by this method, and there is no need to replace the parts, that is, the damage point of the camera can effectively reduce the manufacturing and maintenance costs, and the user can take pictures after taking pictures of the owing-digital camera. The device can immediately correct the dead pixels of the digital image, so that the output digital image has no dead pixels, which greatly improves the convenience of use. The above is only the preferred embodiment of the present invention, but the scope of the claims of the present invention is not limited thereto, and those skilled in the art can easily think according to the technical content disclosed by the present invention. And equivalent changes, should be without departing from the protection of the invention. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a digital image of a sample of a single gray scale value; FIG. 2 is a flow chart of the average value and standard deviation of the intensity values of each color channel of the present invention; 3 is a flow chart of the dead pixels of the digital photography device of the present invention; FIG. 4 is a flow chart of the dead pixels of the digital camera device of the present invention; FIG. 5 is a digital display of the automatic dot correction function of the present invention. The camera system diagram; and Fig. 6 is a schematic diagram of a series of digital images of sample papers having different single gray scale values. [Description of main component symbols] 17 1357583 Optical device............50 Photosensitive element............51 Operation processing unit......... ...52 Bad Point Processing Software............53 Memory.........54 Display Screen............ 55

樣紙 ............100、P 數位照相設備 ............2Sample paper ............100, P digital camera equipment............2

數位影像 ............200、I 數位照相設備 ............5Digital image ............200,I digital camera equipment............5

isIs

Claims (1)

1357583 十、申請專利範圍: 1. 一種校正触縣縣上伽之料,财法係應用至 一數位照相設備,包括: 用該數位照相設備拍攝至少—具有單—紐值的樣紙, 以取得該樣紙之-數位影像中每一像素之三顏色通道的 強度值’該二顏色通道係紅色通道'綠色通道及藍色通 道; 以各該像素之二顏色通道的強度值,計算出各該顏色通 道的強度值的平均值及標準差’且計算出該敦位影像之 二顏色通道的閾值,其中各該顏色通道的閾值係等於該 顏色通道的強度值的標準差乘以一倍數;及 以各該閾嗔判斷各該像素是否有一壞點,若有,則以該 壞點周圍之複數個像素之顏色通道強度值對該壞點進行 校正。 2·如請求項1所述之方法,包括計算出該數位影像上各該 像素的各該顏色通道的強度值之離均差;及 判斷母一像素的各該顏色通道的強度值之離均差是否大 於各該顏色通道的閾值,當發現一像素的任一顏色通道 的強度值之離均差大於該顏色通道的閾值,則該像素為 一個壞點,該像素之座標被標示為一壞點座標,該顏色 通道被標示為一壞點通道。 3·如睛求項2所述之方法,包括用該數位照相設備拍攝一 系列各具有不同的單一灰階值的樣紙,以產生該等樣紙 之數位影像’再分別對該等數位影像,進行統計及計算, 19 以搜尋出該等數位影像的壞點座標及壞點通道 ,進而搜 哥出該數位照相設備上全部的壞點座標及壞點通道。 4·如凊求項3職之方法’包括轉該等壞點座標及壞點 1C判斷該數位照相設備拍攝一景物後所產生的數位 影像上,各像素的各顏色通道是否為一個壞點通道。 5·如請求項4騎之綠,用-_周_複數個像素中 的一像素之對應顏色通道之強度值,取代該壞點通道的 強度值。 6.如睛求項4職之紐’帛—壞闕義概個像素之 對應顏色通道之強度值之一插值,取代該壞點通道的強 度值該插值係為各該對應顏色通道之強度值之中,介 於最大與最小的強度值之間的一數值。 7·如明求項6所述之方法,該插值為相鄰於該壞點座標的 複數個像素之對應顏色通道之強度值的平均值。 8· —種具壞點自動校正功能之數位照相設備,包括·· -感光元件,用⑽-絲f彡像轉換為—触影像,以 取得該數位縣中每-個像素之三顏色通道的強度值, 該二顏色通道係紅色通道、綠色通道及藍 一光學裝置,用以賴絲鱗投概粒在該感光元 件上; -記憶體,係供儲存數位資料,該數位資料包含壞點座 標及壞點通道; -壞點處理軟體’該壞點處理軟_根擄館存在該記憶 體之壞點座標及壞闕道,判_數位照相設備拍攝: 20 景物後所產生的數位影像上,各像素的各顏色通道是否 係一個壞點通道,將一壞點通道的強度值,用該壞點周 圍的複數個像素之對應顏色通道之強度值之一插值取 代’其中’該插值係為各該對應顏色通道之強度值之中, 介於最大與最小的強度值之間的一數值; 一運算處理單元,係依據該壞點處理軟體的指令,進行 數據運算及資料處理;及 ·‘、’頁示幕,係用以呈現經過該壞點處理軟體校正處理後 所產生之數位影像。 如π求項8所述之數位照相設備,其中該壞點處理軟體 月統叶一數位影像上各像素的三顏色通道的強度值,計 算出各該顏色通道的強度值的平均值及標準差,且計算 出該數位影像之三顏色通道_值,其中各該顏色通道 的閾值係等於該顏色通道的強度值的標準差乘以一倍 數,且计异出該數位影像上各該像素的各該顏色通道的 強度值之離均差’及靖每—像素的各顏色通道的強度 值之離均差是否大於各該顏色通道的閾值,當發現一像 素的-顏色通道的強度值之離均差大於該顏色通道的閾 值則該像素為-個壞點’該像素之座標被標示為一壞 點座標’該顏色通道漏示為—壞輯道,且將各該閾 值、壞點座標及壞點通道儲存在該記憶體中。 211357583 X. The scope of application for patents: 1. A method for correcting the materials of Shangga County, which is applied to a digital camera, including: using the digital camera to take at least a sample with a single-value value to obtain The intensity value of the three color channels of each pixel in the sample-digital image 'the two color channels are the red channel' green channel and the blue channel; and the intensity values of the two color channels of each pixel are calculated The average value and the standard deviation of the intensity values of the color channels' and calculate the threshold of the two color channels of the image, wherein the threshold of each color channel is equal to the standard deviation of the intensity values of the color channel multiplied by a multiple; Each of the pixels is used to determine whether each pixel has a dead pixel, and if so, the bad point is corrected by the color channel intensity value of the plurality of pixels around the dead point. 2. The method of claim 1, comprising calculating an average deviation of intensity values of each of the color channels of the pixel on the digital image; and determining an intensity of each of the color channels of the parent pixel. Whether the difference is greater than the threshold of each color channel. When the difference between the intensity values of any color channel of one pixel is found to be greater than the threshold of the color channel, the pixel is a dead pixel, and the coordinates of the pixel are marked as a bad Point coordinates, the color channel is marked as a bad point channel. 3. The method of claim 2, comprising: using the digital camera device to take a series of sample papers each having a different single grayscale value to generate a digital image of the sample paper and then separately digitizing the digital image , for statistics and calculations, 19 to search for the bad point coordinates and the bad point channel of the digital image, and then search for all the bad point coordinates and the bad point channel on the digital camera device. 4. If the method of pleading for the job 3 includes changing the coordinates of the bad point and the bad point 1C to determine whether the color channel of each pixel is a bad point channel on the digital image generated by the digital camera device after shooting a scene. . 5. If the request item 4 rides green, the intensity value of the corresponding color channel of one pixel in the -_week _ plural pixels is substituted for the intensity value of the bad point channel. 6. If the value of the corresponding color channel of the pixel of the 4th job of the 4th job is interpolated, replace the intensity value of the channel of the bad point, and the interpolation is the intensity value of each corresponding color channel. , a value between the maximum and minimum intensity values. 7. The method of claim 6, wherein the interpolation is an average of intensity values of corresponding color channels of a plurality of pixels adjacent to the bad point coordinates. 8·—a digital camera device with a dead-end automatic correction function, including a photosensitive element, which converts a (10)-filament image into a touch image to obtain a three-color channel for each pixel in the digital county. Intensity value, the two-color channel is a red channel, a green channel, and a blue-optical device for concentrating on the photosensitive element; - a memory for storing digital data, the digital data containing dead pixel coordinates And the bad point channel; - the bad point processing software 'the bad point processing soft _ root 掳 存在 存在 存在 该 该 该 该 该 该 该 该 该 该 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数 数Whether each color channel of each pixel is a bad point channel, and the intensity value of a bad point channel is replaced by one of the intensity values of the corresponding color channels of the plurality of pixels around the dead point, and the interpolation is replaced by Among the intensity values of the corresponding color channels, a value between the maximum and minimum intensity values; an arithmetic processing unit that performs data operations and data according to the instructions of the bad point processing software Li; and * ',' screen page shown, the digital image system to present after the singular points of the generated correction processing software. The digital camera device of claim 8, wherein the dead point processes the intensity values of the three color channels of each pixel on the digital image of the software, and calculates the average value and standard deviation of the intensity values of the color channels. And calculating a three color channel_value of the digital image, wherein a threshold of each color channel is equal to a standard deviation of the intensity value of the color channel multiplied by a multiple, and each pixel of the digital image is counted Whether the difference between the intensity values of the color channels and the intensity values of the color channels of each pixel is greater than the threshold of each color channel, when the intensity values of the color channels of one pixel are found If the difference is greater than the threshold of the color channel, then the pixel is a dead pixel. The coordinates of the pixel are marked as a bad point coordinate. The color channel is leaked as a bad track, and each of the threshold, the bad point coordinates, and the bad The dot channel is stored in this memory. twenty one
TW97113903A 2008-04-17 2008-04-17 Method of correcting bad spots for digital camera TWI357583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97113903A TWI357583B (en) 2008-04-17 2008-04-17 Method of correcting bad spots for digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97113903A TWI357583B (en) 2008-04-17 2008-04-17 Method of correcting bad spots for digital camera

Publications (2)

Publication Number Publication Date
TW200945216A TW200945216A (en) 2009-11-01
TWI357583B true TWI357583B (en) 2012-02-01

Family

ID=44869660

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97113903A TWI357583B (en) 2008-04-17 2008-04-17 Method of correcting bad spots for digital camera

Country Status (1)

Country Link
TW (1) TWI357583B (en)

Also Published As

Publication number Publication date
TW200945216A (en) 2009-11-01

Similar Documents

Publication Publication Date Title
TWI289290B (en) Display device and imaging method
EP3771204A1 (en) Projection system and image uniformity compensation method thereof
US20120105590A1 (en) Electronic equipment
CN101207833A (en) Method for checking optical centre bias of lens of digital camera
TW200421162A (en) Image processing system, projector, information memory media and image processing method
JP6351231B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US8284278B2 (en) Image processing apparatus, imaging apparatus, method of correction coefficient calculation, and storage medium storing image processing program
US20050275904A1 (en) Image capturing apparatus and program
JP2013235054A (en) Focus detection device and image capturing device
JP2009017475A (en) Defective pixel detecting device, imaging apparatus, and method for detecting defective pixel
JP2007323649A (en) Input method for inputting point to system, setting method and proofreading method
TW201919385A (en) Defective pixel compensation method and device
CN106067937A (en) Camera lens module array, image sensering device and digital zooming image interfusion method
JP4244969B2 (en) Pixel inspection method, pixel correction method, processing device, program, and recording medium
US8542919B2 (en) Method and system for correcting lens shading
JP4680639B2 (en) Image processing apparatus and processing method thereof
TWI357583B (en) Method of correcting bad spots for digital camera
WO2018192096A1 (en) Detection device, method and system
JP4940661B2 (en) Image processing apparatus, image processing method, and imaging apparatus
US20150092080A1 (en) Image processing apparatus, imaging apparatus, and image processing method
JP5371135B2 (en) Luminance correction apparatus, luminance correction system, and luminance correction method
WO2021017979A1 (en) Grayscale intensity data processing method, storage medium, and terminal apparatus
US20200319453A1 (en) Chromatic Aberration Adjusting Method and Apparatus of Detection Device
JP6209950B2 (en) Color reproduction characteristic creation device, color reproduction characteristic creation system, program, and color reproduction characteristic creation method
JP2010166236A (en) Image processor, imaging apparatus and image processing program