TWI236639B - Outline processing method for bitmap image - Google Patents

Outline processing method for bitmap image Download PDF

Info

Publication number
TWI236639B
TWI236639B TW91109430A TW91109430A TWI236639B TW I236639 B TWI236639 B TW I236639B TW 91109430 A TW91109430 A TW 91109430A TW 91109430 A TW91109430 A TW 91109430A TW I236639 B TWI236639 B TW I236639B
Authority
TW
Taiwan
Prior art keywords
image
contour line
contour
original image
present
Prior art date
Application number
TW91109430A
Other languages
Chinese (zh)
Inventor
Win-Harn Liu
Jeff Song
Hong-Liang Zhou
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to TW91109430A priority Critical patent/TWI236639B/en
Application granted granted Critical
Publication of TWI236639B publication Critical patent/TWI236639B/en

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The present invention provides an image processing method specifically for outline processing and output method of bitmap image. The present invention discloses a set of complete input and output method to abstract the object outline information of an image, and detect the difference of gray-level values by converting the image colors into gray levels, so as to separate the blocks with large differences to determine the outline for the object, and store the abstracted outline data in a compressed manner for saving the memory space and improving the system performance.

Description

1236639 --EE 91109430 年一月日 修—足--- 五、發明說明(1) 【發明領域】 本發明為一種影像處理方法,特別是一種針對點矩陣 影像之圖形輪廓線處理方法。 【發明背景】 目前與數位影像處理相關的技術很多,各有不同的處 理對象和適用範圍,且數位影像處理的技術已被廣泛地應 用於各種工程和科學研究上。其中,對於二維(ΐ W 〇 -dimension)(平面)影像空間之處理,若單就針對尋找點矩 陣影像的輪廓線(〇 u 11 i n e )技術而言,以往對物件輪扉線 的處理技術往往只限於2 5 6色點矩陣(Bitmap)圖之處理, 這種技術是針對2 5 6色點矩陣之處理方法,對於其餘非2 5 6 色之點矩陣影像則無法處理,然而實際上,許多影像皆不 是以2 5 6色點矩陣的形式存在,因此,這種方法十分不具 通用性與實用性。 又或者,有些影像處理方法是採用整張圖搜尋填充的 方式’遇到像素量較大的圖,則會耗去相當可觀的時間, 也浪費系統的處理效能。但像影像分割、區塊分離…等找 出物體輪靡線的技術,對影像處理而言,又是極為重要的 部分’且輪廓線取得的準確性與方便性,也會影響影像處 理系統的好壞,因此,面對這種情形,實在非常需要一種 簡便的影像處理方法來解決此一問題。 【發明之目的及概述】 有鑑於此,本發明乃為解決上述問題而提出一種點矩 陣影像之圖形輪廓線處理方法,可用於除單色點矩陣圖外 之各式點矩陣影像,本方法係先將影像色彩轉換成灰階形1236639-EE January 1,109,430 Rev.-Foot --- V. Description of the Invention (1) [Field of the Invention] The present invention is an image processing method, especially a graphic contour line processing method for a point matrix image. [Background of the Invention] At present, there are many technologies related to digital image processing, each with different processing objects and application scopes, and the digital image processing technology has been widely applied to various engineering and scientific research. Among them, for the processing of two-dimensional (ΐW 〇-dimension) (planar) image space, if only the contour line (〇u 11 ine) technology for finding a point matrix image is used, the conventional processing technology for object contour lines It is often limited to the processing of 256 color point matrix (Bitmap) maps. This technology is a processing method for 256 color point matrices. The rest of the non-256 color point matrix images cannot be processed. However, in fact, Many images do not exist in the form of a matrix of 256 color points. Therefore, this method is not very versatile and practical. Or, some image processing methods adopt the method of searching and filling the entire image. When encountering a large pixel image, it will consume considerable time and waste the processing performance of the system. However, techniques such as image segmentation, block separation, etc., are used to find out which objects are out of line. For image processing, they are extremely important parts. And the accuracy and convenience of contour line acquisition will also affect the image processing system. Good and bad, therefore, in the face of this situation, a simple image processing method is really needed to solve this problem. [Objective and Summary of the Invention] In view of this, the present invention proposes a method for processing contour lines of a dot matrix image in order to solve the above problems. The method can be used for various dot matrix images other than a monochrome dot matrix image. First convert image color to grayscale

1236639 案號 91109430 五、發明說明(2) 式,再偵測影像中各部分灰階值之差異,八雠山 刀離{±{差足p 士 區塊’以決定物體輪廉之界線。而所操取 更採用壓縮方式儲存,可包含所屬主體物件,更w j胃、料 存空間,且資料僅在使用時才進行解壓給 τ 〃可節省儲 u nr王%,不但 間,也不佔用系統多餘之記憶體空間。 I ’时 本發明的目的在於提出一點矩陣影傻 out line)處理方法,首先讀取原始影像,再進彳_ 像的輪廓線資料的擷取,接著,壓縮擷取 /丁原始影 料,最後,將原始影像及輪廓線資料輪出。 深貝 本發明的次一目的在於提出一點矩陣影像之 線(outline)輸出方*,當原始影像及輪隸資料形輪麻 取並壓縮完成後,若需輸出含有輪廓線之影像,3已^ 擷 原始影像及輪廓線資料,並分離此原始影像及輪产==取 料,再將輪廓線資料進行解壓縮,解壓縮完成後^、、、貝 始影像和解壓縮後之輪廓線資料合成為一二影 f 2 f 顯示此新影像。 1i新 有關本發明之詳細内容及概念,茲就配合圖式說明如 後。 w 【發明之詳細說明】 本發明提出一種點矩陣影像之圖形輪廓線的處理方法 和輸出方法,以一套完整的輸入、輸出方式來擷取影像之 輪廓線資訊(inf or mat ion)。藉由本發明取得平面物體之 輪廓線後,便可利用此輪廓資料來簡化特效處理過程。例 如要使一張圖像中之人物發光,若配合本方法,則不必苎 出每一幅發光的完整圖像,只需透過演算法,在有記錄輪1236639 Case No. 91109430 V. Explanation of the invention (2), and then detecting the difference in the grayscale value of each part of the image, the Batu Mountain is cut off {± {差 足 p 士 区 ”to determine the boundary of object roundness. The operations are stored in a compressed manner, which can include the main body, the stomach, and the storage space, and the data is only decompressed to τ 〃 when it is used, which can save the storage u nr%, not only time, but also not occupied System excess memory space. The purpose of the present invention is to propose a little matrix shadow line processing method. First, the original image is read, and then the contour line data of the image is extracted, and then the original image is compressed and extracted. , Rotate the original image and contour data. The second purpose of the present invention is to propose a point for outputting an outline of a matrix image *. After the original image and the data of the wheel member are extracted and compressed, if you need to output an image that contains contour lines, 3 has been ^ Extract the original image and contour line data, and separate this original image and rotation production == material, then decompress the contour line data. After the decompression is completed, the ^, ,, and Bez image and the decompressed contour line data are synthesized into One or two shadows f 2 f displays this new image. 1i New Details and concepts of the present invention are described below with reference to the drawings. w [Detailed description of the invention] The present invention proposes a processing method and output method for the graphic contours of a point matrix image, and uses a complete set of input and output methods to capture the contour information (inf or mation) of the image. After the contour line of a planar object is obtained by the present invention, the contour data can be used to simplify the special effect processing process. For example, if you want to make a person in an image glow, if you use this method, you don't need to figure out the complete image of each glow, you only need to use the algorithm to record

第6頁 1236639Page 6 1236639

廓線之圖像上做效果,再把輪廓線和原圖合成即可產生新 圖。本方法藉由將影像色彩轉換成灰階形式,再偵測灰階 值之差異,分離出差距超過所設定閥值(thresh〇ld)之區 塊,亦即分離灰階值差距大之區塊,以找出背景與前景物 體之界線,再將所擷取出之輪廓線資料採用壓縮方式儲 存’僅在需使用資料時才進行解壓縮,不但可解決圖栌 ΐ過大的問題,更可節省時間,也不會佔用系 憶體空間。 /卞 < 元 本發明以一較佳實施例說明本發明所提出之方法 體可行性’請參閱「第丄圖」,此圖係本發明所提出之、: 像處理流程圖,說明讀取影像後之主要處理流 1〜 如下: | 况明 虽欲處理之圖片影像輸入系統後,系統即讀 像(步驟100),並擷取此原始影像之輪靡線資料(牛驟。衫 11 0 ),擷取輪廓線時,係採用本發明提出之 v ~ 前景與背景色彩,並過渡背景色彩,以掏取分離 線條,再壓縮此輪廓線資料(步驟i 2 輪廓 η縮輪廓線外之像素(。lxel),再缩 素貢料’直至影像皆處理完成為止,由線内之像 3其貧料量將可大幅縮減,在完成影像處=之輪廓練 續佔用記憶體空間。其中,原 t將不會 寬度及影像高度,及輪料資料二像長度、影像 (b”es)計算),則使用點矩陣文件之位元組 再輸出原始影像及輪麻線資料(步驟130),^^儲存,最後 —------- 付鸹要顯示影 1236639Make an effect on the contour image, and then combine the contour line with the original image to generate a new image. In this method, the image color is converted into a grayscale form, and then the difference in grayscale values is detected, and the blocks with a gap exceeding a set threshold (thresh〇ld) are separated, that is, the blocks with a large grayscale value gap are separated. To find the boundary between the background and foreground objects, and then use the compression method to store the extracted contour line data. 'Decompress only when data is needed, which not only solves the problem of oversized maps, but also saves time , It will not take up the memory space of the department. / 卞 < The present invention uses a preferred embodiment to illustrate the feasibility of the method proposed by the present invention 'Please refer to "the second figure", this figure is the following proposed by the present invention: Image processing flowchart to explain reading The main processing flow 1 ~ after the image is as follows: | After the image of the picture to be processed is input into the system, the system reads the image (step 100), and retrieves the round-line data of the original image (ox. Shirt 11 0 ), When fetching the contour line, the v ~ foreground and background colors proposed by the present invention are used, and the background color is transitioned to extract the separated lines, and then compress the contour line data (step i 2 contour η shrinks the pixels outside the contour line (.Lxel), and then shrink the raw materials until the images are processed, the amount of lean materials from the image 3 in the line will be greatly reduced, and the contour training at the completed image will continue to occupy memory space. Among them, the original t will not calculate the width and height of the image, as well as the length of the second image of the wheel data, and the image (b ”es)), then use the bytes of the point matrix file to output the original image and wheel twine data (step 130), ^ ^ Save, and finally ----------- Fu Yan Shadow 1236639

銮號 91109430 五、發明說明 像時,即 請參 輪廓線之 之輪廓線 當一 1 1 1 ),在 別,以便 器過濾背 成灰階形 塊,以找 體中,產 後,再分 料。 (4) 可進行合成。 閱「第2圖」’此圖為本發明所提出旦 流程圖,用以詳细說 擷取衫像 資料: 、"月本方法如何擷取原始影像 影像ΐ料輸入|,必需先檢測背景色彩(步驟 確認:後,才得以分離背景與前景之差 進一步找出主體物件之輪庵線輪廉 景色彩(步驟ιΐ2)’過濾時,先將影像色彩轉換 式,再㈣灰階值之差[分離出差距大之區、 出背景與ϋ物體之界線’再由分離出之物件主 生輪穿卩線資料(步驟113),待找出物件輪廓線 別記錄輪廓線資料及此輪廓線内、外之圖形資 請參閱「第3圖」’此圖為本發明所提出之影像輸出 流程圖’用以詳細說明本方法如何合成原始影像與輪$廊線 資料: m 首先’項取原始影像及輪麻線負料(步驟2 Q 〇 ),並八 離原始影像及輪廓線資料(步驟2 1 0 ),再解壓縮輪靡線^ 料(步驟2 2 0 ),當原始圖像及輪廓線資料都恢復為1般= 矩陣格式後,則將原始影像及解壓縮後之輪扉線資料合成 為一新影像(步驟2 3 0 ),再輸出合成後之新影像(步驟" 2 4 0 ),並重新顯示含有輪廓線之點矩陣影像。No. 91109430 V. Description of the invention When the image is taken, please refer to the contour line of the contour line when it is 1 1 1). (4) Can be synthesized. Read "Figure 2" This figure is a flow chart proposed by the present invention, which is used to describe the details of capturing shirt image data: "" How to capture the original image image data input by this method | It is necessary to detect the background first Color (Step confirmation: After that, the difference between the background and the foreground can be separated to further find the round and round scenes of the main object. (Step ιΐ2) 'When filtering, first convert the image color, and then the difference between the grayscale values. [Separate the area with a large gap, the background and the boundary of the object ', and then pass the line information by the separated object's main birth wheel (step 113). To find the object contour line, record the contour line data and the contour line. For the external graphics information, please refer to "Figure 3" 'This figure is the image output flow chart proposed by the present invention' to explain in detail how the method synthesizes the original image and the round corridor data: m First 'item takes the original image And round twine negative material (step 2 Q 〇), and separate the original image and contour line data (step 2 1 0), and then decompress the round line ^ material (step 2 2 0), when the original image and contour Line data are restored to 1 = after matrix format Then the original image and the decompression wheel line data are combined into a new image (step 2 3 0), and then the synthesized new image is output (step " 2 4 0), and the point matrix containing the contour lines is redisplayed image.

透過上述對本發明之技術方案的分析,可得出本發明 方法在實際應用中有許多的優點: X 1 ·位元數大的輪廓線資料採用壓縮方式儲存,可節省Through the above analysis of the technical solution of the present invention, it can be concluded that the method of the present invention has many advantages in practical applications: X 1 · The contour line data with a large number of bits is stored in a compressed manner, which can save

1236639 _案號 911Q9430_年月日__ 五、發明說明(5) 儲存空間; 2.資料僅在使用時才進行解壓縮,不但節省時間,也 不佔用系統多餘之記憶體空間。 雖然本發明以前述之較佳實施例揭露如上,然其並非 用以限定本發明,任何熟習此技藝者,在不脫離本發明之 精神和範圍内,當可作些許之更動與潤飾,因此本發明之 保護範圍當視後附之申請專利範圍所界定者為準。1236639 _Case No. 911Q9430_Year Month and Day__ V. Description of the invention (5) Storage space; 2. The data is only decompressed when in use, which not only saves time, but also does not occupy extra memory space of the system. Although the present invention is disclosed above with the foregoing preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications and retouching without departing from the spirit and scope of the present invention. The scope of protection of the invention shall be determined by the scope of the attached patent application.

1236639 _案號91109430_年月曰 修正_ 圖式簡單說明 第1圖為本發明所提出之影像處理流程圖; 第2圖為本發明所提出之擷取影像輪廓線之流程圖;及 第3圖為本發明所提出之影像輸出流程圖。 【符號說明】 步驟1 0 0讀取原始影像 步驟1 1 0擷取此原始影像之輪廓線資料 步驟1 1 1檢測背景色彩 步驟1 1 2過濾背景色彩 步驟1 1 3產生輪廓線資料 步驟1 2 0壓縮此輪廓線資料 步驟1 3 0輸出原始影像及輪廓線資料 步驟2 0 0讀取原始影像及輪廓線資料 步驟2 1 0分離原始影像及輪廓線資料 步驟2 2 0解雇縮輪廊線資料 步驟2 3 0原始影像及解壓縮後之輪廓線資料合成為一新影 像 步驟2 4 0輸出合成後之新影像1236639 _Case No. 91109430_ Year Month Revision _ Brief Description of Drawings Figure 1 is a flowchart of image processing proposed by the present invention; Figure 2 is a flowchart of capturing contour lines of an image proposed by the present invention; and 3 The figure is a flowchart of image output proposed by the present invention. [Symbol description] Step 1 0 0 Read the original image Step 1 1 0 Capture the outline data of this original image Step 1 1 1 Detect the background color Step 1 1 2 Filter the background color Step 1 1 3 Generate the outline data Step 1 2 0 Compress this contour line step 1 3 0 Output the original image and contour line step 2 0 0 Read the original image and contour line step 2 1 0 Separate the original image and contour line step 2 2 0 Dismiss the shrinkage corridor data Step 2 3 0 Synthesize the original image and the decompressed contour line data into a new image. Step 2 4 0 Output the synthesized new image.

第10頁Page 10

Claims (1)

1236639 厂 _案號91109430 年《月石曰 修正_ 六、申請專利範圍 1. 一種點矩陣影像之圖形輪廓線輸出方法,係為一種結 合平面圖與物體輪廓線條之影像輸出技術,該圖形輪 廓線輸出方法包含下列步驟: 讀取一原始影像及一輪廓線資料; 分離該原始影像及該輪廓線資料; 解堡縮該輪廊線貢料, 合成該原始影像及解壓縮後之該輪廓線資料為一 新影像;及 輸出合成後之該新影像。 2. 如申請專利範圍第1項所述之點矩陣影像之圖形輪廓線 輸出方法,其中解壓縮該輪廓線資料的步驟,更包 含: 解壓縮該輪廓線外的像素;及 解壓縮該輪廓線内的像素。 3. 如申請專利範圍第1項所述之點矩陣影像之圖形輪廓線 輸出方法,中該原始影像係為一點矩陣(B i t m a p)圖之 形式。 4 ·如申請專利範圍第1項所述之點矩陣影像之圖形輪廓線 輸出方法,其中該輪廓線資料係事先以一壓縮方式儲 存01236639 Factory_Case No. 91109430 "Revision of Moon Stone_ VI. Patent Application Scope 1. A method for outputting graphic contour lines of a point matrix image, which is a video output technology that combines a floor plan and the contour lines of an object. The graphic contour lines are output The method includes the following steps: reading an original image and a contour line data; separating the original image and the contour line data; decompressing the contour line material, synthesizing the original image and decompressing the contour line data as A new image; and output the new image after synthesis. 2. The method for outputting a graphic contour line of a point matrix image according to item 1 of the scope of patent application, wherein the step of decompressing the contour line data further includes: decompressing pixels outside the contour line; and decompressing the contour line Within pixels. 3. According to the method for outputting the graphic outline of the dot matrix image as described in the first item of the scope of the patent application, the original image is in the form of a dot matrix (B i t m a p) map. 4 · The graphic contour line output method of the point matrix image as described in item 1 of the scope of patent application, wherein the contour line data is stored in a compression manner in advance. 第11頁Page 11
TW91109430A 2002-05-07 2002-05-07 Outline processing method for bitmap image TWI236639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91109430A TWI236639B (en) 2002-05-07 2002-05-07 Outline processing method for bitmap image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91109430A TWI236639B (en) 2002-05-07 2002-05-07 Outline processing method for bitmap image

Publications (1)

Publication Number Publication Date
TWI236639B true TWI236639B (en) 2005-07-21

Family

ID=36674982

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91109430A TWI236639B (en) 2002-05-07 2002-05-07 Outline processing method for bitmap image

Country Status (1)

Country Link
TW (1) TWI236639B (en)

Similar Documents

Publication Publication Date Title
Anwar et al. Image colorization: A survey and dataset
US10825128B2 (en) Data processing systems
US10440360B2 (en) Video processing system
CN108229346B (en) Video summarization using signed foreground extraction and fusion
WO2016081938A1 (en) Efficient methodology to process wide dynamic range images
CN106204672A (en) Texture compression document generating method
JP2017211936A (en) Document storage processing system
JP2008193263A (en) Image processing method, image processing device, image processing program, and record medium
WO2017206606A1 (en) Image generation method and device
TWI236639B (en) Outline processing method for bitmap image
CN109697693B (en) Method for realizing operation based on big data space
Licciardo et al. Design and FPGA implementation of a real-time processor for the HDR conversion of images and videos
US20220217321A1 (en) Method of training a neural network configured for converting 2d images into 3d models
CN106063252A (en) Techniques for processing subtitles
CN111034187A (en) Dynamic image generation method and device, movable platform and storage medium
CN113726976A (en) High-capacity graph hiding method and system based on coding-decoding network
TW201021578A (en) Decompression system and method for DCT-based compressed graphic data with transparent attribute
CN112232125A (en) Key point detection method and key point detection model training method
JPH07118002B2 (en) Image processing device
CN114008678A (en) Video understanding neural network system and using method thereof
WO2024007992A1 (en) Data storage method, data reading method, and apparatus, storage medium and program product
CN111931770B (en) Image processing method, device, equipment and storage medium
CN100409657C (en) Image processing method and device
LU500980B1 (en) A method for light field angular reconstruction
TWI220847B (en) Fast compression and decompression method for animation

Legal Events

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