JP3054315B2 - Image processing method and apparatus - Google Patents

Image processing method and apparatus

Info

Publication number
JP3054315B2
JP3054315B2 JP6135886A JP13588694A JP3054315B2 JP 3054315 B2 JP3054315 B2 JP 3054315B2 JP 6135886 A JP6135886 A JP 6135886A JP 13588694 A JP13588694 A JP 13588694A JP 3054315 B2 JP3054315 B2 JP 3054315B2
Authority
JP
Japan
Prior art keywords
pixel
image
scaling
unit
area
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.)
Expired - Fee Related
Application number
JP6135886A
Other languages
Japanese (ja)
Other versions
JPH087090A (en
Inventor
慎一郎 古賀
伸之 重枝
良弘 石田
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 JP6135886A priority Critical patent/JP3054315B2/en
Priority to EP94116820A priority patent/EP0650287B1/en
Priority to DE69433603T priority patent/DE69433603D1/en
Publication of JPH087090A publication Critical patent/JPH087090A/en
Priority to US08/826,876 priority patent/US5832141A/en
Application granted granted Critical
Publication of JP3054315B2 publication Critical patent/JP3054315B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は画像処理方法及びその装
置に関し、特にはデジタル2値画像の変倍処理を行う画
像処理方法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus, and more particularly to an image processing method and apparatus for performing a scaling process on a digital binary image.

【0002】[0002]

【従来の技術】2値画像を変倍する場合、2値画像その
ものを変倍するのではなく、まず2値画像の文字・線画
領域の輪郭情報を抽出し、その抽出した輪郭情報に基づ
いて変倍画像を生成することが提案されている。具体的
には、2値画像からアウトラインベクトルを抽出し、そ
の抽出したアウトラインベクトル形式で所望の倍率(任
意)で滑らかに変倍したアウトラインベクトルを作成
し、この滑らかに変倍したアウトラインベクトルから2
値画像を再生成するものである。しかし、この変倍方法
では、2値画像の中の白地(下地)中の黒画素領域に注
目し、白画素領域と黒画素領域の境界に輪郭ベクトルを
抽出して、輪郭ベクトルループ単位に処理を進めるため
に、疑似中間調画像に特有の孤立点や、うろこ状に連結
する数画素の黒画素連結成分や、ディザパターンに対し
てもノイズ除去や平滑化が施されてしまい、疑似中間調
画像の面積階調表現により得られるみかけの濃度が変化
したり、特有のテクスチャがより強調されてしまい、画
質を落としてしまう場合があった。
2. Description of the Related Art When scaling a binary image, instead of scaling the binary image itself, first, contour information of a character / line drawing area of the binary image is extracted, and based on the extracted contour information. It has been proposed to generate a scaled image. Specifically, an outline vector is extracted from the binary image, an outline vector that is smoothly scaled at a desired magnification (arbitrary) is created in the extracted outline vector format, and 2 is generated from the smoothly scaled outline vector.
This is to regenerate the value image. However, this scaling method focuses on a black pixel area in a white background (base) in a binary image, extracts a contour vector at a boundary between the white pixel area and the black pixel area, and processes the contour vector loop unit. Noise removal and smoothing are also applied to isolated points peculiar to the pseudo-halftone image, black pixel connected components of several pixels connected in a scale shape, and dither patterns. In some cases, the apparent density obtained by the area gradation expression of the image changes, or the specific texture is further emphasized, resulting in lower image quality.

【0003】[0003]

【発明が解決しようとする課題】そこで、画像を変倍す
る場合に、画像を文字・線画成分のみの画像と疑似中間
調成分のみの画像に分け、それぞそれに対して変倍処理
を施す方法も提案されている。しかし上記従来例では、
疑似中間調領域に文字がある画像や、文字中にノイズが
含まれている場合に生じやすい、画像の領域の誤判定に
よって、画質劣化が発生することがあった。
Accordingly, when an image is scaled, a method of dividing the image into an image having only a character / line drawing component and an image having only a pseudo halftone component, and performing a scaling process on each of them. Has also been proposed. However, in the above conventional example,
Image quality degradation may occur due to an erroneous determination of an image area, which is likely to occur when an image has characters in the pseudo halftone area or when noise is included in the characters.

【0004】本発明は上記従来例に鑑みてなされたもの
で、文字・線画成分と疑似中間調成分に誤判定が生じた
場合でも良好な画質の変倍画像を得ることができる画像
処理方法及びその装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned prior art, and provides an image processing method capable of obtaining a scaled image of good image quality even when an erroneous determination occurs between a character / line drawing component and a pseudo halftone component. It is intended to provide the device.

【0005】また本発明の他の目的は、入力画像に対し
て文字・線画成分に適切な変倍処理と疑似中間調成分に
適切な変倍処理を施して2枚の画像を作成した後、像域
判定により2枚の画像を選択および合成する画像処理方
法及び装置を提供することにある。
[0005] Another object of the present invention is to perform two types of image processing by applying an appropriate scaling process to a character / line image component and an appropriate scaling process to a pseudo halftone component on an input image. It is an object of the present invention to provide an image processing method and apparatus for selecting and combining two images by image area determination.

【0006】また本発明の他の目的は、文字・線画成分
に適した変倍処理への入力における黒画素を文字・線画
成分と判定した黒画素およびその周辺にある黒画素に限
定することにより、かかる処理を行いながらも必要とな
るメモリ容量や処理時間の増大を抑えた画像処理方法及
びその装置を提供することにある。
Another object of the present invention is to limit the black pixels in the input to the scaling process suitable for character / line drawing components to black pixels determined to be character / line drawing components and black pixels in the vicinity thereof. It is another object of the present invention to provide an image processing method and an image processing method in which the required memory capacity and processing time are not increased while performing such processing.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明の画像処理方法は以下のような構成を備える。
即ち、2値画像中の各画素が文字・線画領域もしくは疑
似中間調領域のどちらに属するかを判定する像域判定工
程と、文字・線画領域と判定された領域を変倍する第1
の変倍工程と、疑似中間調領域と判定された領域を変倍
する第2の変倍工程と、前記像域判定工程の結果を用
い、前記第1,第2の変倍工程それぞれで変倍された画
像を画素ごとに選択して合成する工程とを有する。
In order to achieve the above object, an image processing method according to the present invention has the following arrangement.
That is, an image area determining step of determining whether each pixel in the binary image belongs to a character / line drawing area or a pseudo halftone area, and a first step of scaling the area determined to be a character / line drawing area
, A second scaling step for scaling an area determined as a pseudo halftone area, and a scaling step for each of the first and second scaling steps using the result of the image area determination step. Selecting and combining the multiplied image for each pixel.

【0008】上記目的を達成するために本発明の画像処
理装置は以下のような構成を備える。即ち、2値画像中
の各画素が文字・線画領域もしくは疑似中間調領域のど
ちらに属するかを判定する像域判定手段と、文字・線画
領域と判定された領域を変倍する第1の変倍手段と、疑
似中間調領域と判定された領域を変倍する第2の変倍手
段と、前記像域判定手段の判定結果に応じて、前記第1
及び第2の変倍手段のそれぞれで変倍された画像を選択
して合成する選択合成手段とを有する。
In order to achieve the above object, an image processing apparatus according to the present invention has the following arrangement. That is, an image area determining unit that determines whether each pixel in the binary image belongs to a character / line drawing area or a pseudo halftone area, and a first scaling unit that scales the area determined to be a character / line drawing area. Multiplying means, second scaling means for scaling an area determined as a pseudo halftone area, and the first scaling means according to the determination result of the image area determining means.
And a selecting / combining unit for selecting and combining the images scaled by the respective second scaling units.

【0009】[0009]

【作用】以上の構成において、2値画像中の各画素が文
字・線画領域もしくは疑似中間調領域のどちらに属する
かを判定し、文字・線画領域と判定された画像を変倍す
るとともに、疑似中間調領域と判定された領域を変倍す
る。そして、像域判定手段の判定結果に応じて、前記第
1及び第2の変倍手段のそれぞれで変倍された画像を選
択して合成するように動作する。
In the above arrangement, it is determined whether each pixel in the binary image belongs to the character / line drawing area or the pseudo halftone area, and the image determined as the character / line drawing area is scaled up and down. The area determined as the halftone area is scaled. Then, in accordance with the determination result of the image area determining means, the operation is performed such that the images scaled by the first and second scaling means are selected and combined.

【0010】[0010]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0011】[第1実施例]図1は本発明の第1実施例
の画像処理装置の構成を示すブロック図である。
[First Embodiment] FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to a first embodiment of the present invention.

【0012】同図において、1は2値画像獲得部で、変
倍処理を施すデジタル2値画像を獲得(入力)してラス
タ走査形式で2値画像を出力する。2は像域判定部で、
2値画像獲得部1から出力されたラスタ走査形式の2値
画像データ(信号)の各画素に対し、疑似中間調成分を
含む画像領域か、それ以外の成分(以降、文字・線画成
分と称す)を含む画像領域かを判定する。3は像域判定
部2より出力される領域情報を変倍する像域判定結果変
倍部である。4はアウトライン抽出用画像作成部で、像
域判定部2で判定された像域に応じて、2値画像獲得部
1から出力されたラスタ走査形式の2値画像データの文
字・線画成分及びその周辺の黒画素からなる2値画像情
報を作成している。5はアウトライン変倍部で、アウト
ライン抽出画像作成部4から出力されたラスタ走査形式
の2値画像データを入力し、その入力した画像情報から
アウトラインベクトルを抽出している。更に、その抽出
したアウトラインベクトルデータ形態で画像の平滑化お
よび変倍処理を行い、得られた平滑・変倍されたアウト
ラインデータから、そのデータの表現する2値画像をラ
スタ走査形式の2値画像データとして再生して変倍画像
を得ている。
In FIG. 1, reference numeral 1 denotes a binary image acquisition unit which acquires (inputs) a digital binary image to be subjected to a scaling process and outputs a binary image in a raster scanning format. Reference numeral 2 denotes an image area determination unit.
For each pixel of the binary image data (signal) in the raster scanning format output from the binary image acquisition unit 1, an image area containing a pseudo halftone component or another component (hereinafter referred to as a character / line drawing component) ) Is determined. Reference numeral 3 denotes an image area determination result scaling section that scales the area information output from the image area determination section 2. Reference numeral 4 denotes an outline extracting image creating unit which, in accordance with the image area determined by the image area determining unit 2, outputs the character / line image components of the raster image binary image data output from the binary image acquiring unit 1 and its components. Binary image information composed of surrounding black pixels is created. Reference numeral 5 denotes an outline resizing unit which inputs raster scanning binary image data output from the outline extraction image generation unit 4 and extracts outline vectors from the input image information. Further, the image is smoothed and scaled in the form of the extracted outline vector data, and from the obtained smoothed and scaled outline data, a binary image represented by the data is converted into a raster image binary image. It is reproduced as data to obtain a scaled image.

【0013】6は擬似中間調変倍部で、2値画像獲得部
1からのラスタ走査形式の2値画像データを入力し、ア
ウトライン変倍部5とは異なる方式で変倍している。7
は選択合成部で、アウトライン変倍部5の出力16と、
疑似中間調変倍部6の出力17とを入力し、像域判定結
果変倍部3からの像域判定結果14に応じて、出力16
と17のいずれかを選択して、合成した変倍画像を得
る。8は2値画像出力部で、選択合成部7で得られた変
倍画像を表示したり、ハードコピーをとったり、あるい
は通信路などへ出力している。
Reference numeral 6 denotes a pseudo-halftone scaling unit which receives raster scanning binary image data from the binary image acquisition unit 1 and scales the data in a manner different from that of the outline scaling unit 5. 7
Is a selection / synthesis unit, which outputs the output 16 of the outline scaling unit 5;
The output 17 of the pseudo halftone scaling unit 6 is input, and the output 16 is determined according to the image area determination result 14 from the image area determination result scaling unit 3.
And 17 are selected to obtain a combined scaled image. Reference numeral 8 denotes a binary image output unit for displaying the scaled image obtained by the selection / synthesis unit 7, taking a hard copy, or outputting the image to a communication path or the like.

【0014】以下、各部分の構成及び動作を順次説明す
る。
Hereinafter, the configuration and operation of each part will be sequentially described.

【0015】2値画像獲得部1は、例えばイメージリー
ダで画像を読み取り、2値化してラスタ走査形式で出力
する公知のラスタ走査型の2値画像出力装置等である。
但し、2値画像を記憶した記憶媒体からデータを取り込
む装置、或いはスチールカメラで撮影された画像を2値
画像に変換する装置であってもかまわない。
The binary image acquisition unit 1 is a known raster scanning type binary image output device or the like which reads an image with an image reader, binarizes the image, and outputs it in a raster scanning format.
However, a device that takes in data from a storage medium storing a binary image or a device that converts an image captured by a still camera into a binary image may be used.

【0016】次に、像域判定部2の構成例を図2に示
す。
Next, FIG. 2 shows an example of the configuration of the image area determination section 2.

【0017】図2において、21はデータ保持部で、像
域判定処理に必要な小領域内の各画素値を逐次更新して
保持している。このデータ保持部21は、ラスタ走査形
式で入力されるデジタル2値画像データに対して、例え
ば、図3に示すように、注目画素201の周囲最大8×
8の64画素のデータ群203を保持する。そして、注
目画素の位置が更新(ラスタ走査形式で順次移動する)
されるのに同期して、保持するデータの内容を対応する
領域のデータに更新する。
In FIG. 2, reference numeral 21 denotes a data holding unit which sequentially updates and holds each pixel value in a small area required for the image area determination processing. For example, as shown in FIG. 3, the data holding unit 21 converts the digital binary image data input in the raster scanning format into a maximum of 8 ×
8, a data group 203 of 64 pixels is held. Then, the position of the target pixel is updated (moves sequentially in a raster scanning format).
At the same time, the content of the held data is updated to the data of the corresponding area.

【0018】図4はデータ保持部21の構成例を示すブ
ロック図である。
FIG. 4 is a block diagram showing a configuration example of the data holding unit 21.

【0019】24は、例えばFIFOなどで構成される
ラインバッファ部で、入力中のラスタの直前7ラスタ
(走査線)分に相当するデータを保持する。25はラッ
チ群であり、各ラスタ当り8画素分のデータ、計64個
のデータを保持している。
Reference numeral 24 denotes a line buffer unit composed of, for example, a FIFO, which holds data corresponding to seven rasters (scanning lines) immediately before the raster being input. Reference numeral 25 denotes a latch group, which holds data for 8 pixels per raster, that is, a total of 64 data.

【0020】再び図2において、22は像域判定条件部
で、データ保持部21より出力される小領域を形成して
いる注目画素を含む画素群のデータを基に、当該小領域
内にある注目画素が疑似中間調領域にある画素かどうか
を判定している。この像域判定条件部22は、孤立画素
判定部26、孤立画素領域判定部27、周期性判定部2
8、高周波成分判定部29の、それぞれ異なる条件が成
立しているか否かを判定する4種類の判定部より構成さ
れる。ここで、これら条件の内、いずれかの条件が1つ
でも成立する場合には、注目画素は疑似中間調成分の画
素であると判定される。
Referring again to FIG. 2, reference numeral 22 denotes an image area determination condition part, which is in the small area based on pixel group data including the pixel of interest forming the small area output from the data holding part 21. It is determined whether the pixel of interest is a pixel in the pseudo halftone area. The image area determination condition unit 22 includes an isolated pixel determination unit 26, an isolated pixel region determination unit 27, and a periodicity determination unit 2.
8. The high-frequency component determination unit 29 includes four types of determination units that determine whether different conditions are satisfied. Here, if any one of these conditions is satisfied, it is determined that the pixel of interest is a pixel of a pseudo halftone component.

【0021】孤立画素判定部26は、注目画素が孤立画
素か否かを判定する。
The isolated pixel determination unit 26 determines whether the pixel of interest is an isolated pixel.

【0022】これは図5の画素マトリクス204に示し
たように、注目画素201を中心に主走査方向に3画素
幅、副走査方向に3画素幅の3×3領域の画素マトリク
ス204に対して、注目画素以外の画素値が全て同じ値
(全て白画素もしくは全て黒画素)で、かつ注目画素が
周辺画素と異なる値である場合に、その注目画素201
は孤立画素であると判定する。
As shown in the pixel matrix 204 of FIG. 5, this corresponds to a 3 × 3 area pixel matrix 204 having a width of 3 pixels in the main scanning direction and a width of 3 pixels in the sub-scanning direction centering on the target pixel 201. If the pixel values other than the pixel of interest are all the same value (all white pixels or all black pixels) and the pixel of interest is different from the peripheral pixels, the pixel of interest 201
Is determined to be an isolated pixel.

【0023】孤立画素判定部26の判定結果R(i,j)
は、i行j列の画素値をV(i,j) とし、V(i,j) =1の
とき黒画素、V(i,j) =0のとき白画素を意味するもの
とすると、以下の論理式を実行する論理回路で実現でき
る。
The determination result R (i, j) of the isolated pixel determination unit 26
Let V (i, j) denote the pixel value at the i-th row and j-th column, and when V (i, j) = 1 means a black pixel and when V (i, j) = 0 means a white pixel, It can be realized by a logic circuit that executes the following logic equation.

【0024】R(i,j) =(V(i,j) ・NOT(V(i-1,j
-1) )・NOT(V(i-1,j) )・NOT(V(i-1,j+1)
)・NOT(V(i,j-1) )・NOT(V(i,j+1) )・
NOT(V(i+1,j-1) )・NOT(V(i+1,j) )・NO
T(V(i+1,j+1) )))+(NOT(V(i,j))・V(i-1,
j-1) ・V(i-1,j) ・V(i-1,j+1) ・V(i,j-1) ・V(i,
j+1) ・V(i+1,j-1) ・V(i+1,j) ・V(i+1,j+1) ) ここで、「・」は論理積、「+」は論理和、そしてNO
T(x)は論理値xの反転を意味する。但し、演算の優
先順位は「NOT(x)>・>+」である。
R (i, j) = (V (i, j) NOT (V (i-1, j)
-1)) NOT (V (i-1, j)) NOT (V (i-1, j + 1)
) ・ NOT (V (i, j-1)) ・ NOT (V (i, j + 1)) ・
NOT (V (i + 1, j-1)) / NOT (V (i + 1, j)) / NO
T (V (i + 1, j + 1)))) + (NOT (V (i, j)). V (i-1,
j-1) V (i-1, j) V (i-1, j + 1) V (i, j-1) V (i, j
j + 1) V (i + 1, j-1) V (i + 1, j) V (i + 1, j + 1) where "." is the logical product and "+" is the OR, and NO
T (x) means the inversion of the logical value x. However, the priority of the operation is “NOT (x) >> +”.

【0025】孤立画素領域判定部27は、注目画素が孤
立画素領域にあるか否かを判定するもので、その具体例
を図6に示す。図6において、画素マトリクス205は
主走査方向に4画素幅、副走査方向に4走査線幅の4×
4画素領域内の16画素で構成される。
The isolated pixel area determining section 27 determines whether or not the pixel of interest is in the isolated pixel area. A specific example is shown in FIG. In FIG. 6, the pixel matrix 205 has a width of 4 pixels in the main scanning direction and a width of 4 ×
It consists of 16 pixels in a 4 pixel area.

【0026】この画素マトリクス205内の各画素に対
して、図7で示される如く、上下左右の4画素((k,
L−1)の位置を上、(k,L+1)の位置を下、(k
−1,L)の位置を左、(k+1,L)の位置を右と称
す)が全て同値の画素(即ち、白画素もしくは黒画素)
で、かつ(k,L)の位置の画素と異なる値か否かを検
出する。そして4×4画素領域のそれぞれの画素値を
(k,L)の位置の画素とした場合には、16個の結果
が得られるが、このうち、2通り以上が該当する場合に
は、この4×4画素領域205の注目画素201が孤立
画素領域内にあると判定する。即ち、注目画素を201
とした場合に、その近傍画素領域205の16画素の中
で孤立画素(即ち、上下左右のいずれかにも連結してい
ない黒画素もしくは白画素)が2画素以上あるか否かを
判定し、例えば2画素以上ある場合には、その注目画素
201が孤立画素領域内にあると判定する。
For each pixel in the pixel matrix 205, as shown in FIG. 7, four pixels ((k,
L-1) above, (k, L + 1) below, (k
(−1, L) is referred to as the left, and (k + 1, L) is referred to as the right.) All pixels having the same value (that is, white pixels or black pixels)
And whether the value is different from that of the pixel at the position (k, L). When each pixel value of the 4 × 4 pixel area is a pixel at the position of (k, L), 16 results are obtained. It is determined that the target pixel 201 of the 4 × 4 pixel area 205 is in the isolated pixel area. That is, the pixel of interest is 201
It is determined whether or not there are two or more isolated pixels (that is, black or white pixels that are not connected to any of the upper, lower, left, and right) in the 16 pixels of the neighboring pixel area 205, For example, when there are two or more pixels, it is determined that the target pixel 201 is in the isolated pixel area.

【0027】周期性判定部28は、画素値が所定画素周
期で同じになっているかどうかを判定するものである。
具体的には、図3の202で示した主走査方向に8画素
幅、副走査方向8走査幅の8×8画素領域内の64画素
の中で、64画素全てが白画素であったり、全てが黒画
素である場合を除き、お互いに主走査方向に4画素、か
つ/または、副走査方向に4画素離れた位置関係にある
4画素(例えば、図3でハッチングされたA,B,C,
D)の間で各画素の画素値が全て一致するか否かを判定
する。図3に示すような8×8画素領域では、16通り
のA,B,C,Dのごとき相対位置関係にある4画素の
組が定義できる。これら16通りの各々の場合に、4画
素の画素値が全て等しいか否かを検査し、等しい場合
が、例えば14通り以上か否かを判定する。もしそうで
あれば、64画素全てが白画素もしくは全てが黒画素の
場合を除き、周期性部分(即ち、ディザ部分)にあると
判定する。
The periodicity judging section 28 judges whether or not the pixel values are the same in a predetermined pixel cycle.
Specifically, of the 64 pixels in the 8 × 8 pixel area of 8 pixel width in the main scanning direction and 8 scanning widths in the sub-scanning direction shown at 202 in FIG. 3, all 64 pixels are white pixels, Except for the case where all pixels are black pixels, four pixels having a positional relationship of 4 pixels apart from each other in the main scanning direction and / or 4 pixels apart from each other in the sub-scanning direction (for example, A, B, and H hatched in FIG. 3). C,
It is determined whether all the pixel values of the pixels match during D). In an 8 × 8 pixel area as shown in FIG. 3, a set of four pixels having a relative positional relationship such as 16 types of A, B, C, and D can be defined. In each of these 16 cases, it is checked whether or not the pixel values of all four pixels are equal, and if they are equal, for example, it is determined whether or not 14 or more cases. If so, it is determined that the pixel is in a periodic portion (ie, a dither portion), except when all 64 pixels are white pixels or all black pixels.

【0028】高周波成分判定部29は、近接する画素同
士の間で濃度変化が起こっているか否かを判定するもの
である。具体的には、図8に示すように、例えば207
で示した主走査方向6画素幅、副走査方向6走査線幅の
6×6画素領域内の36画素の中の横(主走査)方向に
隣り合う1画素間の組み合わせ30通り(図中の垂直方
向の双方向矢印で示される)の合わせて60通りの中
で、隣接2画素間の画素値が相異なる組み合わせが、例
えば28通り以上あるか否かを検査し、28通り以上あ
る場合には、その画像データの高周波成分領域にあると
判定する。
The high frequency component judging section 29 judges whether or not a density change has occurred between adjacent pixels. Specifically, as shown in FIG.
30 combinations of one pixel adjacent in the horizontal (main scanning) direction among 36 pixels in a 6 × 6 pixel area having a width of 6 pixels in the main scanning direction and a width of 6 scanning lines in the sub-scanning direction (see FIG. (Indicated by a vertical double-headed arrow), it is checked whether there are 28 or more combinations having different pixel values between adjacent two pixels, for example, if there are 28 or more combinations. Is determined to be in the high frequency component region of the image data.

【0029】再び図2において、23は4入力の論理和
回路で、孤立画素判定部26、孤立画素領域判定部2
7、周期性判定部28、高周波成分判定部29の出力を
入力とし、これらの論理和を出力している。この出力で
もって像域判定部2の出力とする。つまり論理和回路2
3は、注目画素自身が孤立点か、注目画素が孤立画素領
域か、周期性画素領域か、高周波成分領域かのいずれか
1つ以上の領域内の画素と判定された場合に、疑似中間
調領域であることを示す信号を出力する。
Referring again to FIG. 2, reference numeral 23 denotes a four-input OR circuit which includes an isolated pixel determination unit 26 and an isolated pixel region determination unit 2.
7. The outputs of the periodicity determination unit 28 and the high-frequency component determination unit 29 are input and the logical sum of them is output. This output is used as the output of the image area determination unit 2. That is, OR circuit 2
3 is a pseudo halftone when it is determined that the pixel of interest is an isolated point, or that the pixel of interest is an isolated pixel area, a periodic pixel area, or a high-frequency component area. It outputs a signal indicating that it is an area.

【0030】以上が図2における像域分離部2の構成お
よびその処理内容である。尚、像域判定部2において判
定するために用いた各種閾値は、上記値に限定されるも
のではなく、例えば、入力した画像の解像度や、その他
の状態に応じて設定する。
The above is the configuration of the image area separation unit 2 in FIG. 2 and the processing contents thereof. Note that the various thresholds used for the determination in the image area determination unit 2 are not limited to the above values, and are set according to, for example, the resolution of the input image and other states.

【0031】次に、像域判定結果変倍部3は、像域判定
部2の出力13(判定結果を画素値として持つラスタ走
査形式の2値画像と考えることができる)を入力し、所
望の倍率(アウトライン変倍部5で用いる倍率と同倍
率)で変倍して出力する。像域判定結果変倍部3は、倍
率に相当する回数だけ、拡大であれば同じ入力画素値を
繰り返して出力し、縮小であれば、その画素を間引いて
出力する公知の変倍処理を行っている。
Next, the image area determination result scaling section 3 receives the output 13 of the image area determination section 2 (which can be considered as a raster scanning binary image having the determination result as pixel values), and (Magnification equal to the magnification used in the outline scaling unit 5). The image area determination result scaling unit 3 performs a well-known scaling process of repeatedly outputting the same input pixel value if the image is enlarged, and thinning out the pixel if the image is reduced, by the number of times corresponding to the magnification. ing.

【0032】アウトライン抽出用画像作成部4は、アウ
トライン変倍部5での変倍結果になるべく影響を与えな
い方法で、アウトライン変倍部5への入力画素を減らす
ものであり、像域判定部2の孤立画素判定部26の出力
12、像域判定部2の出力13、2値画像獲得部1の出
力10を入力し、アウトライン変倍部5の入力となる2
値画像データ15をラスタ走査形式で出力する。即ち、
入力画像の中で、文字・線画成分の画素およびその周辺
の黒画素のみを出力する。
The outline extracting image creating section 4 reduces the number of pixels input to the outline scaling section 5 in such a manner as not to affect the scaling result of the outline scaling section 5 as much as possible. 2, the output 12 of the isolated pixel determination unit 26, the output 13 of the image area determination unit 2, the output 10 of the binary image acquisition unit 1, and the input 2 of the outline scaling unit 5.
The value image data 15 is output in a raster scanning format. That is,
In the input image, only the pixel of the character / line drawing component and the surrounding black pixels are output.

【0033】アウトライン抽出用画像作成部4の構成例
を図9に示す。
FIG. 9 shows an example of the configuration of the outline extracting image creating section 4.

【0034】アウトライン抽出用画像作成部4は、注目
画素が次の3つの条件を満足するときのみ黒画素を示す
信号を出力する。第1の条件は、注目画素が孤立点でな
いことである。これは、像域判定部2の孤立画素判定部
26の出力12を反転することにより得ることができ
る。第2番目の条件は、図10の402に示すように、
注目画素401を中心として主走査方向に5画素、副走
査方向に5画素の5×5領域における25画素の内1つ
以上の画素が文字・線画成分であることである。これ
は、図4と同等のデータ保持部43と、上記25画素分
の信号を入力する論理和回路44で構成できる。データ
保持部43は、像域判定部2の出力をインバータ46で
反転した結果を入力し、上記5×5領域の計25画素の
像域判定部2の出力反転結果を出力する。第3番目の条
件は、入力画像の注目画素が黒画素であることである。
これは、2値画像獲得部2の出力10を用いれば得るこ
とができる。上記3つの条件を示す信号を、FIFOバ
ッファ42,47や、同期制御回路41を用いて、互い
に同期を取りながら論理積回路45に入力し、その出力
をアウトライン抽出用画像作成部4の出力15とする。
ここでは、2番目の条件として、注目画素を中心とする
5×5領域を参照する例を用いて説明したが、7×7領
域など領域の大きさ形を変えてもかまわない。
The outline extracting image creating section 4 outputs a signal indicating a black pixel only when the target pixel satisfies the following three conditions. The first condition is that the target pixel is not an isolated point. This can be obtained by inverting the output 12 of the isolated pixel determination unit 26 of the image area determination unit 2. The second condition is as shown at 402 in FIG.
One or more of the 25 pixels in a 5 × 5 area of 5 pixels in the main scanning direction and 5 pixels in the sub-scanning direction with the target pixel 401 as the center are character / line drawing components. This can be constituted by a data holding unit 43 equivalent to that in FIG. 4 and an OR circuit 44 for inputting signals for the above 25 pixels. The data holding unit 43 receives the result obtained by inverting the output of the image area determination unit 2 by the inverter 46, and outputs the output inversion result of the image area determination unit 2 having a total of 25 pixels in the 5 × 5 area. The third condition is that the target pixel of the input image is a black pixel.
This can be obtained by using the output 10 of the binary image acquisition unit 2. Using the FIFO buffers 42 and 47 and the synchronization control circuit 41, the signals indicating the above three conditions are input to the AND circuit 45 while synchronizing with each other, and the output is output to the output 15 of the outline extraction image creating unit 4. And
Here, as the second condition, an example in which a 5 × 5 region centering on the target pixel is referred to has been described, but the size and shape of the region such as a 7 × 7 region may be changed.

【0035】次に、アウトライン変倍部5について説明
する。
Next, the outline scaling unit 5 will be described.

【0036】図11に示す如く、アウトライン変倍部5
は、アウトライン抽出部51、アウトライン平滑・変倍
部52および、2値画像再生部53を備えている。具体
的には、アウトライン抽出用画像作成部4の出力を入力
して、アウトライン抽出部51にてアウトラインベクト
ル(粗輪郭ベクトル)を抽出し、アウトライン平滑・変
倍部52において、その抽出されたアウトラインベクト
ル表現の状態で所望の倍率(任意)で滑らかに変倍され
たアウトラインベクトルを作成し、2値画像再生部53
においてこの滑らかに変倍されたアウトラインベクトル
から2値画像を再生する。これによって、所望の倍率で
変倍された高画質の画像を生成する。
As shown in FIG. 11, the outline scaling unit 5
Includes an outline extraction unit 51, an outline smoothing / magnification unit 52, and a binary image reproduction unit 53. Specifically, the output of the outline extraction image creating unit 4 is input, an outline vector (coarse contour vector) is extracted by the outline extraction unit 51, and the extracted outline is extracted by the outline smoothing / magnification unit 52. An outline vector that is smoothly scaled at a desired magnification (arbitrary) in a vector representation state is created, and a binary image reproducing unit 53 is created.
In step 2, a binary image is reproduced from the smoothly scaled outline vector. As a result, a high-quality image scaled at a desired magnification is generated.

【0037】図12は、実施例のアウトライン抽出用画
像作成部4から出力されるラスタ走査型の2値画像デー
タの走査形態を示しており、かつアウトライン抽出部5
1が入力とするラスタ走査型の2値部分画像データの走
査形態をも示している。アウトライン抽出部51は、こ
のような形式でアウトライン抽出用画像作成部4より出
力されるラスタ走査型の2値画像データを入力してい
る。
FIG. 12 shows a scanning form of the raster scanning type binary image data outputted from the outline extracting image forming section 4 of the embodiment.
The scanning form of the raster scanning type binary partial image data 1 is also shown as an input. The outline extracting unit 51 receives the raster-scan type binary image data output from the outline extracting image creating unit 4 in such a format.

【0038】尚、図12において、501はラスタ走査
中の2値画像のある画素を示しており、502はこの画
素の近傍8画素を含めた9画素領域を表している。アウ
トライン抽出部51は、注目画素501をラスタ走査順
に移動させて、各注目画素に対し、502に示す9画素
領域における各画素の状態(白画素か黒画素か)を調べ
ている。そして注目画素501と、注目画素501の近
隣画素間に存在する輪郭ベクトル(水平ベクトルもしく
は垂直ベクトル)を検出し、輪郭ベクトルが存在する場
合には、その辺ベクトルの始点座標と向きのデータを抽
出して、それら辺ベクトル間の接続関係を更新しなが
ら、粗輪郭ベクトルを抽出する。
In FIG. 12, reference numeral 501 denotes a certain pixel of the binary image during raster scanning, and reference numeral 502 denotes a nine-pixel area including eight pixels near this pixel. The outline extraction unit 51 moves the pixel of interest 501 in the raster scanning order, and checks the state of each pixel (white pixel or black pixel) in the 9-pixel area indicated by 502 for each pixel of interest. Then, a contour vector (horizontal vector or vertical vector) existing between the pixel of interest 501 and a pixel adjacent to the pixel of interest 501 is detected, and if an outline vector exists, data of the start point coordinates and direction of the side vector is extracted. Then, a coarse contour vector is extracted while updating the connection relationship between the side vectors.

【0039】図13に、注目画素501と注目画素50
1の近隣画素間の輪郭ベクトルの抽出状態の一例を示し
た。
FIG. 13 shows the target pixel 501 and the target pixel 50.
An example of an extraction state of a contour vector between one neighboring pixel is shown.

【0040】図13において、△は垂直ベクトルの始点
(または水平ベクトルの終点)を表し、○印は水平ベク
トルの始点(または垂直ベクトルの終点)を表してい
る。
In FIG. 13, △ indicates the starting point of the vertical vector (or the ending point of the horizontal vector), and ○ indicates the starting point of the horizontal vector (or the ending point of the vertical vector).

【0041】図14は、上述したアウトライン抽出部5
1によって抽出された粗輪郭ベクトルループの一例を示
す図である。ここで、格子で区切られている各枡目は、
入力画像の画素位置を示し、空白の枡目は、白画素を意
味し、点模様で埋められた○印は黒画素を意味してい
る。
FIG. 14 shows the outline extraction unit 5 described above.
FIG. 6 is a diagram illustrating an example of a coarse contour vector loop extracted by No. 1; Here, each cell separated by a lattice is
The pixel positions of the input image are shown, and blank cells indicate white pixels, and circles filled with dot patterns indicate black pixels.

【0042】また図13と同様に、△は垂直ベクトルの
始点を表し、○印は水平ベクトルの始点を表している。
図14の例でわかるように、このアウトライン抽出部5
1では、黒画素の連結する領域を、水平ベクトルと、そ
の長さが異なるものの垂直ベクトルとを、交互に連続す
る粗輪郭ベクトルループとして抽出する。ただし、ここ
では抽出を進める方向は、その進む向きに対して右側が
黒画素領域となるようにしている。また、各粗輪郭ベク
トルの始点は、入力画像の各画素の中間位置として抽出
される。つまり、各画素の存在位置を整数(x,y)で
表した場合、抽出されるベクトルの始点はそれぞれの座
標値に0.5を加えた値、あるいは0.5を減じた値と
なる。より詳しく説明すれば、原画中の1画素幅の線部
分も、有意な幅を持った粗輪郭ループとして抽出され
る。
As in FIG. 13, .DELTA. Represents the starting point of the vertical vector, and .largecircle. Represents the starting point of the horizontal vector.
As can be seen from the example of FIG.
In step 1, a horizontal vector and a vertical vector having a different length are extracted from a region where black pixels are connected as a coarse contour vector loop that is alternately continuous. However, the direction in which the extraction proceeds is such that the black pixel area is on the right side of the direction in which the extraction proceeds. The starting point of each coarse contour vector is extracted as an intermediate position between each pixel of the input image. That is, when the location of each pixel is represented by an integer (x, y), the starting point of the extracted vector is a value obtained by adding 0.5 to each coordinate value or subtracting 0.5. More specifically, a line portion having a width of one pixel in the original image is also extracted as a coarse contour loop having a significant width.

【0043】このように抽出された粗輪郭ベクトルルー
プ群は、図15に示すようなデータ形式で図11のアウ
トライン抽出部51より出力される。即ち、画像中より
抽出された総粗輪郭ループ数“a”と、第1輪郭ループ
から第a輪郭ループまでの各粗輪郭ループデータ群から
なる。各粗輪郭ループデータは、粗輪郭ループ内に存在
する輪郭ベクトルの始点の総数(輪郭辺ベクトルの総数
とも考えることができる)と、ループを構成している順
番に各輪郭辺ベクトルの始点座標(x座標値,y座標
値)の値(水平ベクトルの始点及び垂直ベクトルの始点
が交互に並ぶ)の列より構成されている。
The group of coarse contour vector loops thus extracted is output from the outline extraction unit 51 in FIG. 11 in a data format as shown in FIG. That is, it is composed of the total number of coarse contour loops “a” extracted from the image and each coarse contour loop data group from the first contour loop to the a-th contour loop. Each coarse contour loop data includes the total number of start points of the contour vectors existing in the coarse contour loop (which can also be considered as the total number of contour side vectors), and the starting point coordinates of each contour side vector (in the order in which the loop is formed). It is composed of a column of values (x-coordinate value, y-coordinate value) (starting points of horizontal vectors and starting points of vertical vectors are alternately arranged).

【0044】次に、図11のアウトライン平滑・変倍部
52では、アウトライン抽出部51より出力される粗輪
郭ベクトルデータ(図15参照)を入力し、その平滑化
および所望の倍率への変倍処理をアウトラインベクトル
データ(座標値)の形態上で実施する。
Next, the outline smoothing / magnifying unit 52 shown in FIG. 11 receives the coarse contour vector data (see FIG. 15) output from the outline extracting unit 51, smoothes the data, and scales it to a desired magnification. The processing is performed on the form of outline vector data (coordinate values).

【0045】図16にアウトライン平滑・変倍部52の
さらに詳しい構成を示す。
FIG. 16 shows a more detailed configuration of the outline smoothing / magnifying unit 52.

【0046】図16において、54は変倍の倍率設定
部、55は第一平滑化・変倍部である。第一平滑化・変
倍部55は、倍率設定部54により設定した倍率で、入
力した粗輪郭データを平滑・変倍処理する。この処理結
果は、第二平滑化部56においてさらに平滑化されて、
最終出力を得る。
In FIG. 16, reference numeral 54 denotes a magnification setting unit, and 55 denotes a first smoothing / magnification unit. The first smoothing / magnifying unit 55 performs smoothing / magnifying processing on the input rough contour data at the magnification set by the magnification setting unit 54. This processing result is further smoothed in the second smoothing unit 56,
Get the final output.

【0047】変倍設定部54は、予めディップスイッチ
やダイヤルスイッチなどで設定されている値を、第一平
滑化・変倍部55に渡すものでもよいし、何か外部より
I/F(インターフェース)を介して提供されるなどの
形式をとってもよく、入力として与えられる画像サイズ
に対し、主走査(横)方向,副走査(縦)方向独立にそ
れぞれ何倍にするかの情報を与える部分である。
The scaling setting section 54 may pass a value set in advance by a dip switch, a dial switch, or the like to the first smoothing / magnifying section 55 or an external I / F (interface). ) May be provided, for example, in a portion that gives information on how many times the image size given as input is independently set in the main scanning (horizontal) direction and the sub-scanning (vertical) direction. is there.

【0048】第一平滑化・変倍部55は、倍率設定部5
4からの倍率情報を得て、平滑化・変倍処理を行う。
The first smoothing / magnifying unit 55 includes a magnification setting unit 5
Then, smoothing / magnification processing is performed by obtaining the magnification information from step 4.

【0049】図17にアウトライン平滑・変倍処理を実
現するハードウェア構成例を示す。同図において、51
0はアウトライン抽出回路、511はCPU、512は
ディスク装置、513はディスクI/O、514はCP
U511の動作処理手順(プログラムや各種データ)を
記憶しているROMである。515はI/Oポート、5
16はRAM(ランダムアクセスメモリ)、517は上
記ブロックを接続するバスである。
FIG. 17 shows an example of a hardware configuration for realizing the outline smoothing / magnification processing. In FIG.
0 is an outline extraction circuit, 511 is a CPU, 512 is a disk device, 513 is a disk I / O, and 514 is a CP.
A ROM that stores the operation processing procedure (programs and various data) of U511. 515 is an I / O port, 5
16 is a RAM (random access memory) and 517 is a bus connecting the above blocks.

【0050】図11のアウトライン抽出部51は、ディ
スク装置512に、図15に示すデータ形式でファイル
(粗輪郭ベクトルデータ)を記憶する。CPU511
は、図18に与えられる手順で動作し、アウトライン平
滑・変倍の処理を実行する。
The outline extraction unit 51 in FIG. 11 stores a file (coarse contour vector data) in the disk device 512 in the data format shown in FIG. CPU 511
Operates according to the procedure given in FIG. 18 and executes outline smoothing / magnification processing.

【0051】まずステップS1で、ディスクI/O51
3を経由してディスク装置512に格納された素輪郭デ
ータを読出して、RAM516のワーキングメモリ領域
(図示せず)に読み込む。次に、ステップS2で第一平
滑化および変倍を行う。
First, in step S1, the disk I / O 51
Then, the elementary contour data stored in the disk device 512 is read out via the storage device 3 and read into the working memory area (not shown) of the RAM 516. Next, first smoothing and scaling are performed in step S2.

【0052】第一平滑化処理は、素輪郭データの各閉ル
ープ単位で行われる。各素輪郭データの各輪郭辺(水平
ベクトル、もしくは垂直ベクトル)ベクトルに順次着目
していき、各着目輪郭本にベクトルに対し、それぞれの
前後のベクトル高々3本まで(即ち、着目辺に前に3
本、着目辺自体、それに着目辺の後に3本の合計、高々
7本までの辺ベクトル)お互いに連続する本ベクトルの
長さと向きの組み合わせによってパターンを分けて、そ
れぞれの場合に対して、着目辺に対する第一平滑化結果
となる第一平滑化後の輪郭点を定義してゆく。そして、
第一平滑化後の輪郭点の座標値およびその輪郭点が角の
点なのか否かを示す付加情報(以下、角点情報と称す)
を出力する。ここで言う角の点とは、意味のある角に位
置する点をいい、ノイズやその他の要因でギザギザした
部分やノッチなどによる角の点は除かれる。さて、角の
点と判断された第一平滑化後の輪郭点(以降、角点と称
す)は、後の第二平滑化によって平滑化されない点、即
ちその位置が不動点として扱われる。言い換えれば、角
の点と判断されなかった第一平滑化後の輪郭点(以後、
角点と称す)は、後段の第二平滑化処理によって、さら
に平滑化されることになる。
The first smoothing process is performed for each closed loop of the elementary contour data. Each contour side (horizontal vector or vertical vector) vector of each elementary contour data is sequentially focused on, and the vector of each contour of interest is up to three vectors before and after each of them (that is, before the side of interest, 3
The book, the side of interest, and a total of up to seven side vectors after the side of interest, up to seven). The contour points after the first smoothing as the first smoothing result for the side are defined. And
Coordinate values of contour points after the first smoothing and additional information indicating whether or not the contour points are corner points (hereinafter referred to as corner point information)
Is output. Here, the corner point means a point located at a meaningful corner, and excludes a corner point due to a notched portion or a notch due to noise or other factors. By the way, a contour point after the first smoothing determined as a corner point (hereinafter, referred to as a corner point) is not smoothed by the subsequent second smoothing, that is, its position is treated as a fixed point. In other words, the contour points after the first smoothing that are not determined to be corner points (hereinafter, referred to as corner points)
(Referred to as a corner point) will be further smoothed by the second smoothing process in the subsequent stage.

【0053】図19は、この様子即ち、着目粗輪郭辺ベ
クトルDiと着目粗輪郭辺ベクトルの前の3本の辺ベク
トル、Di−1,Di−2,Di−3および、着目粗輪
郭辺ベクトルの後の3本の辺ベクトルDi+1,Di+
2,Di+3の様子と、着目辺Diに対して定義される
第一平滑化後の輪郭点の様子を示している。つまり、こ
うして再定義された輪郭点どうしを結ぶベクトル(斜め
方向のベクトルが許される)を構築する。
FIG. 19 shows this state, that is, the noticed rough contour side vector Di, three side vectors before the noticed rough contour side vector, Di-1, Di-2, Di-3, and the noticed rough contour side vector. , Three side vectors Di + 1, Di +
2, Di + 3, and the contour points after the first smoothing defined for the side Di of interest. That is, a vector (a vector in an oblique direction is allowed) connecting the contour points thus redefined is constructed.

【0054】以上、第一平滑化の処理内容を説明した。
第一平滑化後のデータは、RAM516の所定領域に順
次構築されていく。かくして、図18のステップS2の
処理を終えて、CPU511はステップS3の第二平滑
化処理を行う。
The first smoothing process has been described above.
The data after the first smoothing is sequentially constructed in a predetermined area of the RAM 516. Thus, after finishing the process of step S2 in FIG. 18, the CPU 511 performs the second smoothing process of step S3.

【0055】この第二平滑化処理は、第一平滑化後のデ
ータを入力する。即ち、閉ループ数、各閉ループ毎の輪
郭点数、各閉ループ毎の第一平滑化済みの輪郭点の座標
値データ列、及び、各閉ループ毎の第一平滑化済みの輪
郭点の付加情報データ列を入力して、第二平滑化後の輪
郭点データを出力する。第二平滑化後の輪郭データは、
例えば図20に示すように、閉ループ数(N)、各閉ル
ープ毎の輪郭点数(Li)テーブル、各閉ループ毎の第
二平滑化済みの輪郭点の座標データ列より構成される。
In the second smoothing process, data after the first smoothing is input. That is, the number of closed loops, the number of contour points for each closed loop, the coordinate value data sequence of the first smoothed contour point for each closed loop, and the additional information data sequence for the first smoothed contour point for each closed loop And outputs contour point data after the second smoothing. The contour data after the second smoothing is
For example, as shown in FIG. 20, it is composed of a closed loop number (N), a contour point number (Li) table for each closed loop, and a coordinate data string of second smoothed contour points for each closed loop.

【0056】以下に、図21を用いて、第二平滑化処理
の概要を説明する。第二平滑化は、第一平滑化同様、輪
郭ループ単位に処理され、かつ各輪郭ループ内において
は、各輪郭点毎に処理が進められる。
The outline of the second smoothing process will be described below with reference to FIG. Similar to the first smoothing, the second smoothing is performed for each contour loop, and the processing is performed for each contour point in each contour loop.

【0057】各輪郭点について、注目している輪郭点が
角点である場合は、入力した輪郭点座標値そのものでも
って、その注目輪郭点に対する第二平滑化済みの輪郭点
座標データとする。つまり、何も変更しない。
If the contour point of interest is a corner point for each contour point, the input contour point coordinate value itself is used as the second smoothed contour point coordinate data for the contour point of interest. That is, nothing is changed.

【0058】また、注目している輪郭点が非角点である
場合は、前後の輪郭点座標値と、注目する輪郭点の座標
値との加重平均により求まる値を、注目している輪郭点
に対する第二平滑化済みの輪郭点座標値とする。即ち、
非角点である注目入力輪郭点をPi(xi,yi)とし、
Piの入力輪郭ループにおける直前の輪郭点をPi-1(x
i-1,yi-1)、直後の輪郭点をPi+1(xi+1,yi+1)
と、更には注目入力輪郭点Piに対する第二平滑化済の
輪郭点をQi(x′i,y′i)とすると、 x′i=ki-1・xi-1+ki・xi+ki+1・xi+1 y′i=ki-1・yi-1+ki・yi+ki+1・yi+1 …(1) として算出する。ここで、ki-1=ki+1=1/4,ki
=1/2である。
When the contour point of interest is a non-square point, a value obtained by a weighted average of the coordinate values of the front and rear contour points and the coordinate values of the contour point of interest is used as the value of the contour point of interest. Is the second smoothed contour point coordinate value. That is,
Let the noted input contour point, which is a non-corner point, be Pi (xi, yi),
The immediately preceding contour point in the input contour loop of Pi is Pi-1 (x
i-1, yi-1), and the contour point immediately after is Pi + 1 (xi + 1, yi + 1)
Further, assuming that the second smoothed contour point with respect to the target input contour point Pi is Qi (x'i, y'i), x'i = ki-1.xi-1 + ki.xi + ki + 1.xi + 1 y′i = ki−1 · yi−1 + ki · yi + ki + 1 · yi + 1 (1) Here, ki-1 = ki + 1 = 1/4, ki
= 1 /.

【0059】図21において、点P0,P1,P2,P3,
P4は、入力である第一平滑化済の連続する輪郭点列の
一部であり、P0およびP4は角点、P1,P2およびP3
は非角点を示している。この時の処理結果が、それぞれ
点Q0,Q1,Q2,Q3,Q4で示されている。P0および
P4は角点であるから、それらの座標値が、そのままそ
れぞれQ0およびQ4の座標値となる。また、点Q1は、
P0,P1,P2から上述した式に従って算出した値を座
標値として持つ。同様に、Q2はP1,P2,P3から、Q
3はP2,P3,P4から上式に従って算出した値を座標値
としてもつ。
In FIG. 21, points P0, P1, P2, P3,
P4 is a part of the input sequence of the first smoothed continuous contour points, and P0 and P4 are corner points, P1, P2 and P3.
Indicates a non-corner point. The processing results at this time are indicated by points Q0, Q1, Q2, Q3, and Q4, respectively. Since P0 and P4 are corner points, their coordinate values become the coordinate values of Q0 and Q4, respectively. The point Q1 is
A value calculated from P0, P1, and P2 in accordance with the above-described equation has a coordinate value. Similarly, Q2 is derived from P1, P2, P3
Numeral 3 has, as coordinate values, values calculated from P2, P3, and P4 according to the above equation.

【0060】CPU511は、このようにしてRAM5
16上の所定領域にある第一平滑化済の輪郭データに対
する第2平滑化処理を施す。この処理は、第1ループか
ら順に第2ループ、第3ループというようにループごと
に処理を進めていき、全てのループに対する処理が終了
することにより、第二平滑化の処理を終了する。各ルー
プの処理内では、第1点から順に第2点、第3点と処理
を進め、全ての該当ループ内の輪郭点に対して(1)式
に示した処理を終えると、当該ループの処理を終え、次
のループに処理を進めていく。
The CPU 511 thus operates the RAM 5
The second smoothing process is performed on the first smoothed contour data in a predetermined area on the second image 16. In this processing, the processing proceeds in order from the first loop to the second loop, the third loop, and the like, and the processing for all the loops ends, and the second smoothing processing ends. In the processing of each loop, the processing proceeds to the second point and the third point in order from the first point, and when the processing shown in Expression (1) is completed for all the contour points in the corresponding loop, After the processing, the processing proceeds to the next loop.

【0061】尚、ループ内にL個の輪郭点が存在する場
合、第1点の前の点とは第L点のことであり、又、第L
点の後の点とは第1点のことである。以上、第二平滑化
処理では、入力とする第一平滑化済輪郭データと同じ総
ループ数をもち、かつ、各ループ上の輪郭点数は変わら
ず、同数の輪郭点データが生成される。CPU511
は、以上の結果をRAM516の別領域もしくは、ディ
スク装置512上に図20に示した形態で出力し、第二
平滑化処理の(ステップS3)の処理を終了する。
When there are L contour points in the loop, the point before the first point is the L-th point.
The point after the point is the first point. As described above, in the second smoothing processing, the same total number of loop points as the first smoothed contour data to be input, and the number of contour points on each loop remain unchanged, and the same number of contour point data is generated. CPU 511
Outputs the above result to another area of the RAM 516 or the disk device 512 in the form shown in FIG. 20, and ends the second smoothing process (step S3).

【0062】次に、CPU511はステップS4へ進
み、第二平滑化処理の結果得られたデータを、I/O5
15を介して2値画像再生部53へ転送して、図18に
示したその一連の処理を終える。
Next, the CPU 511 proceeds to step S4, where the data obtained as a result of the second smoothing process is
The data is transferred to the binary image reproducing unit 53 via the CPU 15 and the series of processes shown in FIG. 18 is completed.

【0063】図11の2値画像再生部53は、例えば、
I/O515を介して転送された、第二平滑化済の輪郭
データを基に、該輪郭データにより表現されるベクトル
図形により囲まれる領域を塗り潰して生成される2値画
像をラスタ走査形式で出力することができる。
The binary image reproducing unit 53 shown in FIG.
Based on the second smoothed contour data transferred via the I / O 515, a binary image generated by filling an area surrounded by a vector graphic represented by the contour data is output in a raster scanning format. can do.

【0064】以上が、アウトライン変倍部5の概要であ
る。ここで、像域判定部2の誤判定を考慮し、ベクトル
数がある閾値以下のループに対しては、角点同様に、第
二平滑化を行わないと、より良い画質の変倍画像が得ら
れる場合がある。
The outline of the outline scaling unit 5 has been described above. Here, in consideration of the erroneous determination of the image area determination unit 2, for a loop whose number of vectors is equal to or less than a certain threshold, a scaled image having better image quality can be obtained unless the second smoothing is performed, as in the case of the corner point. May be obtained.

【0065】次に、図1の疑似中間調変倍部6について
説明する。この変倍部6は、2値画像獲得部1の出力1
1を入力し、アウトライン変倍とは異なる変倍方法によ
り所望の倍率(アウトライン変倍部で用いる倍率と同倍
率)で変倍した画像を出力する。
Next, the pseudo halftone scaling unit 6 shown in FIG. 1 will be described. The scaling unit 6 outputs the output 1 of the binary image acquisition unit 1.
1 is input and an image is output at a desired magnification (the same magnification as that used in the outline magnification unit) by a magnification method different from the outline magnification.

【0066】この疑似中間調変倍部6の概要を図22を
参照して説明する。
The outline of the pseudo halftone scaling unit 6 will be described with reference to FIG.

【0067】61は2値画像を一時的に多値画像に復元
するための逆量子化部である。逆量子化処理部は61で
は、図23に示す如く、例えば、注目画素601の周辺
16画素の近傍画素を参照して、16画素のそれぞれ
と、対応する16個の係数のそれぞれとの積の総和を計
算し、その結果を用いて注目画素601を一時的に復元
する多値画素値とする。次に、逆量子化処理部61の出
力、即ち多値画素データをSPC変倍処理部62におい
て所望の倍率(アウトライン変倍部で用いる倍率と同倍
率)で変倍処理する。ここで実行されるSPC変倍処理
は、倍率に相当する回数だけ、拡大であれば同じ入力画
素値を繰り返して出力し、縮小であれば、その画素を間
引いて出力する公知の変倍処理である。
Reference numeral 61 denotes an inverse quantization unit for temporarily restoring a binary image into a multi-valued image. As shown in FIG. 23, the inverse quantization processing unit 61 refers to, for example, the neighboring pixels of the 16 pixels around the pixel of interest 601 to calculate the product of each of the 16 pixels and each of the corresponding 16 coefficients. The sum is calculated, and the target pixel 601 is used as a multi-valued pixel value to be temporarily restored using the result. Next, the output of the inverse quantization processing unit 61, that is, the multi-valued pixel data is subjected to scaling processing in the SPC scaling processing unit 62 at a desired magnification (the same magnification as that used in the outline scaling unit). The SPC scaling process executed here is a well-known scaling process in which the same input pixel value is repeatedly output for enlargement by the number of times corresponding to the magnification, and the pixel is thinned out for reduction and output. is there.

【0068】こうしてSPC変倍された多値画素データ
を疑似中間調処理部63において再び2値化し、変倍さ
れた2値画像データを得る。疑似中間調処理部63は、
例えば公知の誤差拡散処理回路、もしくはディザ処理回
路などで構成される。
The SPC scaled multi-valued pixel data is again binarized in the pseudo halftone processing unit 63 to obtain scaled binary image data. The pseudo halftone processing unit 63
For example, a known error diffusion processing circuit or a dither processing circuit is used.

【0069】かくして得られた疑似中間調処理部63の
出力17を、疑似中間調変倍部6の出力とする。
The output 17 of the pseudo halftone processing section 63 thus obtained is used as the output of the pseudo halftone scaling section 6.

【0070】ここで、疑似中間調変倍部6の逆量子化処
理部61における係数マトリクスは必ずしも図23で説
明した4×4のサイズに限る必要はなく、例えば図24
の毎く、8×8や5×5あるいは、6×4などの一般に
m×n(m,nは整数)として設定してもよく、かつ各
係数も全て“1”とするに限らず、図25の如く注目画
素に近いほど係数値を大きくするなど、各々の要素が異
なる係数値を持つ構成にしても構わない。係数マトリク
スのサイズは、原画の疑似中間調表現のもつ階調数に合
う大きさにするとより、忠実な多値画像の再現が期待で
きるが、その一方でコスト高の原因となるので、適宜選
択するのが望ましい。
Here, the coefficient matrix in the inverse quantization processing section 61 of the pseudo halftone scaling section 6 does not necessarily need to be limited to the 4 × 4 size described in FIG.
In general, 8 × 8, 5 × 5, or 6 × 4 may be set as m × n (m and n are integers), and all the coefficients are not limited to “1”. Each element may have a different coefficient value, such as increasing the coefficient value closer to the target pixel as shown in FIG. If the size of the coefficient matrix matches the number of gradations of the pseudo-halftone representation of the original image, a faithful reproduction of a multi-valued image can be expected. It is desirable to do.

【0071】次に、図1の選択合成部7において、アウ
トライン変倍部5の出力16と疑似中間調変倍部6の出
力17とが、像域判定結果変倍部3の出力14に基づい
て選択されて合成される。
Next, in the selection / synthesis unit 7 of FIG. 1, the output 16 of the outline scaling unit 5 and the output 17 of the pseudo halftone scaling unit 6 are based on the output 14 of the image area determination result scaling unit 3. Selected and synthesized.

【0072】図26は選択合成部7の構成を示すブロッ
ク図である。
FIG. 26 is a block diagram showing the structure of the selection / synthesis unit 7. As shown in FIG.

【0073】72は像域判定結果変倍部3から得られる
変倍済像域判定結果(判定結果を画素値として持つ2値
画像データ)を保持するための変倍済像域判定結果用バ
ッファである。73はアウトライン変倍部5から得られ
る変倍済の2値画像データを保持するためのアウトライ
ン変倍済画像データバッファである。74は疑似中間調
変倍部6から得られる変倍済の2値画像データを保持す
るための疑似中間調変倍済画像データバッファである。
76は画像データバッファ73と74の画像データを選
択合成した画像データを一時的に保持する合成画像デー
タバッファである。71はバッファ72に入っている変
倍済像域判定結果と、バッファ73に入っているアウト
ライン変倍済画像データと、バッファ74に入っている
疑似中間調変倍済画像データ同士をラスタ走査形式で読
み出すように同期制御を行う同期制御回路である。同期
制御回路71により、バッファ73およびバッファ74
よりラスタ走査形式で読み出された変倍処理画像データ
は、ラスタ走査形式で読み出された変倍済像域判定結果
に基づき、それぞれお互いに対応する画素毎に選択合成
され、その合成された画像は合成画像データバッファ7
6に一時的に蓄えられる。変倍処理済画像データの選択
合成は論理回路75で行われる。即ち、変倍済像域判定
結果が1(疑似中間調成分を示す)の時は、疑似中間調
変倍済画像データが選択され、変倍済像域判定結果が0
(文字・線画成分を示す)の時はアウトライン変倍済画
像データを選択する。
Reference numeral 72 denotes a scaled image area determination result buffer for holding a scaled image area determination result (binary image data having the determination result as a pixel value) obtained from the image area determination result scaling unit 3. It is. Reference numeral 73 denotes an outline-scaled image data buffer for holding scaled binary image data obtained from the outline scaling unit 5. Reference numeral 74 denotes a pseudo halftone scaled image data buffer for holding scaled binary image data obtained from the pseudo halftone scaling unit 6.
Reference numeral 76 denotes a combined image data buffer for temporarily storing image data obtained by selectively combining the image data of the image data buffers 73 and 74. Reference numeral 71 denotes a raster scan format of the scaled image area determination result stored in the buffer 72, the outline scaled image data stored in the buffer 73, and the pseudo halftone scaled image data stored in the buffer 74. Is a synchronous control circuit that performs synchronous control so as to read data. The buffer 73 and the buffer 74 are controlled by the synchronization control circuit 71.
The scaled image data read in the raster scanning format is selectively synthesized for each pixel corresponding to each other, based on the scaled image area determination result read in the raster scanning format, and the synthesized image is obtained. The image is a composite image data buffer 7
6 is temporarily stored. The selection and synthesis of the image data after the scaling processing is performed by the logic circuit 75. That is, when the scaled image area determination result is 1 (indicating the pseudo halftone component), the pseudo halftone scaled image data is selected, and the scaled image area determination result is 0.
In the case of (character / line drawing component), outline resized image data is selected.

【0074】最後に、図1の2値画像出力部8は、選択
合成部7により合成され、合成画像データバッファ76
に蓄えられた変倍処理画像を入力するレーザビームプリ
ンタやサーマルプリンタなどのハードコピー装置、或は
液晶やCRT等のディスプレイ装置等で構成され、2値
画像データを表示したり、或はハードコピーとして紙面
に記録出力するものである。
Finally, the binary image output unit 8 in FIG. 1 is synthesized by the selection / synthesis unit 7, and the synthesized image data buffer 76
A hard copy device, such as a laser beam printer or a thermal printer, for inputting the scaled image stored in the printer, or a display device, such as a liquid crystal display or a CRT, displays binary image data. Is recorded and output on paper.

【0075】[第2実施例]前記第1の実施例における
2値画像獲得部1は、必ずしもイメージリーダである必
要はなく、例えばファクシミリ装置の受信部のように、
通信部を介して2値画像を装置外部より入力する2値画
像の受信装置であってもよい。また、前記第1実施例に
おける2値画像出力部8も必ずしもハードコピー装置で
ある必要はなく、例えば、ファクシミリ装置の送信部の
ように、通信部を用いて2値画像(勿論符号化して)を
装置外部へ出力する2値画像送信装置であってもよい。
また、さらに、2値画像出力部8は、磁気ディスクなど
の外部記憶装置などにより、2値画像を入力するインタ
ーフェース装置であってもよい。
[Second Embodiment] The binary image acquisition unit 1 in the first embodiment does not necessarily need to be an image reader, and may be, for example, a receiving unit of a facsimile apparatus.
It may be a binary image receiving device that inputs a binary image from outside the device via the communication unit. Also, the binary image output unit 8 in the first embodiment need not necessarily be a hard copy device. For example, a binary image (of course, encoded) using a communication unit like a transmission unit of a facsimile machine. May be output to the outside of the apparatus.
Further, the binary image output unit 8 may be an interface device for inputting a binary image from an external storage device such as a magnetic disk.

【0076】[第3実施例]前記第1の実施例の構成に
加え、図27に示すような構成の装置で実現することも
可能である。即ち、前記第1の実施例でのアウトライン
変倍部5の入力は、アウトライン抽出用画像作成部4の
出力ではなく、2値画像獲得部1の出力10を直接入力
する構成としても実現可能である。この場合、前記第1
の実施例に比して、アウトライン変倍部5で必要となる
メモリ容量や処理時間が増加する場合があるが、アウト
ライン抽出用画像作成部4が不要となるため、アウトラ
イン変倍部5以外の部分で、機器構成を簡略にでき、処
理速度を向上できるという利点がある。特に、疑似中間
調成分が少ない画像を対象とした機器の場合に、有効で
ある。
[Third Embodiment] In addition to the configuration of the first embodiment, the present invention can be realized by an apparatus having a configuration as shown in FIG. That is, the input of the outline scaling unit 5 in the first embodiment can be realized by a configuration in which the output 10 of the binary image acquisition unit 1 is directly input instead of the output of the outline extraction image generation unit 4. is there. In this case, the first
Although the memory capacity and processing time required by the outline scaling unit 5 may be increased as compared with the embodiment, the outline extraction image creating unit 4 is not required, and therefore, the outline scaling unit 5 and the other units may be used. There is an advantage that the device configuration can be simplified and the processing speed can be improved. In particular, this is effective for a device that targets an image with a small pseudo halftone component.

【0077】[第4実施例]前述の図26に示した、前
記第1の実施例における選択合成部7は、図28に示す
構成でも実現可能である。
[Fourth Embodiment] The selective combining section 7 in the first embodiment shown in FIG. 26 described above can also be realized by the configuration shown in FIG.

【0078】即ち、図26の疑似中間調変倍済画像デー
タバッファ74と合成画像データバッファ76を共通化
して、バッファの数を減らすことが可能である。
That is, it is possible to reduce the number of buffers by sharing the pseudo halftone scaled image data buffer 74 and the composite image data buffer 76 shown in FIG.

【0079】図28において、選択的書き込み回路77
は、変倍済像域判定結果用データバッファ72から出力
される像域判定結果に基づき、文字・線画成分と判定さ
れた画素の場合のみ、アウトライン変倍済画像データバ
ッファ73の出力を疑似中間調変倍済画像データ及び合
成画像データ両用バッファ78に書き込むという処理を
ラスタ走査形式で行う。この場合、前記第1の実施例に
比して、選択合成を行う回路(選択的書き込み回路7
7)の構成が複雑になるが、必要なバッファの数を1つ
減らせる効果がある。
Referring to FIG. 28, selective write circuit 77
Is based on the image area determination result output from the scaled image area determination result data buffer 72, and outputs the pseudo-intermediate output of the outline scaled image data buffer 73 only when the pixel is determined to be a character / line drawing component. The process of writing to the buffer 78 for both adjusted and scaled image data and the composite image data is performed in a raster scanning format. In this case, as compared with the first embodiment, a circuit for performing selective synthesis (selective writing circuit 7) is used.
Although the configuration of 7) is complicated, there is an effect that the number of necessary buffers can be reduced by one.

【0080】これまで説明した実施例における疑似中間
調変倍部6で行う変倍処理は、例えば、日経エレクトロ
ニクス1992,5,25号(No. 555)pp.20
7−210に紹介されている平均濃度保存法(MD法)
であってもよい。
The scaling process performed by the pseudo halftone scaling unit 6 in the embodiment described above is described in, for example, Nikkei Electronics 1992, 5, 25 (No. 555) pp. 20
Mean density preservation method (MD method) introduced in 7-210
It may be.

【0081】また、疑似中間調変倍部6は、入力画像
を、一時的に多値画像に逆量子化することなく、2値画
像データとして、そのままSPC処理で変倍し、SPC
処理結果として得られる2値データをもって、疑似中間
調変倍部6の出力とするように構成してもよい。
The pseudo halftone scaling unit 6 scales the input image as binary image data by SPC processing without temporarily dequantizing the input image into a multivalued image.
The binary data obtained as a result of the processing may be configured to be output from the pseudo halftone scaling unit 6.

【0082】この場合には、かかる部分の構成は簡素化
され、程々の画質を低コストで実現可能とするメリット
を有する。
In this case, the configuration of such a portion is simplified, and there is an advantage that moderate image quality can be realized at low cost.

【0083】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置に本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できる。
The present invention may be applied to a system constituted by a plurality of devices or to an apparatus constituted by one device. The present invention can also be applied to a case where the present invention is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0084】従って、例えば原稿画像を読み取るスキャ
ナ装置と、読み込んだ画像データを処理するホストコン
ピュータ、さらには、その出力画像を形成するプリンタ
で構成できることは勿論である。又、画像を入力し、入
力した画像を本実施例に係る処理を行い、処理した画像
を出力するファクシミリ装置にも適用できる。
Therefore, it is needless to say that, for example, a scanner device for reading an original image, a host computer for processing the read image data, and a printer for forming the output image can be used. Further, the present invention can also be applied to a facsimile apparatus which receives an image, processes the input image according to the present embodiment, and outputs the processed image.

【0085】また、実施例における変倍処理するもとも
との理由は、文字通り画像の拡大や縮小も含まれるが、
例えば2値画像獲得部1より入力される画像の解像度と
2値画像出力部8の出力解像度が異なる場合に、これら
画像間の画像サイズを同じにするための処理(解像度変
換処理)にも用いられる。
The original reason for performing the scaling process in the embodiment includes literally enlargement and reduction of the image.
For example, when the resolution of the image input from the binary image acquisition unit 1 and the output resolution of the binary image output unit 8 are different, the image processing is also used for processing for equalizing the image size between these images (resolution conversion processing). Can be

【0086】以上説明したように本実施例によれば、文
字・線画成分と疑似中間調成分それぞれに対して適切な
変倍処理を施して画像を変倍する場合に、入力画像に対
して文字・線画成分に適切な変倍処理と疑似中間調成分
に適切な変倍処理を施して2枚の画像を作成した後、像
域判定により画像を選択および合成することにより、文
字・線画成分と疑似中間調成分に誤判定が生じた場合で
も良好な画質の変倍画像を得ることが可能となる。
As described above, according to this embodiment, when the image is scaled by performing appropriate scaling processing on each of the character / line drawing component and the pseudo halftone component, a character・ Applying appropriate scaling processing to the line drawing component and appropriate scaling processing to the pseudo-halftone component to create two images, and then selecting and combining the images by image area determination, the character / line drawing component and Even in the case where an erroneous determination occurs in the pseudo halftone component, it is possible to obtain a scaled image of good image quality.

【0087】更に本実施例によれば、文字・線画成分に
適した変倍処理へ入力する黒画素を、文字・線画成分と
判定した黒画素およびその周辺にある黒画素に限定する
ことにより、変倍処理を行いながら、必要となるメモリ
容量や処理時間を増やさないようにできる効果がある。
Further, according to the present embodiment, the black pixels to be input to the scaling process suitable for the character / line drawing component are limited to the black pixel determined to be the character / line drawing component and the black pixels around the black pixel. There is an effect that the required memory capacity and processing time are not increased while performing the scaling process.

【0088】[0088]

【発明の効果】以上説明したように本発明によれば、文
字・線画成分と疑似中間調成分に誤判定が生じた場合で
も良好な画質の変倍画像を得ることができる効果があ
る。
As described above, according to the present invention, it is possible to obtain a scaled image having good image quality even when an erroneous determination occurs between a character / line drawing component and a pseudo halftone component.

【0089】また本発明によれば、入力画像に対して文
字・線画成分に適切な変倍処理と疑似中間調成分に適切
な変倍処理を施して2枚の画像を作成した後、像域判定
により2枚の画像を選択および合成することにより、良
質の変倍画像を得ることができる効果がある。
Further, according to the present invention, the input image is subjected to an appropriate scaling process for the character / line image component and an appropriate scaling process for the pseudo halftone component to create two images, and By selecting and combining two images based on the determination, there is an effect that a high-quality zoomed image can be obtained.

【0090】また本発明によれば、文字・線画成分に適
した変倍処理への入力における黒画素を文字・線画成分
と判定した黒画素およびその周辺にある黒画素に限定す
ることにより、かかる処理を行いながらも必要となるメ
モリ容量や処理時間の増大を抑えることができるという
効果がある。
According to the present invention, the black pixels in the input to the scaling process suitable for the character / line drawing component are limited to the black pixel determined to be the character / line drawing component and the black pixels around the black pixel. There is an effect that it is possible to suppress an increase in required memory capacity and processing time while performing processing.

【0091】[0091]

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1実施例の画像処理装置の構成を示
すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention.

【図2】本実施例の像域判定部の構成を示すブロック図
である。
FIG. 2 is a block diagram illustrating a configuration of an image area determination unit according to the present exemplary embodiment.

【図3】本実施例の像域判定部のデータ保持部および同
期性判定部の処理内容を説明する図である。
FIG. 3 is a diagram illustrating processing performed by a data holding unit and a synchronization determining unit of the image area determining unit according to the embodiment.

【図4】本実施例の像域判定部のデータ保持部の構成を
示す図である。
FIG. 4 is a diagram illustrating a configuration of a data holding unit of an image area determination unit according to the present embodiment.

【図5】像域判定における孤立中心画素判定処理を説明
する図である。
FIG. 5 is a diagram illustrating an isolated center pixel determination process in image area determination.

【図6】像域判定における孤立画素判定処理を説明する
図である。
FIG. 6 is a diagram illustrating an isolated pixel determination process in image area determination.

【図7】像域判定において孤立画素の判定に参照される
領域を示す図である。
FIG. 7 is a diagram illustrating an area referred to in determining an isolated pixel in image area determination.

【図8】像域判定における高周波成分の判定処理内容を
説明する図である。
FIG. 8 is a diagram illustrating the content of a determination process of a high frequency component in image area determination.

【図9】本実施例のアウトライン抽出用画像作成部の構
成を示すブロック図である。
FIG. 9 is a block diagram illustrating a configuration of an outline extraction image creating unit according to the present embodiment.

【図10】アウトライン抽出用画像作成部のデータ保持
部の処理内容を説明する図である。
FIG. 10 is a diagram for explaining processing performed by a data holding unit of the outline extraction image creating unit;

【図11】本実施例のアウトライン変倍部の構成を示す
ブロック図である。
FIG. 11 is a block diagram illustrating a configuration of an outline scaling unit of the present embodiment.

【図12】ラスタ走査型の2値画像から粗輪郭ベクトル
の抽出を説明する図である。
FIG. 12 is a diagram illustrating extraction of a rough contour vector from a raster scanning binary image.

【図13】ラスタ走査型の2値画像から粗輪郭ベクトル
の抽出を説明する図である。
FIG. 13 is a diagram illustrating extraction of a rough contour vector from a raster scanning type binary image.

【図14】ラスタ走査型の2値画像から粗輪郭ベクトル
の抽出を説明する図である。
FIG. 14 is a diagram illustrating extraction of a rough contour vector from a raster scanning type binary image.

【図15】実施例のアウトライン抽出部より出力される
粗輪郭ベクトルを説明する図である。
FIG. 15 is a diagram illustrating a coarse contour vector output from an outline extraction unit according to the embodiment.

【図16】実施例のアウトライン平滑・変倍部の構成を
示すブロック図である。
FIG. 16 is a block diagram illustrating a configuration of an outline smoothing / magnifying unit according to the embodiment.

【図17】実施例のアウトライン平滑・変倍部の具体的
な構成例を示す図である。
FIG. 17 is a diagram illustrating a specific configuration example of an outline smoothing / magnifying unit according to the embodiment.

【図18】実施例のアウトライン平滑・変倍処理の概略
を示すフローチャートである。
FIG. 18 is a flowchart illustrating an outline of outline smoothing / magnification processing according to the embodiment.

【図19】第一平滑化の処理動作を説明する図である。FIG. 19 is a diagram illustrating a processing operation of first smoothing.

【図20】第二平滑化後の輪郭データを説明する図であ
る。
FIG. 20 is a diagram illustrating contour data after second smoothing.

【図21】第二平滑化を説明する図である。FIG. 21 is a diagram illustrating second smoothing.

【図22】実施例の疑似中間調変倍部の構成を示すブロ
ック図である。
FIG. 22 is a block diagram illustrating a configuration of a pseudo halftone magnification unit according to the embodiment.

【図23】疑似中間調変倍部における逆量子化処理を説
明する図である。
FIG. 23 is a diagram illustrating the inverse quantization processing in the pseudo halftone scaling unit.

【図24】疑似中間調変倍部における逆量子化処理を説
明する図である。
FIG. 24 is a diagram illustrating the inverse quantization processing in the pseudo halftone scaling unit.

【図25】疑似中間調変倍部における逆量子化処理を説
明する図である。
FIG. 25 is a diagram illustrating the inverse quantization processing in the pseudo halftone scaling unit.

【図26】実施例の選択合成部の構成を示すブロック図
である。
FIG. 26 is a block diagram illustrating a configuration of a selective combining unit according to an embodiment.

【図27】本発明の第2実施例における画像処理装置の
構成を示すブロック図である。
FIG. 27 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment of the present invention.

【図28】本発明の第4実施例における選択合成部の構
成を示すブロック図である。
FIG. 28 is a block diagram illustrating a configuration of a selective combining unit according to a fourth embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 2値画像獲得部 2 像域判定部 3 像域判定結果変倍部 4 アウトライン抽出用画像作成部 5 アウトライン変倍部 6 疑似中間調変倍部 7 選択合成部 8 2値画像出力部 21 データ保持部 22 像域判定条件部 27 孤立画素判定部 28 周期性判定部 29 高周波成分判定部 54 倍率設定部 55 第1平滑化・変倍部 56 第2平滑化部 61 逆量子化処理部 62 SPC変倍処理部 63 擬似中間調処理部 510 アウトライン抽出回路 Reference Signs List 1 binary image acquisition unit 2 image area determination unit 3 image area determination result scaling unit 4 outline extraction image creation unit 5 outline scaling unit 6 pseudo halftone scaling unit 7 selective synthesis unit 8 binary image output unit 21 data Holding unit 22 Image area determination condition unit 27 Isolated pixel determination unit 28 Periodicity determination unit 29 High frequency component determination unit 54 Magnification setting unit 55 First smoothing / magnifying unit 56 Second smoothing unit 61 Inverse quantization processing unit 62 SPC Variable magnification processing section 63 Pseudo halftone processing section 510 Outline extraction circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−176162(JP,A) 特開 昭63−256055(JP,A) 特開 平3−57083(JP,A) 特開 平5−211602(JP,A) 特開 昭63−35071(JP,A) 特開 平2−9268(JP,A) 特開 平4−101564(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 3/40 G06T 5/00 H04N 1/393 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-5-176162 (JP, A) JP-A-62-256055 (JP, A) JP-A-3-57083 (JP, A) JP-A-5-17683 211602 (JP, A) JP-A-63-35071 (JP, A) JP-A-2-9268 (JP, A) JP-A-4-101564 (JP, A) (58) Fields investigated (Int. 7 , DB name) G06T 3/40 G06T 5/00 H04N 1/393

Claims (18)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力される2値画像データから輪郭ベク
トルを抽出し、抽出された輪郭ベクトルを変倍し、変倍
された輪郭ベクトルに基づき変倍画像データを生成する
第1の変倍手段と、入力される2値画像データから、前記第1の変倍手段と
異なる方式で変倍画像データを生成する 第2の変倍手段
と、入力される2値画像データに基づき、疑似中間調領域の
画素であるか文字線画領域の画素である かを判定する像
域判定手段と、入力される2値画像データに基づき孤立点でないと判定
された注目画素であり、前記注目画素の周辺画素の1以
上の画素が文字線画成分であって、かつ前記注目画素が
黒画素である場合、前記注目画素の画像データとして黒
画素を示す2値画像データを前記第1の変倍手段に出力
するアウトライン抽出用画像作成手段と、 前記像域判定手段により文字線画領域と判定されると前
記第1の変倍手段から出力される変倍画像データを選択
し、疑似中間調領域と判定されると前記第2の変倍手段
から出力される変倍画像データを選択して合成画像デー
タとして出力する選択合成手段と、 を有することを特徴とする画像処理装置。
1. An image processing method comprising the steps of:
Torch, scale the extracted contour vector, and scale
First scaling means for generating scaled image data based on the obtained outline vector, and the first scaling means based on the input binary image data.
A second scaling unit for generating scaled image data by a different method, and a pseudo halftone area based on the input binary image data.
Image area determining means for determining whether the pixel is a pixel or a pixel in a character line drawing area, and determining that the pixel is not an isolated point based on the input binary image data
Of the pixel of interest, and one or more of the pixels surrounding the pixel of interest.
The upper pixel is a character / line drawing component, and the pixel of interest is
If the pixel is a black pixel, the image data of the pixel of interest is black.
Outputs binary image data indicating pixels to the first scaling unit
The outline extraction image creating means to be executed and the image area determination means
Select the scaled image data output from the first scaler
And if it is determined that the area is a pseudo halftone area, the second variable power means
Select the scaled image data output from the
The image processing apparatus characterized by comprising: a selective combining means for outputting as data, the.
【請求項2】 前記第1及び第2変倍手段は、任意の倍
率で変倍することを特徴とする請求項1に記載の画像処
理装置。
2. The image processing apparatus according to claim 1, wherein the first and second scaling units change the magnification at an arbitrary magnification.
【請求項3】 前記像域判定手段は、注目画素が孤立画
素か否かを判定する孤立画素判定手段と、該注目画素が
孤立画素領域にあるか否かを判定する孤立画素領域判定
手段と、前記注目画素の周辺画素の画素値が所定画素周
期で同じかどうかどうかを判定する周期性判定手段と、
近接する画素同士で濃度変化が頻繁に起こっているか否
かを判定する高周波成分判定手段とを含み、前記孤立画
素判定手段、前記孤立画素領域判定手段、前記周期性判
定手段および前記高周波成分判定手段の判定結果に基づ
いて注目画素が文字・線画領域にあるか、疑似中間調領
域にあるかを判定することを特徴とする請求項1に記載
の画像処理装置。
3. An isolated pixel determining unit that determines whether a pixel of interest is an isolated pixel, and an isolated pixel region determining unit that determines whether the pixel of interest is in an isolated pixel region. Periodicity determining means for determining whether the pixel value of a peripheral pixel of the target pixel is the same in a predetermined pixel cycle,
High-frequency component determining means for determining whether or not a density change frequently occurs between adjacent pixels, the isolated pixel determining means, the isolated pixel area determining means, the periodicity determining means, and the high-frequency component determining means. 2. The image processing apparatus according to claim 1, wherein it is determined whether the target pixel is in a character / line drawing area or a pseudo halftone area based on the determination result.
【請求項4】 前記第1の変倍手段は、与えられた2値
画像のエッジに沿った輪郭ベクトルデータを抽出する輪
郭ベクトル抽出手段と、抽出した輪郭ベクトルを平滑化
する平滑化手段と、平滑化されたベクトルデータを構成
する座標データを変倍して、当該変倍後の座標データに
基づいて輪郭を描画し、当該輪郭線内をドットで埋める
手段とを含むことを特徴とする請求項1に記載の画像処
理装置。
4. The first scaling unit includes: a contour vector extracting unit that extracts contour vector data along an edge of a given binary image; a smoothing unit that smoothes the extracted contour vector; Means for scaling the coordinate data constituting the smoothed vector data, drawing an outline based on the scaled coordinate data, and filling the outline with dots. Item 2. The image processing device according to Item 1.
【請求項5】 前記平滑化手段は、前記輪郭ベクトル抽
出手段で抽出した各輪郭ベクトルの長さにより平滑化の
程度を変えることを特徴とする請求項4に記載の画像処
理装置。
5. The image processing apparatus according to claim 4, wherein said smoothing means changes a degree of smoothing according to a length of each contour vector extracted by said contour vector extracting means.
【請求項6】 前記第2の変倍手段は、与えられた2値
画像中の注目画素および当該注目画素近傍の2値画素群
に基づいて、当該注目画素を多値化する多値化手段と、
該多値化手段で与えられた多値画素データを再度疑似中
間調表現で2値化する2値化手段とを含むことを特徴と
する請求項1に記載の画像処理装置。
6. The multi-level converting means for multi-leveling a pixel of interest based on a pixel of interest in a given binary image and a group of binary pixels in the vicinity of the pixel of interest. When,
2. The image processing apparatus according to claim 1, further comprising: a binarizing unit that binarizes the multi-valued pixel data provided by the multi-level converting unit again using pseudo halftone expression.
【請求項7】 前記選択合成手段は、前記像域判定手段
による判定結果に基づいて前記第1及び第2の変倍手段
のそれぞれで変倍された画素ごとに選択して合成するこ
とを特徴とする請求項1に記載の画像処理装置。
7. The image combining device according to claim 1, wherein the selecting and combining unit includes:
The first and second scaling means based on the determination result by
2. The image processing apparatus according to claim 1, wherein the image processing apparatus selects and synthesizes each of the pixels scaled by each of the steps.
【請求項8】 前記像域判定手段による判定結果を示す
2値画像を変倍する第3の変倍手段を有し、前記選択合
成手段は、前記第3の変倍手段により変倍された結果に
基づき、前記第1の変倍手段から出力される変倍画像デ
ータおよび前記第2の変倍手段から出力される変倍画像
データのいずれかの変倍画像データを選択することを特
徴とする請求項1に記載の画像処理装置。
8. A result of the judgment by the image area judging means is shown.
A third scaling means for scaling the binary image;
Generating means for converting the result of the scaling by the third scaling means;
Based on the scaled image data output from the first scaler.
Data and a scaled image output from the second scaling means
The image processing apparatus according to claim 1, wherein any one of the scaled image data is selected .
【請求項9】 前記選択合成手段で合成された2値画像
を出力する出力手段を更に有することを特徴とする請求
項1に記載の画像処理装置。
9. The image processing apparatus according to claim 1, further comprising an output unit that outputs a binary image synthesized by the selection synthesis unit.
【請求項10】 前記出力手段は前記選択合成手段で合
成された2値画像を符号化し、回線を介して出力する通
信手段であることを特徴とする請求項9に記載の画像処
理装置。
10. The image processing apparatus according to claim 9, wherein the output unit is a communication unit that encodes the binary image synthesized by the selection synthesis unit and outputs the encoded binary image via a line.
【請求項11】 入力される2値画像データから抽出さ
れた輪郭ベクトルを変倍し、変倍された輪郭ベクトルに
基づき変倍画像データを生成する第1の変倍工程と、入力される2値画像データから、前記第1の変倍工程と
異なる方式で変倍画像 データを生成する 第2の変倍工程
と、入力される2値画像データに基づき、疑似中間調領域の
画素であるか文字線画領域の画素である かを判定する像
域判定工程と、入力される2値画像データに基づき孤立点でないと判定
された注目画素であり、前記注目画素の周辺画素の1以
上の画素が文字線画成分であって、かつ前記注目画素が
黒画素である場合、前記注目画素の画像データとして黒
画素を示す2値画像データを前記第1の変倍工程に出力
するアウトライン抽出用画像作成工程と、 前記像域判定工程により文字線画領域と判定されると前
記第1の変倍工程により出力される変倍画像データを選
択し、疑似中間調領域と判定されると前記第2の変倍工
程により出力される変倍画像データを選択して合成画像
データとして出力する選択合成工程と、 を有することを特徴とする画像処理方法。
11. An image extracted from input binary image data.
Scales the scaled contour vector to a scaled contour vector.
A first scaling step of generating scaled image data based on the input image data;
A second scaling step of generating scaled image data by a different method, and a pseudo halftone area based on the input binary image data.
An image area determining step of determining whether the pixel is a pixel or a pixel in a character / line drawing area, and determining that the pixel is not an isolated point based on the input binary image data
Of the pixel of interest, and one or more of the pixels surrounding the pixel of interest.
The upper pixel is a character / line drawing component, and the pixel of interest is
If the pixel is a black pixel, the image data of the pixel of interest is black.
Outputting binary image data indicating pixels to the first scaling step;
An outline extraction image creating step to be performed, and the image area determination step
Select the scaled image data output in the first scaling step.
And if it is determined that the area is a pseudo halftone area, the second variable magnification
Select the scaled image data output according to the process
An image processing method , comprising: selecting and synthesizing the data as data .
【請求項12】 前記第1および第2の変倍工程におけ
る変倍率を任意の値に設定できることを特徴とする請求
項11に記載の画像処理方法。
12. The image processing method according to claim 11, wherein the magnification in the first and second magnification steps can be set to an arbitrary value.
【請求項13】 前記像域判定工程は、注目画素が孤立
画素か否かを判定する孤立中心画素判定工程と、注目画
素が孤立画素領域にあるか否かを判定する孤立画素領域
判定工程と、画素値が所定画素周期で同じになっている
かどうかを判定する周期性判定工程と、近接する画素ど
うしで濃度変化が頻繁に起こっているか否かを判定する
高周波成分判定工程とを含み、前記孤立中心画素判定工
程の、前記孤立画素領域判定工程、前記周期性判定工程
および前記高周波成分判定工程の判定結果に基づいて注
目画素が文字線画領域にあるのか疑似中間調領域にある
のかを判定することを特徴とする請求項11に記載の画
像処理方法。
13. The image area determining step includes: an isolated center pixel determining step of determining whether the pixel of interest is an isolated pixel; and an isolated pixel area determining step of determining whether the pixel of interest is in an isolated pixel area. A periodicity determining step of determining whether a pixel value is the same in a predetermined pixel cycle, and a high-frequency component determining step of determining whether a density change frequently occurs between adjacent pixels, It is determined whether the pixel of interest is in the character line drawing area or the pseudo halftone area based on the determination results of the isolated pixel area determination step, the periodicity determination step, and the high frequency component determination step in the isolated center pixel determination step. The image processing method according to claim 11, wherein:
【請求項14】 前記第1の変倍工程は、与えられた2
値画像のエッジに沿った輪郭ベクトルデータを抽出する
輪郭ベクトル抽出工程と、抽出した輪郭ベクトルを平滑
化する平滑化工程と、平滑化されたベクトルデータを構
成する座標データを変倍して、当該変倍後の座標データ
に基づいて輪郭を描画し、当該輪郭線内をドットで埋め
る工程とを含むことを特徴とする請求項11に記載の画
像処理方法。
14. The method according to claim 1, wherein the first zooming step includes a step of:
A contour vector extracting step of extracting contour vector data along the edge of the value image, a smoothing step of smoothing the extracted contour vector, and scaling of coordinate data constituting the smoothed vector data. 12. The image processing method according to claim 11, further comprising: drawing an outline based on the coordinate data after scaling, and filling the outline with dots.
【請求項15】 前記平滑化工程は、前記輪郭ベクトル
抽出工程で抽出した各輪郭ベクトルの長さにより平滑化
の程度を変えることを特徴とする請求項14に記載の画
像処理方法。
15. The image processing method according to claim 14, wherein in the smoothing step, a degree of smoothing is changed according to a length of each contour vector extracted in the contour vector extracting step.
【請求項16】 前記第2の変倍工程は、与えられた2
値画像中の注目画素および当該注目画素近傍の2値画素
群に基づいて、注目画素を多値化する多値化工程と、該
多値化工程で与えられた多値画素データを再度疑似中間
調表現で2値化する2値化工程とを含むことを特徴とす
る請求項11に記載の画像処理方法。
16. The method according to claim 16, wherein the second zooming step includes a step of:
A multi-value process for multi-leveling the pixel of interest based on the pixel of interest in the value image and the binary pixel group near the pixel of interest; 12. The image processing method according to claim 11, further comprising a binarization step of performing binarization in a tone expression.
【請求項17】 前記選択合成工程では、前記像域判定
工程による判定結果に基づいて前記第1及び第2の変倍
工程により変倍された画素ごとに選択して合成すること
を特徴とする請求項11に記載の画像処理方法。
17. The method according to claim 17, wherein in the selective combining step, the image area determination is performed.
The first and second magnifications based on the determination result of the process
12. The image processing method according to claim 11, wherein each of the pixels scaled by the step is selected and synthesized.
【請求項18】 前記像域判定工程における判定結果を
示す2値画像を変倍する第3の変倍工程を有し、前記選
択合成工程では、前記第3の変倍工程で変倍された結果
に基づき、前記第1の変倍工程により出力される変倍画
像データおよび前記第2の変倍工程により出力される変
倍画像データのいずれかの変倍画像データを選択する
とを特徴とする請求項11に記載の画像処理方法。
18. A determination result in the image area determination step.
A third scaling step of scaling the binary image shown,
In the selective combining step, the result of scaling in the third scaling step is
Based on the variable magnification image output by the first magnification step
Image data and a scaling output in the second scaling step.
The image processing method according to claim 11, wherein the this <br/> for selecting one of the scaled image data magnification image data.
JP6135886A 1993-10-26 1994-06-17 Image processing method and apparatus Expired - Fee Related JP3054315B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP6135886A JP3054315B2 (en) 1994-06-17 1994-06-17 Image processing method and apparatus
EP94116820A EP0650287B1 (en) 1993-10-26 1994-10-25 Image processing method and apparatus
DE69433603T DE69433603D1 (en) 1993-10-26 1994-10-25 Image processing method and device
US08/826,876 US5832141A (en) 1993-10-26 1997-04-07 Image processing method and apparatus using separate processing for pseudohalf tone area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6135886A JP3054315B2 (en) 1994-06-17 1994-06-17 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH087090A JPH087090A (en) 1996-01-12
JP3054315B2 true JP3054315B2 (en) 2000-06-19

Family

ID=15162093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6135886A Expired - Fee Related JP3054315B2 (en) 1993-10-26 1994-06-17 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3054315B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5297347B2 (en) * 2009-11-09 2013-09-25 Necエンジニアリング株式会社 Pixel number conversion method, program for executing the same, and pixel number conversion apparatus

Also Published As

Publication number Publication date
JPH087090A (en) 1996-01-12

Similar Documents

Publication Publication Date Title
US5832141A (en) Image processing method and apparatus using separate processing for pseudohalf tone area
JP3176195B2 (en) Image processing device
JP3167120B2 (en) Image processing apparatus and method
JP2967011B2 (en) Image processing method and apparatus
US6289136B1 (en) Image processing method and apparatus
JP3026706B2 (en) Image processing device
JP3007001B2 (en) Image processing apparatus and method
JP3054315B2 (en) Image processing method and apparatus
JP2562432B2 (en) Image processing device
JP2784278B2 (en) Image scaling processor
JPH0652304A (en) Device and method for processing image
JP3054299B2 (en) Image processing apparatus and method
JPH07118002B2 (en) Image processing device
JP3539552B2 (en) Image processing device
JP3624153B2 (en) Image processing apparatus and image processing method
JP2000149009A (en) Image processor
JP3054338B2 (en) Image processing apparatus and method
JPH0993424A (en) Image processor
JP2915700B2 (en) Image processing method and apparatus
JPH05342340A (en) Method for picture processing and device therefor
JP3162918B2 (en) Image processing apparatus and method
JP2788554B2 (en) Image processing method and apparatus
JPH07262351A (en) Image processor and control method for the same
JPH08289139A (en) Image processor and image processing method
JP3347395B2 (en) Image processing apparatus and method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000310

LAPS Cancellation because of no payment of annual fees