TWI784563B - Display color calibration method and electronic device - Google Patents

Display color calibration method and electronic device Download PDF

Info

Publication number
TWI784563B
TWI784563B TW110121041A TW110121041A TWI784563B TW I784563 B TWI784563 B TW I784563B TW 110121041 A TW110121041 A TW 110121041A TW 110121041 A TW110121041 A TW 110121041A TW I784563 B TWI784563 B TW I784563B
Authority
TW
Taiwan
Prior art keywords
color
pixel
parameters
difference
rgb
Prior art date
Application number
TW110121041A
Other languages
Chinese (zh)
Other versions
TW202248989A (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 TW110121041A priority Critical patent/TWI784563B/en
Application granted granted Critical
Publication of TWI784563B publication Critical patent/TWI784563B/en
Publication of TW202248989A publication Critical patent/TW202248989A/en

Links

Images

Landscapes

  • Spectrometry And Color Measurement (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

The disclosure provides a display color calibration method and an electronic device. The embodiments of the disclosure can adjust a reference image via adjusting the hue parameters of pixels in one of the color regions of the reference image when determining that a colorblind patient belonging to a certain type of color blindness cannot distinguish the two color regions in the reference image. In this way, the colorblind patient can recognize the difference between the two color regions in the adjusted reference image, thereby obtaining a better visual experience.

Description

顯示器校色方法及電子裝置Display color calibration method and electronic device

本發明是有關於一種顯示技術,且特別是有關於一種顯示器校色方法及電子裝置。 The present invention relates to a display technology, and in particular to a display color calibration method and an electronic device.

人眼具有負責感覺亮度明暗的桿狀細胞及負責感覺顏色的錐狀細胞,其中錐狀細胞又有三種,分別為L(長波420-440nm)、M(中波530-540nm)、S(短波560-580nm),各別用以感應紅、綠、藍三種顏色。 The human eye has rod cells responsible for sensing brightness and cone cells responsible for sensing color. Among them, there are three types of cone cells, namely L (long wave 420-440nm), M (medium wave 530-540nm), and S (short wave 560-580nm), which are used to sense red, green and blue respectively.

然而,當某人的基因出現缺陷而使得其中一種顏色靈敏度大幅減少時,將使得此人成為色盲患者。目前的色盲患者的色盲類型大致可分為紅色色盲、綠色色盲及藍色色盲等三種,而屬於此三種色盲種類的色盲患者將無法識別某些顏色。 However, when someone has a genetic defect that greatly reduces sensitivity to one of the colors, that person is color blind. The current types of color blindness in patients with color blindness can be roughly divided into three types: red color blindness, green color blindness and blue color blindness, and color blindness patients belonging to these three types of color blindness will not be able to recognize certain colors.

舉例而言,對於具有紅色色盲的色盲患者而言,其一般無法感知長波長顏色(例如紅色),且中波長的顏色(例如綠色)一般將以淡黃色的視覺型式呈現。 For example, a color-blind patient with protanopia typically cannot perceive long-wavelength colors such as red, and mid-wavelength colors such as green will generally appear as a yellowish visual pattern.

請參照圖1,其繪示正常人所見的影像及由色盲患者所見 的影像。在圖1中,參考影像110為包括綠葉及紅花(其大致位於圈選範圍內)的相片。然而,在屬於紅色色盲的色盲患者的眼中,參考影像110所提供的視覺感受將會是類似於影像120所呈現的感覺。在影像120中,無論是綠葉及紅花,對於上述色盲患者而言皆會呈現偏黃的顏色。在此情況下,上述色盲患者將無法在影像120中區分綠葉及紅花之間的差異,進而可能無法察覺影像120中實際上存在紅花,而類似情形在日常生活中相當常見。 Please refer to Figure 1, which shows the images seen by normal people and those seen by color blind patients of the image. In FIG. 1 , the reference image 110 is a photo including green leaves and red flowers (which are roughly located within the circled area). However, in the eyes of a color-blind patient who is red-blind, the visual experience provided by the reference image 110 will be similar to that presented by the image 120 . In the image 120 , both the green leaves and the red flowers will appear yellowish to the aforementioned color-blind patients. In this case, the above-mentioned color-blind patients will not be able to distinguish the difference between green leaves and red flowers in the image 120 , and may not be able to perceive that there are actually red flowers in the image 120 , and similar situations are quite common in daily life.

在目前的醫學技術中,先天性色盲患者無法透過開刀及藥物改善其色彩辨識能力。市面上雖有鍍膜鏡片可以幫助矯正,但效果不佳。 In the current medical technology, patients with congenital color blindness cannot improve their color recognition ability through surgery and drugs. Although there are coated lenses on the market that can help correct it, the effect is not good.

因此,對於本領域技術人員而言,如何設計一種能夠改善色盲患者的色彩辨識能力的技術實為一項重要議題。 Therefore, for those skilled in the art, how to design a technology that can improve the color recognition ability of color-blind patients is an important issue.

有鑑於此,本發明提供一種顯示器校色方法及電子裝置,其可用於解決上述技術問題。 In view of this, the present invention provides a display color calibration method and an electronic device, which can be used to solve the above technical problems.

本發明提供一種顯示器校色方法,適於一電子裝置,所述方法包括:取得一參考影像,並將參考影像區分為多個色彩區域,其中所述多個色彩區域包括一第一色彩區域及一第二色彩區域,第一色彩區域包括一第一像素;基於一色盲患者的一色盲類型將第一像素轉換為一第二像素,並判斷色盲患者是否能夠區分第一像素及第二像素,其中第一像素及第二像素之間存在一第一 色彩差異;反應於判定色盲患者無法區分第一像素及第二像素,基於色盲患者的色盲類型將第二色彩區域中的一第三像素轉換為一第四像素,並取得第三像素與第四像素之間的一第二色彩差異;反應於判定第一色彩差異與第二色彩差異之間的差異小於一預設值,藉由調整第二色彩區域中的多個像素個別的色相參數以調整參考影像;以及控制顯示器顯示經調整的參考影像。 The present invention provides a display color calibration method, which is suitable for an electronic device. The method includes: obtaining a reference image, and dividing the reference image into a plurality of color regions, wherein the plurality of color regions include a first color region and a first color region. A second color area, the first color area includes a first pixel; converting the first pixel into a second pixel based on a color blindness type of a color blind patient, and judging whether the color blind patient can distinguish the first pixel from the second pixel, There is a first pixel between the first pixel and the second pixel Color difference; in response to determining that a color-blind patient cannot distinguish between the first pixel and the second pixel, a third pixel in the second color area is converted into a fourth pixel based on the color-blindness type of the color-blind patient, and the third pixel and the fourth pixel are obtained A second color difference between pixels; in response to determining that the difference between the first color difference and the second color difference is less than a preset value, the individual hue parameters of a plurality of pixels in the second color area are adjusted to adjust a reference image; and controlling the display to display the adjusted reference image.

本發明提供一種電子裝置,其包括儲存電路及處理器。儲存電路儲存一程式碼。處理器耦接儲存電路,存取程式碼以執行:取得一參考影像,並將參考影像區分為多個色彩區域,其中所述多個色彩區域包括一第一色彩區域及一第二色彩區域,第一色彩區域包括一第一像素;基於一色盲患者的一色盲類型將第一像素轉換為一第二像素,並判斷色盲患者是否能夠區分第一像素及第二像素,其中第一像素及第二像素之間存在一第一色彩差異;反應於判定色盲患者無法區分第一像素及第二像素,基於色盲患者的色盲類型將第二色彩區域中的一第三像素轉換為一第四像素,並取得第三像素與第四像素之間的一第二色彩差異;反應於判定第一色彩差異與第二色彩差異之間的差異小於一預設值,藉由調整第二色彩區域中的多個像素個別的色相參數以調整參考影像;以及控制顯示器顯示經調整的參考影像。 The invention provides an electronic device, which includes a storage circuit and a processor. The storage circuit stores a program code. The processor is coupled to the storage circuit, and accesses the program code to execute: obtain a reference image, and divide the reference image into a plurality of color regions, wherein the plurality of color regions include a first color region and a second color region, The first color region includes a first pixel; converting the first pixel into a second pixel based on a color blindness type of a color blind patient, and judging whether the color blind patient can distinguish the first pixel from the second pixel, wherein the first pixel and the second pixel There is a first color difference between the two pixels; in response to determining that the color-blind patient cannot distinguish the first pixel from the second pixel, converting a third pixel in the second color region into a fourth pixel based on the color-blindness type of the color-blind patient, And obtain a second color difference between the third pixel and the fourth pixel; in response to determining that the difference between the first color difference and the second color difference is less than a preset value, by adjusting the number of pixels in the second color area individual hue parameters of each pixel to adjust the reference image; and control the display to display the adjusted reference image.

110:參考影像 110:Reference Image

120:影像 120: Image

200:電子裝置 200: electronic device

202:儲存電路 202: storage circuit

204:處理器 204: Processor

410,420,430:色彩區域 410, 420, 430: color areas

411~419,421,431:參考像素 411~419,421,431: reference pixels

510:經調整的參考影像 510: Adjusted reference image

S310~S350:步驟 S310~S350: Steps

圖1繪示正常人所見的影像及由色盲患者所見的影像。 Figure 1 shows images seen by normal people and images seen by color-blind patients.

圖2是依據本發明之一實施例繪示的電子裝置示意圖。 FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the present invention.

圖3是依據本發明之一實施例繪示的顯示器校色方法流程圖。 FIG. 3 is a flow chart of a display color calibration method according to an embodiment of the present invention.

圖4是依據本發明之一實施例繪示的將參考影像區分為多個色彩區域的示意圖。 FIG. 4 is a schematic diagram of dividing a reference image into a plurality of color regions according to an embodiment of the present invention.

圖5是依據本發明之一實施例繪示的經調整的參考影像示意圖。 FIG. 5 is a schematic diagram of an adjusted reference image according to an embodiment of the present invention.

請參照圖2,其是依據本發明之一實施例繪示的電子裝置示意圖。在不同的實施例中,電子裝置200可實現為各式智慧型裝置及電腦裝置,但可不限於此。如圖2所示,電子裝置200包括儲存電路202及處理器204。 Please refer to FIG. 2 , which is a schematic diagram of an electronic device according to an embodiment of the present invention. In different embodiments, the electronic device 200 can be implemented as various smart devices and computer devices, but is not limited thereto. As shown in FIG. 2 , the electronic device 200 includes a storage circuit 202 and a processor 204 .

儲存電路202例如是任意型式的固定式或可移動式隨機存取記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、快閃記憶體(Flash memory)、硬碟或其他類似裝置或這些裝置的組合,而可用以記錄多個程式碼或模組。 The storage circuit 202 is, for example, any type of fixed or removable random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), flash memory (Flash memory), hard A disc or other similar device or a combination of these devices can be used to record multiple codes or modules.

處理器204耦接於儲存電路202,並可為一般用途處理器、特殊用途處理器、傳統的處理器、數位訊號處理器、多個微處理器(microprocessor)、一個或多個結合數位訊號處理器核心的微處 理器、控制器、微控制器、特殊應用積體電路(Application Specific Integrated Circuit,ASIC)、現場可程式閘陣列電路(Field Programmable Gate Array,FPGA)、任何其他種類的積體電路、狀態機、基於進階精簡指令集機器(Advanced RISC Machine,ARM)的處理器以及類似品。 The processor 204 is coupled to the storage circuit 202 and may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor, a plurality of microprocessors, one or more combined digital signal processing core micro processor, controller, microcontroller, Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), any other kind of integrated circuit, state machine, Advanced RISC Machine (ARM) based processors and the like.

在本發明的實施例中,處理器204可存取儲存電路202中記錄的模組、程式碼來實現本發明提出的顯示器校色方法,藉以調整顯示器299的顯示方式。在不同的實施例中,顯示器299可以是外接於電子裝置200的顯示裝置,或是內建於電子裝置200的顯示裝置,但可不限於此。 In an embodiment of the present invention, the processor 204 can access the modules and program codes recorded in the storage circuit 202 to implement the display color calibration method proposed by the present invention, so as to adjust the display mode of the display 299 . In different embodiments, the display 299 may be a display device externally connected to the electronic device 200 or a display device built in the electronic device 200 , but is not limited thereto.

請參照圖3,其是依據本發明之一實施例繪示的顯示器校色方法流程圖。本實施例的方法可由圖2的電子裝置200執行,以下即搭配圖2所示的元件說明圖3各步驟的細節。 Please refer to FIG. 3 , which is a flow chart of a display color calibration method according to an embodiment of the present invention. The method of this embodiment can be executed by the electronic device 200 shown in FIG. 2 . The details of each step in FIG. 3 will be described below with the components shown in FIG. 2 .

首先,在步驟S310中,處理器204可取得參考影像,並將參考影像區分為多個色彩區域。在本發明的實施例中,上述色彩區域可個別包括多個像素,而各色彩區域中的像素可具有相似的顏色。 First, in step S310, the processor 204 can obtain a reference image and divide the reference image into a plurality of color regions. In an embodiment of the present invention, the above-mentioned color regions may individually include a plurality of pixels, and the pixels in each color region may have similar colors.

請參照圖4,其是依據本發明之一實施例繪示的將參考影像區分為多個色彩區域的示意圖。在圖4中,參考影像400例如可包括繪示為格子的多個參考像素。在一實施例中,處理器204例如可從上述參考像素中挑選相鄰的第一參考像素及第二參考像素,並可在判定第一參考像素及第二參考像素彼此的顏色相近後, 將其視為屬於同一個色彩區域。為便於說明,以下假設第一參考像素及第二參考像素分別為圖4中的參考像素411及412,其中參考像素411及412在參考影像400中的座標分別例如是(x,y)及(x+1,y),但可不限於此。 Please refer to FIG. 4 , which is a schematic diagram of dividing a reference image into multiple color regions according to an embodiment of the present invention. In FIG. 4 , the reference image 400 may include, for example, a plurality of reference pixels shown as a grid. In one embodiment, the processor 204 may, for example, select adjacent first and second reference pixels from the above-mentioned reference pixels, and after determining that the colors of the first and second reference pixels are similar to each other, Think of them as belonging to the same color region. For the convenience of description, it is assumed that the first reference pixel and the second reference pixel are reference pixels 411 and 412 in FIG. x+1,y), but not limited to this.

具體而言,在一實施例中,參考像素411及412個別可具有屬於RGB色彩空間(例如是由CIE特殊委員定義的CIE RGB空間)的一組RGB參數,而處理器204可將參考像素411及412個別的該組RGB參數轉換為屬於Y 'C b C r 色彩空間的Y '參數、 C b 參數及 C r 參數,而其相關的轉換細節可參照Y 'C b C r 色彩空間的相關現有技術文獻,例如「X.Jin et al.,"Color image encryption in YCbCr space," 2016 8th International Conference on Wireless Communications & Signal Processing(WCSP),2016,pp.1-5,doi:10.1109/WCSP.2016.7752646.」。 Specifically, in one embodiment, each of the reference pixels 411 and 412 can have a set of RGB parameters belonging to an RGB color space (for example, the CIE RGB space defined by a CIE special committee), and the processor 204 can use the reference pixel 411 and 412 individual RGB parameters are converted into Y'parameters , Cb parameters and Cr parameters belonging to the Y'CbCr color space, and the relevant conversion details can refer to the relevant information of the Y'CbCr color space Prior art documents, such as " X.Jin et al., "Color image encryption in YCbCr space," 2016 8th International Conference on Wireless Communications & Signal Processing (WCSP), 2016, pp.1-5, doi: 10.1109/WCSP. 2016.7752646. "

之後,處理器204可取得參考像素411的Y '參數與參考像素412的Y '參數之間的差異、參考像素411的C b 參數與參考像素412的C b 參數之間的差異,以及參考像素411的C r 參數與參考像素412的C r 參數之間的差異。 Afterwards, the processor 204 can obtain the difference between the Y ' parameter of the reference pixel 411 and the Y ' parameter of the reference pixel 412, the difference between the C b parameter of the reference pixel 411 and the C b parameter of the reference pixel 412, and the reference pixel The difference between the Cr parameter of 411 and the Cr parameter of the reference pixel 412 .

在一實施例中,反應於判定參考像素411的Y '參數與參考像素412的Y '參數之間的差異小於第一門限值(例如10)、參考像素411的 C b 參數與參考像素412的 C b 參數之間的差異小於第二門限值(例如10),以及參考像素411的 C r 參數與參考像素412的 C r 參數之間的差異小於第三門限值(例如10),處理器204可將參考像 素411及參考像素412定義為屬於同一個色彩區域410(即,由編號1的偏紅色格子所組成的區域)。 In one embodiment, in response to determining that the difference between the Y ' parameter of the reference pixel 411 and the Y ' parameter of the reference pixel 412 is smaller than a first threshold value (for example, 10), the Cb parameter of the reference pixel 411 and the reference pixel 412 The difference between the C b parameters of the reference pixel 411 and the C r parameter of the reference pixel 412 is less than a second threshold value (for example, 10), and the difference between the C r parameter of the reference pixel 411 is less than a third threshold value (for example, 10), The processor 204 can define the reference pixel 411 and the reference pixel 412 as belonging to the same color region 410 (ie, the region composed of the reddish grids numbered 1).

在其他實施例中,反應於判定參考像素411的Y '參數與參考像素412的Y '參數之間的差異未小於第一門限值(例如10)、參考像素411的 C b 參數與參考像素412的 C b 參數之間的差異未小於第二門限值(例如10),或者參考像素411的 C r 參數與參考像素412的 C r 參數之間的差異未小於第三門限值(例如10),處理器204可將參考像素411及參考像素412定義為不屬於同一個色彩區域。 In other embodiments, in response to determining that the difference between the Y ' parameter of the reference pixel 411 and the Y ' parameter of the reference pixel 412 is not less than a first threshold value (for example, 10), the Cb parameter of the reference pixel 411 and the reference pixel The difference between the C b parameters of 412 is not less than a second threshold value (for example, 10), or the difference between the C r parameter of the reference pixel 411 and the C r parameter of the reference pixel 412 is not less than a third threshold value (for example 10), the processor 204 may define the reference pixel 411 and the reference pixel 412 as not belonging to the same color region.

此外,處理器204可逐一判斷鄰近於參考像素411的其他參考像素412~419是否與參考像素411屬於同一個色彩區域410。在圖4中,假設參考像素412~418皆與參考像素411屬於同一個色彩區域410,而參考像素419未與參考像素411屬於同一個色彩區域410,但可不限於此。 In addition, the processor 204 may determine one by one whether other reference pixels 412 - 419 adjacent to the reference pixel 411 belong to the same color region 410 as the reference pixel 411 . In FIG. 4 , it is assumed that the reference pixels 412 - 418 belong to the same color region 410 as the reference pixel 411 , and the reference pixel 419 does not belong to the same color region 410 as the reference pixel 411 , but it is not limited thereto.

基於上述教示,處理器204可相應地在參考影像400中另找出其他的色彩區域420(即,由編號2的偏綠色格子所組成的區域)及色彩區域430(即,由編號3的偏藍色格子所組成的區域),但可不限於此。 Based on the above teachings, the processor 204 can correspondingly find out other color regions 420 (that is, the regions composed of greenish grids numbered 2) and color regions 430 (that is, the regions composed of greenish grids numbered The area formed by the blue grid), but not limited to this.

為便於說明,在本發明的實施例中,可假設所考慮的參考影像經過步驟S310後可被區分為第一色彩區域及第二色彩區域,其中第一色彩區域可包括第一像素,且此第一像素可具有屬於RGB色彩空間的一組RGB參數,但可不限於此。 For the convenience of description, in the embodiment of the present invention, it can be assumed that the considered reference image can be divided into a first color area and a second color area after step S310, wherein the first color area can include the first pixel, and here The first pixel may have a set of RGB parameters belonging to an RGB color space, but may not be limited thereto.

在一些實施例中,上述第一像素例如是第一色彩區域中的任一像素。舉例而言,假設第一色彩區域為圖4中的色彩區域410,則其對應的第一像素可以是編號1的方格中的任一,例如參考像素411,但可不限於此。 In some embodiments, the above-mentioned first pixel is, for example, any pixel in the first color region. For example, assuming that the first color region is the color region 410 in FIG. 4 , the corresponding first pixel can be any one of the squares numbered 1, such as the reference pixel 411 , but is not limited thereto.

之後,在步驟S320中,基於色盲患者的色盲類型將第一像素轉換為第二像素,並判斷色盲患者是否能夠區分第一像素及第二像素。在一實施例中,上述色盲患者例如是顯示器299的觀看者,而處理器204例如可藉由要求此色盲患者自行輸入其所屬的色盲類型(例如紅色色盲、綠色色盲或藍色色盲)來取得步驟S320所需的資訊,但可不限於此。 Afterwards, in step S320, the first pixel is converted into a second pixel based on the color blindness type of the color blind patient, and it is determined whether the color blind patient can distinguish the first pixel from the second pixel. In one embodiment, the above-mentioned color-blind patient is, for example, the viewer of the display 299, and the processor 204 can obtain the color-blindness type (such as red color blindness, green color blindness, or blue color blindness) by asking the color-blind patient to input their own color blindness. The information required in step S320, but not limited thereto.

在一實施例中,在取得色盲患者的色盲類型後,處理器204可取得對應於此色盲類型的色盲感知模型,並據以將第一像素的該組RGB參數轉換為另一組RGB參數,以產生具有所述另一組RGB參數的上述第二像素。 In one embodiment, after obtaining the color blindness type of the color blindness patient, the processor 204 may obtain the color blindness perception model corresponding to the color blindness type, and convert the set of RGB parameters of the first pixel into another set of RGB parameters accordingly, to generate the above-mentioned second pixel with the other set of RGB parameters.

在一實施例中,第一像素的該組RGB參數例如可表徵為

Figure 110121041-A0305-02-0010-1
,所述另一組RGB參數例如可表徵為
Figure 110121041-A0305-02-0010-2
。在此情況下,處理器204例如可基於下式估算
Figure 110121041-A0305-02-0010-4
。 In one embodiment, the set of RGB parameters of the first pixel can be characterized as
Figure 110121041-A0305-02-0010-1
, the other set of RGB parameters can be characterized as, for example,
Figure 110121041-A0305-02-0010-2
. In this case, the processor 204 can estimate, for example, based on the following formula
Figure 110121041-A0305-02-0010-4
.

Figure 110121041-A0305-02-0010-5
,其中U為對應於上述色盲感知模型的一轉換矩陣。
Figure 110121041-A0305-02-0010-5
, where U is a transformation matrix corresponding to the above color-blind perception model.

在不同的實施例中,當色盲患者的色盲類型為紅色色盲 時,

Figure 110121041-A0305-02-0011-6
;當色盲患者的色盲類型為綠色 色盲時,
Figure 110121041-A0305-02-0011-7
;當色盲患者的色盲類型為 藍色色盲時,
Figure 110121041-A0305-02-0011-8
,其中λ為0。 In different embodiments, when the color blindness type of the color blind patient is red color blindness,
Figure 110121041-A0305-02-0011-6
; When the color blindness type of the color blind patient is green color blindness,
Figure 110121041-A0305-02-0011-7
; When the color blindness type of the color blind patient is blue color blindness,
Figure 110121041-A0305-02-0011-8
, where λ is 0.

之後,在判斷色盲患者是否能夠區分第一像素及第二像素的過程中,處理器204例如可將第一像素的該組RGB參數轉換為位於二維色彩空間(例如是由CIE特殊委員定義的CIE xy空間)上的一第一二維座標。 Afterwards, in the process of judging whether a color-blind patient can distinguish the first pixel from the second pixel, the processor 204 may, for example, convert the set of RGB parameters of the first pixel into a two-dimensional color space (for example, defined by a CIE special committee) A first two-dimensional coordinate on the CIE xy space).

在一實施例中,處理器204例如可將第一像素的該組RGB參數轉換為位於XYZ色彩空間(例如是由CIE特殊委員定義的CIE XYZ空間)上的第一三維座標,並將第一三維座標轉換為位於上述二維色彩空間上的第一二維座標。在一實施例中,第一三維座標可表徵為

Figure 110121041-A0305-02-0011-10
,其中
Figure 110121041-A0305-02-0011-11
Figure 110121041-A0305-02-0011-12
。另外,第一二維座標可表徵為
Figure 110121041-A0305-02-0011-13
,且
Figure 110121041-A0305-02-0011-15
。 In one embodiment, the processor 204 may, for example, convert the set of RGB parameters of the first pixel into a first three-dimensional coordinate located in an XYZ color space (for example, the CIE XYZ space defined by a CIE special committee), and convert the first The three-dimensional coordinates are transformed into first two-dimensional coordinates located on the above-mentioned two-dimensional color space. In one embodiment, the first three-dimensional coordinates can be characterized as
Figure 110121041-A0305-02-0011-10
,in
Figure 110121041-A0305-02-0011-11
Figure 110121041-A0305-02-0011-12
. In addition, the first two-dimensional coordinates can be characterized as
Figure 110121041-A0305-02-0011-13
,and
Figure 110121041-A0305-02-0011-15
.

概略而言,第一像素的該組RGB參數可理解對應於為由視覺功能正常的人所看到的顏色,而第二像素的另一組RGB參數可理解為對應於由上述色盲患者所看到的顏色。 Roughly speaking, the set of RGB parameters of the first pixel can be understood to correspond to the colors seen by a person with normal visual function, while the other set of RGB parameters of the second pixel can be understood to correspond to the color seen by the above-mentioned color-blind patients. to the color.

之後,處理器204可將第二像素的另一組RGB參數轉換 為位於二維色彩空間上的第二二維座標(其可表徵為

Figure 110121041-A0305-02-0012-17
),而其相關轉換細節可參照以上教示,於此不另贅述。 Afterwards, the processor 204 can convert another set of RGB parameters of the second pixel into a second two-dimensional coordinate located on a two-dimensional color space (which can be represented as
Figure 110121041-A0305-02-0012-17
), and the relevant conversion details can refer to the above teachings, and will not be repeated here.

接著,處理器204可取得第一二維座標及第二二維座標之間的第一距離。在一實施例中,所述第一距離例如是第一二維座標及第二二維座標之間的歐氏距離,且可表徵為

Figure 110121041-A0305-02-0012-18
,但可不限於此。在一實施例中,第一距離可表徵為第一像素及第二像素之間的第一色彩差異,但可不限於此。 Next, the processor 204 can obtain a first distance between the first 2D coordinate and the second 2D coordinate. In one embodiment, the first distance is, for example, the Euclidean distance between the first two-dimensional coordinate and the second two-dimensional coordinate, and can be characterized as
Figure 110121041-A0305-02-0012-18
, but not limited to this. In one embodiment, the first distance may be characterized as a first color difference between the first pixel and the second pixel, but it is not limited thereto.

之後,處理器204可判斷第一距離是否大於第一距離門限值(例如0.4)。反應於判定第一距離未大於第一距離門限值,此即代表第一像素及第二像素對於色盲患者而言在視覺上相當接近,因此處理器204可判定色盲患者無法區分第一像素及第二像素。另一方面,反應於判定第一距離大於第一距離門限值,此即代表第一像素及第二像素對於色盲患者而言在視覺上有一定程度的差異,因此處理器204可則判定色盲患者能夠區分第一像素及第二像素,但可不限於此。 Afterwards, the processor 204 may determine whether the first distance is greater than a first distance threshold (eg, 0.4). In response to determining that the first distance is not greater than the first distance threshold value, this means that the first pixel and the second pixel are visually very close to the color-blind patient, so the processor 204 can determine that the color-blind patient cannot distinguish the first pixel from the second pixel. two pixels. On the other hand, in response to determining that the first distance is greater than the first distance threshold value, this means that the first pixel and the second pixel have a certain degree of visual difference for color-blind patients, so the processor 204 can then determine that color-blind patients The first pixel and the second pixel can be distinguished, but not limited thereto.

在步驟S330中,反應於判定色盲患者無法區分第一像素及第二像素,處理器204可基於色盲患者的色盲類型將第二色彩區域中的第三像素轉換為第四像素,並取得第三像素與第四像素之間的第二色彩差異。 In step S330, in response to determining that the color-blind patient cannot distinguish the first pixel from the second pixel, the processor 204 may convert the third pixel in the second color region into a fourth pixel based on the color-blindness type of the color-blind patient, and obtain the third The second color difference between the pixel and the fourth pixel.

在一實施例中,第二色彩區域中的所述第三像素可具有屬於RGB色彩空間的一組RGB參數。並且,在一些實施例中, 上述第三像素例如是第二色彩區域中的任一像素。舉例而言,假設第二色彩區域為圖4中的色彩區域420,則其對應的第一像素可以是編號2的方格中的任一,例如參考像素421,但可不限於此。 In an embodiment, the third pixel in the second color region may have a set of RGB parameters belonging to an RGB color space. And, in some embodiments, The above-mentioned third pixel is, for example, any pixel in the second color region. For example, assuming that the second color region is the color region 420 in FIG. 4 , the corresponding first pixel can be any one of the squares numbered 2, such as the reference pixel 421 , but is not limited thereto.

在決定第二色彩區域中的所述第三像素之後,處理器204可相應地基於色盲患者的色盲類型將此第三像素轉換為第四像素,而相關的轉換手段可參照先前將第一像素轉換為第二像素的內容,故其細節於此不另贅述。 After determining the third pixel in the second color area, the processor 204 can convert the third pixel into a fourth pixel based on the color blindness type of the color blindness patient, and the related conversion means can refer to the previous conversion of the first pixel It is transformed into the content of the second pixel, so its details will not be repeated here.

此外,處理器204取得第三像素與第四像素之間的第二色彩差異的方式可參照先前取得第一像素與第二像素之間的第一色彩差異(即,第一距離)的內容,故其細節於此不另贅述。 In addition, the method for the processor 204 to obtain the second color difference between the third pixel and the fourth pixel can refer to the previously obtained content of the first color difference (ie, the first distance) between the first pixel and the second pixel, Therefore, its details will not be repeated here.

在一實施例中,處理器204可判斷第一色彩差異與第二色彩差異之間的差異小於預設值(例如0.05)。 In one embodiment, the processor 204 may determine that the difference between the first color difference and the second color difference is smaller than a preset value (eg, 0.05).

之後,在步驟S340中,反應於判定第一色彩差異與第二色彩差異之間的差異小於預設值,處理器204可藉由調整第二色彩區域中的多個像素個別的色相參數以調整參考影像。 Afterwards, in step S340, in response to determining that the difference between the first color difference and the second color difference is smaller than a preset value, the processor 204 may adjust individual hue parameters of a plurality of pixels in the second color region to adjust Reference image.

以圖4為例,假設第一色彩區域及第二色彩區域分別為色彩區域410及420,而第一像素及第三像素分別為參考像素411及421。在一實施例中,假設對應於第一像素的第一色彩差異為0.456,且對應於第三像素的第二色彩差異為0.432。在此情況下,由於第一色彩差異與第二色彩差異之間的差異小於預設值(例如0.05),因此若不針對色彩區域420進行調整的話,將可能使得色盲患者無法辨識色彩區域410及420之間的差異。因此,處理器 204可相應地調整色彩區域420中的多個像素個別的色相參數。 Taking FIG. 4 as an example, it is assumed that the first color area and the second color area are color areas 410 and 420 respectively, and the first pixel and the third pixel are reference pixels 411 and 421 respectively. In one embodiment, it is assumed that the first color difference corresponding to the first pixel is 0.456, and the second color difference corresponding to the third pixel is 0.432. In this case, since the difference between the first color difference and the second color difference is smaller than a preset value (for example, 0.05), if the color region 420 is not adjusted, color blind patients may not be able to recognize the color region 410 and the color region 410 . The difference between 420. Therefore, the processor The 204 can adjust the individual hue parameters of the plurality of pixels in the color region 420 accordingly.

在一實施例中,在處理器204調整色彩區域420中的多個像素個別的色相參數的過程中,處理器204可將色彩區域420中各像素的該組RGB參數轉換為屬於HSL色彩空間的色相參數、飽和度參數及明度參數,而其相關的轉換手段可參照相關的現有技術文獻,例如「G.Saravanan,G.Yamuna and S.Nandhini,"Real time implementation of RGB to HSV/HSI/HSL and its reverse color space models," 2016 International Conference on Communication and Signal Processing(ICCSP),2016,pp.0462-0466,doi:10.1109/ICCSP.2016.7754179.」,故其細節於此不另贅述。 In one embodiment, during the process of the processor 204 adjusting individual hue parameters of a plurality of pixels in the color region 420, the processor 204 may convert the set of RGB parameters of each pixel in the color region 420 into HSL color space Hue parameters, saturation parameters and lightness parameters, and their related conversion methods can refer to relevant prior art documents, such as " G. Saravanan, G. Yamuna and S. Nandhini," Real time implementation of RGB to HSV/HSI/HSL and its reverse color space models," 2016 International Conference on Communication and Signal Processing (ICCSP), 2016, pp.0462-0466, doi: 10.1109/ICCSP.2016.7754179. ", so the details will not be repeated here.

之後,處理器204可將色彩區域420中各像素的色相參數加上一修正值,以調整色彩區域420中各像素的色相參數。在一實施例中,上述修正值例如可介於120度至240度。在一較佳實施例中,上述修正值例如是180度,藉以讓色彩區域420中的各像素被轉換為其對應的互補色,但可不限於此。之後,處理器204可將色彩區域420中各像素的調整後色相參數、飽和度參數及明度參數轉換為屬於RGB色彩空間的另一組RGB參數。 Afterwards, the processor 204 may add a correction value to the hue parameter of each pixel in the color region 420 to adjust the hue parameter of each pixel in the color region 420 . In an embodiment, the above correction value may range from 120 degrees to 240 degrees, for example. In a preferred embodiment, the correction value is, for example, 180 degrees, so that each pixel in the color region 420 is converted to its corresponding complementary color, but it is not limited thereto. Afterwards, the processor 204 can convert the adjusted hue parameter, saturation parameter and lightness parameter of each pixel in the color region 420 into another set of RGB parameters belonging to the RGB color space.

接著,在步驟S350中,處理器204可控制顯示器299顯示經調整的參考影像400。在一實施例中,處理器204可透過對應於顯示器299的iGPU/dGPU將調整後的色彩區域420的相關RGB參數寫入顯示器299,以調整顯示器299呈現色彩區域420的顏色。藉此,色彩區域420中的各像素可因經過色相參數的調整而使得 色盲患者能夠較易於在顯示器299上辨識色彩區域410及420的差異。 Next, in step S350 , the processor 204 may control the display 299 to display the adjusted reference image 400 . In one embodiment, the processor 204 may write the adjusted RGB parameters of the color region 420 into the display 299 through the iGPU/dGPU corresponding to the display 299 , so as to adjust the color of the color region 420 presented by the display 299 . In this way, each pixel in the color area 420 can be adjusted by the hue parameter so that Color-blind patients can easily recognize the difference between the color regions 410 and 420 on the display 299 .

應了解的是,雖以上將色彩區域410及420分別假設為第一色彩區域及第二色彩區域,但在其他實施例中,處理器204亦可改為將色彩區域410及420分別假設為第二色彩區域及第一色彩區域。在此情況下,反應於判定第一色彩差異與第二色彩差異之間的差異小於預設值,處理器204可藉由調整色彩區域410中的多個像素個別的色相參數以調整參考影像。相關細節可參照先前實施例的說明,於此不另贅述。 It should be understood that although the color regions 410 and 420 are assumed to be the first color region and the second color region respectively, in other embodiments, the processor 204 may instead assume the color regions 410 and 420 to be the second color region respectively. The second color area and the first color area. In this case, in response to determining that the difference between the first color difference and the second color difference is smaller than a preset value, the processor 204 may adjust the reference image by adjusting individual hue parameters of a plurality of pixels in the color region 410 . For relevant details, reference may be made to the descriptions of the previous embodiments, and details are not repeated here.

在其他實施例中,處理器204還可從所考慮的參考影像中選擇其他色彩區域作為第二色彩區域。舉例而言,在假設圖4的色彩區域410為第一色彩區域的情況下,處理器204可另外選定色彩區域430作為第二色彩區域,而並從中選擇任一像素(例如參考像素431)作為對應的第三像素。在一實施例中,假設對應於第一像素的第一色彩差異為0.456,且對應於第三像素的第二色彩差異為0.200。在此情況下,由於第一色彩差異與第二色彩差異之間的差異不小於預設值(例如0.05),因此即便不針對色彩區域430進行調整,色盲患者仍能夠辨識色彩區域410及430之間的差異。因此,處理器204可相應地不調整色彩區域430中的多個像素個別的色相參數,但可不限於此。 In other embodiments, the processor 204 may also select other color regions from the considered reference image as the second color region. For example, assuming that the color region 410 in FIG. 4 is the first color region, the processor 204 may additionally select the color region 430 as the second color region, and select any pixel (for example, the reference pixel 431) as the second color region. corresponding to the third pixel. In one embodiment, it is assumed that the first color difference corresponding to the first pixel is 0.456, and the second color difference corresponding to the third pixel is 0.200. In this case, since the difference between the first color difference and the second color difference is not less than a preset value (for example, 0.05), even if the color region 430 is not adjusted, the color-blind patient can still recognize the difference between the color regions 410 and 430 difference between. Therefore, the processor 204 may not adjust the individual hue parameters of the plurality of pixels in the color region 430 accordingly, but is not limited thereto.

請參照圖5,其是依據本發明之一實施例繪示的經調整的參考影像示意圖。在圖5中,原始的參考影像110例如可相同於 圖1所示的參考影像110。在本實施例中,若不進行上述實施例所記載的手段,則屬於紅色色盲的色盲患者可能無法在整體皆黃的影像120中辨識參考影像110中的綠葉及紅花(其大致位於圈選範圍內)。 Please refer to FIG. 5 , which is a schematic diagram of an adjusted reference image according to an embodiment of the present invention. In FIG. 5, the original reference image 110 may be the same as Reference image 110 shown in FIG. 1 . In this embodiment, if the measures described in the above embodiments are not carried out, the color-blind patients belonging to red color blindness may not be able to recognize the green leaves and red flowers in the reference image 110 (which are roughly located in the circled area) in the overall yellow image 120 Inside).

然而,在處理器204取得參考影像110之後,其例如可執行步驟S310以將參考影像110區分為對應於分別對應於綠葉及紅花的第一色彩區域及第二色彩區域。之後,在依序執行步驟S320~S350之後,處理器204例如可取得並控制顯示器299顯示調整後的參考影像510。 However, after the processor 204 obtains the reference image 110 , it may, for example, execute step S310 to distinguish the reference image 110 into a first color region and a second color region corresponding to green leaves and red flowers, respectively. Afterwards, after sequentially executing steps S320 - S350 , the processor 204 may obtain and control the display 299 to display the adjusted reference image 510 , for example.

在經調整的參考影像510中,對應於紅花的第二色彩區域例如可在經過色相參數的調整之後,被調整為偏紫色(即,紅色的互補色)的顏色。由於屬於紅色色盲的色盲患者可辨識綠色及紫色之間的差異,因此即可在經調整的參考影像510中看出對應於紅花的影像區域(其大致位於圈選範圍內),進而得到較佳的觀看體驗。 In the adjusted reference image 510 , for example, the second color region corresponding to the safflower can be adjusted to a purple color (ie, the complementary color of red) after adjusting the hue parameter. Since a color-blind patient belonging to red color blindness can recognize the difference between green and purple, the image area corresponding to the red flower (which is roughly located in the circled range) can be seen in the adjusted reference image 510, and a better viewing experience.

綜上所述,本發明實施例的方法可在判斷屬於某色盲類型的色盲患者無法區分參考影像中的兩個色彩區域時,將其中一個色彩區域內像素的色相參數進行調整,以相應地調整參考影像。藉此,上述色盲患者即可在調整後的參考影像中辨識上述兩個色彩區域之間的差異,進而得到較佳的視覺體驗。 To sum up, the method of the embodiment of the present invention can adjust the hue parameter of the pixels in one of the color regions when it is judged that a color blindness patient belonging to a certain type of color blindness cannot distinguish the two color regions in the reference image, so as to adjust accordingly Reference image. In this way, the above-mentioned color-blind patients can recognize the difference between the above-mentioned two color regions in the adjusted reference image, and then obtain a better visual experience.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的 精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field will not depart from the scope of the present invention. Within the spirit and scope, some changes and modifications can be made, so the protection scope of the present invention should be defined by the scope of the appended patent application.

S310~S350:步驟 S310~S350: Steps

Claims (10)

一種顯示器校色方法,適於一電子裝置,所述方法包括: 取得一參考影像,並將該參考影像區分為多個色彩區域,其中該些色彩區域包括一第一色彩區域及一第二色彩區域,該第一色彩區域包括一第一像素; 基於一色盲患者的一色盲類型將該第一像素轉換為一第二像素,並判斷該色盲患者是否能夠區分該第一像素及該第二像素,其中該第一像素及該第二像素之間存在一第一色彩差異; 反應於判定該色盲患者無法區分該第一像素及該第二像素,基於該色盲患者的該色盲類型將該第二色彩區域中的一第三像素轉換為一第四像素,並取得該第三像素與該第四像素之間的一第二色彩差異; 反應於判定該第一色彩差異與該第二色彩差異之間的差異小於一預設值,藉由調整該第二色彩區域中的多個像素個別的色相參數以調整該參考影像;以及 控制一顯示器顯示經調整的該參考影像。 A display color calibration method suitable for an electronic device, the method comprising: obtaining a reference image, and dividing the reference image into a plurality of color areas, wherein the color areas include a first color area and a second color area, and the first color area includes a first pixel; Converting the first pixel into a second pixel based on a color blindness type of a color blind patient, and determining whether the color blind patient can distinguish the first pixel from the second pixel, wherein the difference between the first pixel and the second pixel is there is a first color difference; In response to determining that the color-blind patient cannot distinguish the first pixel from the second pixel, converting a third pixel in the second color region into a fourth pixel based on the color-blindness type of the color-blind patient, and obtaining the third pixel a second color difference between the pixel and the fourth pixel; In response to determining that the difference between the first color difference and the second color difference is less than a predetermined value, adjusting the reference image by adjusting individual hue parameters of a plurality of pixels in the second color region; and A display is controlled to display the adjusted reference image. 如請求項1所述的方法,其中該參考影像包括多個參考像素,且將該參考影像區分為該些色彩區域的步驟包括: 從該些參考像素中挑選相鄰的一第一參考像素及一第二參考像素,其中該第一參考像素及該第二參考像素個別具有屬於RGB色彩空間的一組RGB參數; 將該第一參考像素及該第二參考像素個別的該組RGB參數轉換為屬於
Figure 03_image039
色彩空間的
Figure 03_image041
參數、
Figure 03_image043
參數及
Figure 03_image045
參數; 反應於判定該第一參考像素的該
Figure 03_image041
參數與該第二參考像素的該
Figure 03_image041
參數之間的差異小於第一門限值、該第一參考像素的該
Figure 03_image043
參數與該第二參考像素的該
Figure 03_image043
參數之間的差異小於第二門限值,以及該第一參考像素的該
Figure 03_image045
參數與該第二參考像素的該
Figure 03_image045
參數之間的差異小於第三門限值,將該第一參考像素及該第二參考像素定義為屬於同一個色彩區域。
The method according to claim 1, wherein the reference image includes a plurality of reference pixels, and the step of dividing the reference image into the color regions includes: selecting a first adjacent reference pixel from the reference pixels and a second reference pixel, wherein the first reference pixel and the second reference pixel each have a set of RGB parameters belonging to the RGB color space; converting the respective set of RGB parameters of the first reference pixel and the second reference pixel into belong
Figure 03_image039
color space
Figure 03_image041
parameter,
Figure 03_image043
parameters and
Figure 03_image045
parameter; in response to determining the first reference pixel
Figure 03_image041
parameter and the second reference pixel of the
Figure 03_image041
The difference between the parameters is less than the first threshold value, the first reference pixel's
Figure 03_image043
parameter and the second reference pixel of the
Figure 03_image043
The difference between the parameters is less than the second threshold value, and the first reference pixel of the
Figure 03_image045
parameter and the second reference pixel of the
Figure 03_image045
If the difference between the parameters is smaller than the third threshold, the first reference pixel and the second reference pixel are defined as belonging to the same color region.
如請求項1所述的方法,其中該第一像素具有屬於RGB色彩空間的一組RGB參數,且基於該色盲患者的該色盲類型將該第一像素轉換為該第二像素的步驟包括: 取得對應於該色盲類型的一色盲感知模型,並據以將該第一像素的該組RGB參數轉換為另一組RGB參數,以產生具有所述另一組RGB參數的該第二像素。 The method as claimed in claim 1, wherein the first pixel has a set of RGB parameters belonging to an RGB color space, and the step of converting the first pixel into the second pixel based on the color blindness type of the color blind patient comprises: A color-blindness perception model corresponding to the color-blindness type is obtained, and the set of RGB parameters of the first pixel is converted into another set of RGB parameters according to the model, so as to generate the second pixel with the other set of RGB parameters. 如請求項3所述的方法,其中該第一像素的該組RGB參數表徵為
Figure 03_image047
,該另一組RGB參數表徵為
Figure 03_image049
,其中:
Figure 03_image051
,其中U為對應於該色盲感知模型的一轉換矩陣。
The method as claimed in claim 3, wherein the set of RGB parameters of the first pixel is characterized by
Figure 03_image047
, this other set of RGB parameters is characterized by
Figure 03_image049
,in:
Figure 03_image051
, where U is a transformation matrix corresponding to the colorblind perception model.
如請求項4所述的方法,其中: 反應於判定該色盲患者的該色盲類型為一紅色色盲,
Figure 03_image053
; 反應於判定該色盲患者的該色盲類型為一綠色色盲,
Figure 03_image055
; 反應於判定該色盲患者的該色盲類型為一藍色色盲,
Figure 03_image057
,其中
Figure 03_image059
為0。
The method as described in claim 4, wherein: in response to determining that the color blindness type of the color blind patient is red color blindness,
Figure 03_image053
; in response to determining that the type of color blindness of the color blind patient is a green color blindness,
Figure 03_image055
; Responding to the determination that the type of color blindness of the color blind patient is a blue color blindness,
Figure 03_image057
,in
Figure 03_image059
is 0.
如請求項3所述的方法,其中判斷該色盲患者是否能夠區分該第一像素及該第二像素的步驟包括: 將該第一像素的該組RGB參數轉換為位於二維色彩空間上的一第一二維座標; 將該第二像素的該另一組RGB參數轉換為位於該二維色彩空間上的一第二二維座標; 取得該第一二維座標及該第二二維座標之間的一第一距離,其中該第一距離表徵為該第一像素及該第二像素之間的該第一色彩差異; 反應於判定該第一距離未大於一第一距離門限值,判定該色盲患者無法區分該第一像素及該第二像素,反之則判定該色盲患者能夠區分該第一像素及該第二像素。 The method as described in claim 3, wherein the step of judging whether the color-blind patient can distinguish the first pixel and the second pixel comprises: converting the set of RGB parameters of the first pixel into a first two-dimensional coordinate located in a two-dimensional color space; converting the other set of RGB parameters of the second pixel into a second two-dimensional coordinate located in the two-dimensional color space; obtaining a first distance between the first two-dimensional coordinate and the second two-dimensional coordinate, wherein the first distance represents the first color difference between the first pixel and the second pixel; In response to determining that the first distance is not greater than a first distance threshold, it is determined that the color-blind patient cannot distinguish the first pixel from the second pixel; otherwise, it is determined that the color-blind patient can distinguish the first pixel from the second pixel. 如請求項6所述的方法,其中將該第一像素的該組RGB參數轉換為位於該二維色彩空間上的該第一二維座標的步驟包括: 將該第一像素的該組RGB參數轉換為位於XYZ色彩空間上的一第一三維座標,並將該第一三維座標轉換為位於該二維色彩空間上的該第一二維座標,其中該第一像素的該組RGB參數表徵為
Figure 03_image047
,該第一三維座標表徵為
Figure 03_image061
,該第一二維座標表徵為
Figure 03_image063
,其中
Figure 03_image065
,且
Figure 03_image067
The method as claimed in claim 6, wherein the step of converting the set of RGB parameters of the first pixel into the first two-dimensional coordinates located in the two-dimensional color space comprises: the set of RGB parameters of the first pixel converting to a first three-dimensional coordinate located on the XYZ color space, and converting the first three-dimensional coordinate to the first two-dimensional coordinate located on the two-dimensional color space, wherein the set of RGB parameters of the first pixel is characterized by
Figure 03_image047
, the first three-dimensional coordinates are characterized by
Figure 03_image061
, the first two-dimensional coordinate is characterized by
Figure 03_image063
,in
Figure 03_image065
,and
Figure 03_image067
.
如請求項1所述的方法,其中該第二色彩區域中的各該像素具有一組RGB參數,且調整該第二色彩區域中的多個像素個別的該色相參數的步驟包括: 將該第二色彩區域中各該像素的該組RGB參數轉換為屬於HSL色彩空間的色相參數、飽和度參數及明度參數; 將該第二色彩區域中各該像素的該色相參數加上一修正值,以調整該第二色彩區域中各該像素的該色相參數; 將該第二色彩區域中各該像素的調整後色相參數、該飽和度參數及該明度參數轉換為屬於RGB色彩空間的另一組RGB參數。 The method as claimed in claim 1, wherein each of the pixels in the second color region has a set of RGB parameters, and the step of adjusting the individual hue parameters of a plurality of pixels in the second color region comprises: converting the group of RGB parameters of each pixel in the second color region into hue parameters, saturation parameters and lightness parameters belonging to the HSL color space; adding a correction value to the hue parameter of each of the pixels in the second color region, so as to adjust the hue parameter of each of the pixels in the second color region; The adjusted hue parameter, the saturation parameter and the lightness parameter of each pixel in the second color area are converted into another set of RGB parameters belonging to the RGB color space. 如請求項8所述的方法,其中該修正值介於120度及240度之間。The method as claimed in claim 8, wherein the correction value is between 120 degrees and 240 degrees. 一種電子裝置,包括: 一儲存電路,其儲存一程式碼;以及 一處理器,其耦接該儲存電路,並存取該程式碼以執行: 取得一參考影像,並將該參考影像區分為多個色彩區域,其中該些色彩區域包括一第一色彩區域及一第二色彩區域,該第一色彩區域包括一第一像素; 基於一色盲患者的一色盲類型將該第一像素轉換為一第二像素,並判斷該色盲患者是否能夠區分該第一像素及該第二像素,其中該第一像素及該第二像素之間存在一第一色彩差異; 反應於判定該色盲患者無法區分該第一像素及該第二像素,基於該色盲患者的該色盲類型將該第二色彩區域中的一第三像素轉換為一第四像素,並取得該第三像素與該第四像素之間的一第二色彩差異; 反應於判定該第一色彩差異與該第二色彩差異之間的差異小於一預設值,藉由調整該第二色彩區域中的多個像素個別的色相參數以調整該參考影像;以及 控制一顯示器顯示經調整的該參考影像。 An electronic device comprising: a storage circuit storing a program code; and A processor, coupled to the storage circuit, accesses the program code to execute: obtaining a reference image, and dividing the reference image into a plurality of color areas, wherein the color areas include a first color area and a second color area, and the first color area includes a first pixel; Converting the first pixel into a second pixel based on a color blindness type of a color blind patient, and determining whether the color blind patient can distinguish the first pixel from the second pixel, wherein the difference between the first pixel and the second pixel is there is a first color difference; In response to determining that the color-blind patient cannot distinguish the first pixel from the second pixel, converting a third pixel in the second color region into a fourth pixel based on the color-blindness type of the color-blind patient, and obtaining the third pixel a second color difference between the pixel and the fourth pixel; In response to determining that the difference between the first color difference and the second color difference is less than a predetermined value, adjusting the reference image by adjusting individual hue parameters of a plurality of pixels in the second color region; and A display is controlled to display the adjusted reference image.
TW110121041A 2021-06-09 2021-06-09 Display color calibration method and electronic device TWI784563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110121041A TWI784563B (en) 2021-06-09 2021-06-09 Display color calibration method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110121041A TWI784563B (en) 2021-06-09 2021-06-09 Display color calibration method and electronic device

Publications (2)

Publication Number Publication Date
TWI784563B true TWI784563B (en) 2022-11-21
TW202248989A TW202248989A (en) 2022-12-16

Family

ID=85793595

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110121041A TWI784563B (en) 2021-06-09 2021-06-09 Display color calibration method and electronic device

Country Status (1)

Country Link
TW (1) TWI784563B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW561248B (en) * 2002-10-08 2003-11-11 Zenith Color Tech Corp Visible type color-distinguishing inspection method
CN101477793A (en) * 2001-05-09 2009-07-08 三星电子株式会社 Conversion of a sub-pixel format data to another sub-pixel data format
CN102695065A (en) * 2011-03-23 2012-09-26 索尼公司 Image processing apparatus, image processing method, and program
US20180288423A1 (en) * 2017-04-01 2018-10-04 Intel Corporation Predictive viewport renderer and foveated color compressor
US20190266977A1 (en) * 2016-11-07 2019-08-29 Irystec Software Inc. System and method for age-based gamut mapping
US20200219431A1 (en) * 2019-01-03 2020-07-09 Samsung Electronics Co., Ltd. Electronic device for changing characteristics of display according to external light and method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477793A (en) * 2001-05-09 2009-07-08 三星电子株式会社 Conversion of a sub-pixel format data to another sub-pixel data format
TW561248B (en) * 2002-10-08 2003-11-11 Zenith Color Tech Corp Visible type color-distinguishing inspection method
CN102695065A (en) * 2011-03-23 2012-09-26 索尼公司 Image processing apparatus, image processing method, and program
US20190266977A1 (en) * 2016-11-07 2019-08-29 Irystec Software Inc. System and method for age-based gamut mapping
US20180288423A1 (en) * 2017-04-01 2018-10-04 Intel Corporation Predictive viewport renderer and foveated color compressor
US20200219431A1 (en) * 2019-01-03 2020-07-09 Samsung Electronics Co., Ltd. Electronic device for changing characteristics of display according to external light and method therefor

Also Published As

Publication number Publication date
TW202248989A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
WO2021031458A1 (en) Method and device for image color correction applicable in endoscope, and storage medium
TWI293742B (en)
US7916941B2 (en) Methods and apparatuses for restoring color and enhancing electronic images
CN101953148B (en) Method for processing color image, color processing device and color processing program
WO2010087162A1 (en) Color image processing method, color image processing device and recording medium
CN100421126C (en) Method and system in a digital image processing chain for adjusting a colour balance, corresponding equipment, and software means for implementing the method
US8559668B2 (en) Red-eye reduction using facial detection
CN108230407B (en) Image processing method and device
CN109427041B (en) Image white balance method and system, storage medium and terminal equipment
CN111627076B (en) Face changing method and device and electronic equipment
CN108876742A (en) image color enhancement method and device
US10892166B2 (en) System and method for light field correction of colored surfaces in an image
CN111899182A (en) Color enhancement method and device
CN101983510A (en) System and method for adaptive local white balance adjustment
CN108024105A (en) Image color adjusting method, device, electronic equipment and storage medium
CN113132696B (en) Image tone mapping method, image tone mapping device, electronic equipment and storage medium
CN107135384A (en) White balance adjusting method, device, image processing terminal and storage medium
CN101088297A (en) Automatic white balance control
US9030575B2 (en) Transformations and white point constraint solutions for a novel chromaticity space
CN110192388A (en) Image processing apparatus, digital camera, image processing program and recording medium
TWI784563B (en) Display color calibration method and electronic device
CN107122103A (en) A kind of image processing method and terminal
JP6467881B2 (en) Visual assistance device, visual assistance program, visual assistance method, inspection device, inspection program, and inspection method
Hsu et al. A novel automatic white balance method for color constancy under different color temperatures
WO2016184153A1 (en) Method, terminal for preventing color shift and computer storage medium