JPH05216992A - Picture clipping device - Google Patents
Picture clipping deviceInfo
- Publication number
- JPH05216992A JPH05216992A JP9218792A JP1879292A JPH05216992A JP H05216992 A JPH05216992 A JP H05216992A JP 9218792 A JP9218792 A JP 9218792A JP 1879292 A JP1879292 A JP 1879292A JP H05216992 A JPH05216992 A JP H05216992A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- region
- data
- area
- spatial frequency
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
(57)【要約】
【目的】本発明は、面倒な切り抜き条件の設定を行うこ
となく、様々な色や絵柄の組合せでできた模様からなる
画像を切り抜ける装置を提供することを目的とする。
【構成】画像入力手段aから入力された画像データは、
空間周波数変換手段bによって局所領域ごとの空間周波
数の強弱の変化の様子が検出され、クラスタリング手段
dによって空間周波数の強弱変化の類似性を検出しクラ
スタリングを行う。領域分割画像生成手段eは、クラス
タリング結果に基づき類似の空間周波数特徴をもつ局所
領域を1つにまとめる。まとめられた領域の中から抽出
すべき領域を指示すると領域設定手段gにより局所領域
単位で抽出すべき領域画像データが得られる。輪郭部設
定手段hは色量子化手段cによって類似色ごとにグルー
ピングされた色量子化画像データを用いて抽出された領
域画像データの輪郭部を正確に切り出し、マスク作成に
必要なデータを得る。
(57) [Abstract] [Object] An object of the present invention is to provide a device for cutting out an image composed of a pattern made up of various colors and combinations of patterns without setting troublesome cutting conditions. [Structure] The image data input from the image input means a is
The spatial frequency conversion means b detects changes in the strength and weakness of the spatial frequency for each local region, and the clustering means d detects the similarity of the strength and weakness changes in the spatial frequency and performs clustering. The area-divided image generation means e groups together local areas having similar spatial frequency characteristics based on the clustering result. When a region to be extracted is designated from the grouped regions, the region setting means g obtains region image data to be extracted in local region units. The contour portion setting means h accurately cuts out the contour portion of the region image data extracted using the color quantized image data grouped by the color quantizing means c for each similar color, and obtains data necessary for mask creation.
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像データから必要な
領域の画像のみを抽出するための画像切り抜き装置に関
する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image clipping device for extracting only an image of a required area from image data.
【0002】[0002]
【従来の技術】従来、レイアウトスキャナー等の画像処
理システムにおいて、画像データの中から必要とする画
像領域を切り抜くための切り抜き装置としては、作業者
がディスプレイ上に表示された画像を参照しながら、切
り抜きたい領域の輪郭部分をデジタイザ、あるいはマウ
ス等のポインティング・デバイスを用いてトレースする
ことにより切り抜き領域を指示するものがある。また、
これらの作業を自動的に行う為に、切り抜きたい領域と
背景領域の色差や濃度差等を検出して、予め設定された
閾値等を基に両者を分割し、背景領域を切り抜く装置が
ある。更に、本出願人による特願平2−256280号
には、画像データの色量子化とエッジ抽出とから領域分
割を行って、切り抜き領域を指示する装置がある。2. Description of the Related Art Conventionally, in an image processing system such as a layout scanner, as a cropping device for cropping a necessary image area from image data, an operator refers to an image displayed on a display, There is a method of designating a cutout area by tracing the contour portion of the cutout area using a digitizer or a pointing device such as a mouse. Also,
In order to automatically perform these operations, there is a device that detects a color difference or a density difference between a region to be cut out and a background region, divides the two based on a preset threshold value, and cuts out the background region. Further, Japanese Patent Application No. 2-256280 filed by the present applicant has a device for indicating a cutout area by performing area division from color quantization and edge extraction of image data.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、トレー
スによる切り抜き装置においては複雑な形状の領域を切
り抜こうとすると、トレース作業が複雑になって作業者
の負担が増大し、作業時間も非常にかからざるを得な
い。また、トレースにより読みとられた点情報をつない
で線情報とする際に、スムージング処理を施したり、ベ
クトル化処理を施す必要があり、装置に複雑な処理を組
み込まなければならなくなってしまう。However, in a cutting device using a trace, if a region having a complicated shape is to be cut out, the tracing work becomes complicated, the burden on the operator increases, and the working time is very long. I can't help it. Further, when the point information read by the trace is connected to form line information, it is necessary to perform smoothing processing or vectorization processing, and complicated processing must be incorporated in the device.
【0004】一方、色信号や濃度信号から自動的に画像
を切り抜く装置においても、作業者が画像を確認しなが
ら、最適な閾値をその都度設定する必要があるうえ、切
り抜きを行う対象となる画像データは千差万別であり、
野外などの自然環境のもとで撮られた写真画像から、特
定の領域を切り抜こうとする場合、切り抜きたい領域内
にある色と同じ色が、背景領域に存在しているような場
合には、うまく切り抜けない。On the other hand, even in an apparatus for automatically cutting out an image from a color signal or a density signal, an operator needs to set an optimum threshold value each time while checking the image, and the image to be cut out is also required. The data is diverse,
When trying to cut out a specific area from a photographic image taken in a natural environment such as outdoors, when the same color as the color in the area to be cut out exists in the background area. Can't survive well.
【0005】また、画像データの色量子化とエッジ情報
とから領域分割を行う装置においては、様々な色や絵柄
の組合せでできた模様からなる領域(例えば、セータ
ー、柄物の洋服、花畑等)をまとめて切り抜こうとする
場合、エッジが細かく抽出されすぎるために一括して領
域分割できない。Further, in a device for performing area division based on color quantization of image data and edge information, an area composed of a pattern made up of various colors and combinations of patterns (eg, sweaters, patterned clothes, flower gardens, etc.) When trying to cut out all together, it is not possible to divide the area all together because the edges are extracted too finely.
【0006】[0006]
【課題を解決するための手段】本発明は上記の課題を解
決するためになされたものであり、画像データの入力手
段aと、該画像データから局所領域の空間周波数特徴デ
ータを生成する空間周波数変換手段bと、前記画像デー
タから色量子化画像データを生成する色量子化手段と
c、前記局所領域の空間周波数特徴データを空間周波数
特徴の類似性によってクラスタリングするクラスタリン
グ手段dと、該クラスタリング結果を用いて前記画像デ
ータから局所領域単位の領域分割画像データを生成する
領域分割画像生成手段eと、該局所領域単位の領域分割
画像データの表示手段fと、前記局所領域単位の領域分
割画像データから指示された領域を抽出する領域設定手
段gと、該抽出された局所領域単位の領域分割画像デー
タの中から指示された色の色量子化画像データを検索し
輪郭部を設定する輪郭部設定手段hと、該輪郭部の設定
された領域分割画像データからマスクデータを作成する
マスク作成手段iと、を具備することを特徴とする画像
切り抜き装置で前記課題を解決せんとしている。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and it is an image data inputting means a and a spatial frequency for generating spatial frequency characteristic data of a local region from the image data. Transforming means b, color quantizing means for generating color quantized image data from the image data, c, clustering means d for clustering spatial frequency feature data of the local region according to similarity of spatial frequency features, and the clustering result Area division image generation means e for generating area division image data in units of local areas from the image data, display means f for area division image data in units of local area, and area division image data in units of local area The area setting means g for extracting the area instructed from, and the area division image data in the extracted local area unit Constituting a contour part setting means h for retrieving color quantized image data of a color and setting a contour part, and a mask creating means i for creating mask data from the area division image data in which the contour part is set. The above-mentioned problem is solved by a characteristic image clipping device.
【0007】[0007]
【作用】本発明による画像切り抜き装置では、画像入力
手段aから入力された画像データが、空間周波数変換手
段bによって局所領域ごとの空間周波数の強弱の変化の
様子が検出され、局所領域ごとの空間周波数特徴データ
が生成される。クラスタリング手段dは、局所領域の空
間周波数特徴データから空間周波数の強弱変化の類似性
を検出しながら局所領域の空間周波数特徴データのクラ
スタリングを行う。In the image cropping device according to the present invention, the spatial frequency conversion means b detects the change in the spatial frequency of each local area in the image data input from the image input means a, and the space of each local area is detected. Frequency feature data is generated. The clustering unit d performs the clustering of the spatial frequency feature data of the local area while detecting the similarity of the strength change of the spatial frequency from the spatial frequency feature data of the local area.
【0008】一方、画像入力手段aから入力された画像
データは、色量子化手段cによって類似色ごとにグルー
ピングされ、色数を減らすことによって色量子化された
画像データが作られる。そして、領域分割画像生成手段
eは、局所領域の空間周波数特徴データのクラスタリン
グ結果を用いて、類似の空間周波数特徴をもつ局所領域
をまとめることにより、局所領域単位で領域分割された
領域分割画像データを生成し、表示手段fに表示され
る。On the other hand, the image data input from the image input means a is grouped by similar colors by the color quantization means c, and the color quantized image data is created by reducing the number of colors. Then, the region-divided image generation means e uses the clustering result of the spatial frequency feature data of the local region to collect the local regions having similar spatial frequency features, thereby dividing the region-divided image data into local regions. Is generated and displayed on the display means f.
【0009】表示された領域分割画像データの中から抽
出すべき領域を指示すると、領域設定手段gにより局所
領域単位で抽出すべき領域画像データが得られる。この
局所領域単位で指示された画像データの輪郭部を画素単
位で正確に切り出すために、輪郭部設定手段hによっ
て、輪郭部を含む局所領域に対して色量子化された画像
データを用いて、抽出すべき領域に含まれる色を指定す
ることによって輪郭を正確に切り出し、マスク作成に必
要な領域分割画像データが決定される。このデータをも
とに、マスク作成手段iによってマスクデータが作成さ
れる。そして、このマスクデータに対応した画像データ
の領域が抽出されることによって、所望の切り抜き画像
を得ることができる。When an area to be extracted is designated from the displayed area division image data, the area setting means g obtains area image data to be extracted in local area units. In order to accurately cut out the contour portion of the image data instructed in units of the local area in pixel units, the contour portion setting means h uses the image data color-quantized for the local area including the contour portion, By specifying the color included in the area to be extracted, the contour is accurately cut out, and the area-divided image data necessary for mask creation is determined. Mask data is created by the mask creating means i based on this data. Then, a desired clipped image can be obtained by extracting the area of the image data corresponding to the mask data.
【0010】[0010]
【実施例】本発明の一実施例を図面を用いて詳細に説明
する。図2は、本発明による画像切り抜き装置の構成例
を示すブロック図である。本実施例の切り抜き装置は、
外部システムから画像データを受信する画像入力手段1
と、半導体メモリ、磁気ディスクなどよりなる記憶手段
2と、カラーディスプレイ等よりなる表示手段3と、マ
ウス等のポインティングデバイスを備えた入力手段4、
コンピュータなどよりなる演算処理手段5、外部システ
ム等に演算結果を出力する出力手段6とから概略構成さ
れている。An embodiment of the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram showing a configuration example of the image clipping device according to the present invention. The cutting device of this embodiment is
Image input means 1 for receiving image data from an external system
A storage means 2 including a semiconductor memory and a magnetic disk, a display means 3 including a color display, and an input means 4 including a pointing device such as a mouse.
It is roughly configured by an arithmetic processing means 5 including a computer and the like, and an output means 6 for outputting the arithmetic result to an external system and the like.
【0011】画像入力手段1は、少なくとも画像データ
をR,G,BあるいはY,M,C信号として取り込むた
めのもので、カラー原稿を画像データとして取り込むた
めのスキャナ、あるいは外部システムからの画像データ
を取り込むためのデータ通信装置等である。The image input means 1 is for taking in at least image data as R, G, B or Y, M, C signals, and is a scanner for taking in a color original as image data, or image data from an external system. Is a data communication device or the like for taking in.
【0012】記憶手段2は、画像入力手段1からの画像
データを格納しておくとともに、後述する局所領域の空
間周波数特徴データ、色量子化された画像データ、局所
領域単位の領域分割画像データ、指示選択された局所領
域単位の領域画像データ、マスクデータ、切り抜き画像
などの各種処理画像データを格納しておく。The storage means 2 stores the image data from the image input means 1, and also stores spatial frequency feature data of a local area, color quantized image data, area division image data in units of local areas, which will be described later. Various processed image data such as region image data, mask data, and a cutout image for each local region selected by instruction are stored.
【0013】表示手段3は、演算手段5によりその動作
が制御されており、記憶手段2からの各種画像データを
表示する。The operation of the display means 3 is controlled by the arithmetic means 5, and various image data from the storage means 2 are displayed.
【0014】入力手段4は、表示手段3に表示された領
域分割画像データから抽出したい領域を指示するため、
及び抽出したい領域の輪郭部を正確に設定するために、
輪郭部を含む局所領域に含まれる色を指定するためのも
のである。Since the input means 4 designates the area to be extracted from the area-divided image data displayed on the display means 3,
And in order to accurately set the contour of the area you want to extract,
This is for designating the color included in the local area including the contour portion.
【0015】演算処理手段5は、画像データを局所領域
ごとにサンプリングして局所領域の空間周波数特徴デー
タを生成する。そして、局所領域の空間周波数特徴デー
タから空間周波数の強弱変化の類似性を検出してクラス
タリング(パターンの類似性の評価基準の下で類似した
パターンのグループをクラスタ:Clusterと呼
び、パターン空間上の分布からクラスタを探すことをク
ラスタリングという)を行い、局所領域空間周波数特徴
データをグルーピングし、このクラスタリング結果を用
いて類似空間周波数特徴をもつ局所領域をまとめること
により、画像データを局所領域単位で領域分割する。分
割された各領域にはラベル付けをして局所領域単位の領
域分割画像データを生成して、表示手段3に表示する。
そして、入力手段4により、表示された局所領域単位の
領域分割画像データの中から、切り抜きたい画像内の領
域分割された領域を指定することによって、抽出すべき
領域を含む局所領域単位の画像領域を選び出す。The arithmetic processing means 5 samples the image data for each local region to generate spatial frequency characteristic data of the local region. Then, the similarity of changes in the spatial frequency is detected from the spatial frequency feature data of the local region, and clustering is performed (a group of similar patterns is called a cluster: Cluster, based on the evaluation criterion of the pattern similarity). Clustering is performed to search for clusters from the distribution), local area spatial frequency feature data is grouped, and local areas having similar spatial frequency characteristics are grouped using this clustering result, so that image data is divided into local area units. To divide. The divided areas are labeled to generate area-divided image data in units of local areas and displayed on the display unit 3.
Then, the input unit 4 designates a region-divided region in the image to be cut out from the displayed region-divided image data in units of the local region, whereby the image region of the local region unit including the region to be extracted is specified. Pick out.
【0016】一方、演算処理手段5は入力された画像デ
ータをもとに、各画素ごとに色量子化を行う。そして、
この色量子化画像を、抽出された局所領域単位の画像領
域の輪郭部に対して適用し、抽出すべき領域に含まれる
色を指定することによって輪郭を正確に(画素単位で)
切り出し、マスク作成に必要な領域を選び出す。出力手
段6は、マスクデータあるいは切り抜き画像データを他
の装置へ出力するためのものである。On the other hand, the arithmetic processing means 5 performs color quantization for each pixel based on the input image data. And
This color quantized image is applied to the contour portion of the extracted image area in local area units, and the contour is accurately specified (in pixel units) by specifying the color included in the area to be extracted.
Cut out and select the area required for mask creation. The output means 6 is for outputting the mask data or the cut-out image data to another device.
【0017】次に、図3〜図4に示すフローチャートを
参照して、この実施例の作用について説明する。 (a)局所領域空間周波数特徴データの生成 先ず、画像入力手段1により画像データが入力され、記
憶手段2に格納される(ステップSP1)。格納された
画像データは、表示手段3により表示され(ステップS
P2)、ディスプレイ上で確認することができる。表示
手段3上の画像データが確認され(ステップSP3)、
不備がなければ画像データは16×16画素の領域でx
方向、y方向にそれぞれ4画素おきにフーリエ変換によ
り周波数空間に変換されて4×4画素の局所領域ごとの
空間周波数特徴を表現した局所領域の空間周波数特徴デ
ータが生成され(ステップSP4)、記憶手段2に格納
される。(局所領域は4×4画素を1単位とするが、空
間周波数データとしては周辺の画素も含めて特徴を捉え
る方が好ましいため、16×16画素のデータから空間
周波数データを求め、これを当該4×4画素の局所領域
の特徴データとする)局所領域空間周波数特徴データ
は、フーリエ変換により求められた各局所領域における
空間周波数データを、図6に示すような周波数区分(実
線で囲まれた領域)に分割し、それぞれ区分内における
空間周波数の強さの平均を求め、各局所領域に対して各
周波数区分ごとの値を要素とするベクトルとして得られ
る。Next, the operation of this embodiment will be described with reference to the flow charts shown in FIGS. (A) Generation of Local Area Spatial Frequency Feature Data First, image data is input by the image input means 1 and stored in the storage means 2 (step SP1). The stored image data is displayed by the display means 3 (step S
P2), it can be confirmed on the display. The image data on the display means 3 is confirmed (step SP3),
If there are no defects, the image data is a 16 x 16 pixel area x
The spatial frequency feature data of the local region is generated by performing Fourier transform on every four pixels in the direction and the y direction by Fourier transform to express the spatial frequency feature of each local region of 4 × 4 pixels (step SP4), and stored. It is stored in the means 2. (The local area has 4 × 4 pixels as one unit, but since it is preferable to capture the characteristics including the surrounding pixels as the spatial frequency data, the spatial frequency data is obtained from the 16 × 16 pixel data and The local region spatial frequency feature data is assumed to be the feature data of the local region of 4 × 4 pixels. The spatial frequency data in each local region obtained by the Fourier transform is the frequency division (enclosed by a solid line) as shown in FIG. Area), the average of the spatial frequency intensities in each section is calculated, and the value is obtained as a vector whose element is the value for each frequency section for each local area.
【0018】即ち、フーリエ変換により求められた空間
周波数データは、局所領域内の画像データがどのような
周波数成分を有しているかを示しており、この空間周波
数データを図5に示すように区分された領域毎にデータ
を取り出し、平均を求めることで特定周波数の強さを表
すことができる。こうして求めた領域毎の各平均を要素
とするベクトルは、ある局所領域のデータの(周波数分
布の)特徴を表すことができる。That is, the spatial frequency data obtained by the Fourier transform shows what kind of frequency component the image data in the local area has, and this spatial frequency data is divided as shown in FIG. The strength of a specific frequency can be represented by taking out data for each of the created regions and calculating the average. The vector having elements of each average obtained in this way for each area can represent the characteristics (of the frequency distribution) of the data of a certain local area.
【0019】尚、フーリエ変換を施す対象のデータとし
てはとしては、モノクロ画像の場合はその階調データを
そのまま利用し、カラー画像の場合は輝度信号を対象と
する。従って、カラー画像が輝度・色差信号として入力
される場合は輝度信号を利用できるが、R・G・B(ま
たはC・M・Y)の3原色データとして入力される場合
は、予めこれらのデータを基に輝度信号を求めておく必
要がある。As the data to be subjected to the Fourier transform, the gradation data is used as it is in the case of a monochrome image, and the luminance signal is used in the case of a color image. Therefore, when a color image is input as a luminance / color difference signal, the luminance signal can be used, but when input as three primary color data of R, G, B (or C, M, Y), these data can be used in advance. It is necessary to obtain the luminance signal based on
【0020】(b)画像データの色量子化 画像データはクラスタリング手法により色量子化が行わ
れ色量子化画像データが生成され(ステップSP5)、
記憶手段2に格納される。このクラスタリング手法によ
る色量子化について、図4を用いて詳しく説明する。先
ず各画素ごとのR,G,B(またはY,M,C)のデジ
タルデータをR,G,Bの色空間上にマッピングする
(ステップSP51)。次にR,G,Bの各軸のデータ
ごとに分散を求め(ステップSP52)、分散の最も大
きい軸のデータについて、判別分析法等により閾値を求
め(ステップSP53)、この閾値で画素データを二つ
のグループに分割する。(ステップSP54)。二つに
分けられたグループについても同様の操作を行い(各軸
のデータごとの分散を求め、分散の最も大きい軸で閾値
を求め、二つのグループに分割する)、60〜100程
度のグループ分けを行う(ステップSP55)。(B) Color Quantization of Image Data Image data is color quantized by a clustering method to generate color quantized image data (step SP5),
It is stored in the storage means 2. Color quantization by this clustering method will be described in detail with reference to FIG. First, R, G, B (or Y, M, C) digital data for each pixel is mapped on the R, G, B color space (step SP51). Next, the variance is calculated for each of the R, G, and B axis data (step SP52), and a threshold is determined for the data of the axis with the largest variance by the discriminant analysis method (step SP53). Divide into two groups. (Step SP54). The same operation is performed for the two divided groups (the variance for each axis data is calculated, the threshold is calculated for the axis with the largest variance, and the two groups are divided), and the group is divided into about 60 to 100. Is performed (step SP55).
【0021】次に、同じグループに属する画素のデジタ
ルデータはR,G,Bデータごとに平均値を求め、これ
をそのグループに属する画素の色量子化画像データとす
る(ステップSP56)。Next, for digital data of pixels belonging to the same group, an average value is obtained for each of R, G and B data, and this is set as color quantized image data of pixels belonging to the group (step SP56).
【0022】 (c)局所領域を単位とした領域分割画像データの作成 ステップSP4で生成した、局所領域の空間周波数特徴
データをKohonenのfeature mapと呼
ばれるニューラルネットを用いてクラスタリングを行
い、類似した特徴を持つ局所的な空間周波数特徴データ
のグループ分けを行う(ステップSP6)。(C) Creating Region-Divided Image Data Using Local Regions as Units Spatial frequency feature data of the local regions generated in step SP4 is clustered using a neural net called Kohonen's feature map to obtain similar features. The grouping of the local spatial frequency characteristic data having is performed (step SP6).
【0023】feature mapは、Kohone
nにより提案された自己組織化ニューラルネットであ
り、図7のように2層からなり、入力されたベクトル群
をその類似性に応じて分類することができるという特徴
を有する。feature mapによりグループ分け
された結果を用いて、類似の空間周波数特徴を持つ画像
データ内の局所領域に同じラベルを付けていくことによ
り領域分割を行い、局所領域単位の領域分割画像データ
を生成する(ステップSP7)。このデータをもとに、
同じグループに属し互いに隣接するデータ(4×4画素
のブロックを一単位としたもの)をまとめ、輪郭部に領
域区分線を表示することでオペレーターが同じグループ
の画像領域を他の領域と区別できるようにする。この領
域分割画像データは表示手段3に表示されるとともに
(ステップSP8)、記憶手段2に格納される。Feature map is Kohone
It is a self-organizing neural network proposed by N. It is composed of two layers as shown in FIG. 7, and has a feature that an inputted vector group can be classified according to its similarity. Region division is performed by assigning the same label to local regions in image data having similar spatial frequency characteristics using the results of grouping by feature map, and region-divided image data in units of local regions is generated. (Step SP7). Based on this data
Data that belong to the same group and are adjacent to each other (4 × 4 pixel block as one unit) are collected and the area dividing line is displayed in the contour portion, so that the operator can distinguish the image area of the same group from other areas. To do so. The area-divided image data is displayed on the display means 3 (step SP8) and stored in the storage means 2.
【0024】図5は、人間の像を切り抜く場合である
が、図5(a)のような画像データから図5(b)に示
すような領域分割された画像データを得ることができ
る。FIG. 5 shows a case where a human image is cut out, but it is possible to obtain image data divided into regions as shown in FIG. 5B from the image data shown in FIG. 5A.
【0025】(d)局所領域単位での抽出領域の指定 この局所領域を単位とした領域分割画像データを参照し
て、入力手段4により切り抜きたい画像部分を指定する
(ステップSP9)。これは、切り抜きたい領域につい
て領域区分線内の一点をカーソルで指示することで行
う。(D) Designation of extraction area in units of local area With reference to the area-divided image data in units of local area, the image portion to be cut out is specified by the input means 4 (step SP9). This is done by pointing the cursor to a point within the area dividing line for the area to be cut out.
【0026】抽出したい領域がうまく一つの領域として
領域分割されているとは限らないため、複数の領域を選
択できるようになっており、領域の指示が終了かどうか
を待機する(ステップSP10)。指示が終了したなら
ば、選択された局所領域単位の領域画像データが生成さ
れ表示手段3に表示されるとともに(ステップSP1
1)、記憶手段2に格納される。Since the area to be extracted is not necessarily divided into one area as a single area, a plurality of areas can be selected, and the process waits until the area designation is completed (step SP10). When the instruction is completed, the area image data of the selected local area unit is generated and displayed on the display means 3 (step SP1).
1) is stored in the storage means 2.
【0027】(e)輪郭部の抽出及びマスクの作成 表示された局所領域単位で選択された領域画像データを
参照しながら、領域画像データの輪郭部を含む局所領域
に対して、必要であれば抽出すべき部分に含まれる色量
子化画像データ中の色を指定することにより輪郭部を正
確に切り分ける作業を行い(ステップSP12)、必要
な輪郭部の設定指示が終了するまで領域画像の輪郭部を
設定して抽出すべき領域を得る(ステップSP13)。(E) Extraction of contour portion and creation of mask If necessary for the local area including the contour portion of the area image data while referring to the area image data selected in the unit of the displayed local area The contour part is accurately separated by designating the color in the color quantized image data included in the part to be extracted (step SP12), and the contour part of the area image is processed until the instruction to set the necessary contour part is completed. Is set to obtain the area to be extracted (step SP13).
【0028】局所領域は本実施例では4×4画素単位で
あり、この単位では輪郭部が段々状になり滑らな輪郭線
を抽出することが難しい。そこで、輪郭線を画素(ピク
セル)単位で設定するために、輪郭線を含む局所領域の
データに対して、色量子化されたデータを用い輪郭部の
抽出を行う。In this embodiment, the local area is a unit of 4 × 4 pixels, and it is difficult to extract a smooth contour line because the contour portion is stepwise in this unit. Therefore, in order to set the contour line on a pixel-by-pixel basis, the contour portion is extracted from the data of the local region including the contour line by using the color-quantized data.
【0029】先ずステップSP9で指定された領域に対
応する、色量子化画像を表示装置3に表示する。色量子
化画像は、60〜100程度のグループに分けられてい
るため、これらを区別できるようにグループ毎に異なっ
た色で表示される。First, the color quantized image corresponding to the area designated in step SP9 is displayed on the display device 3. Since the color quantized image is divided into about 60 to 100 groups, different colors are displayed for each group so that they can be distinguished.
【0030】次に輪郭部を含む各領域(図5(c)にお
いては領域a〜iが該当する)の輪郭線内(又は外)の
画像に対して、輪郭部の色成分が含まれるようにカーソ
ル等で指示することにより、画素の特定を行う。次に輪
郭部を構成する4×4画素の領域の中から、特定された
画素のと同じ色量子化データを持つ画素を検索する。一
度の作業で全ての輪郭部の画素を抽出できない場合は、
再度カーソルでサンプルデータを取り直し、同様の処理
を繰り返せばよい。Next, the color component of the contour portion is included in the image inside (or outside) the contour line of each area including the contour portion (corresponding to the areas a to i in FIG. 5C). The pixel is specified by pointing to the cursor with a cursor or the like. Next, a pixel having the same color quantized data as the specified pixel is searched from the 4 × 4 pixel region forming the contour portion. If you cannot extract the pixels of all contours in one operation,
The sample data may be taken again with the cursor and the same process may be repeated.
【0031】輪郭線の内外では画像が異なる色成分を有
していることが多いので、上記の処理を行うことによっ
て輪郭線を含む局所領域の中から、輪郭線内(又は外)
の画素データのみを抽出することができる。この輪郭部
の設定された領域をマッピングすることで、指示された
領域を切り抜くためのマスクを生成する(ステップSP
14)。Since the image often has different color components inside and outside the contour line, by performing the above processing, the inside (or outside) contour line is selected from the local area including the contour line.
Only the pixel data of can be extracted. A mask for cutting out the designated area is generated by mapping the set area of the contour portion (step SP).
14).
【0032】図5(b)のように領域分割された画像デ
ータを、図5(c)に示すように切り抜きたい領域a〜
iを複数指定することで、図5(d)に示すようなマス
クを生成することができる。The image data divided into regions as shown in FIG. 5B are cut out as shown in FIG.
A mask as shown in FIG. 5D can be generated by specifying a plurality of i.
【0033】(f)切り抜き画像データの作成 表示手段3に生成された領域抽出マスクが表示されると
ともに(ステップSP15)、記憶手段2にこのデータ
が格納される。抽出すべき領域の形状と、表示された領
域抽出マスクの形状を比較確認し(ステップSP1
6)、画像データと領域抽出マスクデータを掛け合わせ
る(AND演算する)ことにより、図4(e)に示すよ
うな切り抜き画像データが生成される(ステップSP1
7)この切り抜き画像データは記憶手段2に記憶される
とともに、表示手段3に表示される(ステップSP1
8)。表示手段3に表示された切り抜き画像データを確
認して(ステップSP19)OKであれば、出力手段6
からデータを出力する(ステップSP20)。(F) Creation of cut-out image data The generated area extraction mask is displayed on the display means 3 (step SP15), and this data is stored in the storage means 2. The shape of the area to be extracted and the shape of the displayed area extraction mask are compared and confirmed (step SP1).
6) By multiplying the image data and the area extraction mask data (AND operation), cutout image data as shown in FIG. 4E is generated (step SP1).
7) The cut-out image data is stored in the storage means 2 and displayed on the display means 3 (step SP1).
8). The cut-out image data displayed on the display means 3 is confirmed (step SP19), and if OK, the output means 6
To output data (step SP20).
【0034】うまく切り抜き画像を抽出できなかった場
合には、領域分割画像データを抽出し直すためにステッ
プSP8へ戻るループが用意されている。If the cut-out image cannot be extracted successfully, a loop for returning to step SP8 is prepared in order to extract the area-divided image data again.
【0035】以上説明したように、本発明によれば、濃
淡の規則性が類似している領域では空間周波数が類似し
ているという性質を用いて、局所的な領域の空間周波数
の特徴の類似性を基に画像を自動的に領域分割している
ため、従来のように、人手によるトレース作業は不要で
あり、色の違いのみによって領域分割を行っていないた
め背景領域の一部と領域内に同じ色が存在している場合
や、様々な色や絵柄の組合せでできた模様からなる領域
(例えば、セーター、柄物の洋服、花畑等)を切り抜こ
うとする場合でも、人手のかかわる切り抜き作業を短時
間で容易に行うことが可能となる。As described above, according to the present invention, the characteristic that the spatial frequency is similar in the local region is used by using the property that the spatial frequencies are similar in the regions where the regularity of the shade is similar. Since the image is automatically divided into regions based on the nature, there is no need for manual tracing work as in the past, and since the regions are not divided only by the difference in color, the background area and part of the If the same color is present in the background, or if you are trying to cut out a region (for example, a sweater, patterned clothes, flower garden, etc.) that is made up of a combination of various colors and patterns, the clipping that involves human hands The work can be easily performed in a short time.
【0036】本実施例では、レイアウトスキャナー等で
画像の切り抜きを行う場合について説明したが、通常の
印刷の写真製版の集版工程において、分解フィルムの特
定部分を切り抜き製版する際に用いるピールオフフィル
ム切り抜き機のデータを、マスクの輪郭線のデータを抽
出することで容易に得ることができる。In this embodiment, the case where an image is cut out by a layout scanner or the like has been described. However, a peel-off film cutout used for cutting out a specific portion of a disassembled film in the plate making process of ordinary photolithography. Machine data can be easily obtained by extracting mask contour data.
【0037】尚、本発明は上記の実施例に限定されるも
のではない。画像入力手段として、外部システムからデ
ータを受信する受信装置を用いて画像データを入力して
もよいし、スキャナにより、写真原稿から直接に画像デ
ータを取り組むようにしてもよい。また、画像の出力手
段として、外部システムへデータを送信する通信装置を
用いて切り抜き画像データを出力してもよいし、レイア
ウトスキャナに出力したり、ハードコピー機等へ出力し
てもよい。局所領域ごとに空間周波数特徴を得るための
空間周波数変換手段は、上記実施例に限定されるもので
はなく、Gabor変換等の方法を用いてもよい。局所
的な空間周波数データのクラスタリング方法は、上記実
施例に限られるものではなく、同等の能力を備えた他の
クラスタリング法あるいはベクトル量子化法、例えばM
AXNET(ニューラルネットモデルの一種)等の方法
を用いてもよい。The present invention is not limited to the above embodiment. As the image input means, the image data may be input using a receiving device that receives the data from an external system, or the image data may be directly addressed from the photo original by a scanner. Further, as the image output means, the cropped image data may be output using a communication device that transmits data to an external system, may be output to a layout scanner, or may be output to a hard copy machine or the like. The spatial frequency conversion means for obtaining the spatial frequency characteristic for each local region is not limited to the above embodiment, and a Gabor conversion method or the like may be used. The local spatial frequency data clustering method is not limited to the above-mentioned embodiment, and another clustering method or vector quantization method having equivalent ability, for example, M
A method such as AXNET (a type of neural network model) may be used.
【0038】さらに、入力される画像データは、R,
G,B色空間あるいはY,M,C色空間で記述されたデ
ータでなく、他の色空間、例えばLab空間等の均等色
空間で記述されたデータであってもよい。Further, the input image data is R,
The data described in the G, B color space or the Y, M, C color space may be data described in another color space, for example, a uniform color space such as a Lab space.
【0039】[0039]
【発明の効果】以上説明したように、本発明の画像切り
抜き装置によれば、面倒な切り抜き条件の設定を行うこ
となく、画像の切り抜きを容易に行え、作業時間の著し
い短縮化を図ることができる。特に、自然環境の下で撮
られた写真による、画像データからの切り抜きが可能で
あり、様々な色や絵柄の組合せでできた模様からなる画
像領域を切り抜くことができる。As described above, according to the image cropping device of the present invention, it is possible to easily crop an image without setting troublesome cropping conditions and to significantly reduce the working time. it can. In particular, it is possible to cut out from image data by a photograph taken in a natural environment, and it is possible to cut out an image area composed of a pattern made up of various colors and patterns.
【図1】本発明の画像切り抜き装置の構成を示すブロッ
ク図FIG. 1 is a block diagram showing the configuration of an image clipping device according to the present invention.
【図2】本発明の画像切り抜き装置の概略構成を示すブ
ロック図FIG. 2 is a block diagram showing a schematic configuration of an image clipping device according to the present invention.
【図3】本発明の作用を説明するためのフローチャートFIG. 3 is a flowchart for explaining the operation of the present invention.
【図4】本発明の作用を説明するためのフローチャートFIG. 4 is a flow chart for explaining the operation of the present invention.
【図5】本発明の作用を説明するための説明図FIG. 5 is an explanatory diagram for explaining the operation of the present invention.
【図6】本発明の作用を説明するた局所領域の空間周波
数の区分例を示す説明図FIG. 6 is an explanatory diagram showing an example of spatial frequency division of a local region for explaining the operation of the present invention.
【図7】Kohonenのfeature mapの説
明図FIG. 7 is an explanatory diagram of Kohonen's feature map.
1…画像入力手段 2…記憶手段 3…表示手段 4…入力手段 5…演算処理手段 6…出力手段 DESCRIPTION OF SYMBOLS 1 ... Image input means 2 ... Storage means 3 ... Display means 4 ... Input means 5 ... Arithmetic processing means 6 ... Output means
Claims (1)
ら局所領域の空間周波数特徴データを生成する空間周波
数変換手段と、前記画像データから色量子化画像データ
を生成する色量子化手段と、前記局所領域の空間周波数
特徴データを空間周波数特徴の類似性によってクラスタ
リングするクラスタリング手段と、該クラスタリング結
果を用いて前記画像データから局所領域単位の領域分割
画像データを生成する領域分割画像生成手段と、該局所
領域単位の領域分割画像データの表示手段と、前記局所
領域単位の領域分割画像データから指示された領域を抽
出する領域設定手段と、該抽出された局所領域単位の領
域分割画像データの中から指示された色の色量子化画像
データを検索し輪郭部を設定する輪郭部設定手段と、該
輪郭部の設定された領域分割画像データからマスクデー
タを作成するマスク作成手段と、を具備することを特徴
とする画像切り抜き装置。1. An image data input means, a spatial frequency conversion means for generating spatial frequency feature data of a local region from the image data, and a color quantization means for generating color quantized image data from the image data. Clustering means for clustering the spatial frequency feature data of the local area according to the similarity of the spatial frequency characteristics, and area division image generation means for generating area division image data in units of local area from the image data using the clustering result, A display unit for displaying the region-divided image data in units of the local region, a region setting unit for extracting a region instructed from the region-divided image data in the unit of local region, and a region-division image data in the extracted unit of local region Contour part setting means for retrieving color quantized image data of a color designated by the following and setting the contour part; Image cutout apparatus characterized by comprising a mask generating means for generating mask data from the region-divided image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9218792A JPH05216992A (en) | 1992-02-04 | 1992-02-04 | Picture clipping device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9218792A JPH05216992A (en) | 1992-02-04 | 1992-02-04 | Picture clipping device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05216992A true JPH05216992A (en) | 1993-08-27 |
Family
ID=11981454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9218792A Pending JPH05216992A (en) | 1992-02-04 | 1992-02-04 | Picture clipping device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05216992A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6021221A (en) * | 1996-12-24 | 2000-02-01 | Sharp Kabushiki Kaisha | Image processing apparatus |
JP2014209326A (en) * | 2013-03-27 | 2014-11-06 | パナソニック株式会社 | Image processing apparatus, image processing method, and image processing program |
US9230309B2 (en) | 2013-04-05 | 2016-01-05 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus and image processing method with image inpainting |
US9495757B2 (en) | 2013-03-27 | 2016-11-15 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus and image processing method |
-
1992
- 1992-02-04 JP JP9218792A patent/JPH05216992A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6021221A (en) * | 1996-12-24 | 2000-02-01 | Sharp Kabushiki Kaisha | Image processing apparatus |
JP2014209326A (en) * | 2013-03-27 | 2014-11-06 | パナソニック株式会社 | Image processing apparatus, image processing method, and image processing program |
US9495757B2 (en) | 2013-03-27 | 2016-11-15 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus and image processing method |
US9530216B2 (en) | 2013-03-27 | 2016-12-27 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus and image processing method |
US9230309B2 (en) | 2013-04-05 | 2016-01-05 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus and image processing method with image inpainting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4194025B2 (en) | Illumination-invariant object tracking method and video editing apparatus using the same | |
US6333752B1 (en) | Image processing apparatus, image processing method, and a computer-readable storage medium containing a computer program for image processing recorded thereon | |
US6300955B1 (en) | Method and system for mask generation | |
JP6435740B2 (en) | Data processing system, data processing method, and data processing program | |
JP3836527B2 (en) | Apparatus and method for image editing of structural images | |
US20220044451A1 (en) | Method and device for image generation and colorization | |
EP3785232A1 (en) | Method and system for providing photorealistic changes for digital image | |
KR19990035754A (en) | Method and apparatus for generating image texture | |
WO2003012678A2 (en) | Automatic frame selection and layout of one or more images and generation of images bounded by a frame | |
JP6261206B2 (en) | Information processing apparatus, information processing method, and program | |
Yin | Content aware neural style transfer | |
JP2002202838A (en) | Image processor | |
US20060282777A1 (en) | Batch processing of images | |
Congalton | Remote sensing: an overview | |
JPH05216993A (en) | Image cropping device | |
JPH05216992A (en) | Picture clipping device | |
JP3036439B2 (en) | Image processing apparatus and image attribute adjustment method | |
CN108628920A (en) | A kind of Art Design internet auxiliary puzzle system and design method | |
JPH06149959A (en) | Image clipping device | |
JP2936599B2 (en) | Color image processing equipment | |
JPH0535868A (en) | Image cutting device | |
Semary et al. | Texture recognition based natural gray images coloring technique | |
JPH05336346A (en) | Image processing method and storage device | |
JP4063706B2 (en) | Visual device and its application | |
JP2003331318A (en) | Object data generator |