JPH1115955A - Mask creation device and recording medium recording mask creation program - Google Patents
Mask creation device and recording medium recording mask creation programInfo
- Publication number
- JPH1115955A JPH1115955A JP17041897A JP17041897A JPH1115955A JP H1115955 A JPH1115955 A JP H1115955A JP 17041897 A JP17041897 A JP 17041897A JP 17041897 A JP17041897 A JP 17041897A JP H1115955 A JPH1115955 A JP H1115955A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- creating
- image
- mask
- data
- 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
Links
Landscapes
- Image Analysis (AREA)
- Preparing Plates And Mask In Photomechanical Process (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Abstract
(57)【要約】
【課題】レイアウトスキャナ等において画像を抽出際等
で使用されるマスクを作成する装置及びプログラムを提
供することである。
【解決手段】画像データの入力手段1と、エッジ画像デ
ータを作成するエッジ画像作成手段2と、2値化画像デ
ータを作成する2値化画像作成手段3と、細線化画像デ
ータを作成する細線化画像作成手段4と、細線化画像デ
ータを併合する画像併合5と、マスクを作成するマスク
作成手段6と、上記各データを記憶する記憶手段7とを
具備することを特徴とするマスク作成装置およびプログ
ラムを記録した記録媒体である。
(57) Abstract: An object of the present invention is to provide an apparatus and a program for creating a mask used when extracting an image in a layout scanner or the like. An image data input unit, an edge image creating unit for creating edge image data, a binarized image creating unit for creating binary image data, and a thin line for creating thinned image data. A mask creating apparatus comprising: a segmented image creating unit 4, an image merging unit 5 for merging thin line image data, a mask creating unit 6 for creating a mask, and a storage unit 7 for storing the data. And a recording medium on which a program is recorded.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像データから、
必要とする画像領域のみを抽出するための、マスク作成
装置に関するものである。TECHNICAL FIELD The present invention relates to a method for converting image data
The present invention relates to a mask creating apparatus for extracting only a required image area.
【0002】[0002]
【従来の技術】従来、レイアウトスキャナー等の画像処
理装置において、画像データ内から必要とする画像領域
を切り抜くためのマスク作成装置としては、作業者がデ
ィスプレイ上に表示された画像を参照しながら、マスク
を作成したい領域の輪郭部分をデジタイザ、あるいはマ
ウス等のポインティング・デバイスを用いてトレースす
ることにより、マスクを作成する装置があった。また、
マスク作成領域と背景領域の色差や濃度差等を検出し
て、両領域を分割できるように色信号や濃度信号の閾値
を設定してマスクを作成する装置があった。2. Description of the Related Art Conventionally, in an image processing apparatus such as a layout scanner, as a mask creating apparatus for cutting out a required image area from image data, an operator refers to an image displayed on a display, There has been an apparatus for creating a mask by tracing the outline of an area where a mask is to be created using a digitizer or a pointing device such as a mouse. Also,
There has been an apparatus that detects a color difference or a density difference between a mask creation area and a background area and sets a threshold value of a color signal or a density signal so as to divide the two areas to create a mask.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、マスク
を作成したい領域の輪郭部分をトレースしてマスクを作
成する装置においては、複雑な形状の領域を切り抜こう
とすると、トレース作業が複雑になって作業者の負担が
増大し、作業時間も非常にかからざるを得なかった。ま
た、トレースにより読み取られた点情報をつないで線情
報とする際に、スムージング処理を施したり、ベクトル
化処理を施す必要があり、装置に複雑な処理機構を組み
込まなければならなくなってしまった。However, in an apparatus for creating a mask by tracing a contour portion of an area where a mask is to be created, if a region having a complicated shape is to be cut out, the tracing operation becomes complicated. The burden on the operator increased, and the work time had to be very long. Further, when connecting the point information read by the trace to form line information, it is necessary to perform a smoothing process or a vectorization process, so that a complicated processing mechanism must be incorporated in the apparatus.
【0004】一方、色信号や濃度信号からマスクを作成
する装置においても、作業者が画像を確認しながら、適
切な閾値をその都度設定する必要があるうえ、対象とな
る画像データは千差万別であり、野外などの自然環境の
もとで撮られた写真画像において、特定の領域からマス
クを作成する場合、その領域内にある色と同じ色が、背
景領域に存在しているような場合は、両領域を分割でき
ないという課題があった。On the other hand, in an apparatus for creating a mask from a color signal or a density signal, it is necessary for an operator to set an appropriate threshold each time while checking an image. Another difference is that when creating a mask from a specific area in a photographic image taken in a natural environment such as outdoors, the same color as that in that area exists in the background area. In such a case, there is a problem that the two regions cannot be divided.
【0005】さらに、画像データの色量子化とエッジ情
報とからマスク領域と他の領域の分割を行う装置におい
ては、色々な色や絵柄の組合せでできた模様からなる領
域(例えば、複雑な格子模様や花柄のセーター、洋服
等)をまとめて切り抜こうとした場合、エッジが細かく
抽出されすぎるため一括して領域分割できないという課
題があった。Further, in an apparatus for dividing a mask area and another area from color quantization of image data and edge information, an area (for example, a complicated grid) composed of a combination of various colors and pictures is used. When it is attempted to cut out a pattern or a floral sweater, clothes, etc. at once, there is a problem in that the edges cannot be extracted too finely so that the region cannot be collectively divided.
【0006】[0006]
【課題を解決するための手段】本発明は上記課題を解決
するためになされたものであり、本発明の請求項1に記
載された発明は、画像データの画像入力手段101と、
前記画像データからエッジ画像データを作成するエッジ
画像作成手段103と、前記画像データを2値化して2
値化画像データを作成する2値化画像作成手段104
と、前記2値化画像データとエッジ画像データから細線
化画像データを作成する細線化画像作成手段105と、
細線化画像データを併合し併合画像データを作成する併
合画像作成手段107と、前記併合画像データからマス
クを作成するマスク作成手段108と、上記各データを
記憶する記憶手段102と、を具備することを特徴とす
るマスク作成装置である。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and the invention described in claim 1 of the present invention comprises an image data image input means 101,
An edge image creating unit 103 for creating edge image data from the image data;
Binarized image creating means 104 for creating binarized image data
Thinning image creating means 105 for creating thinning image data from the binary image data and the edge image data;
A combined image creating unit 107 that combines thinned image data to create combined image data, a mask creating unit 108 that creates a mask from the combined image data, and a storage unit 102 that stores the data. Is a mask making apparatus.
【0007】また、本発明の請求項2に記載された発明
は、前記細線化画像データの枝部分等のような部分を削
除する画像削除手段106を具備することを特徴とする
上記マスク作成装置である。なお、上記各画像データを
表示する表示装置109を上記手段に付加して、各画像
データを表示することもできる。According to a second aspect of the present invention, there is provided the above-mentioned mask creating apparatus, further comprising an image deleting means 106 for deleting a portion such as a branch portion of the thinned image data. It is. In addition, the display device 109 for displaying each image data can be added to the above means to display each image data.
【0008】また、本発明の請求項3に記載された発明
は、画像データを入力させ、前記画像データからエッジ
画像データを作成させ、前記画像データを2値化して2
値化画像データを作成させ、エッジ画像データと2値化
画像データとから細線化画像データを作成させ、前記細
線化画像データを併合し併合画像データを作成させ、前
記併合画像データからマスクを作成させ、上記各データ
を記憶させることを特徴とするプログラムを記録した記
録媒体である。According to a third aspect of the present invention, the image data is input, edge image data is created from the image data, and the image data is binarized.
Making thinned image data from edge image data and binary image data, merging the thinned image data to make merged image data, and making a mask from the merged image data And a storage medium storing a program for storing the data.
【0009】また、本発明の請求項4に記載された発明
は、前記細線化画像データの枝部分を削除させることを
特徴とする上記プログラムを記録した記録媒体である。Further, the invention described in claim 4 of the present invention is a recording medium recording the above-mentioned program, wherein a branch portion of the thinned image data is deleted.
【0010】なお、上記マスクを用いて切り抜き画像デ
ータを作成する場合は、マスクや画像データを他の装置
等へ出力する画像出力手段110を設ければよい。[0010] When the cut-out image data is created using the mask, an image output means 110 for outputting the mask and the image data to another device may be provided.
【0011】[0011]
【発明の実施の形態】以下、図面を用いて本発明の一実
施の形態を詳細に説明する。図1は本発明のマスク作成
装置の構成を示す機能ブロック図である。また、図2は
本発明のマスク作成装置の概略構成を示すブロック図で
ある。本実施の形態によるマスク作成装置は、外部シス
テムから画像データを入力する画像入力装置201と、
マウス等のポインティングデバイスを備えた入力装置2
02と、半導体メモリ、磁気ディスク等よりなる記憶装
置203と、コンピュータ等よりなる演算処理装置20
4と、他のシステムへデータを送るためのデータ送信装
置等からなる出力装置205、カラーディスプレイ等か
らなる表示装置206と、演算処理装置204に供給す
るプログラムを記憶するCD−ROM207等からなる
記憶媒体とから概略構成されている。Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a functional block diagram showing the configuration of the mask producing apparatus of the present invention. FIG. 2 is a block diagram showing a schematic configuration of the mask producing apparatus of the present invention. The mask creation device according to the present embodiment includes an image input device 201 that inputs image data from an external system,
Input device 2 having a pointing device such as a mouse
02, a storage device 203 composed of a semiconductor memory, a magnetic disk, etc., and an arithmetic processing unit 20 composed of a computer, etc.
4, an output device 205 such as a data transmission device for transmitting data to another system, a display device 206 such as a color display, and a storage device such as a CD-ROM 207 for storing a program to be supplied to the arithmetic processing device 204. And a medium.
【0012】画像入力装置201は、画像データをRG
B、YMCKまたはモノトーン信号等のデジタルデータ
として取り込むためのもので、カラー原稿あるいはモノ
クロ原稿の画像データを取り込むためのカラースキャ
ナ、あるいはインターネット等を用いた外部システムか
らの画像データを取り込むためのデータ通信装置等であ
る。An image input device 201 converts image data into RG
B, YMCK, or digital data such as a monotone signal. Data communication for capturing image data from an external system using the Internet or the like, or a color scanner for capturing image data of a color or monochrome document. Device.
【0013】入力装置202は、表示装置206に表示
された各画像データに指示や設定を行うものである。記
憶装置203は、画像入力装置201からの画像データ
を記憶しておくとともに、後述する加工処理されたエッ
ジ画像データ、2値化画像データ、細線化画像データ、
併合画像データ、マスクデータ等の各種画像データや演
算処理装置204に供給するプログラムを記憶するもの
である。出力装置205は、マスクデータを他の装置等
へ出力するためのものである。表示装置206は、演算
処理装置204によりその動作が制御されており、記憶
手段203からの各種画像データを表示するものであ
る。The input device 202 is for giving instructions and setting to each image data displayed on the display device 206. The storage device 203 stores the image data from the image input device 201, and processes processed edge image data, binary image data, thin line image data,
It stores various image data such as merged image data and mask data and a program to be supplied to the arithmetic processing unit 204. The output device 205 is for outputting the mask data to another device or the like. The operation of the display device 206 is controlled by the arithmetic processing device 204 and displays various image data from the storage unit 203.
【0014】なお、演算処理装置204に供給されるプ
ログラムは、CD−ROM207、FD、MO、HD等
に格納しておき、コンピュータの使用時にドライブ(図
示ぜず)にセットして読み込み使用することとする。な
お、プログラムの供給方法は上記方法に限定されること
なく、インターネット等のネットワークを用いてプログ
ラムを供給することもできる。The program supplied to the arithmetic processing unit 204 is stored in a CD-ROM 207, FD, MO, HD, or the like, and is set in a drive (not shown) when the computer is used to be read and used. And The method for supplying the program is not limited to the above method, and the program can be supplied using a network such as the Internet.
【0015】演算処理装置204は、装置全体を制御す
るCPU211、装置をコントロールするプログラムが
記憶されているROM212(リードオンリーメモ
リ)、前記プログラムが動作するために必要なワークメ
モリやCD−ROM207から供給されるプログラムを
記憶して機能するRAM(ランダムアクセスメモリ)等
からなるものである。The arithmetic processing unit 204 is supplied from a CPU 211 for controlling the entire apparatus, a ROM 212 (read only memory) storing a program for controlling the apparatus, and a work memory and a CD-ROM 207 necessary for the operation of the program. And a RAM (random access memory) that functions by storing a program to be executed.
【0016】次に、図3に示すようなフローチャートを
参照して、処理の流れを詳細に説明する。 ステップ301(S301) まず、画像入力装置201により画像データがデジタル
階調データとして入力され、記憶装置203に記憶させ
る。この際、画像データがモノクロ画像の場合はその階
調データをそのまま利用し、カラー画像の場合は輝度信
号のみを対象とすればよい。従って、カラー信号が輝度
・色差信号として入力される場合は輝度信号のみを採用
すればよいが、RGBまたはYMCの3原色として入力
される場合は、予めデータの座標変換を行って輝度信号
を求めておく必要がある。Next, the flow of processing will be described in detail with reference to a flowchart as shown in FIG. Step 301 (S301) First, image data is input as digital gradation data by the image input device 201 and stored in the storage device 203. At this time, if the image data is a monochrome image, the gradation data thereof is used as it is, and if the image data is a color image, only the luminance signal may be targeted. Therefore, when a color signal is input as a luminance / color difference signal, only the luminance signal may be adopted. However, when the color signal is input as three primary colors of RGB or YMC, coordinate conversion of data is performed in advance to obtain a luminance signal. Need to be kept.
【0017】ステップ302(S302) 次いで、記憶された画像データは、表示装置206に表
示させ、表示装置206のディスプレイ上で画像データ
を確認することができる。Step 302 (S302) Next, the stored image data is displayed on the display device 206, and the image data can be confirmed on the display of the display device 206.
【0018】ステップ303(S303) 次いで、表示装置206で画像データを確認し、画像デ
ータに不備がなければ画像データのエッジであるエッジ
画像データを作成する。以下に、エッジ画像データの作
成工程を詳しく説明する。画像データのピクセル値を測
定し、隣接するピクセルとの差分を数式1を用いて算出
する。Step 303 (S303) Next, the image data is confirmed on the display device 206, and if there is no defect in the image data, edge image data which is an edge of the image data is created. Hereinafter, the process of creating the edge image data will be described in detail. The pixel value of the image data is measured, and the difference from the adjacent pixel is calculated using Equation 1.
【0019】[0019]
【数1】 (Equation 1)
【0020】数式1に記載されている△f(x,y)は
画像データのx−y平面上でのピクセル値であり、関数
△f(x,y)は画像データそのものである。そして、
数式1のように微分することにより隣接するピクセルと
ピクセルの値の差分を求めることができることを示す式
である。つまり、ここで得られた関数△f(x,y)は
ピクセル値の変化量を表す画像となり、画像内の物体で
ある似た色の形状を表したエッジデータを得ることがで
きるものである。△ f (x, y) described in Expression 1 is a pixel value of the image data on the xy plane, and the function △ f (x, y) is the image data itself. And
This is an expression indicating that the difference between the value of the adjacent pixel and the value of the pixel can be obtained by differentiating as in Expression 1. That is, the function △ f (x, y) obtained here becomes an image representing the amount of change in the pixel value, and edge data representing the shape of a similar color as an object in the image can be obtained. .
【0021】ステップ304(S304) 次いで、2値化画像データを作成する。これは、画像デ
ータの領域を検出するときは輪郭のみが必要なので2値
化画像で処理が行えるので、画像データを2値化画像デ
ータに加工するのである。以下、2値化画像データの作
成工程を詳しく説明する。本例では、画像データを2値
化する閾値は画像のエッジを構成する要素の線画部と非
線画部の画素数の比率を1:9とみなすことにより設定
することができる(図4参照)。Step 304 (S304) Next, binarized image data is created. This is because, when an area of image data is detected, only an outline is required, so that processing can be performed using a binarized image. Therefore, image data is processed into binary image data. Hereinafter, a process of creating binarized image data will be described in detail. In this example, the threshold value for binarizing the image data can be set by regarding the ratio of the number of pixels of the line drawing part and the non-line drawing part of the elements constituting the edge of the image to 1: 9 (see FIG. 4). .
【0022】線画部と比線画部との画像数の比率を本例
では1:9としているが、この比率はp−tile法に
より求めている。画像データの内容により変化すること
となり、画像データの内容により線画部と比線画部との
画像数の比率は変化するものである。In the present embodiment, the ratio of the number of images between the line drawing portion and the line drawing portion is 1: 9, but this ratio is determined by the p-tile method. The ratio changes depending on the content of the image data, and the ratio of the number of images between the line drawing portion and the line drawing portion changes depending on the content of the image data.
【0023】ステップ305(S305) 次いで、上記エッジ画像データおよび上記2値化画像デ
ータを用いて細線化画像データを作成する。つまり、エ
ッジ画像データにより画像データの輪郭部分501が設
定されており、2値化画像データにより画像データは2
つの画像データ502、503に分割されているので、
この2つのデータを用いることにより細線化画像データ
を作成することができる(図5参照)。また、細線化画
像データのエッジ部は、2ピクセル以上の太さからなる
ことが多いが、エッジの骨格を変えずに1ピクセルの太
さにすることとする。Step 305 (S305) Next, thin line image data is created using the edge image data and the binary image data. In other words, the outline portion 501 of the image data is set by the edge image data, and the image data is 2 by the binarized image data.
Is divided into two pieces of image data 502 and 503,
Thin line image data can be created by using these two data (see FIG. 5). The edge portion of the thinned image data often has a thickness of 2 pixels or more. However, it is assumed that the edge portion has a thickness of 1 pixel without changing the skeleton of the edge.
【0024】ステップ306(S306) 次いで、上記細線化画像データのエッジ部分が必ず閉鎖
領域を形成する輪郭線となるように、不要な枝部分とな
るピクセルを削除する。また、削除可能点が無くなるま
で、ピクセルを削除する。つまり、連結数が1または0
である点を削除するのである。ここで、連結数とはある
画素に隣接する8画素のうち、線画部である画素の数を
示すものである。そして、まず隣接する4画素(縦横)
のうち、ひとつでも非画線部があればその画素は削除候
補となり、削除画素数について、隣接する(縦横斜め)
の非画線部の画素数と位置関係を考慮して、本当に削除
可能かどうかの判断をすることとなる(図6参照)。Step 306 (S 306) Next, unnecessary branch pixels are deleted so that the edge portion of the thinned image data always becomes a contour line forming a closed region. Pixels are deleted until there are no more points that can be deleted. That is, the number of links is 1 or 0
Is deleted. Here, the number of links indicates the number of pixels that are line drawing portions among eight pixels adjacent to a certain pixel. Then, first, four adjacent pixels (vertical and horizontal)
If there is at least one non-image portion, the pixel is a deletion candidate, and the number of pixels to be deleted is adjacent (vertically, horizontally, obliquely)
In consideration of the number of pixels and the positional relationship of the non-image portion, it is determined whether or not deletion is really possible (see FIG. 6).
【0025】以下、細線化画像データの枝部分の削除工
程を詳しく説明する。 1.上記削除候補画素について、隣接する8画素のうち
非画線部が7以上であれば、この画素は端点となり削除
は不可能となるので、非画線部が6以下の時に判断を行
うこととなる。Hereinafter, the step of deleting the branch portion of the thinned image data will be described in detail. 1. If the non-image portion of the adjacent eight pixels is 7 or more, the pixel becomes an end point and cannot be deleted. Therefore, the judgment is made when the non-image portion is 6 or less. Become.
【0026】2.隣接する4画素の非画線部数から斜め
を挟む非線画部数を引いた数が1である場合に削除す
る。斜めを挟む非線画部数とは、例えば、左・左上・上
の三点が全て非線画部である場合、1として数える値
で、最大値は4となる。例えば、以下のように削除を確
定することができる。 例1)隣接する8画素のうち非画線部は6、隣接する4
画素の非画線部が2、斜めを挟む非画線部が0である場
合は、削除不可能である。 例2)隣接する8画素のうち非画線部が5、隣接する4
画素の非画線部が2、斜めを挟む非画線部が0である場
合は、削除不可能である。 例3)隣接する8画素のうち非画線部が4、隣接する4
画素の非画線部が2、斜めを挟む非画線部が1である場
合は、削除能である。 例4)隣接する8画素のうち非画線部が6、隣接する4
画素の非画線部が3、斜めを挟む非画線部が1である場
合は、削除不可能である。2. If the number obtained by subtracting the number of non-line drawing portions obliquely from the number of non-line drawing portions of four adjacent pixels is 1, the number is deleted. The number of non-line drawing portions sandwiching the diagonal is, for example, a value counted as 1 when all three points on the left, upper left, and upper are non-line drawing portions, and the maximum value is four. For example, deletion can be determined as follows. Example 1) Of the eight adjacent pixels, the non-image portion is 6, and the adjacent 4 are
If the non-image part of the pixel is 2 and the non-image part sandwiching the diagonal is 0, it cannot be deleted. Example 2) Of the eight adjacent pixels, the non-image area is 5, and the adjacent 4
If the non-image part of the pixel is 2 and the non-image part sandwiching the diagonal is 0, it cannot be deleted. Example 3) Of the eight adjacent pixels, the non-image part is 4, and the adjacent 4
When the non-image part of the pixel is 2 and the non-image part sandwiching the diagonal is 1, it is a deletion capability. Example 4) Of the eight adjacent pixels, the non-image portion is 6, and the adjacent 4 are
If the non-image part of the pixel is 3 and the non-image part sandwiching the diagonal is 1, it cannot be deleted.
【0027】また、設定される細線化画像データは、具
体的には左上からZ字型操作と右下からの逆向き走査を
交互に繰り返して削除するピクセルを確定する。この
時、左上からの場合は4画素のうちの上下のみが非画線
部かどうかを調べ、右下から逆に走査する場合では、左
右上下として調べている。そして、削除可能点が無くな
るまで処理を続けることとなる。In the thin line image data to be set, specifically, a Z-shaped operation from the upper left and a reverse scan from the lower right are alternately repeated to determine a pixel to be deleted. At this time, it is checked whether or not only the upper and lower portions of the four pixels are non-image portions when viewed from the upper left, and when left and right are scanned in the opposite direction, the left and right and upper and lower portions are checked. Then, the process is continued until there are no more deletable points.
【0028】ステップ307(S307) 次いで、上記工程で設定された領域を同様な色からなる
領域と併合しグループ分けして、細分化されている領域
を一定数の領域数まで落とし込む。具体的には上記工程
で設定された閉領域を走査検出して領域の色状況を算出
し記憶し、似た色の領域同士を併合する。併合された後
の領域の数は、好ましくは5〜10の領域数となるまで
併合する。Step 307 (S307) Next, the areas set in the above steps are merged with areas of similar colors and grouped, and the subdivided areas are reduced to a certain number of areas. More specifically, the closed area set in the above process is detected by scanning, the color status of the area is calculated and stored, and areas having similar colors are merged. The number of regions after the merging is preferably merged until the number of regions becomes 5 to 10.
【0029】ステップ308(S308) 次いで、上記工程で設定された併合領域を画像のマスク
データとして記憶装置203に記憶させることにより、
本処理工程は終了する。なお、マスクデータは次工程に
送られて、切り抜き画像データを作成する際に使用され
たり、画像データの背景を変更する際に使用される。Step 308 (S 308) Next, by storing the merged area set in the above process as image mask data in the storage device 203,
This processing step ends. Note that the mask data is sent to the next step, and is used when creating cutout image data or when changing the background of the image data.
【0030】また、本発明にかかるプログラムを格納し
た記憶媒体が本発明を構成することになる。そして、記
憶媒体からそのプログラムをシステムあるいは装置に読
み出すことによって、そのシステムあるいは装置が、あ
らかじめ定められた方法で動作することとなる。なお、
本例では上記プログラムを記憶した媒体としてCD−R
OMが使用されているが、FD、MOあるいはインター
ネット等のネットワークからシステムをプログラムを記
録した媒体として使用することができる。The storage medium storing the program according to the present invention constitutes the present invention. Then, by reading the program from the storage medium into the system or the device, the system or the device operates in a predetermined method. In addition,
In this example, the medium storing the above program is a CD-R
Although OM is used, the system can be used as a medium on which a program is recorded from a network such as FD, MO, or the Internet.
【0031】[0031]
【発明の効果】以上説明したように、本発明のマスク作
成装置およびマスク作成プログラムを記録した記録媒体
は、マスク作成工程において細かい設定を行うことな
く、マスク作成を容易に行え、作業時間の著しい短縮化
を図ることができる。As described above, in the mask forming apparatus and the recording medium on which the mask forming program is recorded according to the present invention, the mask can be easily formed without making detailed settings in the mask forming step, and the work time is remarkable. Shortening can be achieved.
【0032】また、自然環境の下で撮られた写真によ
る、画像データからマスクを容易に作成することがで
き、また、複雑な形状の画像領域のマスクも容易に作成
することができる。Further, a mask can be easily formed from image data of a photograph taken in a natural environment, and a mask for an image region having a complicated shape can be easily formed.
【図1】本発明のマスク作成装置の構成を示す機能ブロ
ック図である。FIG. 1 is a functional block diagram showing a configuration of a mask producing apparatus according to the present invention.
【図2】本発明のマスク作成装置の概略構成を示すブロ
ック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a mask producing apparatus according to the present invention.
【図3】本発明のマスク作成装置の流れを示すフローチ
ャートである。FIG. 3 is a flowchart showing a flow of the mask producing apparatus of the present invention.
【図4】2値化画像データを作成する際に用いられる濃
度ヒストグラム図である。FIG. 4 is a density histogram diagram used when generating binarized image data.
【図5】ディスプレイに表示させた概略細線化画像デー
タである。FIG. 5 is schematic thinned image data displayed on a display.
【図6】ディスプレイに表示させた概略領域確定画像デ
ータである。FIG. 6 is schematic region fixed image data displayed on a display.
【符号の説明】 101・・・画像入力装置 102・・・記
憶手段 103・・・エッジ画像作成手段 104・・・2
値化画像作成手段 105・・・細線化画像作成手段 106・・・画
像削除手段 107・・・色量子化手段 108・・・マ
スク作成手段 109・・・表示手段 110・・・画
像出力手段 201・・・画像入力装置 202・・・入
力装置 203・・・記憶装置 204・・・演
算処理装置 205・・・出力装置 206・・・表
示装置 207・・・CD−ROM 211・・・C
PU 212・・・RAM 213・・・R
OM[Description of Signs] 101 ... Image Input Device 102 ... Storage Unit 103 ... Edge Image Creation Unit 104 ... 2
Valued image creation means 105 ・ ・ ・ Thinned image creation means 106 ・ ・ ・ Image deletion means 107 ・ ・ ・ Color quantization means 108 ・ ・ ・ Mask creation means 109 ・ ・ ・ Display means 110 ・ ・ ・ Image output means 201 ... Image input device 202 ... Input device 203 ... Storage device 204 ... Processing device 205 ... Output device 206 ... Display device 207 ... CD-ROM 211 ... C
PU 212 ・ ・ ・ RAM 213 ・ ・ ・ R
OM
Claims (4)
からエッジ画像データを作成するエッジ画像作成手段
と、前記画像データを2値化して2値化画像データを作
成する2値化画像作成手段と、前記2値化画像データと
エッジ画像データから細線化画像データを作成する細線
化画像作成手段と、細線化画像データを併合し併合画像
データを作成する併合画像作成手段と、前記併合画像デ
ータからマスクを作成するマスク作成手段と、上記各デ
ータを記憶する記憶手段と、を具備することを特徴とす
るマスク作成装置。1. An image data input unit, an edge image creating unit for creating edge image data from the image data, and a binary image creating unit for creating binary image data by binarizing the image data. A thinned image creating means for creating thinned image data from the binary image data and the edge image data; a combined image creating means for combining thinned image data to create combined image data; and the combined image data A mask creating means for creating a mask from the data; and a storage means for storing the data.
末端部分を削除する画像削除手段を具備することを特徴
とする請求項1記載のマスク作成装置。2. An apparatus according to claim 1, further comprising an image deleting means for deleting an end portion such as a branch portion of said thinned image data.
らエッジ画像データを作成させ、前記画像データを2値
化して2値化画像データを作成させ、エッジ画像データ
と2値化画像データとから細線化画像データを作成さ
せ、前記細線化画像データを併合し併合画像データを作
成させ、前記併合画像データからマスクを作成させ、上
記各データを記憶させることを特徴とするプログラムを
記録した記録媒体。3. Image data is input, edge image data is created from the image data, the image data is binarized to generate binarized image data, and the edge image data and the binarized image data are generated. A recording medium storing a program for causing thinned image data to be created, merging the thinned image data to create merged image data, creating a mask from the merged image data, and storing the data; .
端部分を削除させることを特徴とする請求項3記載のプ
ログラムを記録した記録媒体。4. The recording medium according to claim 3, wherein an end portion such as a branch portion of said thinned image data is deleted.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17041897A JPH1115955A (en) | 1997-06-26 | 1997-06-26 | Mask creation device and recording medium recording mask creation program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17041897A JPH1115955A (en) | 1997-06-26 | 1997-06-26 | Mask creation device and recording medium recording mask creation program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1115955A true JPH1115955A (en) | 1999-01-22 |
Family
ID=15904565
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17041897A Pending JPH1115955A (en) | 1997-06-26 | 1997-06-26 | Mask creation device and recording medium recording mask creation program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1115955A (en) |
-
1997
- 1997-06-26 JP JP17041897A patent/JPH1115955A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR20020064350A (en) | Image data compressing method and restoring method | |
| JP3715905B2 (en) | Image processing apparatus, image processing method, program, and storage medium | |
| JP2000207489A (en) | Character extraction method, apparatus and recording medium | |
| US6496198B1 (en) | Color editing system | |
| US20110187721A1 (en) | Line drawing processing apparatus, storage medium storing a computer-readable program, and line drawing processing method | |
| US7206463B2 (en) | Image processing method, device and system | |
| JP4334981B2 (en) | Image processing apparatus and image processing method | |
| JPH0457570A (en) | Picture processor | |
| CN112950514B (en) | Image processing method, device, electronic device and readable storage medium | |
| JP2993007B2 (en) | Image area identification device | |
| JP7830910B2 (en) | Information processing device and program | |
| EP0627701B1 (en) | Image processing method and apparatus for document analysis | |
| JP7612785B1 (en) | Information processing device, information processing method, program, and storage medium | |
| JP4911585B2 (en) | Image processing apparatus, image processing method, program, and information recording medium | |
| JP4375199B2 (en) | Image processing apparatus and program | |
| JP2011198246A (en) | Image processing method, image processing apparatus, program, and program storage medium | |
| JPH0877336A (en) | Area extracting method | |
| JP2006092204A (en) | Image processing method and image processor | |
| JP2000324331A (en) | Image processing apparatus and method | |
| JP2804299B2 (en) | Cutout mask making system | |
| JPH0620038A (en) | Image processor | |
| JP2577276B2 (en) | Line break detection method | |
| JPH0465429B2 (en) | ||
| JPH11345329A (en) | Image processing apparatus and method | |
| JPH0786685B2 (en) | Layout equipment |