TWI558194B - Calculating method of luminance of image - Google Patents

Calculating method of luminance of image Download PDF

Info

Publication number
TWI558194B
TWI558194B TW104130981A TW104130981A TWI558194B TW I558194 B TWI558194 B TW I558194B TW 104130981 A TW104130981 A TW 104130981A TW 104130981 A TW104130981 A TW 104130981A TW I558194 B TWI558194 B TW I558194B
Authority
TW
Taiwan
Prior art keywords
adjustment
picture
matrix
value
brightness
Prior art date
Application number
TW104130981A
Other languages
Chinese (zh)
Other versions
TW201713104A (en
Inventor
陳聖凱
張紹興
嚴志彬
Original Assignee
瑞昱半導體股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 瑞昱半導體股份有限公司 filed Critical 瑞昱半導體股份有限公司
Priority to TW104130981A priority Critical patent/TWI558194B/en
Application granted granted Critical
Publication of TWI558194B publication Critical patent/TWI558194B/en
Publication of TW201713104A publication Critical patent/TW201713104A/en

Links

Landscapes

  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Description

畫面亮度的計算方法 Method for calculating screen brightness

本案涉及一種方法。具體而言,本案涉及一種畫面亮度的計算方法。 This case involves a method. Specifically, the present invention relates to a method for calculating the brightness of a picture.

隨著電子技術的發展,數位影像已廣泛地應用在人們的生活當中。 With the development of electronic technology, digital imaging has been widely used in people's lives.

典型的數位影像裝置可利用光電轉換程序以及訊號處理形成初步影像,並利用自動曝光、自動對焦、自動白平衡等程序對初步影像進行處理,以產生使用者所見的數位影像。其中,自動曝光程序可決定數位影像的亮度,故為本領域長久來的重要研究議題。 A typical digital image device can form a preliminary image by using a photoelectric conversion program and signal processing, and processes the preliminary image by using an automatic exposure, auto focus, auto white balance, and the like to generate a digital image seen by the user. Among them, the automatic exposure program can determine the brightness of digital images, so it is an important research topic in the field for a long time.

本案的一實施態樣涉及一種畫面亮度的計算方法。根據本案一實施例,該方法包括:獲得一畫面的一影像資料;根據該畫面的該影像資料,產生至少一調整矩陣;根 據一測光矩陣以及該調整矩陣,產生一調整後的測光矩陣;以及根據該調整後的測光矩陣對該畫面進行測光,以計算出該畫面的一當前畫面亮度值。 An embodiment of the present invention relates to a method for calculating the brightness of a picture. According to an embodiment of the present invention, the method includes: obtaining an image data of a picture; generating at least one adjustment matrix according to the image data of the picture; And generating an adjusted photometry matrix according to the optical measurement matrix and the adjustment matrix; and metering the picture according to the adjusted photometry matrix to calculate a current picture brightness value of the picture.

透過應用上述一實施例,即可利用調整後的測光矩陣對畫面進行測光。如此一來,可使計算出的當前畫面亮度值更符合應用上的需求。 By applying the above embodiment, the screen can be metered by the adjusted photometry matrix. In this way, the calculated current picture brightness value can be made more in line with the application requirements.

100‧‧‧數位影像裝置 100‧‧‧Digital imaging device

110‧‧‧影像資料擷取單元 110‧‧‧Image data acquisition unit

120‧‧‧控制器 120‧‧‧ Controller

200‧‧‧方法 200‧‧‧ method

S1-S5‧‧‧步驟 S1-S5‧‧‧ steps

LMX‧‧‧亮度矩陣 LMX‧‧‧ Brightness Matrix

RGL‧‧‧區域亮度值 RGL‧‧‧ area brightness value

ADM1-ADM3‧‧‧調整矩陣 ADM1-ADM3‧‧‧ adjustment matrix

WGT1-WGT3‧‧‧調整權重 WGT1-WGT3‧‧‧ adjustment weight

MMX‧‧‧測光矩陣 MMX‧‧‧ metering matrix

MGT‧‧‧權重 MGT‧‧‧ weights

FGR‧‧‧人像 FGR‧‧‧ portrait

HFR‧‧‧高頻區域 HFR‧‧‧High frequency area

W1-W2‧‧‧調整權重 W1-W2‧‧‧ adjustment weights

第1圖為根據本案一實施例所繪示的數位影像裝置的示意圖;第2圖為根據本發明一實施例的計算方法的流程圖;以及第3A-3C圖及第4-5圖為根據本發明不同操作例所繪示的示意圖。 1 is a schematic diagram of a digital image device according to an embodiment of the present invention; FIG. 2 is a flow chart of a calculation method according to an embodiment of the present invention; and 3A-3C and 4-5 are based on Schematic diagrams of different operational examples of the present invention.

第1圖為根據本案一實施例所繪示的數位影像裝置100的示意圖。在一實施例中,數位影像裝置100包括影像資料擷取單元110以及控制器120。影像資料擷取單元110以及控制器120彼此電性連接。 FIG. 1 is a schematic diagram of a digital image device 100 according to an embodiment of the present disclosure. In an embodiment, the digital image device 100 includes an image data capturing unit 110 and a controller 120. The image data capturing unit 110 and the controller 120 are electrically connected to each other.

在一實施例中,影像資料擷取單元110例如可用鏡頭、感光元件、及相關的電路實現,但不以此為限。控制器120例如可用中央處理器、微處理器、英特爾8051單晶片微控制器所實現,但不以此為限。 In an embodiment, the image data capturing unit 110 can be implemented by, for example, a lens, a photosensitive element, and an associated circuit, but is not limited thereto. The controller 120 can be implemented by, for example, a central processing unit, a microprocessor, or an Intel 8051 single-chip microcontroller, but is not limited thereto.

在一實施例中,影像資料擷取單元110用以根據初始參數(例如是感光元件的初始曝光時間(exposure time)及/或初始增益(gain))對環境畫面進行影像擷取,以獲得一畫面以及此一畫面的影像資料。接著,影像資料擷取單元110用以將此一影像資料傳送到控制器120。 In an embodiment, the image data capturing unit 110 is configured to perform image capturing on the environment image according to an initial parameter (for example, an initial exposure time and/or an initial gain of the photosensitive element) to obtain a The picture and the image data of this picture. Then, the image data capturing unit 110 is configured to transmit the image data to the controller 120.

在一實施例中,控制器120用以接收前述影像資料,並根據此一影像資料對影像資料擷取單元110擷取的畫面進行測光以計算出此一畫面的當前畫面亮度值。 In an embodiment, the controller 120 is configured to receive the image data, and perform a photometry on the image captured by the image data capturing unit 110 according to the image data to calculate a current screen brightness value of the image.

以下將藉由第2圖中的亮度計算方法以提供本案更具體細節,然本案不以下述實施例為限。 In the following, the brightness calculation method in FIG. 2 will be used to provide more specific details of the present invention, but the present invention is not limited to the following embodiments.

應注意到,此一亮度計算方法可應用於相同或相似於第1圖中所示結構之數位影像裝置。而為使敘述簡單,以下將根據本發明一實施例,以第1圖中的數位影像裝置100為例進行對操作方法敘述,然本發明不以此應用為限。 It should be noted that this brightness calculation method can be applied to a digital image device that is the same or similar to the structure shown in FIG. In order to simplify the description, the operation method will be described below by taking the digital image device 100 in FIG. 1 as an example in accordance with an embodiment of the present invention. However, the present invention is not limited to this application.

另外,應瞭解到,在本實施方式中所提及的亮度計算方法的步驟,除特別敘明其順序者外,均可依實際需要調整其前後順序,甚至可同時或部分同時執行。 In addition, it should be understood that the steps of the brightness calculation method mentioned in the present embodiment can be adjusted according to actual needs, and can be performed simultaneously or partially simultaneously, unless the sequence is specifically described.

再者,在不同實施例中,此些步驟亦可適應性地增加、置換、及/或省略。 Furthermore, in various embodiments, such steps may also be adaptively added, replaced, and/or omitted.

參照第2圖,亮度計算方法200包括以下步驟。 Referring to FIG. 2, the brightness calculation method 200 includes the following steps.

在步驟S1中,控制器120透過影像資料擷取單元110獲得一畫面及此一畫面的影像資料。 In step S1, the controller 120 obtains a picture and video data of the picture through the image data capturing unit 110.

在一實施例中,此一畫面的影像資料可包括此一畫面的一初始亮度(例如包括一亮度矩陣)、此一畫面的一色彩 資訊(例如包括一色彩資訊矩陣)、以及此一畫面的一細節資訊(例如包括一細節資訊矩陣)中的至少一者。 In an embodiment, the image data of the screen may include an initial brightness of the picture (eg, including a brightness matrix), a color of the picture. At least one of information (eg, including a color information matrix) and a detail of the screen (eg, including a detail information matrix).

在步驟S2中,控制器120根據前述影像資料,產生至少一調整矩陣。 In step S2, the controller 120 generates at least one adjustment matrix based on the image data.

在步驟S3中,控制器120根據一測光矩陣以及前述至少一調整矩陣,產生一調整後的測光矩陣。在本實施例中,測光矩陣與調整矩陣不同。 In step S3, the controller 120 generates an adjusted photometry matrix according to a photometry matrix and the at least one adjustment matrix. In this embodiment, the photometry matrix is different from the adjustment matrix.

在一實施例中,此一測光矩陣可為一中央加權測光矩陣、平均加權測光矩陣、點測光矩陣、ROI測光矩陣、人臉測光矩陣,或其他適當測光矩陣。 In an embodiment, the photometry matrix can be a central weighted photometric matrix, an average weighted photometric matrix, a spot photometric matrix, a ROI photometric matrix, a face metering matrix, or other suitable photometric matrix.

在一實施例中,控制器120可將此一測光矩陣中所有元素與前述至少一調整矩陣中對應的元素相乘,以產生調整後的測光矩陣。 In an embodiment, the controller 120 may multiply all the elements in the one photometry matrix with the corresponding elements in the at least one adjustment matrix to generate an adjusted photometry matrix.

在步驟S4中,控制器120根據前述調整後的測光矩陣對前述畫面進行測光,以計算出此一畫面的一當前畫面亮度值。 In step S4, the controller 120 meters the screen according to the adjusted photometric matrix to calculate a current screen luminance value of the screen.

在步驟S5中,控制器120根據此一畫面的此一當前畫面亮度值與一目標亮度值調整影像資料擷取單元110的參數(例如是感光元件的曝光時間(exposure time)及/或增益(gain)),以令影像資料擷取單元110根據新的參數對環境畫面進行影像擷取,以獲得新的畫面及影像資料。而後,再次執行步驟S1。 In step S5, the controller 120 adjusts the parameters of the image data capturing unit 110 (for example, the exposure time and/or the gain of the photosensitive element according to the current picture brightness value of the picture and a target brightness value. Gain)), so that the image data capturing unit 110 performs image capturing on the environment image according to the new parameter to obtain a new image and image data. Then, step S1 is performed again.

在一實施例中,在當前畫面亮度值相近於目標亮度值的情況下,控制器120可停止調整影像資料擷取單元110 的參數。 In an embodiment, in a case where the current screen brightness value is close to the target brightness value, the controller 120 may stop adjusting the image data capturing unit 110. Parameters.

透過上述的步驟,控制器120即可相應於影像資料計算畫面的當前畫面亮度值。藉此,控制器120可更適當的調整影像資料擷取單元110的參數,以使擷取到的畫面之亮度更符合應用上的需求。 Through the above steps, the controller 120 can calculate the current picture brightness value of the picture corresponding to the image data. Thereby, the controller 120 can adjust the parameters of the image data capturing unit 110 more appropriately, so that the brightness of the captured image is more in line with the application requirements.

為使敘述清楚,以下將提供數個操作例進行說明,然而本案不以下述操作例為限。 In order to clarify the description, several operation examples will be described below, but the present invention is not limited to the following operation examples.

參照第3A-3C圖,在一操作例中,前述畫面的影像資料包括此一畫面的一初始亮度。初始亮度包括一亮度矩陣LMX。亮度矩陣LMX包括複數個區域亮度值RGL。區域亮度值RGL分別對應此一畫面的複數個區域。調整矩陣ADM1包括複數個調整權重WGT1。調整權重WGT1分別對應區域亮度值RGL。在一實施例中,控制器120可根據區域亮度值RGL之間的亮度大小關係,決定調整矩陣ADM1中的調整權重WGT1。 Referring to Figures 3A-3C, in an operation example, the image data of the aforementioned picture includes an initial brightness of the picture. The initial brightness includes a brightness matrix LMX. The luminance matrix LMX includes a plurality of regional luminance values RGL. The area luminance values RGL correspond to a plurality of areas of the picture, respectively. The adjustment matrix ADM1 includes a plurality of adjustment weights WGT1. The adjustment weight WGT1 corresponds to the area luminance value RGL, respectively. In an embodiment, the controller 120 may determine the adjustment weight WGT1 in the adjustment matrix ADM1 according to the brightness relationship between the area luminance values RGL.

具體而言,在一實施例中,控制器120可決定對應於極端亮度值(如第3A圖中數值為12、65、211、212、234、255的區域亮度值RGL)的調整權重之數值低於對應於中間亮度值(如第3A圖中數值不為12、65、211、212、234、255的區域亮度值RGL)的調整權重之數值。例如,對應於數值為12、65、211、212、234、255的區域亮度值RGL的調整權重之數值分別為3、5、5、5、3、1,低於對應於其他區域亮度值RGL的調整權重之數值(為10)。 Specifically, in an embodiment, the controller 120 may determine the value of the adjustment weight corresponding to the extreme luminance value (such as the region luminance value RGL of the values 12, 65, 211, 212, 234, 255 in FIG. 3A). It is lower than the value of the adjustment weight corresponding to the intermediate luminance value (such as the region luminance value RGL whose value is not 12, 65, 211, 212, 234, 255 in FIG. 3A). For example, the values of the adjustment weights corresponding to the region luminance values RGL of the values of 12, 65, 211, 212, 234, and 255 are 3, 5, 5, 5, 3, 1, respectively, which are lower than the luminance values corresponding to other regions. The value of the adjustment weight (10).

在一實施例中,中間亮度值所對應的調整權重 之數值彼此相同。 In an embodiment, the adjustment weight corresponding to the intermediate brightness value The values are the same as each other.

在一實施例中,極端亮度值可包括數個(如5個)數值最大的區域亮度值RGL以及數個(如5個)數值最小的區域亮度值RGL(如第3A圖中數值為12、65、99、121、122、204、211、212、234、255的區域亮度值RGL)。 In an embodiment, the extreme brightness value may include a plurality of (eg, five) values of the region luminance value RGL having the largest value and a plurality of (eg, five) values of the region luminance value RGL (as shown in FIG. 3A, the value is 12, The area luminance value RGL of 65, 99, 121, 122, 204, 211, 212, 234, 255.

在另一實施例中,極端亮度值可包括數值低於預設下限門檻(如70)以及數值高於預設上限門檻(如205)的區域亮度值RGL(如第3A圖中數值為12、65、211、212、234、255的區域亮度值RGL)。 In another embodiment, the extreme brightness value may include a region luminance value RGL whose value is lower than a preset lower threshold (eg, 70) and a value higher than a preset upper threshold (eg, 205) (as shown in FIG. 3A, the value is 12, 65, 211, 212, 234, 255 area brightness value RGL).

在一實施例中,極端高亮度值(如第3A圖中數值為211、212、234、255的區域亮度值RGL)的亮度越高,其所對應的調整權重越低,極端低亮度值(如第3A圖中數值為12、65的區域亮度值RGL)的亮度越低,其所對應的調整權重越低。 In an embodiment, the higher the brightness of the extreme high brightness value (such as the area brightness value RGL of the values 211, 212, 234, 255 in FIG. 3A), the lower the adjustment weight corresponding to the extremely low brightness value ( The lower the brightness of the area luminance value RGL) whose value is 12, 65 in Fig. 3A, the lower the adjustment weight corresponding thereto.

在一實施例中,測光矩陣MMX為中央加權測光矩陣,包括複數個權重MGT。越中心的權重MGT數值越高。 In an embodiment, the photometric matrix MMX is a central weighted photometric matrix comprising a plurality of weights MGT. The higher the weight of the center, the higher the MGT value.

在一實施例中,控制器120可將測光矩陣MMX中所有權重MGT與調整矩陣ADM1中對應的調整權重WGT1相乘,以產生調整後的測光矩陣。例如,調整後的測光矩陣的最左上方的權重值為1*3=3,最右上方的權重值為1*10=10,最左下方的權重值為1*5=5,最右下方的權重值為1*3=3,最中心的權重值為10*10=100。 In an embodiment, the controller 120 may multiply the weight MGT in the photometric matrix MMX by the corresponding adjustment weight WGT1 in the adjustment matrix ADM1 to generate an adjusted photometry matrix. For example, the weighted value of the top left of the adjusted metering matrix is 1*3=3, the weight of the top right is 1*10=10, and the weight of the bottom left is 1*5=5, the bottom right The weight value is 1*3=3, and the most central weight value is 10*10=100.

根據此一調整後的測光矩陣,控制器120可在調降極端亮度區域的權重的情況下,計算畫面的當前畫面亮度 值。如此一來,即可避免畫面的當前畫面亮度值受到極端亮度區域(例如畫面中的光源)的影響。 According to the adjusted photometry matrix, the controller 120 can calculate the current picture brightness of the picture while reducing the weight of the extreme brightness area. value. In this way, it is possible to prevent the current picture brightness value of the picture from being affected by extreme brightness areas, such as light sources in the picture.

參照第4圖,在一操作例中,前述畫面可包括一人像FGR。此一畫面的影像資料可包括此一畫面的一色彩資訊。此一色彩資訊包括一色彩資訊矩陣。色彩資訊矩陣包括複數個區域色彩資訊。區域色彩資訊分別對應此一畫面的複數個區域。調整矩陣ADM2包括複數個調整權重WGT2。調整權重WGT2分別對應區域色彩資訊。 Referring to Fig. 4, in an operation example, the aforementioned picture may include a portrait FGR. The image data of this screen may include a color information of the screen. This color information includes a color information matrix. The color information matrix includes a plurality of regional color information. The regional color information corresponds to a plurality of regions of the screen. The adjustment matrix ADM2 includes a plurality of adjustment weights WGT2. The adjustment weight WGT2 corresponds to the regional color information.

由於各種人種的膚色在特定色彩(例如包括紅色、綠色、藍色)上的色彩分量皆具有特定關係,故在前述畫面中,對應於人像FGR的區域色彩資訊中的複數種色彩具有特定關係。因此,在一實施例中,控制器120可根據此些區域色彩資訊中的複數種色彩之間的關係,決定調整矩陣ADM2中的調整權重WGT2。 Since the color components of various human races have specific relationships in specific colors (for example, including red, green, and blue), in the foregoing picture, the plurality of colors in the regional color information corresponding to the portrait FGR have a specific relationship. . Therefore, in an embodiment, the controller 120 may determine the adjustment weight WGT2 in the adjustment matrix ADM2 according to the relationship between the plurality of colors in the regional color information.

具體而言,在一實施例中,控制器120可根據每一區域色彩資訊是否符合一預設色彩關係,以決定調整矩陣ADM2中的調整權重WGT2。符合預設色彩關係的區域色彩資訊所對應的調整權重WGT2的數值大於不符合預設色彩關係的區域色彩資訊所對應的調整權重WGT2的數值。例如,於第4圖中,對應於人像FGR的區域色彩資訊所對應的調整權重W1的數值(如20及30)大於不對應於人像FGR的區域色彩資訊所對應的調整權重(如10)。 Specifically, in an embodiment, the controller 120 may determine the adjustment weight WGT2 in the adjustment matrix ADM2 according to whether the color information of each area conforms to a preset color relationship. The value of the adjustment weight WGT2 corresponding to the regional color information that matches the preset color relationship is greater than the value of the adjustment weight WGT2 corresponding to the regional color information that does not conform to the preset color relationship. For example, in FIG. 4, the value (eg, 20 and 30) of the adjustment weight W1 corresponding to the area color information corresponding to the portrait FGR is larger than the adjustment weight (such as 10) corresponding to the area color information that does not correspond to the portrait FGR.

在一實施例中,符合前述預設色彩關係的區域色彩資訊的複數色彩中的紅色之色彩分量R、綠色之色彩分 量G、以及藍色的色彩分量符合以下關係:R>1.1G>B。 In an embodiment, the red color component R and the green color component in the complex color of the regional color information that meets the preset color relationship. The color components of the quantity G and blue correspond to the following relationship: R>1.1G>B.

在本操作例中,控制器120可將第3C圖中的測光矩陣MMX中所有權重MGT與調整矩陣ADM2中對應的調整權重WGT2相乘,以產生調整後的測光矩陣。相關的細節可參照前述實施例,故在此不贅述。 In this operation example, the controller 120 may multiply the weight MGT in the photometry matrix MMX in FIG. 3C and the corresponding adjustment weight WGT2 in the adjustment matrix ADM2 to generate an adjusted photometry matrix. For related details, refer to the foregoing embodiments, and therefore, details are not described herein.

根據此一調整後的測光矩陣,控制器120可在控制器120可在調高人像區域的權重的情況下,計算畫面的當前畫面亮度值。如此一來,即可提高畫面的當前畫面亮度值與畫面中的人像區域的相關性。 According to the adjusted photometry matrix, the controller 120 can calculate the current picture brightness value of the picture when the controller 120 can increase the weight of the portrait area. In this way, the correlation between the current picture brightness value of the picture and the portrait area in the picture can be improved.

參照第5圖,在一操作例中,前述畫面可包括一高頻區域HFR。此一畫面的影像資料可包括此一畫面的一細節資訊。此一細節資訊包括一細節資訊矩陣。細節資訊矩陣包括複數個區域細節統計值。區域細節統計值分別對應此一畫面的複數個區域。調整矩陣ADM3包括複數個調整權重WGT3。調整權重WGT3分別對應區域細節統計值。 Referring to Fig. 5, in an operation example, the aforementioned picture may include a high frequency region HFR. The image data of this screen may include a detail information of the screen. This detail includes a detailed information matrix. The detail information matrix includes a plurality of regional detail statistics. The regional detail statistics correspond to the multiple regions of the screen. The adjustment matrix ADM3 includes a plurality of adjustment weights WGT3. The adjustment weight WGT3 corresponds to the regional detail statistics.

在一實施例中,區域細節統計值代表對應的畫面中的區域的亮度變化頻率。例如,一區域的亮度越高頻地變化(此一區域例如對應細小的樹葉、文字、條碼等),其對應的區域細節統計值越高,一區域的亮度越低頻地變化(此一區域例如對應平坦且單色的背景、桌面、牆壁等),其對應的區域細節統計值越低。因此,在一實施例中,控制器120可根據此些區域細節統計值以及一預設模式(例如人臉模式、文字模式、二維碼模式),決定調整矩陣ADM3中的調 整權重WGT3。 In an embodiment, the region detail statistics represent the frequency of brightness changes of the regions in the corresponding picture. For example, the brightness of an area changes more frequently (this area corresponds to, for example, a small leaf, a character, a bar code, etc.), and the higher the corresponding area detail statistical value, the lower the brightness of an area changes (this area is for example Corresponding to the flat and monochromatic background, desktop, wall, etc., the lower the corresponding regional detail statistics. Therefore, in an embodiment, the controller 120 may determine the adjustment in the adjustment matrix ADM3 according to the regional detail statistics and a preset mode (eg, face mode, text mode, and two-dimensional code mode). The whole weight is WGT3.

具體而言,在一實施例中,在預設模式為一第一模式(例如二維碼模式)的情況下,對應於具有較高的區域細節統計值對應的調整權重WGT3的數值大於對應於具有較低的區域細節統計值對應的調整權重WGT3的數值。例如,於第5圖中,對應於高頻區域HFR的區域細節統計值所對應的調整權重W1的數值(如20及30)大於不對應於高頻區域HFR的區域色彩資訊所對應的調整權重(如10)。 Specifically, in an embodiment, in a case where the preset mode is a first mode (for example, a two-dimensional code mode), a value corresponding to the adjustment weight WGT3 corresponding to the higher region detail statistical value is greater than corresponding to The value of the adjustment weight WGT3 corresponding to the lower area detail statistics. For example, in FIG. 5, the value of the adjustment weight W1 corresponding to the region detail statistical value corresponding to the high frequency region HFR (such as 20 and 30) is larger than the adjustment weight corresponding to the region color information not corresponding to the high frequency region HFR. (eg 10).

另一方面,在預設模式為一第二模式(例如人臉模式)的情況下,對應於具有較高的區域細節統計值對應的調整權重WGT3的數值低於對應於具有較低的區域細節統計值對應的調整權重WGT3的數值。 On the other hand, in the case where the preset mode is a second mode (for example, a face mode), the value corresponding to the adjustment weight WGT3 corresponding to the higher region detail statistical value is lower than corresponding to having a lower region detail. The value of the adjustment weight corresponding to the statistical value WGT3.

在本操作例中,控制器120可將第3C圖中的測光矩陣MMX中所有權重MGT與調整矩陣ADM3中對應的調整權重WGT3相乘,以產生調整後的測光矩陣。相關的細節可參照前述實施例,故在此不贅述。 In this operation example, the controller 120 may multiply the weight MGT in the photometric matrix MMX in FIG. 3C and the corresponding adjustment weight WGT3 in the adjustment matrix ADM3 to generate an adjusted photometry matrix. For related details, refer to the foregoing embodiments, and therefore, details are not described herein.

根據此一調整後的測光矩陣,控制器120可在控制器120可在調高或調低高頻或低頻區域的權重的情況下,計算畫面的當前畫面亮度值。如此一來,即可提高畫面的當前畫面亮度值與畫面中的主題的相關性。 According to the adjusted photometric matrix, the controller 120 can calculate the current picture brightness value of the picture when the controller 120 can increase or decrease the weight of the high frequency or low frequency area. In this way, the correlation between the current picture brightness value of the picture and the theme in the picture can be improved.

應注意到,在不同實施例中,控制器120可同時根據測光矩陣MMX與調整矩陣ADM1-ADM3中任意一者、任意兩者、或任意組合,產生調整後的測光矩陣。 It should be noted that in various embodiments, the controller 120 may simultaneously generate an adjusted photometric matrix according to any one, any two, or any combination of the photometric matrix MMX and the adjustment matrices ADM1-ADM3.

例如,調整後的測光矩陣中所有元素可為測光 矩陣MMX中所有元素與調整矩陣ADM1中所有元素、調整矩陣ADM2中所有元素、以及調整矩陣ADM3中所有元素個別相乘所產生。亦即,此一調整後的測光矩陣的最左上方的權重值為1*3*10*10=300,最右上方的權重值為1*10*10*10=10000,最左下方的權重值為1*5*10*10=500,最右下方的權重值為1*3*10*10=300,最中心的權重值為10*10*20*30=6000。 For example, all elements in the adjusted metering matrix can be metered All elements in the matrix MMX are generated by multiplying all elements in the adjustment matrix ADM1, all elements in the adjustment matrix ADM2, and all elements in the adjustment matrix ADM3. That is, the weighted value of the top left of the adjusted photometry matrix is 1*3*10*10=300, and the weight of the top right is 1*10*10*10=10000, and the weight at the bottom left is The value is 1*5*10*10=500, and the weight value at the bottom right is 1*3*10*10=300, and the most central weight is 10*10*20*30=6000.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and the present invention can be modified and retouched without departing from the spirit and scope of the present invention. The scope is subject to the definition of the scope of the patent application attached.

200‧‧‧方法 200‧‧‧ method

S1-S5‧‧‧步驟 S1-S5‧‧‧ steps

Claims (7)

一種畫面亮度的計算方法,包括:獲得一畫面的一影像資料;根據該畫面的該影像資料,產生至少一調整矩陣;根據一測光矩陣以及該調整矩陣,產生一調整後的測光矩陣;以及根據該調整後的測光矩陣對該畫面進行測光,以計算出該畫面的一當前畫面亮度值;其中該影像資料包括該畫面的一初始亮度,該初始亮度包括複數個區域亮度值,該些區域亮度值分別對應該畫面的複數個區域,該調整矩陣包括複數個調整權重,該些調整權重分別對應該些區域亮度值,且根據該畫面的該影像資料,產生該調整矩陣的步驟包括:根據該些區域亮度值之間的亮度大小關係,決定該些調整權重;其中該些區域亮度值包括至少一極端亮度值以及複數個中間亮度值,該些調整權重中對應於該極端亮度值的調整權重之數值低於該些調整權重中對應於該些中間亮度值的調整權重之數值。 A method for calculating a brightness of a picture, comprising: obtaining an image data of a picture; generating at least one adjustment matrix according to the image data of the picture; generating an adjusted photometry matrix according to a photometry matrix and the adjustment matrix; The adjusted photometric matrix meters the picture to calculate a current picture brightness value of the picture; wherein the image data includes an initial brightness of the picture, the initial brightness includes a plurality of area brightness values, and the brightness of the areas The values respectively correspond to a plurality of regions of the screen, the adjustment matrix includes a plurality of adjustment weights, and the adjustment weights respectively correspond to the luminance values of the regions, and according to the image data of the screen, the step of generating the adjustment matrix comprises: The brightness relationship between the brightness values of the regions determines the adjustment weights; wherein the region brightness values include at least one extreme brightness value and a plurality of intermediate brightness values, wherein the adjustment weights correspond to the adjustment weights of the extreme brightness values The value is lower than the adjustment corresponding to the intermediate brightness values among the adjustment weights The weight of the value. 如請求項1所述之畫面亮度的計算方法,其中該至少一極端亮度值中的一第一極端亮度值小於該些中間亮度值。 The method for calculating the brightness of a picture according to claim 1, wherein a first extreme brightness value of the at least one extreme brightness value is smaller than the intermediate brightness values. 一種畫面亮度的計算方法,包括:獲得一畫面的一影像資料;根據該畫面的該影像資料,產生至少一調整矩陣;根據一測光矩陣以及該調整矩陣,產生一調整後的測光矩陣;以及根據該調整後的測光矩陣對該畫面進行測光,以計算出該畫面的一當前畫面亮度值;其中該影像資料包括該畫面的一色彩資訊,該色彩資訊包括複數個區域色彩資訊,該些區域色彩資訊分別對應該畫面的複數個區域,該調整矩陣包括複數個調整權重,該些調整權重分別對應該些區域色彩資訊,且根據該畫面的該影像資料,產生該調整矩陣的步驟包括:根據每一該些區域色彩資訊中的複數種色彩之間的關係,決定該些調整權重。 A method for calculating a brightness of a picture, comprising: obtaining an image data of a picture; generating at least one adjustment matrix according to the image data of the picture; generating an adjusted photometry matrix according to a photometry matrix and the adjustment matrix; The adjusted photometric matrix meters the picture to calculate a current picture brightness value of the picture; wherein the image data includes a color information of the picture, the color information includes a plurality of regional color information, and the color of the areas The information is respectively corresponding to a plurality of regions of the screen, the adjustment matrix includes a plurality of adjustment weights, and the adjustment weights respectively correspond to the regional color information, and according to the image data of the screen, the step of generating the adjustment matrix comprises: The relationship between the plurality of colors in the regional color information determines the adjustment weights. 如請求項3所述之畫面亮度的計算方法,其中該些區域色彩資訊中的一第一者的該些色彩符合一預設色彩關係,該些區域色彩資訊中的一第二者的該些色彩不符合該預設色彩關係,該些調整權重中對應於該些區域色彩資訊中的該第一者的調整權重之數值大於該些調整權重中對應於該些區域色彩資訊中的該第二者的調整權重之數值。 The method for calculating the brightness of a picture according to claim 3, wherein the colors of a first one of the regional color information conform to a preset color relationship, and the second one of the plurality of regional color information The color does not match the preset color relationship, and the adjustment weight corresponding to the first one of the regional color information is greater than the second of the adjustment weights corresponding to the regional color information. The value of the adjustment weight. 如請求項3所述之畫面亮度的計算方法,其 中根據每一該些區域色彩資訊中的複數種色彩之間的關係,決定該些調整權重的步驟包括:根據每一該些區域色彩資訊中的該些色彩是否符合一預設色彩關係,決定該些調整權重,其中符合該預設色彩關係的區域色彩資訊的該些色彩中的紅色之色彩分量R、綠色之色彩分量G、以及藍色的色彩分量符合以下關係:R>1.1G>B。 a method for calculating the brightness of a picture as described in claim 3, The determining the weights according to the relationship between the plurality of colors in each of the regional color information includes: determining, according to whether the colors in each of the regional color information meet a predetermined color relationship, The adjustment weights, wherein the red color component R, the green color component G, and the blue color component of the colors corresponding to the regional color information of the preset color relationship satisfy the following relationship: R>1.1G>B . 一種畫面亮度的計算方法,包括:獲得一畫面的一影像資料;根據該畫面的該影像資料,產生至少一調整矩陣;根據一測光矩陣以及該調整矩陣,產生一調整後的測光矩陣;以及根據該調整後的測光矩陣對該畫面進行測光,以計算出該畫面的一當前畫面亮度值;其中該影像資料包括該畫面的一細節資訊,該細節資訊包括複數個區域細節統計值,該些區域細節統計值分別對應該畫面的複數個區域,該調整矩陣包括複數個調整權重,該些調整權重分別對應該些區域細節統計值,且根據該畫面的該影像資料,產生該調整矩陣的步驟包括:根據該些區域細節統計值以及一預設模式,決定該些調整權重。 A method for calculating a brightness of a picture, comprising: obtaining an image data of a picture; generating at least one adjustment matrix according to the image data of the picture; generating an adjusted photometry matrix according to a photometry matrix and the adjustment matrix; The adjusted photometric matrix meters the picture to calculate a current picture brightness value of the picture; wherein the image data includes a detail information of the picture, the detail information includes a plurality of area detail statistics, the areas The detail statistics respectively correspond to a plurality of regions of the screen, the adjustment matrix includes a plurality of adjustment weights, and the adjustment weights respectively correspond to the regional detail statistics, and according to the image data of the screen, the step of generating the adjustment matrix includes : determining the adjustment weights according to the regional detailed statistics and a preset mode. 如請求項6所述之畫面亮度的計算方法,其中該些區域細節統計值包括一第一細節數值以及一第二細節數值,該第一細節數值大於該第二細節數值,在該預設模式為一第一模式的情況下,該些調整權重中對應於該第一細節數值的調整權重之數值高於該些調整權重中對應於該第二細節數值的調整權重之數值,且在該預設模式為一第二模式的情況下,該些調整權重中對應於該第一細節數值的調整權重之數值低於該些調整權重中對應於該第二細節數值的調整權重之數值。 The method for calculating the brightness of the picture according to claim 6, wherein the area detail statistics include a first detail value and a second detail value, the first detail value being greater than the second detail value, in the preset mode In the case of a first mode, the value of the adjustment weight corresponding to the first detail value among the adjustment weights is higher than the value of the adjustment weight corresponding to the second detail value among the adjustment weights, and in the pre- In the case that the mode is a second mode, the value of the adjustment weight corresponding to the first detail value among the adjustment weights is lower than the value of the adjustment weight corresponding to the second detail value among the adjustment weights.
TW104130981A 2015-09-18 2015-09-18 Calculating method of luminance of image TWI558194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104130981A TWI558194B (en) 2015-09-18 2015-09-18 Calculating method of luminance of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104130981A TWI558194B (en) 2015-09-18 2015-09-18 Calculating method of luminance of image

Publications (2)

Publication Number Publication Date
TWI558194B true TWI558194B (en) 2016-11-11
TW201713104A TW201713104A (en) 2017-04-01

Family

ID=57851608

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104130981A TWI558194B (en) 2015-09-18 2015-09-18 Calculating method of luminance of image

Country Status (1)

Country Link
TW (1) TWI558194B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426700A (en) * 2003-05-16 2004-12-01 Benq Corp Device and method to determine exposure setting for image of scene with human-face area
JP2009060237A (en) * 2007-08-30 2009-03-19 Fujifilm Corp Photographing apparatus
TW201110684A (en) * 2009-09-01 2011-03-16 Quanta Comp Inc Method and device for adjusting weighting values in light metering
JP2013186144A (en) * 2012-03-05 2013-09-19 Casio Comput Co Ltd Image capturing device, image capturing method and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426700A (en) * 2003-05-16 2004-12-01 Benq Corp Device and method to determine exposure setting for image of scene with human-face area
JP2009060237A (en) * 2007-08-30 2009-03-19 Fujifilm Corp Photographing apparatus
TW201110684A (en) * 2009-09-01 2011-03-16 Quanta Comp Inc Method and device for adjusting weighting values in light metering
JP2013186144A (en) * 2012-03-05 2013-09-19 Casio Comput Co Ltd Image capturing device, image capturing method and program

Also Published As

Publication number Publication date
TW201713104A (en) 2017-04-01

Similar Documents

Publication Publication Date Title
JP7141428B2 (en) Apparatus, computer program and method for generating high dynamic range (HDR) pixel streams
JP6953311B2 (en) Systems and methods for performing operations on pixel data
CN105578068B (en) A kind of generation method of high dynamic range images, device and mobile terminal
US20160227100A1 (en) Dual camera systems and methods for rapid 3a convergence and high dynamic range exposure metering
US10453188B2 (en) Methods and devices for improving image quality based on synthesized pixel values
US8743226B2 (en) Exposure adjustment method for night-vision camera
CN109417605B (en) Method, apparatus, computer readable medium and system for performing Automatic Exposure Control (AEC)
WO2020034701A1 (en) Imaging control method and apparatus, electronic device, and readable storage medium
US11297256B2 (en) Method and device for balancing foreground-background luminosity
WO2020034702A1 (en) Control method, device, electronic equipment and computer readable storage medium
US10972676B2 (en) Image processing method and electronic device capable of optimizing hdr image by using depth information
WO2020034739A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
TWI523542B (en) White balance compensation method and electronic apparatus using the same
US10565687B2 (en) Image processing apparatus, imaging apparatus, image processing method, image processing program, and recording medium
JP6543067B2 (en) Projection system, projector device, imaging device, and program
US9219869B1 (en) Image capturing device and method for shading compensation thereof
TWI558194B (en) Calculating method of luminance of image
CN106559621B (en) The calculation method of picture brightness
US20160119525A1 (en) Image processing methods and systems based on flash
TWI768282B (en) Method and system for establishing light source information prediction model
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium
JP6514577B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGING APPARATUS
CN113259634B (en) Light source information prediction model establishing method and system
TWI387947B (en) Screen brightness adjustment system and method same
TW201320733A (en) Image processing method of overexposure image of human face and image capturing device thereof