TWI387329B - Method of creating histogram according a digital image - Google Patents

Method of creating histogram according a digital image Download PDF

Info

Publication number
TWI387329B
TWI387329B TW97148763A TW97148763A TWI387329B TW I387329 B TWI387329 B TW I387329B TW 97148763 A TW97148763 A TW 97148763A TW 97148763 A TW97148763 A TW 97148763A TW I387329 B TWI387329 B TW I387329B
Authority
TW
Taiwan
Prior art keywords
partial
handheld device
values
average
reference picture
Prior art date
Application number
TW97148763A
Other languages
Chinese (zh)
Other versions
TW201023635A (en
Inventor
ye lin Zhou
Xu Jun Qiu
Tony Tsai
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 TW97148763A priority Critical patent/TWI387329B/en
Publication of TW201023635A publication Critical patent/TW201023635A/en
Application granted granted Critical
Publication of TWI387329B publication Critical patent/TWI387329B/en

Links

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

根據數位影像產生直方圖的方法Method for generating histograms from digital images

一種直方圖計算方法,特別是指一種將圖片分解成複數個局部圖片,對每一局部圖片採樣並將採樣數值轉換為直方圖的計算方法。A histogram calculation method, in particular, a calculation method for decomposing a picture into a plurality of partial pictures, sampling each partial picture and converting the sampled values into a histogram.

就現下的數位相機或數位攝影機在拍攝相片、圖片或影片前,會先拍攝一基準影像,依據基準影像的亮度資訊產生表示全像素之亮度分布的直方圖,根據一計算方式產生色彩飽和度、曝光度、白平衡等調整用的數值。數位相機或數位攝影機會根據此等數值調整自身的拍攝參數,再進行拍攝,以避免拍攝的相片、圖片或影片產生色偏、光影、反白、影像模糊等問題。In the current digital camera or digital camera, before taking a photo, a picture or a video, a reference image is taken, and a histogram indicating the brightness distribution of the full pixel is generated according to the brightness information of the reference image, and the color saturation is generated according to a calculation method. The value used for adjustment such as exposure and white balance. The digital camera or digital camera adjusts its shooting parameters according to these values, and then shoots to avoid problems such as color shift, light, shadow, and blurred image of photos, pictures or videos.

然先前技術乃具有可更加完善之處,即現行市面上的手機雖具有照相功能,但手機廠商在製造手機時,會先行建立調整參數於手機中,因此手機或手機的使用者僅能使用內建、制式的調整參數,未有計算直方圖以供調整拍攝參數的能力。而且,手機的顯示畫面一般過小,用戶有時無法分辨照片的曝光、色彩飽和度及白平衡等問題。因此,手機的相機拍攝出來的照片乃會有色偏、光影、反白、影像模糊等等問題。However, the prior art has more perfection, that is, although the mobile phone currently on the market has a camera function, when the mobile phone manufacturer manufactures the mobile phone, the adjustment parameters are first established in the mobile phone, so the user of the mobile phone or the mobile phone can only use the camera. The adjustment parameters of the construction and system have no ability to calculate the histogram for adjusting the shooting parameters. Moreover, the display screen of the mobile phone is generally too small, and the user sometimes cannot distinguish the exposure, color saturation, and white balance of the photo. Therefore, the photos taken by the camera of the mobile phone have problems such as color shift, light and shadow, reverse white, blurred image and the like.

有鑑於此,本發明所欲解決之問題係在於提供一種供計算出拍照用的調整參數,或供使用者參考的直方圖的產生方法。In view of the above, the problem to be solved by the present invention is to provide a method for generating an adjustment parameter for photographing or a histogram for reference by a user.

為解決上述方法問題,本發明所提供之技術手段係揭露一種根據數位影像產生直方圖的方法。此方法係應用於具有拍攝能力之手持裝置,手持裝置係先拍攝一基準圖片,再將基準圖片劃分成複數個局部圖,計算出每一局部圖之一採樣值,最後將所有採樣值轉換為一直方圖。In order to solve the above method problem, the technical means provided by the present invention discloses a method for generating a histogram according to a digital image. The method is applied to a handheld device with shooting capability. The handheld device first captures a reference picture, divides the reference picture into a plurality of partial images, calculates one sample value of each partial image, and finally converts all sample values into Always squared.

本發明係具有較先前技術更為卓越的功效:The present invention has superior effects over the prior art:

其一,快速的產生直方圖於手持裝置中,供使用者參考以調整手持裝置的拍攝參數。或者,業者可於手持裝置內設計一調整機制,令手持裝置根據直方圖透過調整機制調整自身的拍攝參數,以提升手持裝置的適用性。First, a histogram is quickly generated in the handheld device for reference by the user to adjust the shooting parameters of the handheld device. Alternatively, the operator can design an adjustment mechanism in the handheld device to enable the handheld device to adjust its own shooting parameters according to the histogram through the adjustment mechanism to enhance the applicability of the handheld device.

其二,此方法中,基準圖片會被劃分成複數個局部圖,手持裝置再逐一的計算各局部圖所屬的採樣值,而採樣值的數量係等於局部圖的數量,而非一般對每一像素直接採樣以進行直方圖的轉換與計算,因此直方圖產生過程中,同一時間並不會有大量的資料需進行計算,同樣適用於硬體能力較低,無法計算龐大的資料量的手持裝置,進而提升手持裝置的適用性。Second, in this method, the reference picture is divided into a plurality of partial maps, and the handheld device calculates the sample values to which the partial maps belong one by one, and the number of sampled values is equal to the number of partial maps, instead of the general The pixels are directly sampled for the conversion and calculation of the histogram. Therefore, during the histogram generation process, there is not a large amount of data to be calculated at the same time, and the same applies to the handheld device with low hardware capability and unable to calculate a large amount of data. , thereby improving the applicability of the handheld device.

為使對本發明之終點、構造特徵及其功能有進一步之了解,茲配合相關實施例及圖式詳細說明如下:In order to further understand the end point, structural features and functions of the present invention, the related embodiments and drawings are described in detail as follows:

請參照圖1,其為本發明實施例之流程示意圖。此方法適用於可拍攝數位影像之手持裝置,此方法之流程如下:Please refer to FIG. 1 , which is a schematic flowchart of an embodiment of the present invention. This method is suitable for handheld devices that can capture digital images. The process of this method is as follows:

首先,使用者先利用手持裝置先拍攝一基準圖片100(步驟S110)。First, the user first captures a reference picture 100 by using the handheld device (step S110).

請參照圖2,其為本發明實施例之基準圖片示意圖,此基準圖片100可為二種類型,一者為使用者先利用手持裝置拍攝出一數位相片,以形成數位圖檔,或暫存檔儲存於手持裝置。Please refer to FIG. 2 , which is a schematic diagram of a reference picture according to an embodiment of the present invention. The reference picture 100 can be of two types. One is that the user first captures a digital photo by using the handheld device to form a digital image file, or temporarily archives Stored in a handheld device.

另一者,此基準圖片100可為手持裝置之拍攝鏡頭所對準拍攝位置的投影,手持裝置可先將此投影儲存形成暫存檔並儲存於手持裝置的記憶體(如記憶卡、快閃記憶體、或暫存器)中。In addition, the reference picture 100 can be a projection of the shooting position of the handheld device, and the handheld device can first store the projection to form a temporary storage and store the memory in the handheld device (such as a memory card, flash memory). In the body, or in the scratchpad).

手持裝置將基準圖片100劃分成複數個局部圖110(步驟S120)而手持裝置劃分基準圖片100的方式如下:The handheld device divides the reference picture 100 into a plurality of partial views 110 (step S120) and the handheld device divides the reference picture 100 as follows:

其一,由手持裝置設定一劃分區域,此劃分區域為長方形或正方形,但不以此二種方式為限,只要是邊界可完整重接並層層相疊的形狀即可,如正三邊形與正六邊形也可作為劃分區域的形狀。First, a divided area is set by the handheld device, and the divided area is a rectangle or a square, but is not limited to the two methods, as long as the boundary can be completely reconnected and stacked in layers, such as a regular triangle. The regular hexagon can also be used as the shape of the divided area.

假設劃分區域為正方形時,手持裝置根據此劃分區域劃分基準圖片100,產生複數個由長方形與正方形所組成的局部圖110。Assuming that the divided area is a square, the handheld device divides the reference picture 100 according to the divided area, and generates a plurality of partial maps 110 composed of rectangles and squares.

長方形局部圖110的產生,是因為下列幾種原因造成:(1)基準圖片100的長度不為劃分區域之長度的倍數;(2)基準圖片100的寬度不為劃分區域之寬度的倍數;(3)基準圖片100的長度不為劃分區域之寬度的倍數;(4)基準圖片100的寬度不為劃分區域之長度的倍數;(5)基準圖片100的長度不為劃分區域之長度的倍數,且基準圖片100的寬度不為劃分區域之寬度的倍數,即(1)、(2)的情形同時存在;(6)基準圖片100的長度不為劃分區域之寬度的倍數,且基準圖片100的寬度不為劃分區域之長度的倍數,即(3)、(4)的情形同時存在。The generation of the rectangular partial map 110 is caused by the following reasons: (1) the length of the reference picture 100 is not a multiple of the length of the divided area; (2) the width of the reference picture 100 is not a multiple of the width of the divided area; 3) the length of the reference picture 100 is not a multiple of the width of the divided area; (4) the width of the reference picture 100 is not a multiple of the length of the divided area; (5) the length of the reference picture 100 is not a multiple of the length of the divided area, The width of the reference picture 100 is not a multiple of the width of the divided area, that is, the cases of (1) and (2) exist simultaneously; (6) the length of the reference picture 100 is not a multiple of the width of the divided area, and the reference picture 100 The width is not a multiple of the length of the divided area, that is, the cases of (3) and (4) exist simultaneously.

但劃分區域為長方形時,也可能因為上述原因產生與劃分區域之面積不同的局部圖110,在此即不贅述。However, when the divided area is a rectangle, the partial map 110 different from the area of the divided area may be generated for the above reasons, and will not be described here.

其二,由手持裝置計算基準圖片100的長度與寬度,再將其等分成複數個相同形狀或相異形狀的局部圖110。Second, the length and width of the reference picture 100 are calculated by the handheld device, and then divided into a plurality of partial patterns 110 of the same shape or different shapes.

請依序參照圖3A與圖3B,圖3A係為本發明第一實施例之基準圖片正方形切割示意圖,圖3B係為本發明第一實施例之基準圖片正方形切割完成示意圖。假設,基準圖的長度與寬度各為100像素(pixel)單位與50像素(pixel)單位。手持裝置將基準圖片100的長度除以20,寬度除以10,以劃分出長度與寬度皆為5像素單位(即正方形)的局部圖110。Referring to FIG. 3A and FIG. 3B, FIG. 3A is a schematic diagram of a square cut of a reference picture according to a first embodiment of the present invention, and FIG. 3B is a schematic diagram of a square cut of a reference picture according to the first embodiment of the present invention. Assume that the length and width of the reference map are 100 pixel units and 50 pixel units, respectively. The handheld device divides the length of the reference picture 100 by 20 and divides the width by 10 to define a partial map 110 having a length and a width of 5 pixel units (i.e., squares).

又例,請依序參照圖4A與圖4B,圖4A係為本發明第二實施例之基準圖片正方形切割示意圖,圖4B係為本發明第二實施例之基準圖片正方形切割完成示意圖。基準圖片100的長度與寬度各為100像素(pixel)單位與50像素(pixel)單位,手持裝置將基準圖片100的長度除以10,寬度除以10,以劃分出長度為10像素單位與寬度為5像素單位(即長方形)的局部圖。For example, FIG. 4A is a schematic diagram of a square cut of a reference picture according to a second embodiment of the present invention, and FIG. 4B is a schematic diagram of a square cut of a reference picture according to a second embodiment of the present invention. The length and width of the reference picture 100 are 100 pixel units and 50 pixel units, and the handheld device divides the length of the reference picture 100 by 10 and the width by 10 to divide the length into 10 pixel units and widths. A partial map of 5 pixel units (ie, a rectangle).

計算出每一局部圖110之一採樣值(步驟S130)。此步驟中,手持裝置會先建立一個採樣表,此採樣表的欄位數量與局部圖110的數量相同。One sample value of each partial map 110 is calculated (step S130). In this step, the handheld device first establishes a sampling table having the same number of fields as the partial map 110.

接著,手持裝置會將所有局部圖110進行排列,建立一個讀取順序。之後,手持裝置會依序取得一未採樣之局部圖110,然後讀取此局部圖110中,各個像素的三原色數值。手持裝置會累加未採樣之局部圖110中,所有像素的三原色數值以形成三個原色總值,此三原色總值係個別對應上述的三原色。Next, the handheld device will arrange all of the partial maps 110 to establish a read order. Thereafter, the handheld device sequentially acquires an unsampled partial map 110, and then reads the three primary color values of the respective pixels in the partial map 110. The handheld device accumulates the three primary color values of all pixels in the unsampled partial map 110 to form a total of three primary colors, the three primary color values individually corresponding to the above three primary colors.

舉例來說,當前讀取的局部圖110的長與寬各為10像素單位,故此未取樣的局部圖110即有10X10,也就是100像素單位。手持裝置會計算出此100像素單位中,每一個像素代表的三原色數值,也就是RGB值(R,RED,紅色;G,GREEN,綠色;B,BLUE,藍色)。因此,100像素單位各具有100個R原色數值、100個G原色數值與100個B原色數值。手持裝置會把100個R原色數值累加成一個R原色總值,把100個G原色數值累加成一個G原色總值,把100個B原色數值累加成一個B原色總值。For example, the length and width of the currently read partial map 110 are each 10 pixel units, so the unsampled partial map 110 has 10×10, that is, 100 pixel units. The handheld device calculates the three primary color values represented by each pixel in the 100 pixel unit, that is, the RGB values (R, RED, red; G, GREEN, green; B, BLUE, blue). Therefore, 100 pixel units each have 100 R primary color values, 100 G primary color values, and 100 B primary color values. The handheld device will accumulate 100 R primary color values into a total R primary color value, accumulate 100 G primary color values into a G primary color total value, and accumulate 100 B primary color values into a B primary color total value.

然後,手持裝置會根據未採樣之局部圖110之所有像素的數量與所有原色總值計算出複數個原色平均值。所謂原色平均值即指原色總值除以像素的數量產生的數值,就本例進行解說,原色平均值分別有R原色平均值,即R原色總值除以100(像素數量);G原色平均值,即G原色總值除以100(像素數量);B原色平均值,即B原色總值除以100(像素數量)。而原色平均值即為R原色平均值、G原色平均值與B原色平均值的總和平均值。Then, the handheld device calculates a plurality of primary color averages based on the number of all pixels of the unsampled partial map 110 and the total values of all primary colors. The so-called primary color average refers to the value of the total color of the primary color divided by the number of pixels. In this example, the average of the primary colors has the average value of the R primary colors, that is, the total value of the R primary colors divided by 100 (the number of pixels); The value, that is, the total value of the G primary colors divided by 100 (the number of pixels); the B primary color average, that is, the total value of the B primary colors divided by 100 (the number of pixels). The average color of the primary color is the sum of the average values of the R primary colors, the average of the primary colors of G, and the average of the primary colors of B.

之後,手持裝置會轉換所有原色平均值與局部平均值為前述的採樣值,並導入採樣表的對應欄位中。也就是說,當前採樣第1個順序的局部圖110,手持裝置即將此次的採樣值導入採樣表的第1個欄位;當前採樣第53個順序的局部圖110,手持裝置即將此次的採樣值導入採樣表的第53個欄位,以此類推。After that, the handheld device converts all the primary color averages and local average values into the aforementioned sample values and imports them into the corresponding fields of the sampling table. That is to say, the current partial image 110 of the first sequence is sampled, and the handheld device introduces the current sampling value into the first field of the sampling table; the current sampling of the 53th sequential partial image 110, the handheld device is about to be this time. The sampled value is imported into the 53rd field of the sample table, and so on.

然後,手持裝置會判斷所有局部圖110是否全數採樣完成,當判斷為是,即停止對局部圖110進行採樣。當判斷為否,即按照尚未採樣之局部圖110的順序,依序對未採樣之局部圖110進行採樣。Then, the handheld device determines whether all of the partial maps 110 have been completely sampled. When the determination is yes, the sampling of the partial map 110 is stopped. When the determination is no, the unsampled partial map 110 is sequentially sampled in the order of the partial maps 110 that have not been sampled.

然上述步驟中,為加快採樣值的過程,手持裝置可採用一多執行線(multi-thread)計算方法,或者是採用一多工(multi-task)或分時(time-sharing)計算方法,以實質上同時計算二個以上的局部圖110之採樣值。However, in the above steps, in order to speed up the process of sampling values, the handheld device may adopt a multi-thread calculation method, or adopt a multi-task or time-sharing calculation method. The sample values of the two or more partial maps 110 are calculated substantially simultaneously.

此外,採樣值係為RGB565格式、RGB444格式、RGB555格式、RGB666或RGB332格式。每一採樣值內含有R原色平均值、G原色平均值與B原色平均值,一般是由雙字節(Double WORD,DWORD)的資料形式表示此等數值,每一個原色平均值的數值為0至31。In addition, the sampled values are in RGB565 format, RGB444 format, RGB555 format, RGB666 or RGB332 format. Each sample value contains the R primary color average, the G primary color average and the B primary color average. Generally, these values are represented by double-byte (DWORD) data, and the average value of each primary color is 0. To 31.

最後,手持裝置會將所有採樣值轉換為一直方圖(步驟S140)。此步驟中,手持裝置會依據採樣表的欄位順序,導出採樣表的採樣值至一直方圖的數據結構。就本實施例,此直方圖的數據結構為:Finally, the handheld device converts all sampled values into a histogram (step S140). In this step, the handheld device derives the sampled value of the sampling table to the data structure of the histogram according to the field order of the sampling table. In this embodiment, the data structure of the histogram is:

Hist{R(n),G(n),B(n),W(n)};Hist[32]。Hist{R(n), G(n), B(n), W(n)}; Hist[32].

上列數據結構中,Hist係指Histogram,即直方圖的英文名稱,R(n)係指R原色平均值,G(n)係指G原色平均值,B(n)係指B原色平均值,W(n)係指一局部平均值,n係指當前採樣值所屬的採樣表的欄位順序,同時也代表局部圖110的順序。此W(n)係指第n個局部圖110對應的局部平均值。此局部平均值係為第n個局部圖110的R(n),G(n),B(n)三個原色平均值的平均數。In the above data structure, Hist refers to the Histogram, the English name of the histogram, R(n) refers to the R primary color average, G(n) refers to the G primary color average, and B(n) refers to the B primary color average. W(n) refers to a local average, and n refers to the field order of the sampling table to which the current sample value belongs, and also represents the order of the partial map 110. This W(n) refers to the local average corresponding to the nth partial map 110. This local average is the average of the average of the three primary colors of R(n), G(n), and B(n) of the nth partial map 110.

請參照圖5,其為本發明實施例之直方圖顯示示意圖。手持裝置所顯示的直方圖,係具有四個曲線,而產生直方圖所參照的數值個數,係與局部圖110的數量相同。因此,手持裝置可為硬體效能不高,但具有簡易的嵌入式系統的個人數位助理、手機,或者為安裝有如Windows Mobile或Windows CE般可執行多執行線(Multi-Thread)、進行多工(Multi-Task)或分時(time-sharing)等計算的智慧型手機。Please refer to FIG. 5 , which is a schematic diagram of a histogram display according to an embodiment of the present invention. The histogram displayed by the handheld device has four curves, and the number of values referred to by the histogram is the same as the number of the partial map 110. Therefore, the handheld device can be a personal digital assistant with a simple embedded system, a mobile phone, or a multi-thread capable of executing a multi-thread like Windows Mobile or Windows CE. (Multi-Task) or time-sharing calculations such as smart phones.

雖然本發明以前述之較佳實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,所作更動與潤飾之等效替換,仍為本發明之專利保護範圍內。While the present invention has been described above in terms of the preferred embodiments thereof, it is not intended to limit the invention, and the equivalent of the modification and retouching of the present invention is still within the spirit and scope of the present invention. Within the scope of patent protection of the present invention.

100...基準圖片100. . . Benchmark picture

110...局部圖110. . . Partial view

圖1係本發明實施例之流程示意圖;1 is a schematic flow chart of an embodiment of the present invention;

圖2係本發明實施例之基準圖片示意圖;2 is a schematic diagram of a reference picture of an embodiment of the present invention;

圖3A係本發明第一實施例之基準圖片正方形切割示意圖;3A is a schematic view showing a square cut of a reference picture according to a first embodiment of the present invention;

圖3B係本發明第一實施例之基準圖片正方形切割完成示意圖;3B is a schematic view showing the completion of the square cut of the reference picture according to the first embodiment of the present invention;

圖4A係本發明第二實施例之基準圖片長方形切割示意圖;4A is a schematic view showing a rectangular cut of a reference picture according to a second embodiment of the present invention;

圖4B係本發明第二實施例之基準圖片長方形切割完成示意圖;以及4B is a schematic view showing completion of rectangular cutting of a reference picture according to a second embodiment of the present invention;

圖5係本發明實施例之直方圖顯示示意圖。FIG. 5 is a schematic diagram showing a histogram display of an embodiment of the present invention.

Claims (11)

一種根據數位影像產生直方圖的方法,其應用於一可拍攝數位影係之手持裝置,該方法包含:拍攝一基準圖片;將該基準圖片劃分成複數個局部圖;計算出每一該等局部圖之一採樣值;取得一未採樣之局部圖;累加該未採樣之局部圖之複數個像素的三原色數值,以形成三個原色總值分別對應該三原色;根據該未採樣之局部圖之該等像素的數量與該等原色總值計算出複數個原色平均值;轉換該等原色平均值為該採樣值;當判斷未計算出該等局部圖的全數採樣值時,重複執行該取得一未採樣之局部圖直到轉換出一採樣值等步驟;以及將該等採樣值轉換為一直方圖。 A method for generating a histogram according to a digital image, which is applied to a handheld device capable of capturing a digital image system, the method comprising: capturing a reference picture; dividing the reference picture into a plurality of partial images; and calculating each of the partial portions a sampled value of the image; obtaining an unsampled partial image; accumulating the three primary color values of the plurality of pixels of the unsampled partial image to form three primary color values corresponding to the three primary colors respectively; according to the unsampled partial image Calculating a plurality of primary color average values for the number of equal pixels and the total value of the primary colors; converting the average of the primary colors to the sampled value; and when determining that the full sample values of the partial images are not calculated, repeating the obtaining Sampling a partial map until a step of converting a sample value; and converting the sampled values to a histogram. 如申請專利範圍第1項所述之方法,其中各該等原色平均值分別為各該等原色總值除以該等像素之數量。 The method of claim 1, wherein the average of the primary colors is the total value of each of the primary colors divided by the number of the pixels. 如申請專利範圍第1項所述之方法,其中該直方圖係顯示每一該等局部圖之一局部平均值,各該等局部平均值係為各該等局部圖之該等原色平均值的一平均數。 The method of claim 1, wherein the histogram shows a local average of each of the partial maps, each of the local averages being the average of the primary colors of each of the partial maps. An average. 如申請專利範圍第1項所述之方法,其中該計算出每一 該等局部圖之一採樣值步驟中,該手持裝置係採用一多執行線(multi-thread)計算方法以同時計算二個以上之該等局部圖之採樣值。 The method of claim 1, wherein the calculation is performed In one of the sampling values of the partial maps, the handheld device uses a multi-thread calculation method to simultaneously calculate the sample values of the two or more of the partial maps. 如申請專利範圍第1項所述之方法,其中該計算出每一該等局部圖之一採樣值步驟中,該手持裝置係採用一多工(multi-task)計算方法以同時計算二個以上之該等局部圖之採樣值。 The method of claim 1, wherein in the step of calculating a sample value for each of the partial maps, the handheld device uses a multi-task calculation method to simultaneously calculate two or more The sampled values of the partial maps. 如申請專利範圍第1項所述之方法,其中該採樣值係為RGB565格式、RGB444格式、RGB555格式、RGB666或RGB332格式。 The method of claim 1, wherein the sampled value is RGB565 format, RGB444 format, RGB555 format, RGB666 or RGB332 format. 如申請專利範圍第1項所述之方法中,其中該等局部圖之形狀係選自於由長方形與正方形所組成之群組。 The method of claim 1, wherein the shape of the partial map is selected from the group consisting of a rectangle and a square. 如申請專利範圍第1項所述之方法,其中該將該基準圖片劃分成複數個局部圖步驟中,該手持裝置計算該基準圖片之長度與寬度,以規劃出具有相同長度,及具相同寬度之該等局部圖。 The method of claim 1, wherein the step of dividing the reference picture into a plurality of partial maps, the handheld device calculating the length and width of the reference picture to plan to have the same length and the same width These partial maps. 如申請專利範圍第1項所述之方法,其中該採樣值為雙字節格式(Double Word;DWORD)。 The method of claim 1, wherein the sample value is a double-byte format (Double Word; DWORD). 如申請專利範圍第1項所述之方法,其中該手持裝置係為個人數位助理。 The method of claim 1, wherein the handheld device is a personal digital assistant. 如申請專利範圍第1項所述之方法,其中該手持裝置係為手機。The method of claim 1, wherein the handheld device is a mobile phone.
TW97148763A 2008-12-15 2008-12-15 Method of creating histogram according a digital image TWI387329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97148763A TWI387329B (en) 2008-12-15 2008-12-15 Method of creating histogram according a digital image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97148763A TWI387329B (en) 2008-12-15 2008-12-15 Method of creating histogram according a digital image

Publications (2)

Publication Number Publication Date
TW201023635A TW201023635A (en) 2010-06-16
TWI387329B true TWI387329B (en) 2013-02-21

Family

ID=44833481

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97148763A TWI387329B (en) 2008-12-15 2008-12-15 Method of creating histogram according a digital image

Country Status (1)

Country Link
TW (1) TWI387329B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060147112A1 (en) * 1999-03-12 2006-07-06 Electronics And Telecommunications Research Institute Method for generating a block-based image histogram
US20070183660A1 (en) * 2006-02-08 2007-08-09 Samsung Electronics Co., Ltd. Apparatus and method for histogram analysis of image and luminance compensation apparatus using the same
US20070196013A1 (en) * 2006-02-21 2007-08-23 Microsoft Corporation Automatic classification of photographs and graphics
US20080312874A1 (en) * 2007-06-13 2008-12-18 Nvidia Corporation Efficient Histogram Generation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060147112A1 (en) * 1999-03-12 2006-07-06 Electronics And Telecommunications Research Institute Method for generating a block-based image histogram
US20070183660A1 (en) * 2006-02-08 2007-08-09 Samsung Electronics Co., Ltd. Apparatus and method for histogram analysis of image and luminance compensation apparatus using the same
US20070196013A1 (en) * 2006-02-21 2007-08-23 Microsoft Corporation Automatic classification of photographs and graphics
US20080312874A1 (en) * 2007-06-13 2008-12-18 Nvidia Corporation Efficient Histogram Generation

Also Published As

Publication number Publication date
TW201023635A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
US11375128B2 (en) Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium
US8570402B2 (en) Imaging apparatus for obtaining a user-intended image when orientation of the imaging apparatus changes in applying a special effect that changes the image quality in a set direction
US7646400B2 (en) Method and apparatus for forming a panoramic image
JP4160060B2 (en) System and method for improving image capture capability
JP5660341B2 (en) Imaging apparatus and imaging method
US9055219B2 (en) Image editing device and image editing method
US9270888B2 (en) Image processing apparatus and control method thereof
US8493458B2 (en) Image capture apparatus and image capturing method
WO2016011877A1 (en) Method for filming light painting video, mobile terminal, and storage medium
US9195880B1 (en) Interactive viewer for image stacks
CN105574813A (en) Image processing method and device
US8384795B2 (en) Digital image signal processing method and apparatus, and medium having recorded thereon the method
US8649561B2 (en) Subject designating device and subject tracking apparatus
CN102510502B (en) Method and system for generating high-dynamic-range image
JP2011191860A (en) Imaging apparatus, imaging processing method, and program
KR101110725B1 (en) Candidate image presenting method using thumbnail image and image signal processing device and imaging device performing the same
JP2007259411A (en) Exposure determination apparatus and method of determining same
TWI387329B (en) Method of creating histogram according a digital image
JP5146015B2 (en) Imaging apparatus and imaging method
WO2022198396A1 (en) Exposure control method and apparatus
JP2013051516A (en) Imaging device and determination method, and program
JP4081609B2 (en) Imaging device
JP2004222143A (en) Image pickup device and program
JP2008022333A (en) Imaging device and imaging method
JP2011253099A (en) Focus detector