TWI385595B - Image segmentation method using image region merging algorithm - Google Patents

Image segmentation method using image region merging algorithm Download PDF

Info

Publication number
TWI385595B
TWI385595B TW097132200A TW97132200A TWI385595B TW I385595 B TWI385595 B TW I385595B TW 097132200 A TW097132200 A TW 097132200A TW 97132200 A TW97132200 A TW 97132200A TW I385595 B TWI385595 B TW I385595B
Authority
TW
Taiwan
Prior art keywords
image
color
value
region
segmentation method
Prior art date
Application number
TW097132200A
Other languages
Chinese (zh)
Other versions
TW201009747A (en
Original Assignee
Univ Ishou
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 Univ Ishou filed Critical Univ Ishou
Priority to TW097132200A priority Critical patent/TWI385595B/en
Publication of TW201009747A publication Critical patent/TW201009747A/en
Application granted granted Critical
Publication of TWI385595B publication Critical patent/TWI385595B/en

Links

Landscapes

  • Image Analysis (AREA)

Description

利用影像區域合併演算法之影像分割方法Image segmentation method using image region merging algorithm

本發明是有關於一種影像分割方法,特別是指一種利用影像區域合併演算法影像分割方法。The invention relates to an image segmentation method, in particular to an image segmentation method using an image region merge algorithm.

電腦影像技術與工具的發展越來越成熟,讓逼真面貌的影像又再度獲得想像空間的發展。因此,各種影像處理之相關技術也就孕育而生,其中影像分割是不可欠缺的重要處理之一。The development of computer imaging technology and tools has become more and more mature, and the image of realistic appearance has once again gained the development of imaginary space. Therefore, various related technologies of image processing are born, and image segmentation is one of the important processes that cannot be lacked.

簡單來說,影像分割可定義為:將一數位影像分割成若干區域,而這些由像素組成的區域必須為各個相類似的像素所相連而成。此外,影像分割的目的,在於根據影像構成的物件來分割影像,以使電腦像人類一樣具有分析影像特徵的能力。要達到這樣的目的,必須使電腦具有足夠的知識去認知影像的內容。舉例來說,播報員在攝影棚裡播報新聞,播報員是屬於前景的部分,而播報員以外的影像就屬於攝影棚背景的部分,若以此原則執行影像分割,可以將播報員從影像中分割出來。In simple terms, image segmentation can be defined as: dividing a digital image into several regions, and these regions composed of pixels must be connected by similar pixels. In addition, the purpose of image segmentation is to segment images according to the objects formed by the images, so that the computer has the ability to analyze image features like humans. To achieve this goal, the computer must have enough knowledge to recognize the content of the image. For example, the broadcaster broadcasts the news in the studio. The broadcaster is part of the foreground, and the image other than the broadcaster belongs to the background of the studio. If the image segmentation is performed by this principle, the broadcaster can be taken from the image. Split it out.

因此,運用上述之影像分割技術可再進一步地利用於影像特徵擷取領域,而影像特徵擷取是由影像中擷取可以代表這張影像的特徵,例如影像中顏色的分布、影像的紋路構成、與影像中物體分布的特性等。要取得影像中顏色的分布,最簡單的方法就是透過顏色的直方圖(histogram)。舉例來說,將一影像中紅色的分布位置與強弱,轉換成紅 色分布的直方圖,比較不同影像顏色的直方圖,就可以約略看出其相似度。影像紋路構成的特徵,可由其紋路的方向性或重複性來探討。舉例來說,有些木材紋路是水平方向的,而有些木材紋路則是垂直方向的。Therefore, the image segmentation technology described above can be further utilized in the image feature capture field, and the image feature capture is a feature that can be represented by the image, such as the color distribution in the image and the texture of the image. And the characteristics of the distribution of objects in the image. The easiest way to get the color distribution in an image is through the histogram of the color. For example, converting the red distribution position and intensity of an image into red The histogram of the color distribution, comparing the histograms of different image colors, can roughly see the similarity. The characteristics of the image texture can be explored by the directionality or repeatability of the texture. For example, some wood lines are horizontal and some wood lines are vertical.

現今影像分割主要可用於:(1)軍事用途,例如用來檢測所設定之特徵物體,如運動中的坦克車等;或是空照圖之地標的搜尋。Today's image segmentation can be used mainly for: (1) military purposes, such as the detection of set features, such as tanks in motion, or the search for landmarks in aerial maps.

(2)工業用途,例如被動元件之定位與缺陷偵測技術;(3)環保用途,例如用來對環境變化的控制測量或是因天災所致之地區災害評估。(2) Industrial uses, such as passive component positioning and defect detection technology; (3) environmentally friendly uses, such as control measurements for environmental changes or regional disaster assessments due to natural disasters.

(4)目標搜索,有利於加強感興趣目標物而減弱無關的影像成分,例如警方欲從路上的各種物體中辯認出車輛來之車輛追蹤系統或其他如自動大樓監控系統、人臉辨識系統及道路車流計算等。(4) Target search is beneficial to strengthen the target of interest and weaken irrelevant image components. For example, the police want to identify the vehicle tracking system from various objects on the road or other such as automatic building monitoring system and face recognition system. And road traffic calculations, etc.

再者,目前影像分割主要技術手段大致可分為二階段:(1)影像量化,其目的是降低影像使用的顏色。影像量化的步驟大致可以分成兩個部份,首先是取得影像中主要的代表色,其次是將影像的原始顏色以代表色來替換。而代表色擷取的方式有很多,一般是以聚類(clustering)的方法來達成。最簡單的方式就是使用k-mean演算法,首先要決定類別的數量(也就是k值),接著以亂數產生k個種子,並且針對每一個資料點計算資料點本身與每一個種子之間的距離,並將此資料點歸類至距離最小的類別中。然後計算 每一類的平均值,並以此平均值為新的種子,重覆上述分類作業,直到每一類的資料點不再產生變化為止。Furthermore, the main technical means of image segmentation can be roughly divided into two stages: (1) image quantization, the purpose of which is to reduce the color used by the image. The step of image quantization can be roughly divided into two parts, the first is to obtain the main representative color in the image, and the second is to replace the original color of the image with the representative color. There are many ways to capture color, which is generally achieved by clustering. The easiest way is to use the k-mean algorithm, first determine the number of categories (that is, the value of k), then generate k seeds in random numbers, and calculate the data points themselves and each seed for each data point. The distance and classify this data point into the category with the smallest distance. Then calculate The average of each class, and the average as the new seed, repeat the above classification work until the data points of each category no longer change.

至於顏色的替換,一般的做法就是針對影像中每一個像素(pixel),計算該像素的顏色與每一個代表色之間的距離,然後以距離最小的代表色來替換該像素的顏色。As for color replacement, the general approach is to calculate the distance between the color of the pixel and each representative color for each pixel in the image, and then replace the color of the pixel with the representative color with the smallest distance.

(2)影像區域合併,其目的是要將影像初始分割形成的多個較小的區域合併成較大且對後續應用較有意義的區域。一般採用的合併方式是由小區域開始,將其合併到與其相鄰並且顏色最接近的區域,直到所有存在的區域都大於一定的面積為止。(2) Image area merging, the purpose of which is to merge a plurality of smaller areas formed by initial segmentation of the image into larger and more meaningful areas for subsequent applications. The general method of merging is to start with a small area and merge it into the area adjacent to it and closest to the color until all existing areas are larger than a certain area.

然而,上述之現有方法中,在進行影像區域合併時,一般傳統所使用的合併方式是由小區域開始,將其合併到與其相鄰並且顏色最接近的區域,直到所有存在的區域都大於一定的面積為止。由於影像量化後所形成之各個初始區域之間顏色本來就不是太相近,只考量顏色來進行合併所得到的結果往往和人類的感知不符。However, in the above existing method, when merging image regions, the conventionally used merging method starts from a small region and merges it into the region adjacent to and closest to the color until all existing regions are larger than certain. The area is up to now. Since the colors between the initial regions formed by image quantization are not too similar, the results obtained by considering only the colors to merge are often inconsistent with human perception.

因此,如何針對上述現有技術缺失之改良,研發出較佳的影像區域合併技術,便成為相關業者所欲努力研究的方向。Therefore, how to develop a better image area merging technology for the improvement of the above-mentioned prior art deficiencies has become a direction that the relevant industry is trying to study.

因此,本發明之目的,即在提供一種利用影像區域合併演算法之影像分割方法。Accordingly, it is an object of the present invention to provide an image segmentation method using an image region merging algorithm.

於是,本發明利用影像區域合併演算法之影像分割方法包含以下步驟: (a)輸入一原始影像,並對該原始影像進行一量化運算處理,而得到一量化影像及複數於該量化影像內之顏色區域。Therefore, the image segmentation method using the image region merging algorithm of the present invention comprises the following steps: (a) inputting an original image, and performing a quantization operation on the original image to obtain a quantized image and a plurality of color regions in the quantized image.

(b)藉由一重要性索引作業,對該量化影像內之各顏色區域進行重要性評估,而得出與該等顏色區域相對應之複數重要性索引值。(b) performing an importance evaluation on each color region in the quantized image by an importance indexing operation to obtain a complex importance index value corresponding to the color regions.

(c)判斷該等顏色區域之重要性索引值是否低於一門檻值,若是,則利用一合併可能性作業對每一低於該門檻值之顏色區域進行評估再合併,再得出一第一合併結果。(c) determining whether the importance index value of the color regions is lower than a threshold value, and if so, using a merge possibility operation to evaluate and merge each color region below the threshold value, and then obtain a first A combined result.

(d)輸出一分割影像。(d) Output a split image.

本發明之功效在於,透過該量化運算處理、該重要性索引作業,以及該合併可能性作業,對該原始影像進行處理,產生出該分割影像,而達到改良現有技術缺失之目的。The invention has the effect of processing the original image through the quantization operation processing, the importance indexing operation, and the merging possibility operation to generate the segmented image, thereby achieving the purpose of improving the prior art.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之一較佳實施例的詳細說明中,將可清楚的呈現。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.

參閱圖1至圖3及附件1至3,本發明利用影像區域合併演算法之影像分割方法的一較佳實施例,包含以下步驟:首先,如步驟11所示,輸入一原始影像20,並對該原始影像20進行一量化運算處理,而得到一量化影像21及複數於該量化影像21內之顏色區域22。Referring to FIG. 1 to FIG. 3 and FIG. 1 to FIG. 3, a preferred embodiment of the image segmentation method using the image region merging algorithm of the present invention comprises the following steps: First, as shown in step 11, an original image 20 is input, and A quantization operation is performed on the original image 20 to obtain a quantized image 21 and a plurality of color regions 22 in the quantized image 21.

值得一提的是,在本較佳實施例中,該該量化運算處 理包括以下次步驟:首先,如次步驟111所示,先對該原始影像20進行一模式轉換作業,得出複數第一影像值30;而該模式轉換作業實際上就是把該原始影像20分成如圖2所示之複數顏色通道(即該等第一影像值30);而該等顏色通道是區分為亮度通道31、U色差通道32及V色差通道33,也就是目前相關領域中所常用的YUV。It is worth mentioning that in the preferred embodiment, the quantization operation is The method includes the following steps: first, as shown in step 111, a mode conversion operation is performed on the original image 20 to obtain a plurality of first image values 30; and the mode conversion job actually divides the original image 20 into a plurality of color channels (ie, the first image values 30) as shown in FIG. 2; and the color channels are divided into a brightness channel 31, a U color difference channel 32, and a V color difference channel 33, which are commonly used in related fields. YUV.

其次,如次步驟112所示,對該等第一影像值30進行一分析處理作業,使得該等第一影像值30變成如圖3所示之複數第二影像值40。Next, as shown in sub-step 112, an analysis processing operation is performed on the first image values 30 such that the first image values 30 become a plurality of second image values 40 as shown in FIG.

再來,如次步驟113所示,將該等第二影像值40結合成如附件2所示之複數顏色候選子。Then, as shown in sub-step 113, the second image values 40 are combined into a plurality of color candidates as shown in Annex 2.

接著,如次步驟114所示,對該等顏色候選子進行一排序編號作業,以將該原始影像之複數原始色彩替換成該等顏色候選子,而得到該量化影像。在此,我們為所有的顏色候選子建立一如附件3所示之顏色對應表,並將這些無序的顏色數字,結合成字串並排序及編號。並以該原始影像之複數原始顏色為索引,查表取得對應之顏色候選子,並利用二元搜尋法得到各顏色候選子的編號,對該原始影像進行量化,將該等原始色彩替換成該等顏色候選子,得到一量化影像21及複數顏色區域22。因此每一個像素顏色替換的時間複雜度便由Cn 變成了log2 Cn +1。節省了大量的計算時間。Next, as shown in sub-step 114, a sort numbering operation is performed on the color candidate candidates to replace the complex original color of the original image with the color candidate to obtain the quantized image. Here, we create a color correspondence table as shown in Annex 3 for all color candidates, and combine these unordered color numbers into strings and sort and number them. And taking the original color of the original image as an index, looking up the table to obtain the corresponding color candidate, and using the binary search method to obtain the number of each color candidate, quantizing the original image, and replacing the original color with the original color A color candidate is obtained, and a quantized image 21 and a plurality of color regions 22 are obtained. Therefore, the time complexity of each pixel color replacement is changed from Cn to log 2 Cn +1. Save a lot of computing time.

在此補充說明的是,如圖2及圖3所示,該分析處理 作業是對原始直方圖利用一非參數密度函數使其平滑化。 其詳細的運算細節為:對直方圖之每一等級,用密度估測核心函數計算出其他等級對該等級之貢獻並加總後求其平均值做為新的直方圖函數值,最後再進行局部最大值之選定,而得出該等第二影像值40。然而前述之核心函數、核心值及其他相關參數間之關係,可藉由下列公式而詳知: f(x) :代表非參數密度函數h(r) :代表三個顏色通道中任一個通道的直方圖r k :代表某一個顏色通道中第k 等級K σ (x ):代表密度估測核心函數σ:代表密度估測核心函數之頻寬M :代表某一個顏色通道的等級總數It is additionally noted that, as shown in FIGS. 2 and 3, the analysis processing operation smoothes the original histogram using a non-parametric density function. The detailed operation details are: for each level of the histogram, the density estimation core function is used to calculate the contribution of other levels to the level and summed to obtain the average value as a new histogram function value, and finally The selection of the local maximum values yields the second image values 40. However, the relationship between the aforementioned core functions, core values and other related parameters can be known by the following formula: f(x) : represents the non-parametric density function h(r) : represents a histogram of any of the three color channels r k : represents the kth level of a color channel K σ ( x ): represents the density estimation core Function σ: represents the bandwidth of the density estimation core function M : represents the total number of levels of a color channel

圖2為該原始影像20經YUV通道轉換後之個別直方圖函數圖形,然經由前述之作業處理後,得出如圖3所示之直方圖函數圖形。本例中每一直方圖函數圖形恰好可以選出三個局部最大值,進而得出該等9個(如圖3中之圓圈標示處)第二影像值。2 is an image of the individual histogram function after the original image 20 is converted by the YUV channel, and after the above-mentioned operation processing, a histogram function graph as shown in FIG. 3 is obtained. In this example, each histogram function graph can just select three local maximum values, and then obtain the second image values of the nine (as indicated by the circle in FIG. 3).

緊接著,如步驟12所示,藉由一重要性索引作業,對該量化影像21內之各顏色區域22進行重要性評估,而得出與該等顏色區域22相對應之複數重要性索引值。Next, as shown in step 12, the importance of each color region 22 in the quantized image 21 is evaluated by an importance indexing operation, and the complex importance index values corresponding to the color regions 22 are obtained. .

值得一提的是,某一區域的重要性索引是藉由將該區域之像素數量平方後,除以所有顏色區域22之像素數量的總和,再除以所有與該區域相同顏色之區域22中面積最大者之像素數量,而得出每一顏色區域22之重要性索引值, 並將所得出之該等重要性索引值由小至大予以排序;而前述之重要性索引值可利用以下公式實現: R i j :顏色編號為i ,區域索引為j 的區域Imp(R i j )R' j 的重要性索引R i j 的像素數量Mor (N R' ):顏色編號為i 的區域中最大者的像素數量:影像大小m :初始區域數量It is worth mentioning that the importance index of a certain area is obtained by dividing the number of pixels of the area by the sum of the number of pixels of all the color areas 22, and dividing by all the areas 22 of the same color as the area. The number of pixels of the largest area is obtained, and the importance index value of each color area 22 is obtained, and the obtained importance index values are sorted from small to large; and the aforementioned importance index value can use the following formula achieve: R i j : the region where the color number is i and the region index is j . Imp(R i j ) : The importance index of R' j : Number of pixels of R i j Mor ( N R' ): the number of pixels in the region with the color number i : Image size m : number of initial areas

然後,如步驟13所示,依序判斷該等顏色區域22之重要性索引值是否低於一門檻值,若否,則如步驟15所示,得出一第一合併結果;若是,則如步驟14所示,利用一合併可能性作業對每一低於該門檻值之顏色區域22進行評估再合併,循序地檢查是否有下一顏色區域存在而須進行該合併可能性作業,最後得出如步驟15所示之第一合併結果23(在本較佳實施例中,得出如附件1內由數字標示0到6之7個區域),然後進行步驟18。Then, as shown in step 13, it is determined whether the importance index value of the color regions 22 is lower than a threshold value. If not, as shown in step 15, a first merge result is obtained; if yes, then Step 14 shows that each color region 22 below the threshold value is evaluated and merged by using a merge possibility job, and it is sequentially checked whether there is a next color region and the merge possibility operation is required, and finally, The first combined result 23 as shown in step 15 (in the preferred embodiment, 7 regions are indicated by the numbers 0 to 6 in the attached example), and then step 18 is performed.

而在上述步驟13至步驟15中所提及之每二顏色區域22間之合併,是將被合併者顏色編號替換為另一顏色編號,而新的顏色則為二者依面積比例之加權平均。The combination of each of the two color regions 22 mentioned in the above steps 13 to 15 replaces the merged color number with another color number, and the new color is the weighted average of the ratio of the two regions. .

此外,在本較佳實施例中,該合併可能性作業,首先是分別計算出每一低於該門檻值之顏色區域22與其相鄰之每一顏色區域22間的顏色距離值與邊界長度值,及其相鄰之每一顏色區域22之面積值。接著由以下合併可能性公式計算出一合併可能性: ML (a,k ) 區域a和k之間的合併可能性CD (a,k ) 區域a和k之間的顏色距離BL (a,k ) 區域a和k之間的邊界長度RS (k ) 區域k的區域大小w 1 ,w 2 ,w 3 , 分別為顏色距離,邊界長度及區域大小等項目的權重max( ) 極大值函數 簡而言之,上述式子所要表示的是,任二顏色區域22間之顏色愈相近,邊界長度愈長,區域面積愈小,就代表此二顏色區域22間有愈強的合併可能性,也因此該二顏色區域22即應合併在一起。In addition, in the preferred embodiment, the merge possibility operation first calculates color distance values and boundary length values between each color region 22 below the threshold value and each color region 22 adjacent thereto. And the area value of each color region 22 adjacent thereto. Then a consolidation possibility is calculated by the following combination probability formula: ML ( a, k ) merging possibility between regions a and k CD ( a, k ) color distance between regions a and k BL ( a, k ) boundary length RS ( k ) between regions a and k The area size w 1 , w 2 , w 3 of the area k is the weight of the item such as the color distance, the boundary length and the area size, respectively. The maximum value function is simply, the above expression is to represent any two colors. The closer the colors between the regions 22 are, the longer the boundary length is, and the smaller the area is, the stronger the possibility of merging between the two color regions 22, and therefore the two color regions 22 should be merged together.

而後,如步驟16所示,對該第一合併結果23利用一整體相似度評估進行二次合併,得出一第二合併結果24。 在本較佳實施例中,該整體相似度評估是藉由對該第一合併結果23再次進行該重要性索引作業及合併可能性作業所實現。Then, as shown in step 16, the first merge result 23 is subjected to a second merge using an overall similarity evaluation to obtain a second merge result 24. In the preferred embodiment, the overall similarity assessment is achieved by performing the importance indexing operation and the merge possibility job again on the first merge result 23.

最後,如步驟17所示,輸出一標有複數分割線的分割影像25。Finally, as shown in step 17, a segmented image 25 labeled with a plurality of dividing lines is output.

歸納上述,本發明利用影像區域合併演算法之影像分割方法,主要是將該原始影像20藉由上述之模式轉換作業、分析處理作業、編號排序作業而得出該量化影像21及該等顏色區域22,之後,再藉由該重要性索引作業以及該合併可能性作業(可總稱為影像區域合併演算法),得出該第一合併結果23,甚至可依所需,利用整體相似度評估進行二次合併作業,而得出該第二合併結果24,最後產生出該分割影像25。In summary, the image segmentation method of the image region merging algorithm is mainly used to obtain the quantized image 21 and the color regions by using the mode conversion operation, the analysis processing operation, and the number sorting operation. 22. Thereafter, the first merge result 23 is obtained by the importance indexing operation and the merge possibility job (which may be collectively referred to as an image area merge algorithm), and may even be performed by using an overall similarity evaluation as needed. The second merge operation is performed to obtain the second merge result 24, and finally the split image 25 is generated.

此外,鑒於現有之僅利用顏色距離之合併的缺失進行改良,故前述之重要性索引作業以及合併可能性作業的運用,不但考量了合併時,顏色的同質性,同時亦考量了區域間之幾何特性,因此,大大降低了使用傳統方法所造成之過度分割之情況,也因此,藉由本發明利用影像區域合併演算法之影像分割方法所得到的分割結果與人類的感知也就更為接近,所以確實能夠達到本發明之目的。In addition, in view of the existing improvement using only the lack of color distance combination, the above-mentioned importance indexing operation and the use of the merged possibility operation not only consider the homogeneity of color when merging, but also consider the geometry between regions. The characteristics, therefore, greatly reduce the situation of excessive segmentation caused by the conventional method, and therefore, the segmentation result obtained by the image segmentation method using the image region merging algorithm of the present invention is closer to the human perception, so It is indeed possible to achieve the object of the present invention.

惟以上所述者,僅為本發明之一較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, that is, the simple equivalent changes and modifications made by the scope of the present invention and the description of the invention. All remain within the scope of the invention patent.

11~17‧‧‧步驟11~17‧‧‧Steps

111~114‧‧‧次步驟111~114‧‧ steps

20‧‧‧原始影像20‧‧‧ original image

21‧‧‧量化影像21‧‧‧Quantified images

22‧‧‧顏色區域22‧‧‧Color area

23‧‧‧第一合併結果23‧‧‧ First combined results

24‧‧‧第二合併結果24‧‧‧Second combined results

25‧‧‧分割影像25‧‧‧Split image

30‧‧‧第一影像值30‧‧‧ first image value

31‧‧‧亮度通道31‧‧‧Brightness channel

32‧‧‧U色差通道32‧‧‧U color difference channel

33‧‧‧V色差通道33‧‧‧V color difference channel

40‧‧‧第二影像值40‧‧‧second image value

圖1是一流程圖,說明本發明影像分割方法之較佳實施例的處理流程;圖2是一組直方圖,說明該較佳實施例中,將該原始影像轉換為複數第一影像值;及圖3是一組直方圖,說明該較佳實施例中,將該第一影像值轉換為複數第二影像值。1 is a flow chart illustrating a process flow of a preferred embodiment of the image segmentation method of the present invention; FIG. 2 is a set of histograms illustrating the conversion of the original image into a plurality of first image values in the preferred embodiment; FIG. 3 is a set of histograms illustrating the conversion of the first image value into a plurality of second image values in the preferred embodiment.

【附件簡單說明】[A brief description of the attachment]

附件1是一組影像圖,說明該較佳實施例中,一原始影像、一量化影像、複數顏色區域、一第一合併結果、一第二合併結果及一分割影像所呈現之個別差異;附件2是一示意圖,說明該較佳實施例中,由複數第二影像值所結合而成的顏色候選子態樣;及 附件3是一對應表,說明該較佳實施例中,由該等原始色彩所取得該等顏色候選子的最相近顏色候選子快對應表。Attachment 1 is a set of image diagrams showing an individual difference between an original image, a quantized image, a complex color region, a first merge result, a second merge result, and a split image in the preferred embodiment; 2 is a schematic diagram illustrating a color candidate sub-view formed by combining a plurality of second image values in the preferred embodiment; and Attachment 3 is a correspondence table illustrating the closest color candidate candidate correspondence tables of the color candidates from the original colors.

11~17‧‧‧步驟11~17‧‧‧Steps

111~114‧‧‧次步驟111~114‧‧ steps

Claims (14)

一種利用影像區域合併演算法之影像分割方法包含以下步驟:(a)輸入一原始影像,並對該原始影像進行一量化運算處理,而得到一量化影像及複數於該量化影像內之顏色區域;(b)藉由一重要性索引作業,對該量化影像內之各顏色區域進行重要性評估,而得出與該等顏色區域相對應之複數重要性索引值;(c)判斷該等顏色區域之重要性索引值是否低於一門檻值,若是,則利用一合併可能性作業對每一低於該門檻值之顏色區域進行評估再合併,再得出至一第一合併結果,其中該合併可能性作業是藉由分別計算出每一低於該門檻值之顏色區域與其相鄰之每一顏色區域間的顏色距離值與邊界長度值,及其相鄰之每一顏色區域之面積值,接著,利用一合併可能性公式計算出該區域應被合併之相鄰區域;及(d)輸出一分割影像。 An image segmentation method using an image region merging algorithm includes the following steps: (a) inputting an original image, and performing a quantization operation on the original image to obtain a quantized image and a plurality of color regions in the quantized image; (b) performing an importance evaluation on each color region in the quantized image by an importance indexing operation to obtain a complex importance index value corresponding to the color regions; (c) determining the color regions Whether the importance index value is lower than a threshold value, and if so, using a merge possibility operation to evaluate and merge each color region below the threshold value, and then obtain a first merge result, wherein the merge The possibility operation is to calculate the color distance value and the boundary length value between each color region adjacent to the threshold region and each adjacent color region, and the area value of each adjacent color region. Next, a merge possibility formula is used to calculate an adjacent region in which the region should be merged; and (d) a split image is output. 依據申請專利範圍第1項所述之利用影像區域合併演算法之影像分割方法,其中,在該(b)步驟中,該重要性索引作業是藉由分別將每一顏色區域之像素數量平方後,除以所有顏色區域之像素數量的總和,再除以所有顏色區域中所佔區域最大者之像素數量,而得出每一顏色區域之重要性索引值。 The image segmentation method using an image region merging algorithm according to claim 1, wherein in the step (b), the importance indexing operation is performed by respectively squaring the number of pixels in each color region. Divide by the sum of the number of pixels in all color regions, and divide by the number of pixels in the largest region of all color regions to obtain the importance index value for each color region. 依據申請專利範圍第2項所述之利用影像區域合併演算法之影像分割方法,更包含一位於該(c)步驟與該(d)步驟間之(e)步驟,對該第一合併結果進行一整體相似性評估合併作業,得出一第二合併結果。 The image segmentation method using the image region merging algorithm according to item 2 of the patent application scope further includes a step (e) between the step (c) and the step (d), and the first combined result is performed. An overall similarity assessment of the combined operations yields a second combined result. 依據申請專利範圍第3項所述之利用影像區域合併演算法之影像分割方法,其中,在該(e)步驟中,該整體相似性評估合併作業是對該第一合併結果再次進行該重要性索引作業及合併可能性作業。 An image segmentation method using an image region merging algorithm according to claim 3, wherein in the step (e), the overall similarity evaluation merging operation is to perform the importance again on the first merging result Index jobs and merge possibility jobs. 依據申請專利範圍第4項所述之利用影像區域合併演算法之影像分割方法,其中,在該(a)步驟中,該量化運算處理是先對該原始影像進行一模式轉換作業,而成複數第一影像值,再對該等第一影像值進行一分析處理作業,使得該等第一影像值變成複數第二影像值,接著再將該等第二影像值結合成複數顏色候選子,並對該等顏色候選子進行一排序編號作業,以將該原始影像之複數原始色彩替換成該等顏色候選子,而得到該量化影像。 According to the image segmentation method of the image region merging algorithm according to the fourth aspect of the patent application, in the step (a), the quantization operation process first performs a mode conversion operation on the original image, and becomes a plural number. And performing, by the first image value, an analysis processing operation on the first image values, so that the first image values become a plurality of second image values, and then combining the second image values into a plurality of color candidates, and Performing a sort numbering operation on the color candidate to replace the complex original color of the original image with the color candidate to obtain the quantized image. 依據申請專利範圍第5項所述之利用影像區域合併演算法之影像分割方法,其中,在該(a)步驟之排序編號作業中,該等原始顏色之替換,是以該等原始顏色為索引,查詢一與該等原始顏色最相近顏色候選子快速對應表而取得對應之顏色候選子及其編號。 An image segmentation method using an image region merging algorithm according to claim 5, wherein in the sorting number operation of the step (a), the replacement of the original colors is indexed by the original colors And querying a color candidate candidate fast matching table that is closest to the original colors to obtain a corresponding color candidate and its number. 依據申請專利範圍第6項所述之利用影像區域合併演算法之影像分割方法,其中,在該(c)步驟中,每二顏色區域間之合併,是將被合併者之顏色編號替換為另一者顏 色編號,而新的顏色則為二者依面積比例之加權平均。 The image segmentation method using the image region merging algorithm according to the sixth aspect of the patent application, wherein, in the step (c), the merging between the two color regions replaces the color number of the merged person with another One person The color number, and the new color is the weighted average of the ratio of the two areas. 依據申請專利範圍第7項所述之利用影像區域合併演算法之影像分割方法,其中,在該(a)步驟中,該模式轉換作業是將該原始影像分成複數顏色通道,成為該等第一影像值,而該分析處理作業是對原始直方圖利用一非參數密度函數使其平滑化,最後再進行局部最大值之選定,而得出該等第二影像值。 An image segmentation method using an image region merging algorithm according to claim 7, wherein in the step (a), the mode conversion operation divides the original image into a plurality of color channels, and becomes the first The image processing value is obtained by smoothing the original histogram with a non-parametric density function, and finally selecting the local maximum value to obtain the second image values. 依據申請專利範圍第8項所述之利用影像區域合併演算法之影像分割方法,其中,在該(a)步驟中,該等顏色候選子的編號是利用二元搜尋法來取得。 The image segmentation method using the image region merging algorithm according to the eighth aspect of the patent application, wherein in the step (a), the numbers of the color candidate numbers are obtained by a binary search method. 依據申請專利範圍第9項所述之利用影像區域合併演算法之影像分割方法,其中,在該(c)步驟中,該合併可能性公式是藉由一第一權值乘上1減去各該顏色距離值所佔其中最大顏色距離值之比例後,加上一第二權值乘上各該邊界長度值所佔其中最大邊界長度值之比例,再加上一第三權值乘上1減去各該面積值所佔其中最大面積值之比例,最後得出至少一可能性值。 An image segmentation method using an image region merging algorithm according to claim 9, wherein in the step (c), the merging possibility formula is obtained by multiplying a first weight by 1 and subtracting each After the color distance value accounts for the ratio of the maximum color distance value, a second weight is multiplied by the ratio of the maximum boundary length value of each of the boundary length values, and a third weight is multiplied by 1 Subtracting the ratio of the maximum area value of each of the area values, and finally obtaining at least one probability value. 依據申請專利範圍第10項所述之利用影像區域合併演算法之影像分割方法,其中,在該(a)步驟中,該非參數密度函數是將其各顏色通道中每一等級值帶入其顏色通道之直方圖函數,並將該等等級值之其中一值減去其他等級值後帶入一密度估測核心函數,得出複數核心值,再對所得之核心值加總後再除以其顏色通道之等級總數。 An image segmentation method using an image region merging algorithm according to claim 10, wherein in the step (a), the non-parametric density function brings each gradation value of each color channel into its color. The histogram function of the channel, and subtracting one of the rank values from other rank values into a density estimation kernel function to obtain a complex core value, and then adding the total core value to the core value The total number of levels of the color channel. 依據申請專利範圍第11項所述之利用影像區域合併演算 法之影像分割方法,其中,在該(b)步驟中,所得出之該等重要性索引值是由小至大予以排序,而在該(c)步驟中,是依序地判斷該等顏色區域之重要性索引值是否低於該門檻值。 Image area merging calculation according to item 11 of the patent application scope The image segmentation method of the method, wherein in the step (b), the obtained importance index values are sorted from small to large, and in the step (c), the colors are sequentially determined. Whether the importance index value of the region is lower than the threshold value. 依據申請專利範圍第12項所述之利用影像區域合併演算法之影像分割方法,其中,在該(c)步驟中,當所判斷出該等顏色區域之重要性索引值是不低於該門檻值時,則直接得出該第一合併結果,並進行下一步驟。 An image segmentation method using an image region merging algorithm according to claim 12, wherein, in the step (c), when the importance index value of the color regions is determined to be not lower than the threshold When the value is obtained, the first combined result is directly obtained, and the next step is performed. 依據申請專利範圍第1或12項所述之利用影像區域合併演算法之影像分割方法,其中,在該(b)步驟中之重要性索引作業及在該(c)步驟中之合併可能性作業總稱為影像區域合併演算法。An image segmentation method using an image region merging algorithm according to claim 1 or 12, wherein the importance indexing operation in the step (b) and the merging possibility operation in the (c) step It is collectively referred to as an image area merge algorithm.
TW097132200A 2008-08-22 2008-08-22 Image segmentation method using image region merging algorithm TWI385595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW097132200A TWI385595B (en) 2008-08-22 2008-08-22 Image segmentation method using image region merging algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW097132200A TWI385595B (en) 2008-08-22 2008-08-22 Image segmentation method using image region merging algorithm

Publications (2)

Publication Number Publication Date
TW201009747A TW201009747A (en) 2010-03-01
TWI385595B true TWI385595B (en) 2013-02-11

Family

ID=44827969

Family Applications (1)

Application Number Title Priority Date Filing Date
TW097132200A TWI385595B (en) 2008-08-22 2008-08-22 Image segmentation method using image region merging algorithm

Country Status (1)

Country Link
TW (1) TWI385595B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI751571B (en) * 2020-06-02 2022-01-01 仁寶電腦工業股份有限公司 Video playback system and environment atmosphere adjusting method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW376670B (en) * 1998-09-11 1999-12-11 Bing-Fei Wu Textural dividing method for color document
TW569152B (en) * 2002-09-16 2004-01-01 Chunghwa Telecom Co Ltd Cutting method of string/character in image
TW577227B (en) * 2002-04-23 2004-02-21 Ind Tech Res Inst Method and apparatus for removing background of visual content
US20060045336A1 (en) * 2004-08-30 2006-03-02 Samsung Electronics Co., Ltd. Method of image segmentation
US20070036436A1 (en) * 2005-01-10 2007-02-15 Michael Zahniser Method for improved image segmentation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW376670B (en) * 1998-09-11 1999-12-11 Bing-Fei Wu Textural dividing method for color document
TW577227B (en) * 2002-04-23 2004-02-21 Ind Tech Res Inst Method and apparatus for removing background of visual content
TW569152B (en) * 2002-09-16 2004-01-01 Chunghwa Telecom Co Ltd Cutting method of string/character in image
US20060045336A1 (en) * 2004-08-30 2006-03-02 Samsung Electronics Co., Ltd. Method of image segmentation
US20070036436A1 (en) * 2005-01-10 2007-02-15 Michael Zahniser Method for improved image segmentation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Y.-H. Kuan, S.-T. Chen, C.-M. Kuo, and C.-H. Hsieh, "A Novel Unsupervised Salient Region Segmentation for Color Images," in First International Conference on Innovative Computing, Information and Control. ICICIC '06. 2006/08/30~09/01 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI751571B (en) * 2020-06-02 2022-01-01 仁寶電腦工業股份有限公司 Video playback system and environment atmosphere adjusting method

Also Published As

Publication number Publication date
TW201009747A (en) 2010-03-01

Similar Documents

Publication Publication Date Title
CN108985186B (en) A pedestrian detection method in unmanned driving based on improved YOLOv2
CN109684922B (en) A multi-model recognition method for finished dishes based on convolutional neural network
CN111967464B (en) A weakly supervised target positioning method based on deep learning
CN113409267B (en) Pavement crack detection and segmentation method based on deep learning
CN114298948A (en) Anomaly detection method of dome camera monitoring based on PSPNet-RCNN
JP2002288658A (en) Object extraction apparatus and method based on region feature value matching of region-divided video
CN101770583B (en) Template matching method based on global features of scene
CN107688830B (en) Generation method of vision information correlation layer for case serial-parallel
CN106557740B (en) A Recognition Method of Oil Depot Targets in Remote Sensing Images
CN112241758B (en) Devices and methods for evaluating saliency map determiners
CN101388020A (en) A Content-Based Composite Image Retrieval Method
CN102819747B (en) Method for automatically classifying forestry service images
CN118968035B (en) A method for detecting small targets in target areas based on UAV images
CN103810707B (en) A kind of image vision significance detection method based on moving-vision focus
Zheng et al. Segmentation method for whole vehicle wood detection based on improved YOLACT instance segmentation model
CN108615401B (en) Indoor non-uniform light parking space recognition method based on deep learning
CN111368625B (en) A pedestrian target detection method based on cascade optimization
Kaur et al. A methodology for the performance analysis of cluster based image segmentation
CN115861956B (en) Yolov3 road garbage detection method based on decoupling head
CN105469099B (en) Pavement crack detection and identification method based on sparse representation classification
CN107358246A (en) A kind of method for being finely divided class to object using convolutional neural networks
TWI385595B (en) Image segmentation method using image region merging algorithm
CN111127485B (en) Method, device and equipment for extracting target area in CT image
CN116311088B (en) A Construction Safety Monitoring Method Based on Construction Site
Liu et al. A novel image segmentation algorithm based on visual saliency detection and integrated feature extraction

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees