Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2750412B2 - Image processing device - Google Patents
[go: Go Back, main page]

JP2750412B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2750412B2
JP2750412B2 JP4357168A JP35716892A JP2750412B2 JP 2750412 B2 JP2750412 B2 JP 2750412B2 JP 4357168 A JP4357168 A JP 4357168A JP 35716892 A JP35716892 A JP 35716892A JP 2750412 B2 JP2750412 B2 JP 2750412B2
Authority
JP
Japan
Prior art keywords
line data
line
data
operation means
digit
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 - Lifetime
Application number
JP4357168A
Other languages
Japanese (ja)
Other versions
JPH06187439A (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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing Co Ltd
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 Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP4357168A priority Critical patent/JP2750412B2/en
Publication of JPH06187439A publication Critical patent/JPH06187439A/en
Application granted granted Critical
Publication of JP2750412B2 publication Critical patent/JP2750412B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、文字、イラスト等の
線画画像の画像データを処理することにより、線画部分
を細らせる画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for processing image data of a line drawing image such as a character or an illustration to reduce a line drawing portion.

【0002】[0002]

【従来の技術】画像データを処理する画像処理分野にお
いては、文字、イラストや絵柄をはめ込む領域等の線画
部分(以下、単に線画と記す。)に対して収縮(細ら
せ)処理を施すことが有効なことがある。例えば、線画
の境界部分における小さな凹凸として出現する形状の変
形(いわゆる雑音)を除去する場合に有効である。ま
た、文字の識別においては、文字の中心線のつながりが
重要な意味を持ち、多くの場合その太さはあまり意味が
ないことから、文字の判定のために文字の中心線を求め
る場合があるが、この場合にも有効である。
2. Description of the Related Art In the field of image processing for processing image data, a contraction (thinning) process is performed on a line drawing portion (hereinafter simply referred to as a line drawing) such as a region into which a character, an illustration or a pattern is fitted. May be valid. For example, it is effective in removing shape deformation (so-called noise) that appears as small irregularities at the boundary of a line drawing. Also, in character identification, the connection of the center line of a character has an important meaning, and in many cases, the thickness is not so significant, so the center line of the character may be obtained for character determination. Is also effective in this case.

【0003】従来、こうした細らせ処理の手法として、
4近傍ウインドウを用いたもの、8近傍ウィンドウを用
いたものがある。即ち、線画を示すビットマップデータ
各画素毎に4近傍ウインドウ又は8近傍ウインドウを掛
けて、そのウィンドウ内に一つでも値0が含まれる場合
に値1である中心画素Pを値0とすることで、線画部分
は細らせた形状となる。4近傍ウインドウでは、図17
の(a)に示すように、中心画素Pの上下左右の4つの
周辺画素(図中、ハッチングの部分)が選択され、8近
傍ウインドウでは、図17の(b)に示すように中心画
素Pの周囲にある8つの周辺画素(図中、ハッチング部
分)が選択される。これら周辺画素の内に値1(線画部
分)と値0(線画以外の背景部分)とが混在している場
合、その値0の画素の方向で線画が切れていることを意
味することから、値1である中心画素Pを値0とするこ
とで、線画部分の境界をその中心画素Pの位置まで移動
することができる。
Conventionally, as a method of such a thinning processing,
There are those using a four-neighbor window and those using an eight-neighbor window. That is, the bitmap data indicating the line drawing is multiplied by 4 neighborhood windows or 8 neighborhood windows for each pixel, and the central pixel P having a value of 1 is set to a value of 0 when even one value is included in the window. Thus, the line drawing portion has a narrowed shape. In the 4 neighborhood window, FIG.
As shown in FIG. 17A, four peripheral pixels (hatched portions in the figure) above, below, left and right of the central pixel P are selected, and in the eight-neighbor window, as shown in FIG. 8 peripheral pixels (hatched portions in the figure) around the pixel are selected. When the value 1 (line drawing portion) and the value 0 (background portion other than the line drawing) are mixed in these peripheral pixels, it means that the line drawing is cut off in the direction of the pixel having the value 0. By setting the center pixel P having the value 1 to the value 0, the boundary of the line drawing portion can be moved to the position of the center pixel P.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記従
来の技術では、画像を表すビットマップデータを4近傍
ウィンドウまたは8近傍ウィンドウ内に逐一取り込み、
その後、論理演算を行なうといった作業を、処理する画
像領域全体に対して各画素毎に順に行なうためにかなり
の処理時間がかかるといった問題があった。
However, in the prior art, bitmap data representing an image is fetched one by one into a 4-neighbor window or an 8-neighbor window.
After that, there is a problem that it takes a considerable processing time to perform operations such as performing a logical operation sequentially on each pixel for the entire image area to be processed.

【0005】この発明は、従来技術における上述の課題
を解決するためになされたものであり、線画の細らせを
高速度で実現することのできる画像処理装置を提供する
ことを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems in the prior art, and has as its object to provide an image processing apparatus capable of realizing a thinning of a line drawing at a high speed.

【0006】[0006]

【課題を解決するための手段】上述の課題を解決するた
め、本発明は、以下に示す構成を採った。本発明の画像
処理装置の第1の構成は、文字、イラスト等の線画画像
をビットマップ形式で表す画像データを処理することに
より、細らせの対象領域となる線画部分を細らせる画像
処理装置であって、前記ビットマップ形式の画像データ
の内の互いに隣接する主走査方向の3ラインをライン毎
にそれぞれ記憶するラインデータ記憶手段と、該ライン
データ記憶手段に記憶された3つのラインデータにおい
て同一桁位置の組毎にデータの論理積を演算して新たな
ラインデータを作り出す第1論理積演算手段と、該第1
論理積演算手段にて作り出されたラインデータを1ビッ
トだけ上位桁方向に桁移動する左シフト演算手段と、前
記第1論理積演算手段にて作り出されたラインデータを
1ビットだけ下位桁方向に桁移動する右シフト演算手段
と、前記第1論理積演算手段,左シフト演算手段および
右シフト演算手段にて作り出された3つのラインデータ
において同一桁位置の組毎にデータの論理積を演算して
細らせラインデータを作り出す第2論理積演算手段とを
備えることを、要旨としている。
In order to solve the above-mentioned problems, the present invention has the following arrangement. A first configuration of the image processing apparatus according to the present invention is an image processing apparatus that processes a line drawing image such as a character or an illustration in a bitmap format to thereby reduce a line drawing portion which is a target area to be reduced. A line data storage means for storing, for each line, three lines in the main scanning direction which are adjacent to each other in the bitmap format image data; and three line data stored in the line data storage means. A first logical product calculating means for calculating logical product of data for each set of the same digit position to generate new line data;
Left shift operation means for shifting the line data created by the AND operation means by one bit in the upper digit direction, and shift of the line data created by the first AND operation means in the lower digit direction by one bit Logical shift of data for each set of the same digit position in the three line data generated by the right shift operation means for shifting the digit and the first logical product operation means, the left shift operation means and the right shift operation means. The second aspect is to provide a second AND operation means for producing line data by reducing the width.

【0007】本発明の画像処理装置の第2の構成は、文
字、イラスト等の線画画像をビットマップ形式で表す画
像データを処理することにより、細らせの対象領域とな
る線画部分を細らせる画像処理装置であって、前記ビッ
トマップ形式の画像データの内の互いに隣接する主走査
方向の3ラインを第1ラインデータ,第2ラインデータ
および第3ラインデータとしてライン毎にそれぞれ記憶
するラインデータ記憶手段と、前記第1ラインデータを
1ビットだけ上位桁方向に桁移動する第1左シフト演算
手段と、前記第1ラインデータを1ビットだけ下位桁方
向に桁移動する第1右シフト演算手段と、前記第1左シ
フト演算手段および第1右シフト演算手段にて作り出さ
れた2つのラインデータと前記第1ラインデータとにお
いて同一桁位置の組毎にデータの論理和を演算して第4
ラインデータを作り出す第1論理和演算手段と、前記第
3ラインデータを1ビットだけ上位桁方向に桁移動する
第2左シフト演算手段と、前記第3ラインデータを1ビ
ットだけ下位桁方向に桁移動する第2右シフト演算手段
と、前記第2左シフト演算手段および第2右シフト演算
手段にて作り出された2つのラインデータと前記第3ラ
インデータとにおいて同一桁位置の組毎にデータの論理
和を演算して第5ラインデータを作り出す第2論理和演
算手段と、前記第2ラインデータ,第4ラインデータお
よび第5ラインデータにおいて同一桁位置の組毎にデー
タの論理積を演算して第6ラインデータを作り出す第1
論理積演算手段と、前記第6ラインデータを1ビットだ
け上位桁方向に桁移動する第3左シフト演算手段と、前
記第6ラインデータを1ビットだけ下位桁方向に桁移動
する第3右シフト演算手段と、前記第3左シフト演算手
段および第3右シフト演算手段にて作り出された2つの
ラインデータと前記第6ラインデータとにおいて同一桁
位置の組毎にデータの論理積を演算して細らせラインデ
ータを作り出す第2論理積演算手段とを備えることを、
要旨としている。
A second configuration of the image processing apparatus according to the present invention is to process a line drawing image such as a character or an illustration in a bitmap format to process a line drawing portion which is a target area to be reduced. An image processing apparatus for storing three adjacent lines in the main scanning direction in the bitmap format image data as first line data, second line data, and third line data for each line. Data storage means, first left shift operation means for shifting the first line data by one bit in the upper digit direction, and first right shift operation for shifting the first line data by one bit in the lower digit direction Means, and two line data generated by the first left shift operation means and the first right shift operation means, and the first line data having the same digit position. The calculates the logical sum of the data for each 4
First OR operation means for generating line data, second left shift operation means for shifting the third line data by one bit in the upper digit direction, and digit shift in the third line data by one bit in the lower digit direction Moving second right shift operation means; and two line data generated by the second left shift operation means and the second right shift operation means and the third line data; A second logical sum calculating means for calculating a logical sum to generate fifth line data; and calculating a logical product of data for each set of the same digit position in the second line data, the fourth line data and the fifth line data. To create sixth line data
AND operation means, third left shift operation means for shifting the sixth line data by one bit in the upper digit direction, and third right shift operation for shifting the sixth line data by one bit in the lower digit direction A logical AND of data for each set of the same digit position in the arithmetic means, the two line data generated by the third left shift arithmetic means and the third right shift arithmetic means, and the sixth line data. Having a second AND operation means for producing thinned line data,
It is a gist.

【0008】[0008]

【作用】以上のように構成された本発明の第1の画像処
理装置では、ビットマップ形式の画像データの内の互い
に隣接する主走査方向の3ラインをライン毎に、ライン
データ記憶手段によりそれぞれ記憶し、これら3つのラ
インデータの論理積となる新たなラインデータを、第1
論理積演算手段により作り出す。この新たなラインデー
タは、以下に示すウィンドウを用いた処理を画像データ
に施した結果と同じものとなる。
In the first image processing apparatus of the present invention having the above-described configuration, three lines in the main scanning direction, which are mutually adjacent in the bitmap format image data, are line-by-line by the line data storage means. The new line data which is stored and becomes the logical product of these three line data is stored in the first line data.
Generated by AND operation means. This new line data is the same as the result of applying the following processing to the image data using the window.

【0009】この処理は、図1の(a)に示すように、
副走査方向を長手方向とした1×3のウィンドウW1を
前記3つのラインデータの主走査方向に順に移動させな
がらそのウィンドウW1内の値の論理積を演算するもの
で、この結果作り出されるラインデータL1が第1論理
積演算手段により作り出されるラインデータと同じもの
となる。
This processing is performed as shown in FIG.
A logical product of values in the 1 × 3 window W1 whose longitudinal direction is in the sub-scanning direction and which is moved in the main scanning direction of the three line data in the main scanning direction is calculated. L1 is the same as the line data generated by the first AND operation means.

【0010】次いで、第1論理積演算手段により作り出
されたラインデータを1ビットだけ上位桁方向に左シフ
ト演算手段により桁移動するとともに、第1論理積演算
手段により作り出されたラインデータを1ビットだけ下
位桁方向に右シフト演算手段により桁移動し、さらに、
第1論理積演算手段,左シフト演算手段および右シフト
演算手段にて作り出された3つのラインデータの論理積
となる細らせラインデータを第2論理積演算手段により
作り出す。
Next, the line data generated by the first AND operation unit is shifted by one bit in the upper digit direction by the left shift operation unit, and the line data generated by the first AND operation unit is shifted by one bit. Only by the right shift operation means in the lower digit direction.
Thinning line data, which is a logical product of the three line data generated by the first AND operation unit, the left shift operation unit, and the right shift operation unit, is generated by the second AND operation unit.

【0011】この第2論理積演算手段により作り出され
る細らせラインデータは、第1論理演算手段により作り
出されたラインデータに対して以下に示すウィンドウを
用いた処理を施した結果と同じものとなる。第1論理積
演算手段,左シフト演算手段および右シフト演算手段に
て作り出された3つのラインデータの論理積をとるとい
うことは、図1の(b)に示すように、主走査方向を長
手方向とした3×1のウィンドウW2を第1論理積演算
手段により作り出されたラインデータL1の主走査方向
に順に移動して、そのウィンドウW2内の値の論理積を
演算していく処理と同じものとなる。
The thinned line data generated by the second logical operation means is the same as the result obtained by performing processing using the following window on the line data generated by the first logical operation means. Become. Taking the logical product of the three line data generated by the first logical product calculating means, the left shift calculating means, and the right shift calculating means means that the main scanning direction is extended in the main scanning direction as shown in FIG. The same as the process of sequentially moving the 3 × 1 window W2 in the main scanning direction of the line data L1 created by the first logical product calculating means and calculating the logical product of the values in the window W2. It will be.

【0012】従って、こうして作り出される細らせライ
ンデータは、結果的に主走査方向および副走査方向の長
さが3×3のウィンドウを走査して、そのウィンドウW
2内の値の論理積を演算して得られる結果と同じものと
なり、8近傍のウィンドウを用いた細らせ処理と同じ処
理結果が得られる。また、この発明では、ビットマップ
形式の画像データを主走査方向のライン単位で読み込
み、ライン単位で演算処理を施すことで細らせ結果を得
ることができるから、従来のようにウィンドウ内に逐一
ビットデータを取り込んで演算処理を行なう必要もな
い。
Accordingly, the thinned line data thus created scans a window having a length of 3 × 3 in the main scanning direction and the sub-scanning direction, and the window W
The result is the same as the result obtained by calculating the logical product of the values in 2, and the same processing result as the thinning process using the window near 8 is obtained. Further, according to the present invention, the image data in the bitmap format is read in line units in the main scanning direction, and a thinning result can be obtained by performing an arithmetic processing in line units. There is no need to fetch bit data and perform arithmetic processing.

【0013】次に、本発明の第2の画像処理装置の作用
を説明する。第2の画像処理装置では、ビットマップ形
式の画像データの内の互いに隣接する主走査方向の3ラ
インを第1ラインデータ,第2ラインデータおよび第3
ラインデータとしてライン毎に、ラインデータ記憶手段
によりそれぞれ記憶する。第1ラインデータを1ビット
だけ上位桁方向に第1左シフト演算手段により桁移動
し、第1ラインデータを1ビットだけ下位桁方向に第1
右シフト演算手段により桁移動し、これら桁移動した両
ラインデータと第1ラインデータとの論理和となる第4
ラインデータを第1論理和演算手段により作り出す。ま
た、第3ラインデータを1ビットだけ上位桁方向に第2
左シフト演算手段により桁移動し、第3ラインデータを
1ビットだけ下位桁方向に第2右シフト演算手段により
桁移動し、これら桁移動した両ラインデータと第3ライ
ンデータとの論理和となる第5ラインデータを第2論理
和演算手段により作り出す。
Next, the operation of the second image processing apparatus according to the present invention will be described. In the second image processing apparatus, three lines in the main scanning direction that are adjacent to each other in the bitmap format image data are defined as first line data, second line data, and third line data.
Line data is stored for each line by line data storage means. The first line data is shifted by one bit in the upper digit direction by the first left shift operation means, and the first line data is shifted by one bit in the lower digit direction by the first digit.
The digit is shifted by the right shift operation means, and a fourth logical sum of the two line data shifted by the digit and the first line data is obtained.
The line data is generated by the first OR operation means. Further, the third line data is shifted by one bit in the upper digit direction to the second line data.
The digit is shifted by the left shift operation means, the third line data is shifted by one bit in the lower digit direction by the second right shift operation means, and the logical sum of both line data shifted by these digits and the third line data is obtained. The fifth line data is generated by the second OR operation means.

【0014】第4ラインデータは、以下に示す意味をも
つ。第1左シフト演算手段および第1右シフト演算手段
にて作り出された2つのラインデータと第1ラインデー
タとの論理和をとるということは、主走査方向を長手方
向とした3×1のウィンドウを第1ラインデータの主走
査方向に走査し、そのウィンドウ内の論理和を近似的に
そのウィンドウの中心座標の値とすることであり、第4
ラインデータはこうして求めた中心座標の値の集合であ
る。同様に、第5ラインデータは、第3ラインデータに
対して主走査方向を長手方向の3×1のウィンドウにお
いて近似的に求めた中心座標の値の集合である。
The fourth line data has the following meaning. Taking the logical sum of the two line data generated by the first left shift operation means and the first right shift operation means and the first line data means that a 3 × 1 window whose longitudinal direction is the main scanning direction is used. Is scanned in the main scanning direction of the first line data, and the logical sum within the window is approximately set to the value of the center coordinate of the window.
The line data is a set of values of the center coordinates thus obtained. Similarly, the fifth line data is a set of center coordinate values approximately obtained in the 3 × 1 window in the longitudinal direction in the main scanning direction with respect to the third line data.

【0015】次いで、第2ラインデータ,第4ラインデ
ータおよび第5ラインデータの論理積となる第6ライン
データを、第1論理積演算手段により作り出す。続い
て、第6ラインデータを1ビットだけ上位桁方向に第3
左シフト演算手段により桁移動するとともに、第6ライ
ンデータを1ビットだけ下位桁方向に第3右シフト演算
手段により桁移動し、さらに、これら桁移動した両ライ
ンデータと第6ラインデータとの論理積となる細らせラ
インデータを第2論理積演算手段により作り出す。こう
した第1論理積演算手段,第3左シフト演算手段,第3
右シフト演算手段および第2論理積演算手段による動作
は前述した第1の画像処理装置と同じ働きをすることか
ら、これら手段により作り出されるラインデータは、主
走査方向および副走査方向の長さが3×3のウィンドウ
を走査させて、そのウィンドウW2内の値の論理積を演
算して得られる結果と同じものとなる。
Next, sixth line data which is a logical product of the second line data, the fourth line data, and the fifth line data is created by the first logical product calculating means. Subsequently, the sixth line data is shifted by one bit to the third digit in the upper digit direction.
While the digit is shifted by the left shift operation means, the sixth line data is shifted by one bit in the lower digit direction by the third right shift operation means, and the logic of the two line data shifted by these digits and the sixth line data is further changed. Thinned line data to be a product is created by the second AND operation means. The first AND operation means, the third left shift operation means, the third
Since the operations by the right shift operation means and the second logical product operation means have the same functions as those of the first image processing apparatus described above, the line data generated by these means has a length in the main scanning direction and the sub-scanning direction. The result is the same as the result obtained by scanning the 3 × 3 window and calculating the logical product of the values in the window W2.

【0016】但し、このウィンドウを走査する第1ライ
ンデータおよび第3ラインデータは、前述したように、
主走査方向を長手方向とした3×1のウィンドウにおい
て近似的に求めた中心座標の値の集合であることから、
第1ラインおよび第3ラインにおいてはその中心座標の
1ビットだけしか第2論理積演算手段による論理積演算
に影響を与えない。このため、第2論理積演算手段によ
り作り出される細らせラインデータは、4近傍のウィン
ドウを用いた細らせ処理に近い処理結果が得られる。し
かも、この発明では、ライン単位で演算処理を施すこと
ができ、従来のように全画像データをウィンドウ内に逐
一取り込んで演算処理を行なう必要もない。
However, the first line data and the third line data for scanning this window are, as described above,
Since it is a set of values of the center coordinates approximately obtained in a 3 × 1 window with the main scanning direction as the longitudinal direction,
In the first and third lines, only one bit of the center coordinate has an effect on the AND operation by the second AND operation means. For this reason, the thinning line data generated by the second AND operation means can obtain a processing result close to the thinning processing using the windows near four. In addition, according to the present invention, arithmetic processing can be performed on a line-by-line basis, and it is not necessary to fetch all image data one by one into a window and perform arithmetic processing as in the related art.

【0017】[0017]

【実施例】以上説明した本発明の構成・作用を一層明ら
かにするために、以下本発明の好適な実施例について説
明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In order to further clarify the structure and operation of the present invention described above, preferred embodiments of the present invention will be described below.

【0018】A.8近傍の細らせを実現する画像処理装
置: 図2は、本発明の第1実施例としての画像処理装置の概
略構成を示すブロック図である。この画像処理装置は、
CPU1,ROM3,RAM5を中心に、画像メモリ7
と、入出力インターフェース9と、第1ないし第3ライ
ンバッファ11a,11b,11cと、論理演算器13
と、ラインシフタ15とを備えており、これらの構成部
1ないし15は、バスライン17によって互いに接続さ
れている。また、入出力インターフェース9には、周辺
装置としての磁気ディスク装置21,CRTディスプレ
イ22,キーボード23およびマウス24がそれぞれ接
続されている。
A. FIG. 2 is a block diagram showing a schematic configuration of an image processing apparatus as a first embodiment of the present invention. This image processing device
CPU1, ROM3, RAM5, image memory 7
, An input / output interface 9, first to third line buffers 11a, 11b, 11c,
And a line shifter 15. These components 1 to 15 are connected to each other by a bus line 17. The input / output interface 9 is connected to a magnetic disk device 21, a CRT display 22, a keyboard 23, and a mouse 24 as peripheral devices.

【0019】磁気ディスク装置21は、文字,イラスト
等の線画を含む画像をビットマップ形式の画像データと
して記憶する記憶媒体である。この記憶された画像デー
タから処理対象となるページ単位の画像データが抽出さ
れて、画像メモリ7に転送され記憶される。CRTディ
スプレイ22は、処理対象となっている画像を表示する
ための表示部であり、細らせ処理後の画像の表示も行な
う。
The magnetic disk device 21 is a storage medium for storing an image including a line drawing such as a character or an illustration as bitmap image data. From the stored image data, image data for each page to be processed is extracted, transferred to the image memory 7, and stored. The CRT display 22 is a display unit for displaying an image to be processed, and also displays the image after the thinning process.

【0020】第1ないし第3ラインバッファ11a〜1
1cは、画像メモリ7に記憶されている1ページ分の画
像データにおける主走査方向の1ラインを記憶可能な容
量をそれぞれ持つメモリである。論理演算器13は、入
力した複数のラインデータにおいて同一桁位置毎のデー
タの論理積を演算するアンド器13a,13cと、入力
したラインデータの各桁の値を反転する反転器13bと
を内部に備えており、CPU1からの制御指令を受けて
その機能が切り換えられる。
First to third line buffers 11a to 11a
Reference numeral 1c denotes memories each having a capacity capable of storing one line in the main scanning direction in one page of image data stored in the image memory 7. The logical operation unit 13 includes AND units 13a and 13c for calculating a logical product of data at the same digit position in a plurality of input line data, and an inverter 13b for inverting the value of each digit of the input line data. The function is switched in response to a control command from the CPU 1.

【0021】ラインシフタ15は、ラインデータに演算
を施す回路で、図3に示すように、入力側の経路を3方
向に分岐し、左シフト器15aと右シフト器15bと直
結線15cとを並列に接続し、それら出力側でアンド器
15dと接続した構成である。なお、本実施例のライン
メモリは、各図においていわゆるLSBは右端、MSB
は左端に位置するものとして説明する。また、「桁」と
「ビット」はデータの単位として相等のものであるが、
説明上適宜使い分ける。
The line shifter 15 is a circuit for performing an operation on line data. As shown in FIG. 3, the input side path is branched in three directions, and a left shifter 15a, a right shifter 15b and a direct connection line 15c are connected in parallel. And the output side is connected to the AND device 15d. Note that in the line memory of this embodiment, the so-called LSB is
Is described as being located at the left end. Although "digit" and "bit" are equivalent as data units,
It is used appropriately for explanation.

【0022】ラインシフタ15に設けられる左シフト器
15aは、複数のビット列からなるデータを1ビットだ
け上位桁方向に桁移動する算術論理演算器であり、右シ
フト器15bは、複数のビット列からなるデータを1ビ
ットだけ下位桁方向に桁移動する算術論理演算器であ
る。両シフト器15a,15bは、桁移動により生じた
空き位置(左シフト器15aの場合は最下位桁、右シフ
ト器15bの場合は最上位桁)に値0を補充するととも
に、押し出される1ビットを捨てる機能を備える。な
お、両シフト器15a,15bは、MOS回路をクロス
バースイッチ状に並べ制御線を順次ずらして接続するバ
レルシフタ(barrel shifter)から構成されており、画
像データにおける主走査方向の1ライン全体を一度に桁
移動することのできる容量を備える。
The left shifter 15a provided in the line shifter 15 is an arithmetic and logic unit for shifting data consisting of a plurality of bit strings by one bit in the upper digit direction, and the right shifter 15b is provided with a data shift consisting of a plurality of bit strings. Is an arithmetic and logic unit that shifts one digit in the lower digit direction by one bit. Both shifters 15a and 15b replenish the empty position (the least significant digit in the case of the left shifter 15a and the most significant digit in the case of the right shifter 15b) generated by the digit shift with a value 0, and push out one bit. It has a function to throw away. Each of the shifters 15a and 15b is composed of a barrel shifter that connects MOS circuits arranged in a crossbar switch shape and sequentially shifts control lines, and once shifts one entire line of image data in the main scanning direction. It has a capacity to move the digit.

【0023】こうした構成の画像処理装置では、CPU
1による各構成要素とのデータのやり取りを受けて、図
4のブロック図で示される回路構成が実現されている。
In the image processing apparatus having such a configuration, the CPU
In response to the exchange of data with each of the constituent elements according to No. 1, the circuit configuration shown in the block diagram of FIG. 4 is realized.

【0024】即ち、図4に示す回路構成では、第1ない
し第3ラインバッファ11a〜11cに記憶された第1
ないし第3ラインデータLD1,LD2,LD3が論理
演算器13のアンド器13aに送られ、アンド器13a
から出力されるラインデータLD4がラインシフタ15
に送られる。ラインシフタ15からは処理結果としての
細らせラインデータLD5が出力される。さらに、細ら
せラインデータLD5は論理演算器13に戻され、論理
演算器13の反転器13bに入力される。反転器13b
により値の反転されたラインデータLD6は、第2ライ
ンバッファ11bに記憶される第2ラインデータLD2
と共にアンド器13cに入力される。アンド器13cで
は、両ラインデータLD2とLD6との論理演算が施さ
れ、その演算結果がエッジデータLD7として出力され
る。なお、前記細らせラインデータLD5およびエッジ
データLD7は、図2におけるバスライン17を介して
画像メモリ7に記憶されると共に、CRTディスプレイ
22に表示される。
That is, in the circuit configuration shown in FIG. 4, the first to third line buffers 11a to 11c store the first
The third line data LD1, LD2, and LD3 are sent to the AND unit 13a of the logical operation unit 13, and the AND unit 13a
The line data LD4 output from the line shifter 15
Sent to The line shifter 15 outputs thinning line data LD5 as a processing result. Further, the thinned line data LD5 is returned to the logical operation unit 13 and input to the inverter 13b of the logical operation unit 13. Inverter 13b
The line data LD6 whose value has been inverted by the second line data LD2 is stored in the second line buffer 11b.
Is input to the AND device 13c. The AND device 13c performs a logical operation on the two line data LD2 and LD6, and outputs the operation result as edge data LD7. The thinned line data LD5 and the edge data LD7 are stored in the image memory 7 via the bus line 17 in FIG.

【0025】次に、こうした構成の画像処理装置の動作
を説明する。CPU1は、磁気ディスク装置21に記憶
されたビットマップ形式の画像データの1ページ分を入
出力インターフェース9を介して読み込み画像メモリ7
に転送する処理を予め実行する。こうして、画像メモリ
7には処理対象となるページ単位の画像が格納される。
Next, the operation of the image processing apparatus having such a configuration will be described. The CPU 1 reads one page of bitmap image data stored in the magnetic disk drive 21 via the input / output interface 9 and reads the image memory 7.
Is executed in advance. In this way, the image memory 7 stores an image for each page to be processed.

【0026】次に、CPU1は、画像メモリ7に格納さ
れた1ページ分の画像データから主走査方向の1ライン
分のラインデータを副走査方向に順次取り出して第3ラ
インバッファ11aに格納する一方、同じタイミングで
第1ないし第3ラインバッファ11a〜11cに格納さ
れている各ラインデータの第2を第1へ、第3を第2へ
と順次シフトしながら格納する。
Next, the CPU 1 sequentially extracts line data for one line in the main scanning direction from the image data for one page stored in the image memory 7 in the sub-scanning direction and stores the line data in the third line buffer 11a. At the same timing, the line data stored in the first to third line buffers 11a to 11c are stored while sequentially shifting the second to the first and the third to the second.

【0027】CPU1により第1ないし第3ラインバッ
ファ11a〜11cに第1ないし第3ラインデータLD
1〜LD3がそれぞれ格納されると、まず、それら第1
ないし第3ラインデータLD1〜LD3が論理演算器1
3に送られ、論理演算器13からは、第1ないし第3ラ
インデータの各桁毎の論理積をとった新たなラインデー
タLD4が出力される。
The CPU 1 stores the first to third line data LD in the first to third line buffers 11a to 11c.
1 to LD3 are stored, first of all,
Or the third line data LD1 to LD3 are logical operation units 1
3 and the logical operation unit 13 outputs new line data LD4 obtained by calculating the logical product of the first to third line data for each digit.

【0028】アンド器13aから出力されたラインデー
タLD4はラインシフタ15に送られる。ラインシフタ
15では、ラインデータLD4を左シフト器15aによ
り上位桁方向へ桁移動すると共に、ラインデータLD4
を右シフト器15bにより下位桁方向へ桁移動し、その
後、これら桁移動により作成された両ラインデータLD
4L,LD4Rと桁移動のなされていないラインデータ
LD4との各桁位置毎の論理積をアンド器15dにより
演算する(図3参照)。この演算結果は、第2ラインデ
ータLD2で示される主走査ラインに対する細らせライ
ンデータLD5としてバスライン17に入力され、画像
メモリ7に記憶される。
The line data LD4 output from the AND unit 13a is sent to the line shifter 15. In the line shifter 15, the line data LD4 is shifted by the left shifter 15a in the upper digit direction, and the line data LD4 is shifted.
Is shifted in the lower digit direction by the right shifter 15b, and then both line data LD created by these digit shifts are shifted.
The logical product of each of the digit positions of the 4L, LD4R and the line data LD4 that has not been shifted is calculated by the AND unit 15d (see FIG. 3). The result of this operation is input to the bus line 17 as narrowing line data LD5 for the main scanning line indicated by the second line data LD2, and is stored in the image memory 7.

【0029】さらに、本実施例では、ラインシフタ15
により作成された細らせラインデータLD5は論理演算
器13bに入力される。そのラインデータLD5は、反
転器13bにより値が反転されて、ラインデータLD6
となり、さらに第2ラインデータLD2との各桁位置毎
の論理積がアンド器13cにより求められる。こうして
作り出されるラインデータは、細らせ前の線画の輪郭を
示すエッジデータとしてバスライン17に入力され、画
像メモリ7に記憶される。
Further, in this embodiment, the line shifter 15
Is input to the logical operation unit 13b. The value of the line data LD5 is inverted by the inverter 13b, and the line data LD6
The AND of each digit position with the second line data LD2 is obtained by the AND unit 13c. The line data thus created is input to the bus line 17 as edge data indicating the contour of the line image before thinning, and is stored in the image memory 7.

【0030】前記画像処理装置の動作により、線画がど
のように細らされるかを具体例を挙げて次に説明する。
How the line drawing is reduced by the operation of the image processing apparatus will be described below with reference to a specific example.

【0031】図5の(a)に、値0で示される背景に値
1で描かれた線画LAを表すビットマップ形式の画像デ
ータDTを示した。この画像データDTから、今、副走
査方向の走査線(ライン)番号がn番目(ここでnは正
数で値0から副走査方向の最大ビット数Nまでの値をと
るものとする)n+1番目、n+2番目の各主走査方向
のラインデータが順次読み出される。これら読み出され
たラインデータはラインデータLD1〜LD3として第
1ないし第3ラインバッファ11a,11b,11cに
格納される。この格納結果を図6中のLD1,LD2,
LD3に示した。
FIG. 5A shows bitmap format image data DT representing a line drawing LA drawn with a value of 1 on a background indicated by a value of 0. From this image data DT, the scanning line (line) number in the sub-scanning direction is now the n-th (where n is a positive number and takes a value from the value 0 to the maximum bit number N in the sub-scanning direction) n + 1 The line data of the (n) th and (n + 2) th main scanning directions are sequentially read. These read line data are stored in the first to third line buffers 11a, 11b, 11c as line data LD1 to LD3. The storage results are shown as LD1, LD2, and LD2 in FIG.
This is shown in LD3.

【0032】第1ないし第3ラインバッファ11a,1
1b,11cにラインデータLD1〜LD3が格納され
ると、図6に示すように、ラインデータLD1〜LD3
はアンド器13aに送られ、これらラインデータLD1
〜LD3の論理積をとったラインデータLD4が作られ
る。次いで、ラインデータLD4は左シフト器15aに
送られ、ラインデータLD4を1ビットだけ上位方向に
桁移動したラインデータLD4Lが作られる。
First to third line buffers 11a, 1
When the line data LD1 to LD3 are stored in 1b and 11c, as shown in FIG.
Is sent to the AND device 13a, and the line data LD1
The line data LD4, which is the logical product of .about.LD3, is created. Next, the line data LD4 is sent to the left shifter 15a, and line data LD4L is generated by shifting the line data LD4 by one bit in the upper direction.

【0033】一方、ラインデータLD4は右シフト器1
5bにも送られ、ラインデータLD4を1ビットだけ下
位方向に桁移動したラインデータLD4Rが作られる。
On the other hand, the line data LD4 is supplied to the right shifter 1
5b, line data LD4R is generated by shifting the line data LD4 by one bit in the lower direction.

【0034】続いて、前記ラインデータLD4と桁移動
された両ラインデータLD4L,LD4Rとがアンド器
15dに送られ、これらラインデータLD4,LD4
L,LD4Rの論理積をとったラインデータLD5が作
られる。このラインデータLD5はn+1ライン目の細
らせラインデータであり、これを画像メモリ7に格納す
る。
Subsequently, the line data LD4 and the line data LD4L, LD4R shifted by one digit are sent to the AND unit 15d, and these line data LD4, LD4
Line data LD5, which is the logical product of L and LD4R, is created. The line data LD5 is thinned line data of the (n + 1) th line, and is stored in the image memory 7.

【0035】以下、同じ要領で図5の(a)に示した画
像データDTにおいてnラインを0ラインからN−2ラ
インまで順次これらの処理を行ない、結果の細らせライ
ンデータを画像メモリ7に格納していく。こうして、画
像データDTの全領域に渡って細らせ処理を施すことが
できる。その細らせ処理の結果得られる画像メモリ7内
の細らせ線画CLAを図5の(b)に示した。図5の
(a)と(b)とを比較すると、線画LAが細らせ線画
CLAに細らされていることが分かる。
In the same manner, in the image data DT shown in FIG. 5A, these processes are sequentially performed on the nth line from the 0th line to the N-2th line. To be stored. Thus, the thinning process can be performed over the entire area of the image data DT. FIG. 5B shows the thinned line drawing CLA in the image memory 7 obtained as a result of the thinning process. Comparing FIG. 5A and FIG. 5B, it can be seen that the line drawing LA has been reduced to the line drawing CLA.

【0036】なお、本実施例の画像処理装置では、細ら
せ処理の施された細らせラインデータLD5は、反転器
13bに送られ、図7に示すように、各ビット位置の値
を反転したラインデータLD6が作られる。続いて、そ
のラインデータLD6と第2ラインバッファ11bに格
納されたラインデータLD2がアンド器13cに送ら
れ、両ラインデータLD2,LD6の論理積をとったラ
インデータLD7が作られる。この図7で示される処理
は細らせ後の線画CLA以外の領域と細らせ前の線画L
Aとの重なり部分を求めるものであることから、その処
理結果であるラインデータLD7は、図8に示すよう
に、細らせ前と細らせ後との差分、即ち、細らせ処理に
よる変形領域ERを示すものとなる。この変形領域ER
は細らせ前の線画LAの輪郭に相当するものであり、こ
のラインデータLD7は、エッジデータとしてバスライ
ン17に入力され、画像メモリ7に記憶される。
In the image processing apparatus of this embodiment, the thinned line data LD5 subjected to the thinning processing is sent to the inverter 13b, and as shown in FIG. Inverted line data LD6 is created. Subsequently, the line data LD6 and the line data LD2 stored in the second line buffer 11b are sent to the AND device 13c, and line data LD7 obtained by calculating the logical product of the two line data LD2 and LD6 is created. The processing shown in FIG. 7 is performed in an area other than the line drawing CLA after the thinning and the line drawing L before the thinning.
Since the overlapped portion with A is obtained, the line data LD7 as the processing result is, as shown in FIG. 8, the difference between before and after the thinning, that is, by the thinning process. This indicates the deformation area ER. This deformation area ER
Is equivalent to the contour of the line drawing LA before thinning, and the line data LD7 is input to the bus line 17 as edge data and stored in the image memory 7.

【0037】なお、本実施例のアンド器13a,15d
を各ラインデータの論理和を求めるオア器とすることに
より、擬似的な太らせデータを得ることもできる。
The AND devices 13a and 15d of the present embodiment
Is an OR unit for calculating the logical sum of the line data, so that pseudo fat data can be obtained.

【0038】以上詳述してきた本第1実施例の画像処理
装置で作り出される細らせラインデータLD5は、主走
査方向および副走査方向の長さが3×3のウィンドウを
掛けて、そのウィンドウ内の値の論理積を演算して得ら
れる結果と同じものとなり、8近傍のウィンドウを用い
た細らせ処理と同じ処理結果が得られる。また、本画像
処理装置では、ビットマップ形式の画像データを主走査
方向のライン単位で読み込み、ライン単位で演算処理を
施すことで細らせ結果を得ることができるから、従来の
ようにウィンドウ内に逐一ビットデータを取り込んで演
算処理を行なう必要もない。このため、線画の細らせを
高速度で実現することができる。また、本実施例では、
細らせの画像を利用して線画のエッジ部分を求めている
ことから、そのエッジ部分も高速度で求めることができ
る。
The thinned line data LD5 produced by the image processing apparatus of the first embodiment described above is multiplied by a window having a length of 3 × 3 in the main scanning direction and the sub-scanning direction. The result is the same as the result obtained by calculating the logical product of the values within, and the same processing result as the thinning processing using the window near eight is obtained. Further, in the present image processing apparatus, the bitmap format image data is read line by line in the main scanning direction, and a thinning result can be obtained by performing arithmetic processing in line units. It is not necessary to take in bit data one by one and perform arithmetic processing. For this reason, the line drawing can be reduced at a high speed. In this embodiment,
Since the edge portion of the line drawing is obtained using the thinned image, the edge portion can also be obtained at a high speed.

【0039】B.変形例: 前記第1実施例では、左シフト器15aおよび右シフト
器15bを用いて主走査方向の1ライン全体を一度に桁
移動する構成としていたが、これに換えて、1ワードの
ビット列(例えば、32ビット)を桁移動するシフトレ
ジスタを1つ用いてソフトウェアの処理により1ライン
の桁移動を行なう構成としてもよい。以下、こうしたソ
フトウェアの処理による桁移動の手順を詳しく説明す
る。
B. Modification Example In the first embodiment, the left shift unit 15a and the right shift unit 15b are used to shift the entirety of one line in the main scanning direction at a time. However, instead of this, a bit string of one word ( For example, one shift register that shifts the digit by 32 bits may be used to shift the digit of one line by software processing. Hereinafter, the procedure of digit shifting by the processing of such software will be described in detail.

【0040】図9のフローチャートに下位桁方向への桁
移動、即ち右シフトの処理の手順を示した。CPU1
は、同図に示すように、処理が開始されると、まず、ラ
インデータを1ワードのビット数である32ビットで分
割して、分割してできた各領域を図10に示すように、
先頭方向から順にH(1),H(2),…,H(M)と
する(ステップS100)。次いで、変数kに値1をセ
ットし(ステップS110)、分割領域H(k)に格納
されるビット列をシフトレジスタに転送する(ステップ
S120)。次いで、そのシフトレジスタによりその格
納されるビット列を下位桁方向に移動する右シフトを実
行する(ステップS130)。なお、この際、最上位桁
には値0をセットする。
The flow chart of FIG. 9 shows the procedure of digit shift in the lower digit direction, that is, right shift processing. CPU1
As shown in FIG. 10, when the process is started, first, the line data is divided into 32 bits, which is the number of bits of one word, and each of the divided areas is divided as shown in FIG.
H (1), H (2),..., H (M) in order from the head direction (step S100). Next, a value 1 is set to the variable k (step S110), and the bit string stored in the divided area H (k) is transferred to the shift register (step S120). Next, the shift register executes a right shift for moving the stored bit string in the lower digit direction (step S130). At this time, the value 0 is set in the most significant digit.

【0041】続いて、RAM5に予め用意されたワーク
エリアに先に転送されたビット列の続きに、今回のシフ
トレジスタの内容を転送する(ステップS140)。そ
の後、変数kを値1だけインクリメントし(ステップS
150)、分割領域H(k)に格納されるビット列をシ
フトレジスタに転送する(ステップS160)。次い
で、そのシフトレジスタによりその格納されるビット列
を下位桁方向に移動する右シフトを実行する(ステップ
S170)。
Subsequently, the contents of the current shift register are transferred following the bit string previously transferred to the work area prepared in advance in the RAM 5 (step S140). Thereafter, the variable k is incremented by the value 1 (step S
150), and transfers the bit string stored in the divided area H (k) to the shift register (step S160). Next, the shift register executes a right shift for moving the stored bit string in the lower digit direction (step S170).

【0042】ステップS170の実行後、分割領域H
(k−1)に格納されるビット列の最下位桁の値が1で
あるか否かを判別し(ステップS180)、値1である
と判別されると、シフトレジスタの最上位桁に値1を転
送する(ステップS190)。一方、ステップS180
で値1でないと判別された場合には、ステップS190
の処理を飛ばす。その後、ワークエリアにシフトレジス
タの内容を転送する(ステップS192)。なお、この
際、前回のデータ転送により書き込まれた位置の次の位
置からデータを書き込むものとする。
After the execution of step S170, the divided area H
It is determined whether or not the value of the least significant digit of the bit string stored in (k-1) is 1 (step S180). If it is determined that the value is 1, the value 1 is added to the most significant digit of the shift register. Is transferred (step S190). On the other hand, step S180
If it is determined that is not the value 1 in step S190, step S190
Skip processing. Thereafter, the contents of the shift register are transferred to the work area (step S192). At this time, it is assumed that data is written from a position next to the position written by the previous data transfer.

【0043】その後、変数kが分割領域Hの数Mに達し
たが否かを判定し(ステップS194)、達していない
と判定されると、ステップS150に戻りステップS1
50ないしS194の処理を繰り返し実行する。一方、
ステップS194で変数kが値Mに達したと判定された
場合、「エンド」に抜けて本ルーチンの処理を終える。
Thereafter, it is determined whether or not the variable k has reached the number M of the divided areas H (step S194). If it is determined that the variable k has not reached the number M, the process returns to step S150 and returns to step S1.
The processes from 50 to S194 are repeatedly executed. on the other hand,
If it is determined in step S194 that the variable k has reached the value M, the process goes to “END” to end the processing of this routine.

【0044】こうした構成の右、及び左シフト処理によ
れば、1つのシフトレジスタを用いるだけで、主走査方
向の1ライン分のラインデータを下位桁方向、及び上位
桁方向に桁移動することができる。なお、この左シフト
処理の手順については、右シフト処理における分割領域
の指定方向,ワークエリアのデータの書込み方向等を逆
方向にすることで容易に実現することができることか
ら、詳しい説明については省略する。
According to the right and left shift processing of such a configuration, the line data for one line in the main scanning direction can be shifted in the lower digit direction and the upper digit direction by using only one shift register. it can. Note that the procedure of the left shift processing can be easily realized by reversing the designation direction of the divided area in the right shift processing, the writing direction of the data of the work area, and the like. I do.

【0045】次に、8近傍の細らせを実現する他の画像
処理装置について述べる。前記第1実施例では、まず、
隣接する主走査方向の3ラインの論理積を求めて新たな
ラインデータを作成し、次いで、そのラインデータに対
して左シフトと右シフトとをそれぞれ施し、両シフトの
結果と前記ラインデータとの論理積をとり、細らせライ
ンデータとしているが、これに換えて、以下のように8
近傍の細らせを実現してもよい。まず、主走査方向の1
ラインに対して左シフトと右シフトとをそれぞれ施し、
両シフトの結果とシフトする前のラインデータとの論理
積をとる。同様に前記1ラインに隣接する2つのライン
に対しても、前記1ラインと同様な処理を施す。その
後、こうしてできた3つのラインデータの論理積をと
り、細らせラインデータとする。この結果、前記第1実
施例と同様に、線画に対する8近傍の細らせを高速度で
実現することができる。
Next, another image processing apparatus for realizing the narrowing around eight will be described. In the first embodiment, first,
New line data is created by calculating the logical product of three adjacent lines in the main scanning direction, and then the line data is subjected to left shift and right shift, respectively, and the result of both shifts is compared with the line data. The logical product is obtained and the line data is reduced, but instead of this, 8
Neighboring narrowing may be realized. First, 1 in the main scanning direction
Perform a left shift and a right shift on the line, respectively.
The logical product of the result of both shifts and the line data before shifting is calculated. Similarly, the same processing as that for the one line is performed on two lines adjacent to the one line. After that, the logical product of the three line data thus formed is obtained to make the line data thinner. As a result, similarly to the first embodiment, the narrowing of the line drawing in the vicinity of 8 can be realized at a high speed.

【0046】C.4近傍の細らせを実現する画像処理装
置: 図11は、本発明の第2実施例としての画像処理装置の
概略構成を示すブロック図である。この画像処理装置
は、第1実施例と比較して第2ラインシフタ201a〜
201cを設けたことが相違し、その他の構成は同一で
ある。なお、本実施例において第1実施例と同一の構成
要素には第1実施例と同じ番号を付与し、また、第1実
施例のラインシフタ15を本実施例では第1ラインシフ
タ15と呼ぶ。
C. FIG. 11 is a block diagram showing a schematic configuration of an image processing apparatus as a second embodiment of the present invention. This image processing apparatus is different from the first embodiment in that the second line shifters 201a to 201a
201c is provided, and the other configuration is the same. In this embodiment, the same components as those in the first embodiment are denoted by the same reference numerals as those in the first embodiment, and the line shifter 15 of the first embodiment is referred to as a first line shifter 15 in this embodiment.

【0047】第2ラインシフタ201a〜201cは、
第1ないし第3ラインバッファ11a〜11cから出力
された各ラインデータLD1〜LD3を入力して、それ
らラインデータLD1〜LD3に演算を施す回路であ
り、以下の構成を備える。即ち、第2ラインシフタ20
1a〜201cは、図12に示すように、入力側の経路
を3方向に分岐し、左シフト器211と右シフト器21
2と直結線213とを並列に接続し、それら出力側でオ
ア器214と接続した構成である。なお、左シフト器2
11および右シフト器212の入力側にはセレクタ21
5,216がそれぞれ設けられており、左シフト器21
1,右シフト器212をそれぞれ迂回する線217,2
18側がセレクタ215,216によりそれぞれ選択可
能な構成となっている。また、セレクタ219により左
シフト器211側と右シフト器212側とが選択可能と
なっている。
The second line shifters 201a to 201c
This is a circuit that receives the line data LD1 to LD3 output from the first to third line buffers 11a to 11c and performs an operation on the line data LD1 to LD3, and has the following configuration. That is, the second line shifter 20
1a to 201c, as shown in FIG. 12, the input-side path branches in three directions, and the left shifter 211 and the right shifter 21
2 and a direct connection line 213 are connected in parallel, and their outputs are connected to an OR unit 214. Note that the left shifter 2
11 and the input side of the right shifter 212
5 and 216 are provided respectively, and the left shifter 21 is provided.
1, lines 217 and 2 bypassing right shifter 212, respectively
The 18 side is configured to be selectable by selectors 215 and 216, respectively. Further, the selector 219 can select between the left shifter 211 and the right shifter 212.

【0048】CPU1からセレクタ215,216,2
19に対して制御指令を送ることにより、入力されたラ
インデータLD1(もしくはLD2,LD3)の信号の
流れを、左シフト器211,右シフト器212および直
結線213側にそれぞれ送る態様と、左シフト器211
および右シフト器212を迂回して直結線213,21
7,218側に送る態様とに切り換えることができる。
The selectors 215, 216, 2
By sending a control command to the line 19, the signal flow of the input line data LD1 (or LD2, LD3) is sent to the left shifter 211, the right shifter 212, and the direct connection line 213, respectively. Shifter 211
And the direct connection lines 213 and 21 bypassing the right shifter 212.
7,218.

【0049】なお、第2ラインシフタ201a〜201
cに設けられる左シフト器211および右シフト器21
2は、第1実施例の左シフト器15aおよび右シフト器
15bとそれぞれ同じ構成である。オア器214は、入
力した複数のラインデータの同一桁位置の組毎にデータ
の論理和を演算することにより複数のラインデータの論
理和を演算するものである。
The second line shifters 201a to 201
c and left shifter 211 and right shifter 21
2 has the same configuration as the left shifter 15a and the right shifter 15b of the first embodiment. The OR unit 214 calculates the logical sum of the plurality of line data by calculating the logical sum of the data for each set of the same digit position of the input plurality of line data.

【0050】こうした構成の画像処理装置では、CPU
1による各構成要素とのデータのやり取りを受けて、図
13のブロック図で示される回路構成が実現されてい
る。即ち、図13に示す回路構成では、第1ないし第3
ラインバッファ11a〜11cに記憶された第1ないし
第3ラインデータLD1,LD2,LD3が第2ライン
シフタ201a〜201cにそれぞれ送られる。次い
で、第2ラインシフタ201a〜201cから出力され
る各ラインデータLD11,LD12,LD13は論理
演算器13のアンド器13aに送られ、アンド器13a
から出力されるラインデータLD14は第1ラインシフ
タ15に送られる。そして、ラインシフタ15からは処
理結果としての細らせラインデータLD15が出力され
る。
In the image processing apparatus having such a configuration, the CPU
In response to the exchange of data with each of the constituent elements according to No. 1, the circuit configuration shown in the block diagram of FIG. 13 is realized. That is, in the circuit configuration shown in FIG.
The first to third line data LD1, LD2, LD3 stored in the line buffers 11a to 11c are sent to the second line shifters 201a to 201c, respectively. Next, the line data LD11, LD12, LD13 output from the second line shifters 201a to 201c are sent to the AND unit 13a of the logical operation unit 13, and the AND unit 13a
Is output to the first line shifter 15. Then, the line shifter 15 outputs thinned line data LD15 as a processing result.

【0051】さらに、細らせラインデータLD15は論
理演算器13に戻され、論理演算器13の反転器13b
に入力される。反転器13bにより値の反転されたライ
ンデータLD16は、第2ラインバッファ11bに記憶
される第2ラインデータLD2と共にアンド器13aに
入力される。アンド器13aでは、両ラインデータLD
2,LD16の論理積が求められ、その演算結果がエッ
ジデータLD17として出力される。
Further, the thinning line data LD15 is returned to the logical operation unit 13, and the inverter 13b of the logical operation unit 13
Is input to The line data LD16 whose value has been inverted by the inverter 13b is input to the AND device 13a together with the second line data LD2 stored in the second line buffer 11b. In the AND device 13a, both line data LD
2. The logical product of LD16 and LD16 is obtained, and the operation result is output as edge data LD17.

【0052】次に、こうした構成の画像処理装置の動作
を説明する。CPU1により第1ないし第3ラインバッ
ファ11a〜11cに第1ないし第3ラインデータLD
1〜LD3がそれぞれ格納されると、以下の作業が順に
実行される。まず、それら第1ないし第3ラインデータ
LD1〜LD3が第2ラインシフタ201a〜201c
にそれぞれ送られる。この際、CPU1は、各第2ライ
ンシフタ201a〜201cに制御指令を送り、第1番
目の第2ラインシフタ201aと第3番目の第2ライン
シフタ201cとを、入力信号が左シフト器211,右
シフト器212および直結線213側にそれぞれ送られ
る態様とし、第2番目の第2ラインシフタ201bを入
力信号が左シフト器211および右シフト器212を迂
回する態様とする。
Next, the operation of the image processing apparatus having such a configuration will be described. The CPU 1 stores the first to third line data LD in the first to third line buffers 11a to 11c.
When 1 to LD3 are stored, the following operations are sequentially performed. First, the first to third line data LD1 to LD3 are stored in the second line shifters 201a to 201c.
Respectively. At this time, the CPU 1 sends a control command to each of the second line shifters 201a to 201c so that the first second line shifter 201a and the third second line shifter 201c are input to the left shifter 211 and the right shifter. 212 and the direct connection line 213 side, and the second second line shifter 201b is configured so that the input signal bypasses the left shifter 211 and the right shifter 212.

【0053】したがって、第1番目の第2ラインシフタ
201aでは、ラインデータLD1を左シフト器211
により上位桁方向へ桁移動すると共に、ラインデータL
D1を右シフト器212により下位桁方向へ桁移動し、
その後、これら桁移動により作成された両ラインデータ
と桁移動のなされていないラインデータLD1との各桁
毎の論理和をオア器214により求める(図12参
照)。また、第3番目の第2ラインシフタ201cで
は、第1番目の第2ラインシフタ201aと同様な処理
を第3ラインデータLD3に対して行なう。第2番目の
第2ラインシフタ201bでは、ラインデータLD2を
3方向に分けシフト器を迂回してこれらの論理和をオア
器214により求める。こうして求められた第2番目の
第2ラインシフタ201bからの出力データLD12は
入力データLD2と同じものである。
Therefore, the first second line shifter 201a transfers the line data LD1 to the left shifter 211.
To move to the upper digit direction, and the line data L
D1 is shifted by the right shifter 212 in the lower digit direction,
Thereafter, the OR of each digit between the two line data created by these digit shifts and the line data LD1 that has not been digit shifted is obtained by the OR unit 214 (see FIG. 12). Further, the third second line shifter 201c performs the same processing as that of the first second line shifter 201a on the third line data LD3. In the second second line shifter 201b, the line data LD2 is divided into three directions and bypasses the shifter to obtain the logical sum of them by the OR unit 214. The output data LD12 from the second line shifter 201b thus obtained is the same as the input data LD2.

【0054】次いで、第2ラインシフタ201a〜20
1cから出力される各ラインデータLD11〜LD13
は論理演算器13に送られ、論理演算器13からは各ラ
インデータの各桁毎の論理積をとった新たなラインデー
タLD14が出力される。
Next, the second line shifters 201a to 201a
1c output from the line data LD11 to LD13
Is sent to the logical operation unit 13, and the logical operation unit 13 outputs new line data LD <b> 14 obtained by calculating a logical product for each digit of each line data.

【0055】アンド器13aから出力されたラインデー
タLD14は第1ラインシフタ15に送られる。第1ラ
インシフタ15では、ラインデータLD14を左シフト
器15aにより上位桁方向へ桁移動すると共に、ライン
データLD14を右シフト器15bにより下位桁方向へ
桁移動し、その後、これら桁移動により作成された両ラ
インデータと桁移動のなされていないラインデータLD
4との各桁毎の論理積をアンド器15dにより演算する
(図3参照)。この演算結果は、第2ラインデータLD
2で示される主走査ラインにおける細らせラインデータ
LD15としてバスライン17に入力され、画像メモリ
7に記憶される。
The line data LD14 output from the AND unit 13a is sent to the first line shifter 15. In the first line shifter 15, the line data LD14 is shifted to the upper digit direction by the left shifter 15a, and the line data LD14 is shifted to the lower digit direction by the right shifter 15b. Both line data and line data LD with no digit shift
The AND of each digit with 4 is calculated by the AND unit 15d (see FIG. 3). The result of this operation is the second line data LD
The data is input to the bus line 17 as the thinning line data LD15 in the main scanning line indicated by 2, and is stored in the image memory 7.

【0056】さらに、本実施例では、第1実施例と同様
に、ラインデータLD15は、反転器13bとアンド器
13aとに入力される。アンド器13aでは、反転器1
3bから出力されたによりラインデータLD16と第2
ラインバッファ11bに格納された第2ラインデータL
D2との各桁位置毎のデータの論理積が求められる。こ
うして作り出されるラインデータは、エッジデータとし
てバスライン17に入力され、画像メモリ7に記憶され
る。
Further, in this embodiment, as in the first embodiment, the line data LD15 is input to the inverter 13b and the AND unit 13a. In the AND device 13a, the inverter 1
3b and the line data LD16 and the second
Second line data L stored in line buffer 11b
The logical product of D2 and data at each digit position is obtained. The line data thus created is input to the bus line 17 as edge data and stored in the image memory 7.

【0057】前記画像処理装置の動作により、線画がど
のように細らされるかを具体例を挙げて次に説明する。
第1実施例と同様に図5の(a)に示すビットマップ形
式の画像データDTを例とした。この画像データDTか
ら、まず、n番目からn+2番目までの主走査方向のラ
インデータLD1〜LD3が読み出され、第1ないし第
3ラインバッファ11a,11b,11cにそれぞれ格
納される。この格納結果を図15中のLD1,LD2お
よび図16中のLD3に示した。
Next, how the line drawing is reduced by the operation of the image processing apparatus will be described with reference to a specific example.
As in the first embodiment, the bitmap format image data DT shown in FIG. From the image data DT, first, line data LD1 to LD3 in the main scanning direction from the nth to the (n + 2) th are read out and stored in the first to third line buffers 11a, 11b and 11c, respectively. The storage results are shown in LD1 and LD2 in FIG. 15 and LD3 in FIG.

【0058】第1ないし第3ラインバッファ11a,1
1b,11cに第1ないし第3ラインデータLD1〜L
D3が格納されると、図15および図16に示す手順に
従ってラインデータの内容が変化する。即ち、図15に
示すように、第1ラインデータLD1は、第2ラインシ
フタ201aの左シフト器211に送られ、第1ライン
データLD1を1ビットだけ上位方向に桁移動したライ
ンデータLD1Lが作られる。なお、この桁移動の際、
桁移動により生じた最下位桁の空き位置には値0が補充
され、また、押し出された最上位桁の1ビットは捨てら
れる。
First to third line buffers 11a, 1
1b and 11c are first to third line data LD1 to LD
When D3 is stored, the content of the line data changes according to the procedure shown in FIGS. That is, as shown in FIG. 15, the first line data LD1 is sent to the left shifter 211 of the second line shifter 201a, and line data LD1L is generated by shifting the first line data LD1 by one bit in the upper direction. . When moving this digit,
The value 0 is added to the vacant position of the least significant digit generated by the digit shift, and one bit of the pushed out most significant digit is discarded.

【0059】また、第1ラインデータLD1は右シフト
器212にも送られ、第1ラインデータLD1を1ビッ
トだけ下位方向に桁移動したラインデータLD1Rが作
られる。なお、この桁移動の際、桁移動により生じた最
上位桁の空き位置には値0が補充され、また、押し出さ
れた最下位桁の1ビットは捨てられる。続いて、第1ラ
インデータLD1とラインデータLD1Lとラインデー
タLD1Rとがオア器214に送られ、これらラインデ
ータLD1,LD1L,LD1Rの論理和をとったライ
ンデータLD11が作られる。
The first line data LD1 is also sent to the right shifter 212 to produce line data LD1R obtained by shifting the first line data LD1 by one bit in the lower direction. At the time of this digit shift, a value 0 is added to the empty position of the most significant digit generated by the digit shift, and one bit of the pushed out least significant digit is discarded. Subsequently, the first line data LD1, the line data LD1L, and the line data LD1R are sent to the OR unit 214, and the line data LD11 obtained by calculating the logical sum of the line data LD1, LD1L, and LD1R is created.

【0060】一方、第3ラインバッファ11cに格納さ
れる第3ラインデータLD3は、第2ラインシフタ20
1cの左シフト器211に送られ、第3ラインデータL
D3を1ビットだけ上位方向に桁移動したラインデータ
LD3Lが作られる。なお、この桁移動の際、桁移動に
より生じた最下位桁の空き位置には値0が補充され、ま
た、押し出された最上位桁の1ビットは捨てられる。ま
た、第3ラインデータLD3から前記LD2と同様にし
てラインデータLD13が作られる。
On the other hand, the third line data LD3 stored in the third line buffer 11c is stored in the second line shifter 20.
1c to the left shifter 211 and the third line data L
Line data LD3L is generated by shifting D3 one bit higher in the upper direction. At the time of this digit shift, a value 0 is added to the vacant position of the least significant digit generated by the digit shift, and one bit of the pushed out most significant digit is discarded. Further, line data LD13 is generated from the third line data LD3 in the same manner as the above-mentioned LD2.

【0061】その後、図16に移り、両ラインデータL
D11,LD13と前記第2ラインバッファ11bに格
納された第2ラインデータLD2(実際は、第2ライン
シフタ201bを通過したものであるが、その内容は第
2ラインデータLD2と同じものである)とがアンド器
13aに送られ、これらラインデータLD2,LD1
1,LD13の論理積をとったラインデータLD14が
作られる。次いで、ラインデータLD14は左シフト器
15aに送られ、ラインデータLD14を1ビットだけ
上位方向に桁移動したラインデータLD14Lが作られ
る。なお、この桁移動の際、桁移動により生じた最下位
桁の空き位置には値0が補充され、また、押し出された
最上位桁の1ビットは捨てられる。
Thereafter, the flow shifts to FIG.
D11 and LD13 and the second line data LD2 stored in the second line buffer 11b (actually, the data passed through the second line shifter 201b, but have the same contents as the second line data LD2). The line data LD2 and LD1 are sent to the AND device 13a.
Line data LD14, which is the logical product of LD1 and LD13, is created. Next, the line data LD14 is sent to the left shifter 15a, and line data LD14L is generated by shifting the line data LD14 by one bit in the upper direction. At the time of this digit shift, a value 0 is added to the vacant position of the least significant digit generated by the digit shift, and one bit of the pushed out most significant digit is discarded.

【0062】一方、そのラインデータLD14は右シフ
ト器15bにも送られ、ラインデータLD14を1ビッ
トだけ下位方向に桁移動したラインデータLD14Rが
作られる。なお、この桁移動の際、桁移動により生じた
最上位桁の空き位置には値0が補充され、また、押し出
された最下位桁の1ビットは捨てられる。
On the other hand, the line data LD14 is also sent to the right shifter 15b to produce line data LD14R obtained by shifting the line data LD14 by one bit in the lower direction. At the time of this digit shift, a value 0 is added to the empty position of the most significant digit generated by the digit shift, and one bit of the pushed out least significant digit is discarded.

【0063】続いて、前記ラインデータLD14と桁移
動された両ラインデータLD4L,LD4Rとがアンド
器13aに送られ、これらラインデータLD14,LD
14L,LD4Rの論理積をとったラインデータLD1
5が作られる。このラインデータLD15はn+1ライ
ン目のラインデータLD2に細らせ処理を施した処理結
果としての細らせラインデータである。
Subsequently, the line data LD14 and both line data LD4L and LD4R shifted by one digit are sent to the AND unit 13a, and these line data LD14 and LD4 are sent.
Line data LD1 that is the logical product of 14L and LD4R
5 is made. The line data LD15 is thinned line data as a processing result obtained by performing a thinning process on the line data LD2 of the (n + 1) th line.

【0064】図14の(a)に示した画像データDTに
おいてnラインを0ラインからN−2ラインまで順に移
動することにより、画像データDTの全領域に渡って細
らせ処理を施すことができる。その細らせ処理の結果得
られる細らせ線画CLAを図14の(b)に示した。図
14の(a)と(b)とを比較すると、線画LAが細ら
せ線画CLAに細らされたことが判る。なお、細らせラ
インデータLD15から線画の輪郭を示すエッジデータ
を求めているが、この構成については第1実施例と同じ
であることから説明は省略する。
In the image data DT shown in FIG. 14A, the n-th line is sequentially moved from the 0th line to the N-2th line, so that a thinning process can be performed over the entire area of the image data DT. it can. FIG. 14B shows a thinned line drawing CLA obtained as a result of the thinning process. Comparing FIG. 14A and FIG. 14B, it can be seen that the line drawing LA has been narrowed down to the line drawing CLA. The edge data indicating the outline of the line image is obtained from the thinned line data LD15. However, since this configuration is the same as that of the first embodiment, the description is omitted.

【0065】以上詳述したように本第2実施例の画像処
理装置では、4近傍のウィンドウを用いた細らせ処理
近い処理結果が得られる。しかも、この実施例では、第
1実施例と同様に、ライン単位で演算処理を施すことが
でき、従来のようにウィンドウ内に逐一ビットデータを
取り込んで演算処理を行なう必要もない。このため、線
画の細らせを高速度で実現することができる。
[0065] In the image processing apparatus of the second embodiment, as described in detail above, the thinning process using the 4-neighbor window
Close processing results are obtained. Moreover, in this embodiment, as in the first embodiment, the arithmetic processing can be performed on a line-by-line basis, and it is not necessary to fetch the bit data one by one into the window and perform the arithmetic processing as in the related art. For this reason, the line drawing can be reduced at a high speed.

【0066】次に、4近傍の細らせを実現する他の画像
処理装置について述べる。まず、主走査方向の任意の1
ライン目(nライン目)のラインデータに対して左シフ
トと右シフトとをそれぞれ施す。次いで、左シフト後の
ラインデータ、右シフト後のラインデータおよびシフト
する前のラインデータと、さらに、そのnライン目に隣
接するn−1ライン目およびn+1ライン目の両ライン
データとの合計5つのラインデータの論理積をとる。こ
の論理積の結果が細らせラインデータとなる。こうし
て、前記第2実施例と同様に、線画に対する4近傍の細
らせを高速度で実現することができる。
Next, another image processing apparatus for realizing narrowing of four neighborhoods will be described. First, any one in the main scanning direction
A left shift and a right shift are performed on the line data of the line (n-th line). Next, the line data after the left shift, the line data after the right shift, the line data before the shift, and the line data of the (n-1) th line and the (n + 1) th line adjacent to the nth line, that is, a total of 5 AND the two line data. The result of this logical product becomes the thinning line data. In this manner, as in the second embodiment, narrowing of the line drawing in the vicinity of 4 can be realized at a high speed.

【0067】以上、本発明の実施例を詳述してきたが、
本発明は、こうした実施例に何等限定されるものではな
く、本発明の要旨を逸脱しない範囲において種々なる態
様にて実施することができるのは勿論のことである。
The embodiments of the present invention have been described in detail above.
The present invention is not limited to these embodiments at all, and it goes without saying that the present invention can be implemented in various modes without departing from the gist of the present invention.

【0068】[0068]

【発明の効果】以上詳述したように、本発明の画像処理
装置によれば、主走査方向のライン単位で細らせ処理を
行なうことができることから、線画の細らせを高速度で
実現することができる。
As described in detail above, according to the image processing apparatus of the present invention, since the thinning process can be performed in line units in the main scanning direction, the thinning of the line image can be realized at a high speed. can do.

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

【図1】本発明の第1の画像処理装置の作用を示す説明
図である。
FIG. 1 is an explanatory diagram illustrating an operation of a first image processing apparatus according to the present invention.

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

【図3】この画像処理装置に備えられる第1ラインシフ
タ15の概略構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a schematic configuration of a first line shifter 15 provided in the image processing apparatus.

【図4】この画像処理装置で実現される回路構成を示す
ブロック図である。
FIG. 4 is a block diagram illustrating a circuit configuration realized by the image processing apparatus.

【図5】この画像処理装置で細らされた細らせ画像デー
タを原画像データと共に示す説明図である。
FIG. 5 is an explanatory diagram showing thinned image data reduced by the image processing apparatus together with original image data.

【図6】第1ないし第3ラインバッファに格納されたラ
インデータLD1〜LD3がどの様に変化して細らせラ
インデータLD5が作られるかを示す説明図である。
FIG. 6 is an explanatory diagram showing how the line data LD1 to LD3 stored in the first to third line buffers are changed to create the thinned line data LD5.

【図7】細らせラインデータLD5からどの様にしてエ
ッジデータLD7が作られるかを示す説明図である。
FIG. 7 is an explanatory diagram showing how edge data LD7 is created from thinned line data LD5.

【図8】エッジデータLD7で表される線画の輪郭を示
す説明図である。
FIG. 8 is an explanatory diagram showing a contour of a line image represented by edge data LD7.

【図9】第1実施例の変形例としてCPU1により実行
される右シフト処理の手順を示すフローチャートであ
る。
FIG. 9 is a flowchart illustrating a procedure of a right shift process executed by the CPU 1 as a modified example of the first embodiment.

【図10】1ラインデータの分割領域H(1),H
(2),…,H(M)を示す説明図である。
FIG. 10 shows divided areas H (1) and H of one-line data.
It is explanatory drawing which shows (2), ..., H (M).

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

【図12】この画像処理装置に備えられる第2ラインシ
フタ201aの概略構成を示すブロック図である。
FIG. 12 is a block diagram illustrating a schematic configuration of a second line shifter 201a provided in the image processing apparatus.

【図13】この画像処理装置で実現される回路構成を示
すブロック図である。
FIG. 13 is a block diagram illustrating a circuit configuration realized by the image processing apparatus.

【図14】この画像処理装置で細らされた細らせ画像デ
ータを原画像データと共に示す説明図である。
FIG. 14 is an explanatory diagram showing thinned image data thinned by the image processing apparatus together with original image data.

【図15】第1ないし第3ラインバッファに格納された
ラインデータLD1〜LD3がどの様に変化して細らせ
ラインデータLD5が作られるかを示す手順の前半部分
の説明図である。
FIG. 15 is an explanatory diagram of the first half of a procedure showing how the line data LD1 to LD3 stored in the first to third line buffers are changed to create the thinned line data LD5.

【図16】その手順の後半部分の説明図である。FIG. 16 is an explanatory diagram of the latter half of the procedure.

【図17】従来例としての4近傍および8近傍のウィン
ドウを示す説明図である。
FIG. 17 is an explanatory diagram showing windows near 4 and 8 as a conventional example.

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

1 CPU 7 画像メモリ 11a 第1ラインバッファ 11b 第2ラインバッファ 11c 第3ラインバッファ 13 論理演算器 13a,13c アンド器 13b 反転器 15 ラインシフタ 15a 左シフト器 15b 右シフト器 15d アンド器 201a 第2ラインシフタ 201b 第2ラインシフタ 201c 第2ラインシフタ 211 左シフト器 212 右シフト器 214 オア器 LD1 第1ラインデータ LD2 第2ラインデータ LD3 第3ラインデータ LD5 細らせラインデータ LD7 エッジデータ LD15 細らせラインデータ LD7 エッジデータ DESCRIPTION OF SYMBOLS 1 CPU 7 Image memory 11a 1st line buffer 11b 2nd line buffer 11c 3rd line buffer 13 Logical operation unit 13a, 13c AND device 13b Inverter 15 Line shifter 15a Left shift device 15b Right shift device 15d AND device 201a Second line shifter 201b Second line shifter 201c Second line shifter 211 Left shifter 212 Right shifter 214 OR unit LD1 First line data LD2 Second line data LD3 Third line data LD5 Thinning line data LD7 Edge data LD15 Thinning line data LD7 Edge data

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字、イラスト等の線画画像をビットマ
ップ形式で表す画像データを処理することにより、細ら
せの対象領域となる線画部分を細らせる画像処理装置で
あって、 前記ビットマップ形式の画像データの内の互いに隣接す
る主走査方向の3ラインを3つのラインデータとしてラ
イン毎にそれぞれ記憶するラインデータ記憶手段と、 該ラインデータ記憶手段に記憶された3つのラインデー
タにおいて同一桁位置の組毎にデータの論理積を演算し
て新たなラインデータを作り出す第1論理積演算手段
と、 該第1論理積演算手段にて作り出されたラインデータを
1ビットだけ上位桁方向に桁移動する左シフト演算手段
と、 前記第1論理積演算手段にて作り出されたラインデータ
を1ビットだけ下位桁方向に桁移動する右シフト演算手
段と、 前記第1論理積演算手段,左シフト演算手段および右シ
フト演算手段にて作り出された3つのラインデータにお
いて同一桁位置の組毎にデータの論理積を演算して細ら
せラインデータを作り出す第2論理積演算手段とを備え
た画像処理装置。
1. An image processing apparatus for processing a line drawing image such as a character or an illustration in a bitmap format to reduce a line drawing portion to be a target area to be reduced. Line data storage means for storing three lines in the main scanning direction which are adjacent to each other among the image data of the format as three line data, and the same digit in the three line data stored in the line data storage means First logical product operation means for calculating logical product of data for each set of positions to generate new line data; digitizing the line data generated by the first logical product operation means by one bit in the upper digit direction Moving left shift operation means, and right shift operation means for shifting the line data created by the first AND operation means by one bit in the lower digit direction In the three line data generated by the first AND operation unit, the left shift operation unit, and the right shift operation unit, the AND operation of the data is performed for each set of the same digit position to narrow the line data to generate line data. An image processing apparatus comprising: a second AND operation unit.
【請求項2】 文字、イラスト等の線画画像をビットマ
ップ形式で表す画像データを処理することにより、細ら
せの対象領域となる線画部分を細らせる画像処理装置で
あって、 前記ビットマップ形式の画像データの内の互いに隣接す
る主走査方向の3ラインを第1ラインデータ,第2ライ
ンデータおよび第3ラインデータとしてライン毎にそれ
ぞれ記憶するラインデータ記憶手段と、 前記第1ラインデータを1ビットだけ上位桁方向に桁移
動する第1左シフト演算手段と、 前記第1ラインデータを1ビットだけ下位桁方向に桁移
動する第1右シフト演算手段と、 前記第1左シフト演算手段および第1右シフト演算手段
にて作り出された2つのラインデータと前記第1ライン
データとにおいて同一桁位置の組毎にデータの論理和を
演算して第4ラインデータを作り出す第1論理和演算手
段と、 前記第3ラインデータを1ビットだけ上位桁方向に桁移
動する第2左シフト演算手段と、 前記第3ラインデータを1ビットだけ下位桁方向に桁移
動する第2右シフト演算手段と、 前記第2左シフト演算手段および第2右シフト演算手段
にて作り出された2つのラインデータと前記第3ライン
データとにおいて同一桁位置の組毎にデータの論理和を
演算して第5ラインデータを作り出す第2論理和演算手
段と、 前記第2ラインデータ,第4ラインデータおよび第5ラ
インデータにおいて同一桁位置の組毎にデータの論理積
を演算して第6ラインデータを作り出す第1論理積演算
手段と、 前記第6ラインデータを1ビットだけ上位桁方向に桁移
動する第3左シフト演算手段と、 前記第6ラインデータを1ビットだけ下位桁方向に桁移
動する第3右シフト演算手段と、 前記第3左シフト演算手段および第3右シフト演算手段
にて作り出された2つのラインデータと前記第6ライン
データとにおいて同一桁位置の組毎にデータの論理積を
演算して細らせラインデータを作り出す第2論理積演算
手段とを備えた画像処理装置。
2. An image processing apparatus for processing image data representing a line drawing image such as a character or an illustration in a bitmap format, thereby narrowing a line drawing portion to be a narrowing target area. Line data storage means for storing three adjacent lines in the main scanning direction among the image data of the format as first line data, second line data and third line data for each line; First left shift operation means for shifting the digit by one bit in the upper digit direction, first right shift operation means for shifting the first line data by one bit in the lower digit direction, the first left shift operation means, The logical sum of the data is calculated for each pair of the same digit position between the two line data generated by the first right shift calculating means and the first line data, and First OR operation means for generating line data, second left shift operation means for shifting the third line data by one bit in the upper digit direction, and digit shift of the third line data by one bit in the lower digit direction Moving second right shift operation means; two line data generated by the second left shift operation means and the second right shift operation means and the third line data; A second logical sum calculating means for calculating a logical sum to generate fifth line data; and calculating a logical product of the data for each set of the same digit position in the second line data, the fourth line data and the fifth line data. First AND operation means for generating sixth line data by means of: a third left shift operation means for shifting the sixth line data by one bit in the upper digit direction; Third right shift operation means for shifting data by one bit in the lower digit direction; two line data generated by the third left shift operation means and the third right shift operation means; and the sixth line data. 2. An image processing apparatus comprising: a second logical product calculating means for calculating a logical product of data for each set at the same digit position to create line data by thinning.
JP4357168A 1992-12-21 1992-12-21 Image processing device Expired - Lifetime JP2750412B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4357168A JP2750412B2 (en) 1992-12-21 1992-12-21 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4357168A JP2750412B2 (en) 1992-12-21 1992-12-21 Image processing device

Publications (2)

Publication Number Publication Date
JPH06187439A JPH06187439A (en) 1994-07-08
JP2750412B2 true JP2750412B2 (en) 1998-05-13

Family

ID=18452735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4357168A Expired - Lifetime JP2750412B2 (en) 1992-12-21 1992-12-21 Image processing device

Country Status (1)

Country Link
JP (1) JP2750412B2 (en)

Also Published As

Publication number Publication date
JPH06187439A (en) 1994-07-08

Similar Documents

Publication Publication Date Title
US5414448A (en) Character/pattern generator and information processing system
JPH0154752B2 (en)
JPH0370232B2 (en)
JPH0698159A (en) Method and apparatus for binary coding
JPS6180374A (en) Microprocessing method and apparatus for veriable scanning area
JPS63223785A (en) How to fill the internal area of a closed shape
JP2750412B2 (en) Image processing device
EP0316956A2 (en) Image processing system
JP2002077612A (en) Image processing method and image processing apparatus
US5003304A (en) Pattern display signal generating apparatus and display apparatus using the same
JPS6353586B2 (en)
KR100266930B1 (en) Method of drawing figure such as polygon and display control device
JP2628300B2 (en) How to use the conversion circuit
JP2766478B2 (en) Image processing system
JPH0462104B2 (en)
JP2753349B2 (en) Arbitrary angle rotation image data input / output method, input / output circuit thereof, and electronic file device using the same
JP2838556B2 (en) Image processing device
JPH0425980A (en) Noise removing method
JP2591424B2 (en) Image memory device
JPH0793564A (en) Information extraction mask generation method
JPS60157672A (en) Picture processing circuit
JP2962613B2 (en) Pattern filling method
JP2697679B2 (en) Dither image display device
US5550648A (en) System for filling outlines by addition and subtraction according to start and end positions of the outlines
JP2647073B2 (en) Graphic display device