TW202314643A - Method and system for automatically searching for multi-grayscale regions of interest - Google Patents

Method and system for automatically searching for multi-grayscale regions of interest Download PDF

Info

Publication number
TW202314643A
TW202314643A TW110135025A TW110135025A TW202314643A TW 202314643 A TW202314643 A TW 202314643A TW 110135025 A TW110135025 A TW 110135025A TW 110135025 A TW110135025 A TW 110135025A TW 202314643 A TW202314643 A TW 202314643A
Authority
TW
Taiwan
Prior art keywords
image
grayscale
digital image
scale
gray
Prior art date
Application number
TW110135025A
Other languages
Chinese (zh)
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 TW110135025A priority Critical patent/TW202314643A/en
Publication of TW202314643A publication Critical patent/TW202314643A/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention is related to a method and a system for automatically searching for multi-grayscale regions of interest. In the method, a digital image is generated through an image device that captures a picture of a standard multi-grayscale chart. The brightness information of the digital image is used to determine a first brightness threshold and a second brightness threshold. The brightness thresholds are used to binarize the digital image and obtain an overall binarized image. A grayscale region can be obtained from the overall binarized image. The region of interest indicates multiple grayscale blocks that are obtained from the grayscale region of the digital image, and the multiple grayscale blocks can be used to evaluate the image device.

Description

自動搜尋多灰階感興趣區域的方法與系統Method and system for automatically searching multi-grayscale regions of interest

本發明關於一種搜尋影像中感興趣區域的方法,特別是指一種用於評估影像中灰階資訊的自動搜尋多灰階感興趣區域的方法與系統。The present invention relates to a method for searching a region of interest in an image, in particular to a method and system for automatically searching for a multi-grayscale region of interest for evaluating grayscale information in an image.

數位照相機主要元件包括光學系統(如鏡頭與光學元件)與電路系統,電路系統主要如影像感測器、影像處理器與控制電路,影像感測器如感光耦合元件(charge-coupled device,CCD)與互補式金屬氧化物半導體(complementary metal-oxide-semiconductor,CMOS),控制電路用於控制光圈、快門、感光參數與拍照程序,影像處理器則是用於處理自影像感測器形成的影像數據,產生最終的影像。The main components of a digital camera include optical systems (such as lenses and optical components) and circuit systems. The circuit systems mainly include image sensors, image processors and control circuits, and image sensors such as charge-coupled devices (CCDs). Complementary metal-oxide-semiconductor (CMOS), the control circuit is used to control the aperture, shutter, photosensitive parameters and camera program, and the image processor is used to process the image data formed from the image sensor , resulting in the final image.

以影像設備為例,形成一張數位影像的過程係由影像感測器根據各種感光參數感應通過鏡頭取得的光線,接著產生影像數據,並經影像處理器產生數位影像,因此可以根據影像設備所產生的數位影像來評價影像設備。Taking imaging equipment as an example, the process of forming a digital image is that the image sensor senses the light obtained through the lens according to various photosensitive parameters, and then generates image data, and the digital image is generated by the image processor. Generate digital images to evaluate imaging equipment.

影像設備例如照相機與攝影機,出廠前會評估設備的品質,例如查看影像設備輸出的數位影像是否符合品質的要求,其中檢測項目之一是檢測輸出影像的灰階表現,這是因為人眼視覺上對灰階差異上較為敏感,並在色彩表現過程灰階影像的色偏更是影響影像品質的重要因素,因此影像校正需要參照影像灰階資訊,而習知的檢測方式是以人工搭配檢測儀器判定影像品質,容易產生錯誤或是檢測品質不一致的問題。Imaging equipment such as cameras and video cameras will evaluate the quality of the equipment before leaving the factory. It is more sensitive to grayscale differences, and the color shift of grayscale images in the color expression process is an important factor affecting image quality. Therefore, image correction needs to refer to image grayscale information, and the conventional detection method is to manually match detection equipment Determining image quality is prone to errors or inconsistent detection quality.

有鑑於習知檢測影像中灰階資訊的方式的缺失,本發明揭露書公開一種自動搜尋多灰階感興趣區域的方法與系統。In view of the absence of the conventional methods for detecting grayscale information in images, the disclosure of the present invention discloses a method and system for automatically searching multi-grayscale ROIs.

在一實施方案中,所述自動搜尋多灰階感興趣區域的方法可以執行於一電腦系統中,可應用於評價影像設備。在方法中,先取得影像設備拍攝一標準多階灰階圖產生的數位影像,例如,標準多階灰階圖為一柯達多灰階圖形卡,接著根據數位影像中的亮度資訊取得第一亮度門檻以及第二亮度門檻,較佳地,可以為從數位影像中所取得的最亮值與最暗值。In one embodiment, the method for automatically searching for a multi-gray-scale region of interest can be implemented in a computer system, and can be applied to evaluate imaging equipment. In the method, the imaging device is first obtained to shoot a digital image produced by a standard multi-grayscale image, for example, the standard multi-scale grayscale image is a Kodak multi-grayscale graphics card, and then the first brightness is obtained according to the brightness information in the digital image Preferably, the threshold and the second brightness threshold can be the brightest value and the darkest value obtained from the digital image.

之後以第一亮度門檻二值化數位影像,以得出第一二值化圖,以及以第二亮度門檻二值化數位影像,以得出第二二值化圖,經合成第一二值化圖與第二二值化圖得出一總二值化圖,接著可以從總二值化圖決定數位影像中的一灰階圖區域,這部分可以先從總二值化圖中判定出具有一寬度與一長度的區域,可定義出灰階圖區域。The digital image is then binarized with the first brightness threshold to obtain a first binary image, and the digital image is binarized with a second brightness threshold to obtain a second binary image, and the first binary image is synthesized The first binarization map and the second binarization map can be used to obtain a total binarization map, and then a grayscale image area in the digital image can be determined from the total binarization map. This part can be determined from the total binarization map first. An area with a width and a length can define a grayscale image area.

再根據灰階圖區域,從數位影像中得出包括多個灰階區塊的感興趣區域,其中方式可採用一圓周劃分法或者級數演算法,以從數位影像中劃分多個灰階區塊,可以根據此多個灰階區塊中每一個灰階區塊的灰階值比對標準多階灰階圖後,評價影像設備。Then, according to the area of the grayscale map, the region of interest including multiple grayscale blocks can be obtained from the digital image. The method can use a circle division method or a series algorithm to divide multiple grayscale areas from the digital image. block, the image device can be evaluated after comparing the gray scale value of each gray scale block in the multiple gray scale blocks with the standard multi-scale gray scale image.

為使能更進一步瞭解本發明的特徵及技術內容,請參閱以下有關本發明的詳細說明與圖式,然而所提供的圖式僅用於提供參考與說明,並非用來對本發明加以限制。In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings related to the present invention. However, the provided drawings are only for reference and description, and are not intended to limit the present invention.

為充分瞭解本發明之目的、特徵及功效,茲藉由下述具體之實施例,並配合所附之圖式,對本發明做一詳細說明,說明如後:In order to fully understand the purpose, features and effects of the present invention, the present invention will be described in detail through the following specific embodiments and accompanying drawings, as follows:

於本發明中,係使用「一」或「一個」來描述本文所述的單元、元件和組件。此舉只是為了方便說明,並且對本發明之範疇提供一般性的意義。因此,除非很明顯地另指他意,否則此種描述應理解為包括一個、至少一個,且單數也同時包括複數。In the present disclosure, "a" or "an" is used to describe the elements, elements and components described herein. This is done for convenience of description only and to provide a general sense of the scope of the invention. Accordingly, unless it is obvious that it is otherwise indicated, such description should be read to include one, at least one, and the singular also includes the plural.

於本文中,用語「包含」、「包括」、「具有」、「含有」或其他任何類似用語意欲涵蓋非排他性的包括物。舉例而言,含有複數要件的一元件、結構、製品或裝置不僅限於本文所列出的此等要件而已,而是可以包括未明確列出但卻是該元件、結構、製品或裝置通常固有的其他要件。除此之外,除非有相反的明確說明,用語「或」是指涵括性的「或」,而不是指排他性的「或」。As used herein, the terms "comprises", "including", "has", "containing" or any other similar terms are intended to cover a non-exclusive inclusion. For example, an element, structure, article, or device that contains a plurality of elements is not limited to those elements listed herein, but may include elements that are not explicitly listed but are generally inherent in the element, structure, article, or apparatus. other requirements. In addition, unless expressly stated to the contrary, the word "or" means an inclusive "or" and not an exclusive "or".

本發明關於一種自動搜尋多灰階感興趣區域的方法以及執行此方法的系統,所應用的情境可參考圖1所示實現所述方法的系統實施例示意圖,其中顯示系統所提出的電腦系統10,電腦系統10連接一待評價的影像設備100,影像設備100如照相機與攝影機。在所述方法中,影像設備100拍攝一標準多階灰階圖,利用影像設備100輸出的數位影像對照所拍攝的標準多階灰階圖來評價影像設備100,或者是作為校正影像設備100的依據。The present invention relates to a method for automatically searching a multi-gray-scale region of interest and a system for implementing the method. For the application situation, please refer to the schematic diagram of a system embodiment for implementing the method shown in FIG. 1 , in which the computer system 10 proposed by the display system is shown. , the computer system 10 is connected with an image device 100 to be evaluated, such as a camera and a video camera. In the method, the imaging device 100 shoots a standard multi-scale grayscale image, and uses the digital image output by the imaging device 100 to compare the captured standard multi-scale grayscale image to evaluate the imaging device 100, or as a calibration method of the imaging device 100. in accordance with.

電腦系統10設有影像擷取單元101,如一影像擷取卡或是影像擷取裝置,通過其軟硬體的運作接收影像設備100輸出的數位影像,再以處理單元103處理所接收的數位影像,特別取得數位影像中的感興趣區域,可根據搜尋感興趣區域的結果評估影像擷取裝置的取像能力。在所述實施例中,即取得其中多階灰階資訊,比對標準多階灰階圖的影像資訊,通過輸出單元105輸出評價結果。The computer system 10 is provided with an image capture unit 101, such as an image capture card or an image capture device, which receives the digital image output by the imaging device 100 through the operation of its software and hardware, and then uses the processing unit 103 to process the received digital image , especially to obtain the region of interest in the digital image, and evaluate the imaging capability of the image capture device according to the result of searching the region of interest. In the above-mentioned embodiment, the multi-level gray scale information is acquired, compared with the image information of the standard multi-level gray scale image, and the evaluation result is output through the output unit 105 .

進一步地,在發明所提出的方法中,影像設備100所拍攝的標準多階灰階圖需要有灰色區域,例如如柯達多灰階圖形卡(Kodak grayscale chart),或者亦可以背景為整個灰色、白色或黑色者,可以取得畫面的特定亮度資訊,如平均亮度,或最亮與最暗值,以此設為門檻值,再使用形態學找出灰階區域,通過影像設備輸出的影像測試出影像設備中感光元件產生的雜訊,可評估其影像穩定性(stability)。所揭示自動搜尋多灰階感興趣區域的方法主要是以影像中多灰階圖形為感興趣區域,其技術目的之一是通過感興趣區域中多階灰階資訊檢視或校正影像設備輸出的數位影像,並可藉以評價此影像裝置,亦可利用上述標準多階灰階圖校正影像設備。Furthermore, in the method proposed by the invention, the standard multi-level grayscale image captured by the imaging device 100 needs to have a gray area, such as a Kodak multi-grayscale graphics card (Kodak grayscale chart), or the background can be entirely gray, For white or black, you can obtain the specific brightness information of the screen, such as the average brightness, or the brightest and darkest values, and set it as the threshold value, and then use morphology to find the gray-scale area, and test it out through the image output of the imaging device. Noise generated by photosensitive elements in imaging equipment can be used to evaluate its image stability. The disclosed method for automatically searching for multi-gray-scale regions of interest mainly uses multi-gray-scale graphics in images as regions of interest, and one of its technical purposes is to check or correct the digital output of imaging equipment through the multi-gray-scale information in the regions of interest. The image can be used to evaluate the image device, and the image device can also be calibrated using the above-mentioned standard multi-level grayscale image.

圖2顯示自動搜尋多灰階感興趣區域的方法的實施例流程圖。FIG. 2 shows a flow chart of an embodiment of a method for automatically searching a multi-grayscale region of interest.

預備一影像設備,可以為任何可以拍攝並輸出影像的影像系統,並預備一標準多階灰階圖,如圖3所示的範例。在方法一開始,由影像設備拍攝標準多階灰階圖(步驟S201),產生一數位影像,由一電腦系統取得後,從數位影像中擷取其中感興趣的區域,如灰階影像區域,擷取其中資訊後比對標準多階灰階圖,以此來評估影像設備的取像品質。Prepare an image device, which can be any image system that can capture and output images, and prepare a standard multi-level gray scale image, as shown in the example in FIG. 3 . At the beginning of the method, a standard multi-scale grayscale image is captured by an imaging device (step S201) to generate a digital image, and after being obtained by a computer system, an area of interest is extracted from the digital image, such as a grayscale image area, After capturing the information, compare it with the standard multi-level gray scale image to evaluate the imaging quality of the imaging equipment.

利用電腦系統中的影像處理方法取得影像中畫素值,並從畫素值中得出影像的亮度資訊,所述方法即從中決定之後演算二值化(binarization)的門檻,根據實施例之一,根據數位影像中的亮度分布決定第一亮度門檻以及第二亮度門檻,例如可以從畫素值(如0至255)得出影像的平均亮度,以此決定亮度門檻,或是從影像中得出最亮和最暗的值(步驟S203),第一亮度門檻可設為數位影像中的最亮值,而第二亮度門檻可設為數位影像中的最暗值。Using the image processing method in the computer system to obtain the pixel value in the image, and obtain the brightness information of the image from the pixel value, the method is to determine the threshold of the subsequent calculation of binarization (binarization), according to one of the embodiments , determine the first brightness threshold and the second brightness threshold according to the brightness distribution in the digital image, for example, the average brightness of the image can be obtained from the pixel value (such as 0 to 255), so as to determine the brightness threshold, or get the brightness threshold from the image Find the brightest and darkest values (step S203), the first brightness threshold can be set to the brightest value in the digital image, and the second brightness threshold can be set to the darkest value in the digital image.

之後,使得所述方法以第一亮度門檻二值化數位影像以得出第一二值化圖(步驟S205),可以參考圖4所示以最亮門檻值得出二值化圖的實施例圖,圖中顯示根據亮度門檻經過二值化演算後的影像畫素剩下以0與1分別演示的白色與黑色區域;再以第二亮度門檻二值化數位影像以得出第二二值化圖(步驟S207),可參考圖5所示以最暗門檻值得出二值化圖的實施例圖,圖中同樣顯示出根據亮度門檻經過二值化演算為具有白色與黑色區域的圖形。接著合成兩張二值化圖(步驟S209),可參考圖6所示最亮與最暗門檻值形成的總二值化圖的實施例圖。Afterwards, the method is used to binarize the digital image with the first brightness threshold to obtain the first binarized image (step S205). Refer to FIG. 4 for an embodiment diagram of obtaining the binarized image with the brightest threshold value. , the figure shows that the image pixels after binarization calculation according to the brightness threshold are left with white and black areas represented by 0 and 1 respectively; then the digital image is binarized by the second brightness threshold to obtain the second binarization For the figure (step S207 ), please refer to the figure of an embodiment of obtaining the binarized figure with the darkest threshold value shown in FIG. 5 , which also shows a figure with white and black areas after binarization calculation based on the brightness threshold. Next, two binarized images are synthesized (step S209 ). Refer to the embodiment diagram of the total binarized image formed by the brightest and darkest threshold values shown in FIG. 6 .

根據以上步驟合成得出的總二值化圖,通過影像處理技術從中判斷出圖形中的灰階圖形,例如,在步驟S211中,可以根據從上述步驟設定的亮度門檻定出圖形中長度與寬度。在此一提的是,在此步驟中可利用形態學(Morphology)找影像中有興趣的區域,所述形態學為一種非線性影像分析技術,可用於分析與辨識影像中特定區域與圖形,例如可以通過形態學得出特定邊界與輪廓,而在本發明所揭示的方法中,其主要目的是要從數位影像中得出步驟S201中拍攝標準多階灰階圖所形成的灰階圖區域。舉例來說,可以步驟S209得出的總二值化圖進行形態學處理,針對圖形中最亮與最暗區域的邊緣依序執行侵蝕(erosion)及膨脹(dilation)等運算,可以消除雜訊,以及通過考量各種分散區域的集合後,準確地分析出灰階圖區域的長度與寬度。According to the total binarized image synthesized by the above steps, the grayscale image in the image can be judged by image processing technology. For example, in step S211, the length and width of the image can be determined according to the brightness threshold set in the above steps. . What is mentioned here is that in this step, Morphology can be used to find interesting areas in the image. The morphology is a nonlinear image analysis technology that can be used to analyze and identify specific areas and graphics in the image. For example, specific boundaries and contours can be obtained through morphology. In the method disclosed in the present invention, the main purpose is to obtain the grayscale image area formed by shooting the standard multi-scale grayscale image in step S201 from the digital image. . For example, morphological processing can be performed on the total binarized image obtained in step S209, and operations such as erosion and dilation are sequentially performed on the edges of the brightest and darkest areas in the image to eliminate noise , and after considering the collection of various scattered areas, the length and width of the grayscale image area can be accurately analyzed.

通過形態學得出的影像區域可對比出所述方法要得出的感興趣區域,即由總二值化圖決定數位影像中具有一寬度與一長度的灰階圖區域。之後,可採用一圓周劃分法或一級數演算法從數位影像中的灰階圖區域劃分多個灰階區塊,即為所述方法要得出的感興趣區域(region of interest,ROI)(步驟S213)。所述感興趣區域可以參考圖7所示從數位影像中得出包括多個灰階區塊的實施例圖,通過上述圓周劃分法或級數演算法可以進一步地由總二值化圖決定具有一寬度與一長度的灰階圖區域中劃分出多個灰階區塊,相鄰灰階區塊有一定的灰階值差異,因此也可通過影像處理方法計算得出每一區塊灰階值(步驟S215),其目的之一是以每一個灰階區塊的灰階值比對最初(如步驟S201)拍攝的標準多階灰階圖,以評價產生數位影像的影像設備(步驟S217)。The image region obtained by the morphology can be compared with the region of interest to be obtained by the method, that is, the grayscale image region with a width and a length in the digital image determined by the total binarization image. Afterwards, a circle division method or a first-order algorithm can be used to divide a plurality of gray-scale blocks from the gray-scale map area in the digital image, which is the region of interest (ROI) to be obtained by the method. (step S213). The region of interest can be obtained from a digital image as shown in FIG. 7 with reference to an embodiment diagram comprising a plurality of gray-scale blocks. Through the above-mentioned circle division method or series algorithm, it can be further determined by the total binarization diagram. A grayscale area with a width and a length is divided into multiple grayscale blocks, and adjacent grayscale blocks have a certain difference in grayscale value, so the grayscale of each block can also be calculated by image processing methods One of the purposes is to compare the grayscale value of each grayscale block with the standard multi-scale grayscale image taken initially (such as step S201), so as to evaluate the imaging equipment that produces digital images (step S217 ).

圖8以範例顯示以圓周劃分法從數位影像中劃分多個灰階區塊的示意圖,利用圓周劃分法的目的是,因影像設備拍攝照片時,因為鏡頭會有扭曲失真(distortion),通過圖8示意表示的圓周劃分法可以經由考量鏡頭曲率而正確地根據畫素的灰階資訊劃分出多個灰階區塊,也就是相鄰灰階區塊之間有系統設定的差異,使得可以圓周劃分法以等比法則找出灰階之間的間隔,得出圖示畫出的多個灰階區塊。Figure 8 shows a schematic diagram of dividing multiple grayscale blocks from a digital image by using the circle division method as an example. The purpose of using the circle division method is that when the image equipment takes pictures, the lens will have distortion (distortion), through the figure 8 The circle division method schematically indicated can correctly divide multiple gray-scale blocks according to the gray-scale information of pixels by considering the curvature of the lens, that is, there are system-set differences between adjacent gray-scale blocks, so that the circle can be The division method finds the interval between the gray scales according to the law of proportion, and obtains multiple gray scale blocks as shown in the figure.

更者,所述方法還可以級數演算法從數位影像中的灰階圖區域劃分多個灰階區塊,級數演算法如等比級數、等差級數或泰勒級數等,相關級數可以參考以下函式,同樣地也是考量影像設備的鏡頭的曲率產生的變形失真,可以從鏡頭中心向外以指數修正,藉此劃分出每個灰階區塊。What's more, the method can also divide a plurality of gray-scale blocks from the gray-scale map area in the digital image by a series algorithm, such as a geometric series, an arithmetic series or a Taylor series, etc., related The series can refer to the following function, which also considers the distortion caused by the curvature of the lens of the imaging device, which can be corrected exponentially from the center of the lens outward, thereby dividing each gray-scale block.

Figure 02_image001
Figure 02_image001

n = 階數(step)n = order (step)

r = 變形值(distortion)r = deformation value (distortion)

a = 每一階寬度(width of grayscale)a = width of grayscale

綜上所述,根據以上實施例所描述的自動搜尋多灰階感興趣區域的方法與系統,相對於現行手動標記感興趣區域的方法,所提出的方法提出一種智慧自動搜尋感興趣區域的演算法,配合二值化演算、形態學,以及劃分灰階區塊的演算法,從影像設備拍攝標準多階灰階圖得出的影像自動搜尋影像中感興趣區域,其目的之一可為通過影像中的灰階資訊評價影像設備。To sum up, according to the method and system for automatically searching for multi-gray-scale regions of interest described in the above embodiments, compared with the current method of manually marking regions of interest, the proposed method proposes a smart automatic search for regions of interest The method, combined with the binarization algorithm, morphology, and the algorithm for dividing grayscale blocks, automatically searches for the region of interest in the image from the image obtained by shooting the standard multi-scale grayscale image taken by the imaging equipment. One of its purposes can be through Grayscale information in images evaluates imaging devices.

本發明在上文中已以較佳實施例揭露,然熟習本項技術者應理解的是,該實施例僅用於描繪本發明,而不應解讀為限制本發明之範圍。應注意的是,舉凡與該實施例等效之變化與置換,均應設為涵蓋於本發明之範疇內。因此,本發明之保護範圍當以申請專利範圍所界定者為準。The present invention has been disclosed above with preferred embodiments, but those skilled in the art should understand that the embodiments are only used to describe the present invention, and should not be construed as limiting the scope of the present invention. It should be noted that all changes and substitutions equivalent to the embodiment should be included in the scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the scope of the patent application.

100:影像設備 10:電腦系統 101:影像擷取單元 103:處理單元 105:輸出單元 S201~S217:步驟 100: Imaging equipment 10:Computer system 101: Image capture unit 103: Processing unit 105: output unit S201~S217: Steps

圖1顯示實現自動搜尋多灰階感興趣區域的方法的系統實施例示意圖; 圖2顯示自動搜尋多灰階感興趣區域的方法的實施例流程圖; 圖3顯示一標準多階灰階圖; 圖4顯示以最亮門檻值得出二值化圖的實施例圖; 圖5顯示以最暗門檻值得出二值化圖的實施例圖; 圖6顯示最亮與最暗門檻值形成的總二值化圖的實施例圖; 圖7顯示從數位影像中得出包括多個灰階區塊的感興趣區域的實施例圖;以及 圖8顯示以圓周劃分法從數位影像中劃分多個灰階區塊的實施例示意圖。 Fig. 1 shows the schematic diagram of the system embodiment of the method for automatically searching for multi-gray-scale regions of interest; Fig. 2 shows the flow chart of an embodiment of the method for automatically searching for a multi-grayscale region of interest; Figure 3 shows a standard multi-level grayscale image; Fig. 4 shows the embodiment diagram of obtaining the binarization map with the brightest threshold value; Fig. 5 shows the embodiment diagram of obtaining the binarization map with the darkest threshold value; Fig. 6 shows the embodiment diagram of the total binarization map formed by the brightest and darkest threshold values; FIG. 7 shows a diagram of an embodiment of obtaining a region of interest including a plurality of grayscale blocks from a digital image; and FIG. 8 is a schematic diagram of an embodiment of dividing a plurality of gray scale blocks from a digital image by using a circle division method.

S201-S217:方法 S201-S217: Method

Claims (10)

一種自動搜尋多灰階感興趣區域的方法,包括: 取得拍攝一標準多階灰階圖產生的一數位影像; 根據該數位影像中的亮度資訊取得一第一亮度門檻以及一第二亮度門檻; 以該第一亮度門檻二值化該數位影像以得出一第一二值化圖,以及以該第二亮度門檻二值化該數位影像以得出一第二二值化圖; 合成該第一二值化圖與該第二二值化圖以得出一總二值化圖; 由該總二值化圖決定該數位影像中的一灰階圖區域;以及 根據該灰階圖區域,從該數位影像中得出包括多個灰階區塊的感興趣區域。 A method for automatically searching for a multi-grayscale region of interest, comprising: Obtaining a digital image produced by shooting a standard multi-level gray scale image; obtaining a first brightness threshold and a second brightness threshold according to the brightness information in the digital image; binarizing the digital image with the first brightness threshold to obtain a first binarized map, and binarizing the digital image with the second brightness threshold to obtain a second binarized map; synthesizing the first binarized map and the second binarized map to obtain a total binarized map; determining a gray scale image area in the digital image from the total binarized image; and According to the area of the gray scale image, the region of interest including a plurality of gray scale blocks is obtained from the digital image. 如請求項1所述的自動搜尋多灰階感興趣區域的方法,其中該第一亮度門檻為該數位影像中的一最亮值;該第二亮度門檻為該數位影像中的一最暗值。The method for automatically searching for a multi-gray-scale region of interest as described in Claim 1, wherein the first brightness threshold is a brightest value in the digital image; the second brightness threshold is a darkest value in the digital image . 如請求項1所述的自動搜尋多灰階感興趣區域的方法,其中該標準多階灰階圖為一柯達多灰階圖形卡。The method for automatically searching for a multi-grayscale ROI as described in Claim 1, wherein the standard multi-grayscale image is a Kodak multi-grayscale graphics card. 如請求項1所述的自動搜尋多灰階感興趣區域的方法,其中,由該總二值化圖中判定出具有一寬度與一長度的該灰階圖區域。The method for automatically searching multi-gray-scale regions of interest according to claim 1, wherein the gray-scale image region with a width and a length is determined from the total binarized image. 如請求項1至4中任一項所述的自動搜尋多灰階感興趣區域的方法,其中係採用一圓周劃分法或一級數演算法從該數位影像中得出的該灰階圖區域劃分該多個灰階區塊。The method for automatically searching for a multi-gray-scale region of interest as described in any one of claim items 1 to 4, wherein the gray-scale map area obtained from the digital image is obtained by using a circle division method or a first-order arithmetic algorithm Divide the plurality of gray scale blocks. 如請求項5所述的自動搜尋多灰階感興趣區域的方法,其中根據該多個灰階區塊中每一個灰階區塊的灰階值比對該標準多階灰階圖,以評價產生該數位影像的一影像設備。The method for automatically searching for a multi-grayscale region of interest as described in claim item 5, wherein the grayscale value of each grayscale block in the plurality of grayscale blocks is compared to the standard multi-scale grayscale image to evaluate An imaging device that generates the digital image. 一種自動搜尋多灰階感興趣區域的系統,包括: 一電腦系統,包括一影像擷取單元、一處理單元以及一輸出單元,其中運行一自動搜尋多灰階感興趣區域的方法,該方法包括: 通過該影像擷取單元接收由一影像設備拍攝一標準多階灰階圖所產生的一數位影像; 該處理單元處理該數位影像,以根據該數位影像中的亮度資訊取得一第一亮度門檻以及一第二亮度門檻; 該處理單元以該第一亮度門檻二值化該數位影像以得出一第一二值化圖,以及以該第二亮度門檻二值化該數位影像以得出一第二二值化圖; 通過該處理單元合成該第一二值化圖與該第二二值化圖以得出一總二值化圖;以及 通過該處理單元由該總二值化圖決定該數位影像中的一灰階圖區域,並根據該灰階圖區域從該數位影像中得出包括多個灰階區塊的感興趣區域。 A system for automatically searching for a multi-grayscale region of interest, including: A computer system includes an image capture unit, a processing unit, and an output unit, wherein a method for automatically searching for a multi-gray-scale region of interest is run, the method comprising: receiving a digital image generated by shooting a standard multi-scale grayscale image by an image device through the image capture unit; The processing unit processes the digital image to obtain a first brightness threshold and a second brightness threshold according to brightness information in the digital image; The processing unit binarizes the digital image with the first brightness threshold to obtain a first binarized map, and binarizes the digital image with the second brightness threshold to obtain a second binarized map; synthesizing the first binarization map and the second binarization map by the processing unit to obtain a total binarization map; and A grayscale image area in the digital image is determined by the processing unit from the total binarized image, and an interest area including a plurality of grayscale blocks is obtained from the digital image according to the grayscale image area. 如請求項7所述的自動搜尋多灰階感興趣區域的系統,其中該第一亮度門檻為該數位影像中的一最亮值;該第二亮度門檻為該數位影像中的一最暗值。The system for automatically searching for a multi-grayscale region of interest as described in Claim 7, wherein the first brightness threshold is a brightest value in the digital image; the second brightness threshold is a darkest value in the digital image . 如請求項7所述的自動搜尋多灰階感興趣區域的系統,其中,由該總二值化圖中判定出具有一寬度與一長度的該灰階圖區域。The system for automatically searching multi-gray-scale regions of interest as described in claim 7, wherein the gray-scale image region with a width and a length is determined from the total binarized image. 如請求項7至9中任一項所述的自動搜尋多灰階感興趣區域的系統,其中係採用一圓周劃分法或一級數演算法從該數位影像中得出的該灰階圖區域劃分該多個灰階區塊,再根據該多個灰階區塊中每一個灰階區塊的灰階值比對該標準多階灰階圖,用以評價產生該數位影像的一影像設備,通過該輸出單元輸出一評價。The system for automatically searching for a multi-gray-scale region of interest as described in any one of claim items 7 to 9, wherein the gray-scale map area obtained from the digital image is obtained by using a circle division method or a first-order arithmetic algorithm Divide the plurality of gray scale blocks, and then compare the standard multi-scale gray scale image according to the gray scale value of each gray scale block in the multiple gray scale blocks, so as to evaluate an imaging device that generates the digital image , an evaluation is output through the output unit.
TW110135025A 2021-09-21 2021-09-21 Method and system for automatically searching for multi-grayscale regions of interest TW202314643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110135025A TW202314643A (en) 2021-09-21 2021-09-21 Method and system for automatically searching for multi-grayscale regions of interest

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110135025A TW202314643A (en) 2021-09-21 2021-09-21 Method and system for automatically searching for multi-grayscale regions of interest

Publications (1)

Publication Number Publication Date
TW202314643A true TW202314643A (en) 2023-04-01

Family

ID=86943402

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110135025A TW202314643A (en) 2021-09-21 2021-09-21 Method and system for automatically searching for multi-grayscale regions of interest

Country Status (1)

Country Link
TW (1) TW202314643A (en)

Similar Documents

Publication Publication Date Title
JP4772839B2 (en) Image identification method and imaging apparatus
JP7262021B2 (en) Depth Acquisition Device, Depth Acquisition Method and Program
CN107481186B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
EP1474779A2 (en) Assessing the photo quality of a captured image in a digital still camera
CN110349163B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN110728705B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110365897B (en) Image correction method and device, electronic equipment and computer readable storage medium
CN112581481B (en) Image processing method and device, electronic equipment and computer readable storage medium
JPH07249128A (en) Picture processor for vehicle
CN110688926B (en) Subject detection method and apparatus, electronic device, and computer-readable storage medium
CN116958058A (en) Lens dirt detection method and device and image detection equipment
TW202314643A (en) Method and system for automatically searching for multi-grayscale regions of interest
JP5754931B2 (en) Image analysis apparatus, image analysis method, and program
TWI620147B (en) Image synthesis method for synthesizing people
TWM622922U (en) System for automatically searching for multi-grayscale regions of interest
Nagalakshmi et al. Image acquisition, noise removal, edge detection methods in image processing using Matlab for prawn species identification
CN108335278B (en) Image processing method and device, storage medium and electronic equipment
JP2007249743A (en) Identification method for moving object, identification device for moving object and program making identification processing for moving object to be performed
JP2004072415A (en) Intruding object detector
JP5395651B2 (en) Subject tracking device, control method and program for subject tracking device
JPH0514898A (en) Image monitor device
CN113947602B (en) Image brightness detection method and device
JP2013197892A (en) Object recognition apparatus, object recognition method, and computer program for object recognition
JP6955147B2 (en) Image processing device, image processing method, and image processing program
CN117611554A (en) Shadow detection method based on fusion of YUV color space and gradient characteristics