JP2008225653A - Image processing method, image processor, program, and program storage medium - Google Patents

Image processing method, image processor, program, and program storage medium Download PDF

Info

Publication number
JP2008225653A
JP2008225653A JP2007060340A JP2007060340A JP2008225653A JP 2008225653 A JP2008225653 A JP 2008225653A JP 2007060340 A JP2007060340 A JP 2007060340A JP 2007060340 A JP2007060340 A JP 2007060340A JP 2008225653 A JP2008225653 A JP 2008225653A
Authority
JP
Japan
Prior art keywords
line
image
vector
processing
outline
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2007060340A
Other languages
Japanese (ja)
Inventor
Yoshihiro Ishida
良弘 石田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2007060340A priority Critical patent/JP2008225653A/en
Publication of JP2008225653A publication Critical patent/JP2008225653A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To propose a method, device, and program capable of performing a partial line art processing (mixture of line art processing and outline vector processing) where, for a binary image formed by mixing line art portions and black block portions, the line art portions are thinned and line art-vector-processed and the black block portions are outline-vector-processed. <P>SOLUTION: This method includes a process of gaining an image as a process object, a process of obtaining the width of a thin line to process the object image as a line art, a process of extracting outline vector process target portions and line art vector process target portions based on the width of the thin line, a process of adding the outline vector processing to the outline vector process target portion, and a line process of adding line art vector processing to the line art vector process target portions. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、図面や文書画像内などの線図形の処理に向く、ラスタ走査順に記憶された2値画像から図形のベクトル情報を生成する方法とその装置、とりわけ、線画部分と黒塊部分の混在した2値画像に対し、線画部分は細線化して線芯(ラインアート)ベクトル処理し、黒塊部分は、輪郭(アウトライン)ベクトル処理をする方法とその装置に関するものである。   The present invention is a method and apparatus for generating graphic vector information from a binary image stored in raster scan order, particularly for line graphic processing such as in drawings and document images. For the binary image, the line drawing portion is thinned and subjected to line core vector processing, and the black block portion relates to a method and apparatus for contour vector processing.

近年、ペーパーレス化への要求が高まり、既存の画像データを電子化して再利用することが頻繁に行われるようになってきた。従来、画像データの再利用は、画像データを2値化処理した後にベクトル化技術を用いてベクトルデータに変換し、このベクトルデータをCADソフト等で使用するという形で行われてきている。   In recent years, the demand for paperless has increased, and it has become frequent to digitize and reuse existing image data. Conventionally, image data has been reused by binarizing the image data, converting the image data into vector data using a vectorization technique, and using the vector data with CAD software or the like.

先述のように、ペーパーレス化への要求が高まりのもと、ビジネス文書においても、既存の画像データを電子化して再利用することが望まれている。原図のもつ各部分の部分的な太さの差や面積等をも、所望とされる変倍率を反映した形で(即ち、原図中での太い部分は変倍後の図中でも相対的に太く、原画中での細い部分では変倍後の図中でも相対的に細く)変倍するような再利用の形態に対しては、オリジナル文書中の2値図形の輪郭(アウトライン)ベクトルを抽出して、2次元形状を任意の拡大縮小率で変倍することで、その実現が可能である。   As described above, with increasing demand for paperless printing, it is desired to digitize and reuse existing image data in business documents. Differences in thickness and area of each part of the original drawing also reflect the desired scaling factor (ie, the thick part in the original drawing is relatively thicker in the figure after scaling). For the reusable form of scaling, the outline vector of the binary figure in the original document is extracted. This can be realized by scaling the two-dimensional shape with an arbitrary enlargement / reduction ratio.

ところで、ビジネス文書で既存の画像データを再利用する場合においても、これまでのCAD/CAMシステム等での各種手書き図面の自動入力方法のように、面積をもった図形全体というよりも、ある図形の輪郭を構成する線を、太さや、面積といった概念に意味をもたせずに、単なる線(直線、[開]曲線、[閉]曲線等)、あるいは、その線の集まりとして扱いたい場合も少なくない。また、もともと太さを意識せずに、細線のみで描かれている線画の再利用の要望も強い。すなわち、線の集まりの中から一部の線のみを削除したり、別な線を付与したり、あるいは、これら各線の一部の線のみに部分的な曲率、長さ、太さや線種(実線、破線、一点鎖線等)に変更を加える等の編集操作がその代表的な活用法である。このような、ニーズに答えるものとしては、線芯(ラインアート)ベクトル処理と称される、線画のベクトル処理があげられる。   By the way, even when reusing existing image data in a business document, a certain figure rather than an entire figure with an area, like the automatic input method of various handwritten drawings in the conventional CAD / CAM system etc. There are few cases where you want to treat the lines that make up the outline of a line as a simple line (straight line, [open] curve, [closed] curve, etc.), or a collection of such lines, without giving meaning to concepts such as thickness and area. Absent. In addition, there is a strong demand for reuse of line drawings that are originally drawn only with thin lines without being conscious of their thickness. That is, remove only some lines from a collection of lines, add another line, or only partial lines of each of these lines have a partial curvature, length, thickness and line type ( Editing operations such as making changes to a solid line, a broken line, an alternate long and short dash line, etc. are typical usages. As a solution to such needs, there is a line drawing vector processing called line core vector processing.

さて、2値画像の輪郭(アウトライン)ベクトル処理に関しては、出願人は既に特許第3026592号(以下特許文献1と称す)を提案している。この特許文献1において、『注目画素と、その近傍画素の状態により、予め定められた位置を輪郭線を構成する点とし、近傍画素の状態により該輪郭線を構成する点の接続方向を決定する工程と、前記輪郭線を構成する点と、該輪郭線を構成する他の点との接続状態を判断する工程と、前記注目画素の位置をラスタ走査順に画像データ上を更新し、注目画素毎に近傍画素の状態に基づいて前記工程を実行し、輪郭点を抽出する。   Regarding the outline (outline) vector processing of the binary image, the applicant has already proposed Japanese Patent No. 3026592 (hereinafter referred to as Patent Document 1). In this Patent Document 1, “a predetermined position is defined as a point constituting the contour line by the state of the target pixel and its neighboring pixels, and a connection direction of the points constituting the contour line is determined by the state of the neighboring pixels. A step of determining a connection state between the points constituting the contour line and other points constituting the contour line, and updating the position of the pixel of interest on the image data in the order of raster scanning. The above steps are executed based on the state of neighboring pixels to extract contour points.

以上の構成において、画像データにおける注目画素と、その近傍画素の状態を保持し、この注目画素をラスタ走査順に取り出し、その注目画素とその近傍画素の状態に基づいて、水平方向及び垂直方向の画素間ベクトルを検出する。これら画素間ベクトル同士の接続状態を判別して、この判別された画素間ベクトルの接続状態をもとに、画像データの輪郭を抽出するように動作する。』という手法を提案している。該手法は、画像の中の全ての輪郭線を1回のラスタ走査順だけで抽出でき、かつ、全画像データを記憶するための画像メモリを必要としないため、メモリの容量を少なくできる効果を有している。また、入力画像の画素の中心位置ではなく、画素の縁単位に輪郭を抽出することによって、1画素巾の細線に対しても有為な幅を有する輪郭線抽出法である。更に、原画中の画素の4方向に連結した連結画素領域の輪郭線を抽出するのみならず、8方向に連結した画素領域も抽出可能であることが紹介されている。   In the above configuration, the state of the target pixel and its neighboring pixels in the image data is retained, the target pixel is extracted in raster scanning order, and the pixels in the horizontal and vertical directions are extracted based on the state of the target pixel and its neighboring pixels. Detect interval vectors. The connection state between these inter-pixel vectors is determined, and the contour of the image data is extracted based on the determined connection state of the inter-pixel vectors. ”Is proposed. This method can extract all the contour lines in the image only in one raster scan order and does not require an image memory for storing all the image data, so that the memory capacity can be reduced. Have. In addition, the contour extraction method has a significant width even for a thin line having a width of one pixel by extracting a contour not in the center position of the pixel of the input image but in the unit of the edge of the pixel. Furthermore, it has been introduced that not only the contour lines of the connected pixel regions connected in the four directions of the pixels in the original image but also the pixel regions connected in the eight directions can be extracted.

また、出願人は特開平05−108823(以下特許文献2と称す)において、特許文献1に開示されるベクトル抽出ルールのモジュール化により効率的な輪郭点抽出が可能であることを開示している。   In addition, the applicant discloses in Japanese Patent Laid-Open No. 05-108823 (hereinafter referred to as Patent Document 2) that efficient contour point extraction is possible by modularizing the vector extraction rule disclosed in Patent Document 1. .

さらに、出願人は既に特登録3026592号公報(以下特許文献3と称す)を提案している。この特許文献3において、2値画像の輪郭情報を用いて高画質な変倍画像を得る画像処理装置を紹介している。該提案は、2値画像からアウトラインベクトルを抽出し、該抽出したアウトラインベクトル表現の状態で所望の倍率(任意)で滑らかに変倍つれたアウトラインベクトルを作成し、該滑らかに変倍されたアウトラインベクトルから2値画像を再生成することによって、所望の倍率(任意)で変倍された高画質のデジタル2値画像を得るようにするものである。ここで、2値画像からアウトラインベクトルを抽出する方法としては、一例として、前記、特許文献1(特許第3026592号)や特許文献2(特開平05−108823)で開示される方法が用いられる。   Furthermore, the applicant has already proposed Japanese Patent No. 3026592 (hereinafter referred to as Patent Document 3). This Patent Document 3 introduces an image processing apparatus that obtains a high-quality zoomed image using the contour information of a binary image. The proposal extracts an outline vector from a binary image, creates an outline vector smoothly scaled at a desired magnification (arbitrary) in a state of the extracted outline vector expression, and the smoothly scaled outline By regenerating a binary image from a vector, a high-quality digital binary image scaled at a desired magnification (arbitrary) is obtained. Here, as an example of a method for extracting an outline vector from a binary image, the method disclosed in Patent Document 1 (Patent No. 3026592) and Patent Document 2 (Japanese Patent Laid-Open No. 05-108823) is used as an example.

一方、線芯(ラインアート)ベクトル処理(以降、『線画のベクトル処理』とも、また、『ラインアートベクトル処理』とも称する)には、従来、細線化処理と呼ばれる画像処理が良く利用されている。細線化処理とは、スキャナ等で読み込んで得られるイメージデータを2値化した後、その線幅が1になるように細めていく処理である。そして、得られた線幅1の2値画像をそれらの端点や交点間をつなぐ独立した線や閉曲線毎に線芯ベクトル化する。   On the other hand, for line core vector processing (hereinafter referred to as “line art vector processing” or “line art vector processing”), image processing called thinning processing has been often used. . Thinning processing is processing in which image data obtained by reading with a scanner or the like is binarized and then thinned so that the line width becomes one. Then, the obtained binary image with a line width of 1 is converted into a line core vector for each independent line or closed curve connecting between the end points and the intersections.

しかしながら、処理対象とする2値画像の中には線画部分と黒塊部分の混在したものも多々あり、線画部分は、細線化して線芯(ラインアート)ベクトル処理し、黒塊部分は、輪郭(アウトライン)ベクトル処理した方が好ましい場合がある。これまで、線画部分と黒塊部分の混在した2値画像に対して、線画部分は細線化して線芯ベクトル処理し、黒塊部分は、輪郭(アウトライン)ベクトル処理をするといったことには、十分な対応がとられていないのが実情であった。
特登録3026592号公報 特開平05−108823公報 特登録3049672号号公報 特開2005-346137号公報 酒井幸市著“ディジタル画像処理の基礎と応用”第2版, P.51-P.54,ISBN4-7898-3707-6,CQ出版社,2004年2月1日発行
However, there are many binary images to be processed in which a line drawing portion and a black block portion are mixed, and the line drawing portion is thinned and processed with a line core vector processing. (Outline) Vector processing may be preferable. Up to now, it is sufficient to perform line core vector processing for thin line parts and line vector processing for black images, and to perform outline (outline) vector processing for binary images containing both line drawing parts and black block parts. The actual situation was that no proper response was taken.
Japanese Patent Registration No. 3026592 JP 05-108823 A Japanese Patent Registration No. 3049772 JP 2005-346137 A Sakai Yukiichi "Basics and Applications of Digital Image Processing" 2nd Edition, P.51-P.54, ISBN4-7898-3707-6, CQ Publisher, issued February 1, 2004

本願では、上記従来例における問題点に鑑み、線画部分と黒塊部分の混在した2値画像に対し、線画部分は細線化して線芯ベクトル処理し、黒塊部分は、輪郭(アウトライン)ベクトル処理をする、部分ラインアート処理(ラインアート処理と輪郭ベクトル処理の混在)を可能とする方法及び装置、プログラムを提案することをその課題としている。   In the present application, in view of the problems in the above-described conventional example, the line drawing portion is thinned and subjected to the line core vector processing for the binary image in which the line drawing portion and the black lump portion are mixed. An object of the present invention is to propose a method, an apparatus, and a program that enable partial line art processing (mixed line art processing and contour vector processing).

処理対象とする画像を獲得する画像獲得工程と、前記処理対象画像を線画として処理する細線の幅を得る細線化対象線幅獲得工程と、前記対象画像を線画として処理する細線の幅に基づき、輪郭(アウトライン)ベクトル処理対象部分と線芯(ラインアート)ベクトル処理対象部分とを抽出する処理対象域抽出工程と、前記輪郭(アウトライン)ベクトル処理対象部分に対して輪郭(アウトライン)ベクトル処理を加える輪郭(アウトライン)ベクトル処理工程と、前記線芯(ラインアート)ベクトル処理対象部分に対して線芯(ラインアート)ベクトル処理を加える線芯(ラインアート)ベクトル処理工程とを具備する。   Based on an image acquisition step for acquiring an image to be processed, a thinning target line width acquisition step for obtaining a width of a thin line for processing the processing target image as a line drawing, and a width of a thin line for processing the target image as a line drawing, A processing target area extracting step for extracting a contour (outline) vector processing target portion and a line core (line art) vector processing target portion, and a contour (outline) vector processing is applied to the contour (outline) vector processing target portion. A contour (outline) vector processing step, and a line core (line art) vector processing step of applying a line core (line art) vector processing to the line core (line art) vector processing target portion.

画像の一部に黒塊部分を含む線画でも、黒塊部分以外を線芯(ラインアート)ベクトル処理し、その他の部分は輪郭(アウトライン)ベクトル処理(あるいはベクトル処理しないことも可)することにより、従来のように、一律な方法によってベクトル化されてしまうのではなく、適応的なベクトル化が可能となる効果を有する。   Even in a line drawing that includes a black block part in a part of the image, the line core (line art) vector processing is performed on the part other than the black block portion, and the outline (outline) vector processing (or no vector processing) is performed on the other portions. However, it is not vectorized by a uniform method as in the prior art, but there is an effect that adaptive vectorization is possible.

<実施形態1>
本実施形態の画像処理装置の構成例について、図2のブロック図を参照して説明する。同図において、7は装置全体を制御するCentral Processing Unit(CPU)である。6は変更を必要としないプログラムやパラメータを格納するRead Only Memory(ROM)である。5は外部装置などから供給されるプログラムやデータを一時記憶するRandom Access Memory(RAM)である。1は、文書等を光電走査して電子的な画像データを得るためのスキャナであり、3はこのスキャナ1と画像処理装置を接続する画像入出力インターフェースである。2は、前記スキャナ1で読み取られた画像データ等を保持する画像メモリである。12は固定して設置されたハードディスクやメモリカード、あるいは着脱可能なフレキシブルディスク(FD)やCompact Disk(CD)等の光ディスク、磁気や光カード、ICカード、メモリカードなどを含む外部記憶装置である。また、13はこれら外部記憶装置12とコンピュータ装置との入出力(I/O(Input/Output))インターフェースである。15はユーザの操作を受け、データを入力するマウス等のポインティングデバイス10やキーボード9などの入力デバイスとのインターフェイスである。14は画像処理装置の保持するデータや供給されたデータを表示するためのディスプレイモニタ8とのインターフェイスである。4はインターネットなどのネットワーク回線に接続するためのネットワークインタフェイスである。11は1〜15の各ユニットを通信可能に接続するシステムバスである。
<Embodiment 1>
A configuration example of the image processing apparatus according to the present embodiment will be described with reference to the block diagram of FIG. In the figure, reference numeral 7 denotes a central processing unit (CPU) that controls the entire apparatus. A read only memory (ROM) 6 stores programs and parameters that do not need to be changed. A random access memory (RAM) 5 temporarily stores programs and data supplied from an external device. Reference numeral 1 denotes a scanner for photoelectrically scanning a document or the like to obtain electronic image data. Reference numeral 3 denotes an image input / output interface for connecting the scanner 1 and an image processing apparatus. An image memory 2 holds image data read by the scanner 1. Reference numeral 12 denotes an external storage device including a hard disk and a memory card that are fixedly installed, an optical disk such as a removable flexible disk (FD) and a Compact Disk (CD), a magnetic or optical card, an IC card, a memory card, and the like. . Reference numeral 13 denotes an input / output (I / O (Input / Output)) interface between the external storage device 12 and the computer device. Reference numeral 15 denotes an interface with an input device such as a pointing device 10 such as a mouse or a keyboard 9 for receiving data from a user and inputting data. Reference numeral 14 denotes an interface with the display monitor 8 for displaying data held by the image processing apparatus and supplied data. Reference numeral 4 denotes a network interface for connecting to a network line such as the Internet. A system bus 11 connects the units 1 to 15 so that they can communicate with each other.

以下、CPU7上で実行されるプログラムにより本願発明を実現する処理手順を、図1のフローチャートを用いて説明する。   Hereinafter, a processing procedure for realizing the present invention by a program executed on the CPU 7 will be described with reference to the flowchart of FIG.

図1は、本願による発明を実施する装置における動作全体の流れを示すフローチャートである。同図において、処理を開始すると、ステップS110では、処理対象となる画像領域を含む画像データを入力する。画像入力に関しては、スキャナ1にて読み取られた画像データを画像入出力I/O3を介して画像メモリ2に入力する。また、通信I/F4を介して、装置外部より前記処理対象となる画像領域を含む画像を入力してもよく、あるいは、H/D装置12に予め記憶される画像データをI/O13を介して読み込むものであってもよい。得られた入力画像は、画像メモリ3上に保持される。   FIG. 1 is a flowchart showing the overall operation flow in the apparatus for carrying out the invention according to the present application. In the figure, when processing is started, in step S110, image data including an image region to be processed is input. Regarding image input, the image data read by the scanner 1 is input to the image memory 2 via the image input / output I / O 3. Further, an image including the image area to be processed may be input from the outside of the apparatus via the communication I / F 4, or image data stored in advance in the H / D apparatus 12 may be input via the I / O 13. May be read. The obtained input image is held on the image memory 3.

次に、ステップS120では、ROM6上の図示しない領域に予め記憶される閾値を用いて、ステップS110で入力した画像データを2値化することにより、細線化対象とする2値画像を得る。尚、ステップS110で入力した画像が既に2値画像である場合には,ステップS120では、事実上このステップS110で入力した2値画像そのものを持って、細線化対象とする2値画像とする。尚、2値化に用いる閾値は、まず、前記ステップS110で得られた画像データを映像I/Oを介してディスプレイモニタ8上に表示した上で、これを視認しながらI/O15を介してキーボード9やマウス9等を用いて操作者より指示入力されるように構成してもよい。   Next, in step S120, the image data input in step S110 is binarized using a threshold value stored in advance in an area (not shown) on the ROM 6, thereby obtaining a binary image to be thinned. If the image input in step S110 is already a binary image, in step S120, the binary image itself input in step S110 is actually used as a thinning target binary image. The threshold value used for binarization is first displayed on the display monitor 8 through the video I / O and then through the I / O 15 while viewing the image data obtained in step S110. An instruction may be input from the operator using the keyboard 9 or the mouse 9.

次に、ステップS130では、ROM6上の図示しない領域に予め記憶される細線化対象とする図形の最大線幅wを入力する。この細線化対象とする図形の最大線幅wkの情報に関しては、まず、前記ステップS120で得られた2値画像データを映像I/Oを介してディスプレイモニタ8上に表示した上で、これを視認しながらI/O15を介してキーボード9やマウス9等を用いて操作者より指示入力されるように構成してもよい。 Next, in step S130, and inputs the maximum line width w k of the figure to be thinning target previously stored in the area (not shown) on the ROM 6. Regarding the information about the maximum line width wk of the figure to be thinned, first, the binary image data obtained in step S120 is displayed on the display monitor 8 via the video I / O, and this is displayed. An instruction may be input from an operator using the keyboard 9 or the mouse 9 via the I / O 15 while visually recognizing.

次に、ステップS140では、ステップS120で得られた2値画像を公知の収縮法に従い収縮処理する。即ち、注目画素位置の画素を中心画素とし、その周囲の8画素とからなる3×3のウィンドウで対象2値画像域をラスター走査する。同3×3の9画素からなるウィンドウ内で、周囲の8画素の中で1画素でも白画素なら注目画素も白画素とし(削除し)、周囲の8画素全てが黒画素の場合には注目画素の値は変化させない。2値画像のベクトル処理対象範囲内をラスター走査での次の画素位置に注目画素位置を移し、ベクトル処理対象領域内すべての画素に対して同処理を繰り返す。そして、前記、ステップS130で得られた細線化対象とする図形の最大線幅wの情報から、(w/2)の小数部を切り上げた回数kだけ、前記ラスター走査による一連の収縮処理を繰り返す。一回のラスター走査において黒領域の白領域の境界画素がそれぞれ1画素ずつ削除され、基本的に、黒領域は縦方向と横方向にそれぞれ2×k画素ずつ細められ、もともと、2×k画素以下の太さの黒領域は消滅することになる。ステップS140を終えるとステップS150に進む。 Next, in step S140, the binary image obtained in step S120 is contracted according to a known contraction method. That is, the target binary image area is raster-scanned in a 3 × 3 window including the pixel at the target pixel position as the central pixel and the surrounding eight pixels. In the window consisting of 9 pixels of 3 × 3, if one of the surrounding 8 pixels is a white pixel, the pixel of interest is also a white pixel (deleted), and if all of the surrounding 8 pixels are black pixels, attention is paid. The pixel value is not changed. The target pixel position is moved to the next pixel position in the raster scan within the vector processing target range of the binary image, and the same processing is repeated for all the pixels in the vector processing target region. Then, a series of contraction processing by the raster scanning is performed by the number k of rounding up the decimal part of (w k / 2) from the information of the maximum line width w k of the figure to be thinned obtained in step S130. repeat. In one raster scan, the boundary pixels of the white area of the black area are deleted one by one. Basically, the black area is reduced by 2 × k pixels in the vertical and horizontal directions, originally 2 × k pixels. The black area of the following thickness will disappear. When step S140 is completed, the process proceeds to step S150.

図3(a)に、ステップS120で得られた2値画像の一例を示した。ステップS130にて、細線化対象とする図形の最大線幅wが3である場合に、kは2となりステップS140における収縮処理は、2回のラスター走査により繰り返される。図3(b)は、ステップS140における収縮処理の1回目のラスター走査が終了した時点の処理結果画像を表しており、図3(c)は、図3(b)を入力として2回目のラスター走査による収縮処理を終了した時点の処理結果画像を示している。k=2の場合は、この図3(c)がステップS140の出力結果となる。 FIG. 3A shows an example of the binary image obtained in step S120. In step S130, if the maximum line width w k of the figure to be thinning target is a 3, k is shrunk at 2 next step S140, is repeated by two raster scan. FIG. 3B shows a processing result image at the time when the first raster scan of the contraction process in step S140 is completed. FIG. 3C shows the second raster with FIG. 3B as an input. The processing result image at the time when the contraction processing by scanning is completed is shown. When k = 2, this FIG. 3C is the output result of step S140.

尚、収縮処理に関しては、例えば、酒井幸市著“ディジタル画像処理の基礎と応用”第2版,ISBN4-7898-3707-6,CQ出版社,2004年2月1日発行,P.50-P.51等に述べられている。   Concerning shrinkage processing, for example, Yukiichi Sakai “Basics and Applications of Digital Image Processing” 2nd Edition, ISBN 4-7898-3707-6, CQ Publisher, published on February 1, 2004, P.50- It is described in P.51 etc.

次に、ステップS150では、ステップS140で得られた収縮処理済の2値画像を公知の膨張法に従い膨張処理する。即ち、注目画素位置の画素を中心画素とし、その周囲の8画素とからなる3×3のウィンドウで対象2値画像域をラスター走査する。同3×3の9画素からなるウィンドウ内で、周囲の8画素の中で1画素でも黒画素なら注目画素も黒画素とし(膨張させ)、周囲の8画素全てが白画素の場合には注目画素の値は変化させない。2値画像のベクトル処理対象範囲内をラスター走査での次の画素位置に注目画素位置を移し、ベクトル処理対象領域内全ての画素に対して同処理を繰り返す。そして、前記、ステップS140で、ラスター走査による一連の収縮処理を繰り返した回数kと同数回、ラスター走査による一連の収縮処理を繰り返す。一回のラスター走査による膨張処理において黒領域の白領域の境界画素がそれぞれ1画素ずつ膨張され、基本的に、黒領域は縦方向と横方向にそれぞれ2×k画素ずつ太められ、ステップS140の収縮処理にて消滅していなかった部分に関しては、ステップS140で削られた分が再度付与されることになる。ステップS150を終えるとステップS160に進む。   Next, in step S150, the binary image subjected to the contraction process obtained in step S140 is expanded according to a known expansion method. That is, the target binary image area is raster-scanned in a 3 × 3 window including the pixel at the target pixel position as the central pixel and the surrounding eight pixels. In the window consisting of 9 pixels of 3 × 3, if one of the surrounding 8 pixels is a black pixel, the pixel of interest is also made a black pixel (expanded), and if all the surrounding 8 pixels are white pixels, attention is paid. The pixel value is not changed. The target pixel position is moved to the next pixel position in the raster scan within the vector processing target range of the binary image, and the same processing is repeated for all the pixels in the vector processing target region. In step S140, the series of shrinking processes by raster scanning is repeated the same number of times k as the series of shrinking processes by raster scanning. In the expansion process by one raster scan, the boundary pixels of the white region of the black region are expanded by one pixel, and basically the black region is thickened by 2 × k pixels in the vertical direction and the horizontal direction, respectively. For the portion that has not disappeared in the contraction process, the amount cut in step S140 is given again. When step S150 is completed, the process proceeds to step S160.

ステップS140における収縮処理が、2回のラスター走査により繰り返された場合には、ステップS150における膨張処理も、2回のラスター走査により繰り返される。図3(d)は、ステップS150における膨張処理の1回目のラスター走査が終了した時点の処理結果画像を表しており、図3(e)は、図3(d)を入力として2回目のラスター走査による膨張処理を終了した時点の処理結果画像を示している。k=2の場合は、この図3(e)がステップS150の出力結果となる。   When the contraction process in step S140 is repeated by two raster scans, the expansion process in step S150 is also repeated by two raster scans. FIG. 3D shows a processing result image at the time when the first raster scan of the expansion process in step S150 is completed. FIG. 3E shows the second raster with FIG. 3D as an input. The processing result image at the time when the expansion processing by scanning is completed is shown. When k = 2, this FIG. 3 (e) is the output result of step S150.

尚、膨張処理に関しては、例えば、酒井幸市著“ディジタル画像処理の基礎と応用”第2版,ISBN4-7898-3707-6,CQ出版社,2004年2月1日発行,P.50-P.51等に述べられている。   Regarding expansion processing, for example, Sakai Yukiichi "Basics and Applications of Digital Image Processing" 2nd Edition, ISBN 4-7898-3707-6, CQ Publisher, published on February 1, 2004, P.50- It is described in P.51 etc.

ステップS160では、ステップS120で得られた2値画像とステップS140、ステップS150により得られた収縮・膨張処理結果画像とから、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像を抽出する。即ち、ステップS150での結果として得られた2値画像とステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に論理積をとって得られる画像をもって、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とする。先の図3の例では、ステップS120で得られた2値画像である図3(a)と、ステップS150の出力結果である図3(e)との画素ごとの論理積をとって得られる画像である図3(f)を生成し、この図3(f)をもって輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とする。   In step S160, a component image to be subjected to contour (outline) vector processing is extracted from the binary image obtained in step S120 and the contraction / expansion processing result image obtained in steps S140 and S150. That is, with the image obtained by ANDing each pixel at the corresponding position when the binary image obtained as a result of step S150 and the binary image obtained in step S120 are overlaid, A component image to be subjected to contour (outline) vector processing. In the example of FIG. 3, the logical product is obtained for each pixel of FIG. 3A which is the binary image obtained in step S120 and FIG. 3E which is the output result of step S150. FIG. 3F, which is an image, is generated, and this FIG. 3F is used as a component image to be subjected to contour (outline) vector processing.

ステップS170では、ステップS120で得られた2値画像とステップS160で得られた輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とから、線芯(ラインアート)ベクトル処理の対象とすべき成分画像を抽出する。即ち、ステップS160での結果として得られた2値画像とステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に排他的論理和をとって得られる画像をもって、線芯(ラインアート)ベクトル処理の対象とすべき成分画像とする。先の図3の例では、ステップS120で得られた2値画像である図3(a)と、ステップS160の出力結果である図3(f)との画素ごとの排他的論理和をとって得られる画像である図3(g)を生成し、この図3(f)をもって輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とする。   In step S170, the component to be subject to line core vector processing from the binary image obtained in step S120 and the component image to be subject to contour (outline) vector processing obtained in step S160. Extract images. That is, an image obtained by taking an exclusive OR for each pixel at a corresponding position when the binary image obtained as a result of step S160 and the binary image obtained in step S120 are superimposed. Are component images to be subjected to line core vector processing. In the example of FIG. 3, the exclusive OR for each pixel of the binary image obtained in step S120 and FIG. 3 (f) which is the output result of step S160 is obtained. FIG. 3G, which is an obtained image, is generated, and FIG. 3F is used as a component image to be subjected to contour (outline) vector processing.

次に、ステップS180では、ステップS160で得られた輪郭(アウトライン)ベクトル処理の対象とすべき成分画像に対して、輪郭(アウトライン)ベクトル処理を行う。輪郭(アウトライン)ベクトル処理に関しては、例えば、特許文献3(特許第3049672号)によるベクトル化を行う。即ち、2値画像からアウトラインベクトルを抽出し、該抽出したアウトラインベクトル表現の状態で所望の倍率(任意)で滑らかに変倍されたアウトラインベクトルを作成する。ここで、2値画像からアウトラインベクトルを抽出する方法としては、一例として、特許文献1(特許第3026592号)や特許文献2(特開平05−108823)で開示される方法が用いられる。   Next, in step S180, outline (outline) vector processing is performed on the component image to be subjected to the outline (outline) vector processing obtained in step S160. Regarding the outline (outline) vector processing, for example, vectorization according to Patent Document 3 (Japanese Patent No. 3049772) is performed. That is, an outline vector is extracted from a binary image, and an outline vector that is smoothly scaled at a desired magnification (arbitrary) in the state of the extracted outline vector expression is created. Here, as an example of a method for extracting an outline vector from a binary image, a method disclosed in Patent Document 1 (Patent No. 3026592) or Patent Document 2 (Japanese Patent Laid-Open No. 05-108823) is used.

ステップS190では、ステップS170で得られた線芯(ラインアート)ベクトル処理の対象とすべき成分画像に対して、細線化処理を施す。細線化処理とは、スキャナ等で読み込んで得られるイメージデータを2値化した後、その線幅が1になるように細めていく処理である。   In step S190, a thinning process is performed on the component image to be subjected to the line core (line art) vector processing obtained in step S170. Thinning processing is processing in which image data obtained by reading with a scanner or the like is binarized and then thinned so that the line width becomes one.

細線化処理には、公知のHilditch法による細線化手法を用いる。即ち、注目画素位置の画素を中心画素とし、その周囲の8画素とからなる3×3のウィンドウ内を予め用意されたマスクパターンとの比較することにより細線化による削除対象画素であるかを判定し、削除対象画素の場合には、注目画素位置(x,y)の画素を削除する。即ち、黒画素から白画素に置き換える。一方、削除対象画素ではない場合には、細線化処理範囲内におけるラスター走査での次の画素位置に注目画素位置を移し、細線化対象領域内すべての画素に対して同処理を繰り返す。そして、一回のラスター走査において削除される画素が全く発生しなくなるまで、前記ラスター走査による一連の処理を繰り返す。一回のラスター走査において削除される画素が全く発生しなくなった時点で細線化の処理を完了するいうものである。Hilditch法に関しては、例えば、酒井幸市著“ディジタル画像処理の基礎と応用”第2版,ISBN4-7898-3707-6,CQ出版社,2004年2月1日発行,P.51-P.54等に述べられている。   For the thinning process, a thinning technique using a known Hilditch method is used. In other words, the pixel at the target pixel position is determined as a pixel to be deleted by thinning by comparing a 3 × 3 window consisting of the surrounding 8 pixels with a mask pattern prepared in advance. In the case of a deletion target pixel, the pixel at the target pixel position (x, y) is deleted. That is, the black pixel is replaced with the white pixel. On the other hand, if it is not a deletion target pixel, the target pixel position is moved to the next pixel position in raster scanning within the thinning processing range, and the same processing is repeated for all pixels in the thinning target area. Then, a series of processing by the raster scanning is repeated until no pixel to be deleted is generated in one raster scanning. The thinning process is completed when no pixels to be deleted are generated in one raster scan. Regarding the Hilditch method, for example, Sakai Yukiichi "Basics and Applications of Digital Image Processing" 2nd Edition, ISBN 4-7898-3707-6, CQ Publisher, published on February 1, 2004, P.51-P. 54 mag.

ステップS200では、ステップS190で細線化済の2値画像を入力し、ラインアートベクトル化を行う。即ち、細線化された2値画像を構成する端点や交点間をつなぐ独立した線や閉曲線毎にベクトル化する。即ち、細線化された2値画像を構成する端点や交点間をつなぐ、独立した線や閉曲線のそれぞれから得られる線成分に対応する、線芯化された端点間毎線芯(周回)化済ベクトルを平滑化(関数近似)処理する際に、端点部分に相当するベクトルが、他のベクトルと統合されて端点位置が不明にならぬように、端点部分に相当する部分を明示する始端点・終端点情報を生成する。そして、端点部分に相当する部分が端点として保存される(ベジェ曲線のアンカーポイントとなる)ように補助ベクトルを挿入する。得られた端点間毎補助ベクトル入り(周回)ベクトルに対して、例えば、特開2005-346137に開示される方法で2次や3次のベジェ曲線近似をして、端点や交点間をつなぐ、独立した線や閉曲線部分を残すことで、得られた線幅1の2値画像をそれらの端点や交点間をつなぐ独立した線や閉曲線毎に線芯ベクトル化する。   In step S200, the binary image already thinned in step S190 is input, and line art vectorization is performed. That is, vectorization is performed for each independent line or closed curve connecting the end points and intersections constituting the thinned binary image. That is, the line cores between the end points corresponding to the line components obtained from each of the independent lines and closed curves that connect between the end points and intersections that make up the thinned binary image have been made When the vector is smoothed (function approximation), the starting point that clearly indicates the part corresponding to the end point part so that the vector corresponding to the end point part is integrated with other vectors and the end point position is not unknown. Generate end point information. Then, an auxiliary vector is inserted so that a portion corresponding to the end point portion is stored as an end point (becomes an anchor point of a Bezier curve). For the obtained (circular) vectors between auxiliary points between the end points, for example, a quadratic or cubic Bezier curve approximation is performed by the method disclosed in JP-A-2005-346137, and the end points and the intersections are connected. By leaving independent lines and closed curve portions, the obtained binary image with a line width of 1 is converted into a line vector for each independent line or closed curve connecting between the end points and intersections.

ステップS210では、ステップS180で得られた、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像に対しての輪郭(アウトライン)ベクトルとステップS200にて得られた、線芯(ラインアート)ベクトル処理の対象とすべき成分画像に対しての線芯(ラインアート)ベクトルを統合して、ステップS120で得られたベクトル処理対象である2値画像のベクトルデータとする。   In step S210, the contour (outline) vector for the component image to be subjected to the contour (outline) vector processing obtained in step S180 and the line core (line art) vector processing obtained in step S200. The line core (line art) vectors for the component images to be processed are integrated into the vector data of the binary image that is the vector processing target obtained in step S120.

ステップS220では、ステップS210で統合して得られたベクトルデータを出力して、一連の処理を終える。   In step S220, the vector data obtained by the integration in step S210 is output, and the series of processes is completed.

<実施形態2>
上記の実施形態1においては、ステップS160において、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像を抽出した後、直ちにステップS170で線芯(ラインアート)ベクトル処理の対象とすべき成分画像を抽出しているが、本発明はこれに限らない。即ち、ステップS160の直後には、実施形態1におけるステップS180の輪郭(アウトライン)ベクトル処理の対象とすべき成分画像に対して、輪郭(アウトライン)ベクトル処理を行い、その後に、実施形態1におけるステップS170の線芯(ラインアート)ベクトル処理の対象とすべき成分画像の抽出を行い、しかる後に、実施形態1におけるステップS190の細線化処理を施し、ステップS200の線芯(ラインアート)ベクトル処理の対象とすべき成分画像に対しての線芯(ラインアート)ベクトル処理を行うように構成しても良い。
<Embodiment 2>
In the first embodiment, after extracting the component image to be subjected to the outline (outline) vector processing in step S160, the component image to be subjected to the line core (line art) vector processing is immediately selected in step S170. Although extracted, the present invention is not limited to this. That is, immediately after step S160, the contour (outline) vector processing is performed on the component image to be subjected to the contour (outline) vector processing in step S180 in the first embodiment, and then the steps in the first embodiment are performed. The component image to be subjected to the line core (line art) vector processing in S170 is extracted, and then the thinning process in step S190 in the first embodiment is performed, and the line core (line art) vector processing in step S200 is performed. You may comprise so that the line core (line art) vector process may be performed with respect to the component image which should be made into object.

<実施形態3>
上記の実施形態1および2においては、まず、ステップS160で、ステップS120で得られた2値画像とステップS140、ステップS150により得られた収縮・膨張処理結果画像とから、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像を抽出した。即ち、ステップS150での結果として得られた2値画像とステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に論理積をとって得られる画像をもって、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とした。そして、その後、ステップS170で、ステップS120で得られた2値画像とステップS160で得られた輪郭(アウトライン)ベクトル処理の対象とすべき成分画像とから、線芯(ラインアート)ベクトル処理の対象とすべき成分画像を抽出するように構成した。即ち、ステップS160での結果として得られた2値画像とステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に排他的論理和をとって得られる画像をもって、線芯(ラインアート)ベクトル処理の対象とすべき成分画像としていた。
<Embodiment 3>
In the first and second embodiments, first, in step S160, contour (outline) vector processing is performed from the binary image obtained in step S120 and the contraction / expansion processing result image obtained in steps S140 and S150. We extracted the component images that should be the target. That is, with the image obtained by ANDing each pixel at the corresponding position when the binary image obtained as a result of step S150 and the binary image obtained in step S120 are overlaid, The component image to be subjected to the contour (outline) vector processing is used. Thereafter, in step S170, the object of line core vector processing is obtained from the binary image obtained in step S120 and the component image to be subjected to contour (outline) vector processing obtained in step S160. It is configured to extract a component image to be taken. That is, an image obtained by taking an exclusive OR for each pixel at a corresponding position when the binary image obtained as a result of step S160 and the binary image obtained in step S120 are superimposed. Thus, the component image to be subjected to the line core vector processing is used.

しかし、本願は、この構成に限らない。即ち、先に、実施形態1におけるステップS170の線芯(ラインアート)ベクトル処理の対象とすべき成分画像を抽出するように構成してもよい。即ち、ステップS150での結果として得られた2値画像とステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に排他的論理和をとって得られる画像をもって、線芯(ラインアート)ベクトル処理の対象とすべき成分画像とし、後に、このステップS170で得られる2値画像に、ステップS120で得られていた2値画像とを重ね合わせたときに対応する位置にある画素毎に排他的論理和をとって得られる画像をもって、輪郭(アウトライン)ベクトル処理の対象とすべき成分画像としてもよい。   However, the present application is not limited to this configuration. That is, first, a component image to be subjected to the line core vector processing in step S170 in the first embodiment may be extracted. That is, an image obtained by taking an exclusive OR for each pixel at a corresponding position when the binary image obtained as a result of step S150 and the binary image obtained in step S120 are superimposed. To be a component image to be subjected to the line core vector processing, and later, when the binary image obtained in step S170 is overlaid on the binary image obtained in step S120. An image obtained by taking an exclusive OR for each pixel at a position may be used as a component image to be subjected to contour (outline) vector processing.

先の図3の例では、ステップS120で得られた2値画像である図3(a)と、ステップS150の出力結果である図3(e)との画素ごとの排他的論理和をとって得られる画像である図3(g)を生成し、この図3(g)をもって線芯(ラインアート)ベクトル処理の対象とすべき成分画像とする。また、図3(g)と図3(a)との画素ごとの排他的論理和をとって得られる画像である図3(f)を生成し、この図3(f)をもって線芯(ラインアート)ベクトル処理の対象とすべき成分画像としてもよい。   In the example of FIG. 3, the exclusive OR for each pixel of the binary image obtained in step S120 and FIG. 3E, which is the output result of step S150, is obtained. FIG. 3 (g), which is the obtained image, is generated, and this FIG. 3 (g) is used as a component image to be subjected to the line core (line art) vector processing. Also, FIG. 3 (f), which is an image obtained by taking the exclusive OR of each pixel of FIG. 3 (g) and FIG. 3 (a), is generated. Art) It may be a component image to be subjected to vector processing.

<実施形態4>
本発明の目的は前述した実施例の機能を実現するソフトウエアのプログラムコードを記録した記録媒体を、装置に供給し、その装置を構成するCPU(またはMPU)が記録媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することとなり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
<Embodiment 4>
An object of the present invention is to supply a recording medium on which a program code of software for realizing the functions of the above-described embodiments is recorded to a device, and a program code stored in the recording medium by a CPU (or MPU) constituting the device. Needless to say, this can also be achieved by reading and executing. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM、DVDなどを用いることができる。   As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, a DVD, or the like is used. it can.

また、CPUが読み出したプログラムコードを実行することにより、前述した実施例の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、CPU上で稼動しているOperating System(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施例の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the CPU, not only the functions of the above-described embodiments are realized, but also an operating system (OS) or the like operating on the CPU based on an instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、記憶媒体から読み出されたプログラムコードが、画像処理装置に挿入された機能拡張ボードや画像処理装置に接続された機能拡張ユニットに備わるメモリに書きこまれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written in the memory provided in the function expansion board inserted into the image processing apparatus or the function expansion unit connected to the image processing apparatus, the program code is instructed. Based on this, it goes without saying that the CPU of the function expansion board or function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本願発明を実現する一連の処理手順を表すフローチャートA flowchart showing a series of processing procedures for realizing the present invention. 本願発明を実施する装置構成例のブロック図Block diagram of an apparatus configuration example for carrying out the present invention 本願発明を実施した際に得られる一連の処理段階の画像の例Example of a series of processing stage images obtained when the present invention is implemented

Claims (8)

ベクトル化処理対象画像を獲得する画像獲得工程と、前記ベクトル化処理対象画像を線芯(ラインアート)ベクトル化する線の幅情報を得る線幅情報獲得工程と、前記線幅情報獲得工程より得られた線幅情報に基づき、前記ベクトル化対象画像から線芯(ラインアート)ベクトル処理対象成分を抽出する線芯(ラインアート)ベクトル処理成分抽出工程と、2値画像を細線化する細線化工程と、前記線芯(ラインアート)ベクトル処理成分抽出工程にて抽出されたベクトル化対象画像から線芯(ラインアート)ベクトル処理対象成分から前記細線化処理工程にて得られた細線化済画像を前記線芯(ラインアート)ベクトル化する線芯(ラインアート)ベクトル処理工程とを有することを特徴とする画像処理方法。   Obtained from an image acquisition step for acquiring a vectorization processing target image, a line width information acquisition step for obtaining line width information for converting the vectorization processing target image into a line core vector, and the line width information acquisition step. Based on the obtained line width information, a line core vector processing component extraction step for extracting a line core vector processing target component from the vectorization target image, and a thinning step for thinning the binary image And the thinned image obtained in the thinning process step from the line core (line art) vector processing target component from the vectorization target image extracted in the line core (line art) vector processing component extraction step. An image processing method comprising: a line core (line art) vector processing step of converting the line core (line art) into a vector. 前記請求項1に記載の画像処理方法において、加えて、2値画像を輪郭(アウトライン)ベクトル化する輪郭(アウトライン)ベクトル処理工程を有し、前記ベクトル化対象画像から線芯(ラインアート)ベクトル処理成分抽出工程にて抽出された線芯(ラインアート)ベクトル処理対象成分以外の成分を、前記輪郭(アウトライン)ベクトル処理工程にて輪郭(アウトライン)ベクトル化することを特徴とする画像処理方法。   2. The image processing method according to claim 1, further comprising a contour (outline) vector processing step for converting a binary image into a contour (outline) vector, wherein a line core vector is obtained from the vectorized image. An image processing method comprising: converting a component other than a line core (line art) vector processing target component extracted in a processing component extraction step into a contour (outline) vector in the contour (outline) vector processing step. 前記請求項1もしくは2に記載の画像処理方法において、前記線芯(ラインアート)ベクトル処理成分抽出工程は、前記線幅情報獲得工程より得られた線幅情報に基づき、2値画像の収縮処理と膨張処理を用いて線芯(ラインアート)ベクトル処理対象成分を抽出するものであることを特徴とする画像処理方法。   3. The image processing method according to claim 1, wherein the line core vector processing component extraction step is based on line width information obtained from the line width information acquisition step, and a binary image contraction process is performed. And an expansion process to extract a line core vector processing target component. ベクトル化処理対象画像を獲得する画像獲得手段と、前記ベクトル化処理対象画像を線芯(ラインアート)ベクトル化する線の幅情報を得る線幅情報獲得手段と、前記線幅情報獲得手段より得られた線幅情報に基づき、前記ベクトル化対象画像から線芯(ラインアート)ベクトル処理対象成分を抽出する線芯(ラインアート)ベクトル処理成分抽出手段と、2値画像を細線化する細線化手段と、前記線芯(ラインアート)ベクトル処理成分抽出手段にて抽出されたベクトル化対象画像から線芯(ラインアート)ベクトル処理対象成分から前記細線化処理手段にて得られた細線化済画像を前記線芯(ラインアート)ベクトル化する線芯(ラインアート)ベクトル処理手段とを有することを特徴とする画像処理装置。   Image acquisition means for acquiring a vectorization processing target image, line width information acquisition means for acquiring line width information for converting the vectorization processing target image into a line core vector, and line width information acquisition means Line core vector processing component extraction means for extracting a line core vector processing target component from the vectorization target image based on the obtained line width information, and thinning means for thinning the binary image And a thinned image obtained by the thinning processing means from the line core (line art) vector processing target component from the vectorization target image extracted by the line core (line art) vector processing component extraction means. An image processing apparatus comprising: a line core (line art) vector processing means for converting the line core (line art) into a vector. 前記請求項4に記載の画像処理装置において、加えて、2値画像を輪郭(アウトライン)ベクトル化する輪郭(アウトライン)ベクトル処理手段を有し、前記ベクトル化対象画像から線芯(ラインアート)ベクトル処理成分抽出手段にて抽出された線芯(ラインアート)ベクトル処理対象成分以外の成分を、前記輪郭(アウトライン)ベクトル処理手段にて輪郭(アウトライン)ベクトル化することを特徴とする画像処理装置。   5. The image processing apparatus according to claim 4, further comprising contour vector processing means for converting a binary image into a contour (outline) vector, wherein a line core vector is obtained from the vectorization target image. An image processing apparatus, wherein a component other than a line core (line art) vector processing target component extracted by a processing component extraction unit is converted into a contour (outline) vector by the contour (outline) vector processing unit. 前記請求項4もしくは5に記載の画像処理装置において、前記線芯(ラインアート)ベクトル処理成分抽出手段は、前記線幅情報獲得手段より得られた線幅情報に基づき、2値画像の収縮処理と膨張処理を用いて線芯(ラインアート)ベクトル処理対象成分を抽出するものであることを特徴とする画像処理装置。   6. The image processing apparatus according to claim 4 or 5, wherein the line core vector processing component extraction means is based on the line width information obtained from the line width information acquisition means, and a binary image contraction process. And an expansion process to extract a line core vector processing target component. コンピュータ装置が実行可能なプログラムであって、前記プログラムを実行するコンピュータ装置を、前記請求項4〜6のいずれかに記載の画像処理装置として機能させることを特徴とするプログラム。   A program that can be executed by a computer apparatus, and that causes the computer apparatus that executes the program to function as the image processing apparatus according to any one of claims 4 to 6. 前記請求項7に記載のプログラムを記憶したプログラム記憶媒体。   A program storage medium storing the program according to claim 7.
JP2007060340A 2007-03-09 2007-03-09 Image processing method, image processor, program, and program storage medium Pending JP2008225653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007060340A JP2008225653A (en) 2007-03-09 2007-03-09 Image processing method, image processor, program, and program storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007060340A JP2008225653A (en) 2007-03-09 2007-03-09 Image processing method, image processor, program, and program storage medium

Publications (1)

Publication Number Publication Date
JP2008225653A true JP2008225653A (en) 2008-09-25

Family

ID=39844231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007060340A Pending JP2008225653A (en) 2007-03-09 2007-03-09 Image processing method, image processor, program, and program storage medium

Country Status (1)

Country Link
JP (1) JP2008225653A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553928A (en) * 2020-04-10 2020-08-18 中国资源卫星应用中心 Urban road high-resolution remote sensing self-adaptive extraction method assisted by Openstreetmap information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553928A (en) * 2020-04-10 2020-08-18 中国资源卫星应用中心 Urban road high-resolution remote sensing self-adaptive extraction method assisted by Openstreetmap information
CN111553928B (en) * 2020-04-10 2023-10-31 中国资源卫星应用中心 Urban road high-resolution remote sensing self-adaptive extraction method assisted with Openstreetmap information

Similar Documents

Publication Publication Date Title
US8300946B2 (en) Image processing apparatus, image processing method, and computer program
US7889938B2 (en) Method and apparatus for processing line drawings in images
JP2009258968A (en) Image inspection device
JP2010033541A (en) Image processing apparatus and method
JP5600524B2 (en) Image processing apparatus, image processing method, program, and storage medium
JPH0581424A (en) Noise eliminating method
JP5111226B2 (en) Image processing method, image processing apparatus, program thereof, and computer-readable storage medium
US8401325B2 (en) Image processing method, image processing apparatus, and computer program for core line modification of a thinning figure in an image process
JP4873554B2 (en) Image distribution apparatus and image distribution method
JP4928325B2 (en) Image processing method, image processing apparatus, program, and storage medium
JP2008225653A (en) Image processing method, image processor, program, and program storage medium
JP2008225654A (en) Image processing method, image processor, program, and program storage medium
JP2003046746A (en) Method and apparatus for processing image
JP2008206073A (en) Image processing apparatus, control method, program, and storage medium
JP2775122B2 (en) Automatic contour extraction vectorization processing method of illustration data and processing device used for the method
JP2002175532A (en) Image processor, method for image processing and storage medium with image processing program recorded thereon
JP2001283212A (en) Method of base interpolation by vector transformation
JP2008027132A (en) Image processing method, image processor, program and program storage medium
JP2006309622A (en) Image processor, image processing method, image processing program and recording medium
US20110235903A1 (en) Image processing method, image processing apparatus and program storage medium
JP5424785B2 (en) Image processing apparatus, image processing method, and computer program
Kurilin et al. Generation of PDF with vector symbols from scanned document
JP3054315B2 (en) Image processing method and apparatus
JPH09167228A (en) Method and device for transformation, method and device for reshaping picture using them and system using them
JP2008027135A (en) Image processing method, image processor, program and program storage medium

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201