JPH0241230B2 - - Google Patents
Info
- Publication number
- JPH0241230B2 JPH0241230B2 JP59269075A JP26907584A JPH0241230B2 JP H0241230 B2 JPH0241230 B2 JP H0241230B2 JP 59269075 A JP59269075 A JP 59269075A JP 26907584 A JP26907584 A JP 26907584A JP H0241230 B2 JPH0241230 B2 JP H0241230B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- scanning direction
- data
- signal
- circuit
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 16
- 238000000034 method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 13
- 238000013500 data storage Methods 0.000 description 8
- 238000009499 grossing Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 241000872198 Serjania polyphylla Species 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000003796 beauty Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000009978 visual deterioration Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明は白黒2値の画像データを取扱う画像入
力装置やフアクシミリ装置などに対し、網点写真
を走査するときに発生するモアレを除去する画像
処理を行うが、この画像処理により劣化した文字
や線画の品質を改善するための画像信号処理装置
に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention provides image processing for removing moiré that occurs when scanning halftone photographs for image input devices and facsimile devices that handle binary black and white image data. This invention relates to an image signal processing device for improving the quality of characters and line drawings that have been degraded by image processing.
従来の技術
従来、新聞紙面にみられるような網点写真や文
字・線画など白黒2値の画像を走査して2値画像
データを得る場合には、画像を走査したアナログ
画像信号レベルを一定の閾値と比較し単紙に2値
化する方式がとられていた。Conventional technology Conventionally, when obtaining binary image data by scanning a black and white binary image such as a halftone photograph or text/line drawings found on a newspaper, the analog image signal level of the scanned image is set at a certain level. A method was used to compare it with a threshold value and binarize it into a single sheet of paper.
この単紙2値化方式においては網点写真の網点
周期と画像走査の走査周期との間で干渉が起こり
いわゆるモアレと呼ばれる干渉じまが発生し画像
品質を損なう原因となつていた。 In this single-paper binarization method, interference occurs between the halftone dot period of the halftone photograph and the scanning period of the image scan, resulting in interference fringes called moiré, which impairs image quality.
最近、前記モアレを除去する有効な画像信号処
理方式として報告された内容に、特願昭57−
97938号公報明細書に記載している構成がある。
しかしこの構成による画像信号処理では網点写真
のモアレ除去効果は大であるが、画像走査と平行
な文字・線画などの直線部分の白黒境界領域にお
いて白黒交互の高周波成分を発生しやすく、この
高周波成分が視覚的に文字品質劣化の原因となつ
ている。第7図は従来の2値化画像の説明図で、
同図aの例で説明すると太枠1の内側が黒である
2値画像を格子2の周期で走査した画像信号に対
し、一定レベルの閾値で2値化した画像は第7図
bに示す枠3(内側黒)のようになる。 Recently, a patent application filed in 1983 was published as an effective image signal processing method for removing moiré.
There is a configuration described in the specification of Publication No. 97938.
However, although image signal processing using this configuration has a great effect on removing moiré from halftone photographs, it tends to generate alternating black and white high frequency components in the black and white boundary areas of straight line parts such as characters and line drawings that are parallel to the image scan. The components visually deteriorate the character quality. Figure 7 is an explanatory diagram of a conventional binarized image.
To explain using the example in Figure 7a, the image signal obtained by scanning a binary image in which the inside of thick frame 1 is black with the period of grid 2 is binarized using a threshold of a certain level, and the image is shown in Figure 7b. It will look like frame 3 (black inside).
前記モアレ除去は原画像の黒面積と2値化画像
信号の黒面積が局部的にも同じになるよう画像処
理しており、この画像処理がモアレ除去に有効に
働くことになるのであるが、太枠1のような画像
に対して、モアレ除去処理した画像は第7図cに
示す枠4(内側黒)のようになり、同図の白黒交
互のパターンが文字や線画の視覚的な美しさ(滑
らかさ)を損なうことになる。従つてこの白黒交
互の高周波成分を平滑化することが必要となる。 The moire removal involves image processing so that the black area of the original image and the black area of the binary image signal are locally the same, and this image processing works effectively to remove moire. For an image like thick frame 1, the image after moiré removal processing looks like frame 4 (inner black) shown in Figure 7c, and the alternating black and white pattern in the same figure improves the visual beauty of characters and line drawings. This will impair the quality (smoothness). Therefore, it is necessary to smooth this alternating black and white high frequency component.
発明が解決しようとする問題点
ここで問題となるのは前記平滑化処理が網点写
真部に原画にない濃淡模様などの新新たなテクス
チヤを発生させたり、文字・線画などの角の部分
を丸めたりする悪影響を与えることである。Problems to be Solved by the Invention The problem here is that the smoothing process generates new textures such as shading patterns that are not present in the original image in the halftone photographic area, and the corner parts of characters and line drawings. It has the negative effect of curling up.
本発明は上記問題を解決するもので、画像走査
と平行な文字・線画の直線部分の白黒境界である
領域を検出し部分的な平滑化処理を行うことを目
的とする。 The present invention is intended to solve the above-mentioned problem, and aims to detect areas that are black and white boundaries of straight line portions of characters and line drawings parallel to image scanning, and to perform partial smoothing processing.
問題点を解決するための手段
本発明は2値画像信号に対しm×n画素の走査
窓で再走査を行い、走査窓の走査前方の画素に対
して孤立画素を除去した後走査と平行または直交
する2値画像信号の境界列を検出しその境界列に
対して平滑化処理を行う。境界列の検出は走査窓
中央の画素をはさむ一方の複数列のうち1列全て
が1(またはθ)であり他方の複数列のうち1列
全てがθ(または1)であれば中央画素を含む列
で境界列と判定する。この平滑化処理は境界列に
対して行い、重み付けをした後の多数決処理で中
央画素を1またはθに変換する。その後、走査窓
の走査後方の画素に対して孤立画素を除去するこ
とにより上記目的を達成するものである。Means for Solving the Problems The present invention performs rescanning on a binary image signal using a scanning window of m×n pixels, removes isolated pixels from the pixels in front of the scanning window, and then A boundary sequence of orthogonal binary image signals is detected and smoothing processing is performed on the boundary sequence. Boundary column detection is performed by detecting the center pixel if one of the plurality of columns sandwiching the pixel at the center of the scanning window is all 1 (or θ) and one of the other plurality of columns is all θ (or 1). The included columns are determined to be boundary columns. This smoothing process is performed on the boundary row, and the central pixel is converted to 1 or θ by majority voting process after weighting. Thereafter, the above object is achieved by removing isolated pixels from pixels behind the scanning window.
作 用
本発明は上記構成により、2値画像信号で走査
と平行または直交する2値画像信号の境界列を検
出しその境界列に対してのみ平滑化処理をするこ
とにより網点写真と文字・線画の混在する2値画
像に対して視覚的な文字品質の劣化となる直線部
分の白黒交互の高周波成分を無くすことができ、
かつ他の網点写真などの画像部分に画質劣化の悪
影響を与えないようにしたものである。なお、2
値画像信号の境界列の検出で中央画素をはさむそ
れぞれの複数列を用いて判定するのは雑音を含む
2値画像に対する境界列検出精度を向上させるた
めであり、平滑化処理で重み付けをしたは注目画
素(中央画素)の近傍情報を優先させるようにし
たものである。Effects According to the above configuration, the present invention detects a boundary row of a binary image signal that is parallel or perpendicular to scanning, and performs smoothing processing only on the boundary row, thereby converting halftone photographs and characters. It is possible to eliminate high-frequency components of alternating black and white in straight line parts, which cause visual deterioration of character quality in binary images containing line drawings.
Moreover, it is designed to prevent image quality deterioration from adversely affecting image parts such as other halftone photographs. In addition, 2
The reason why multiple columns sandwiching the central pixel are used to detect boundary columns of a value image signal is to improve the accuracy of boundary column detection for binary images containing noise. This is so that priority is given to information in the vicinity of the pixel of interest (center pixel).
実施例
第1図は本発明の一実施例における画像信号処
理装置のブロツク図である。第1図において5は
2値画像データ入力信号端子、6はデータ記憶回
路、7は5×5走査窓データの信号線、8は2値
画像データ出力信号端子、9は主走査方向の境界
列検出回路で10はその出力信号線、11は副走
査方向の境界列検出回路で12はその出力信号
線、13は主走査方向境界列データの重み付け加
算回路で14はその出力信号線、15は2値化回
路で16はその出力信号線、17は副走査方向境
界列データの重み付け加算回路で18はその出力
信号線、19は2値化回路で20はその出力信号
線、21はデータ選択回路、22はセツト/リセ
ツト信号の信号線、23は孤立画素除去回路、2
4,25はその出力信号線である。Embodiment FIG. 1 is a block diagram of an image signal processing apparatus according to an embodiment of the present invention. In FIG. 1, 5 is a binary image data input signal terminal, 6 is a data storage circuit, 7 is a signal line for 5×5 scanning window data, 8 is a binary image data output signal terminal, and 9 is a boundary row in the main scanning direction. In the detection circuit, 10 is its output signal line, 11 is a sub-scanning direction boundary row detection circuit, 12 is its output signal line, 13 is a weighting addition circuit for main-scanning direction boundary row data, 14 is its output signal line, and 15 is its output signal line. In the binarization circuit, 16 is its output signal line, 17 is a sub-scanning direction boundary column data weighting addition circuit, 18 is its output signal line, 19 is the binarization circuit, 20 is its output signal line, and 21 is data selection. circuit, 22 is a signal line for set/reset signals, 23 is an isolated pixel removal circuit, 2
4 and 25 are its output signal lines.
上記構成において、以下その動作について説明
する。 The operation of the above configuration will be explained below.
原画を走査し2値化された信号は2値画像デー
タ入力信号端子5からデータ記憶回路6に入る。
データ記憶回路6内には5×5走査窓を設定し、
記憶された2値データを再走査しており、走査窓
内データを信号線7に出力している。また、走査
窓内の中央画素は後述するセツト/リセツト信号
22により書換え可能になつている。さらに、走
査窓中の孤立画素も後述する孤立画素除去信号で
書換えられる。走査窓内の後述する最終データは
2値画像データ出力信号端子8へ出力され画像表
示・記録装置の画像信号となる。 A signal obtained by scanning the original image and converting it into a binary signal enters a data storage circuit 6 from a binary image data input signal terminal 5.
A 5×5 scanning window is set in the data storage circuit 6,
The stored binary data is rescanned, and the data within the scanning window is output to the signal line 7. Further, the central pixel within the scanning window can be rewritten by a set/reset signal 22, which will be described later. Furthermore, isolated pixels in the scanning window are also rewritten with an isolated pixel removal signal, which will be described later. Final data within the scanning window, which will be described later, is output to a binary image data output signal terminal 8 and becomes an image signal for the image display/recording device.
主走査方向の境界列検出回路9は信号線7の5
×5走査窓内データから、走査窓の中央画素をは
さむ主走査ラインデータの内、片側2列のいずれ
か1列全てθ(または1)であり、反対側2列い
ずれか1列全て1(またはθ)であれば中央画素
を含む主走査ラインデータを境界列と判定し信号
線10に1を出力する。副走査方向の境界列検出
回路11は信号線7の5×5走査窓内データか
ら、走査窓の中央画素をはさむ副走査ラインデー
タの内、片側2列のいずれか1列全てθ(または
1)であり、反対側2列のいずれか1列全て1
(またはθ)であれば中央画素を含む副走査ライ
ンデータを境界列と判定し信号線12に1を出力
する。主走査方向境界列データ重み付け加算回路
13は信号線7の5×5走査窓内データの内、中
央画素Pi,jを含む主走査ラインデータに対して次
式の重み付け総和Sを求め信号線14に出力す
る。 The boundary row detection circuit 9 in the main scanning direction
From the data in the ×5 scanning window, among the main scanning line data that sandwich the center pixel of the scanning window, one of the two columns on one side is all θ (or 1), and one of the two columns on the opposite side is all 1 ( or θ), the main scanning line data including the center pixel is determined to be a boundary column, and 1 is output to the signal line 10. The boundary row detection circuit 11 in the sub-scanning direction detects data in the 5×5 scanning window of the signal line 7 by detecting all θ (or 1 ), and any one of the two columns on the opposite side is all 1
(or θ), the sub-scanning line data including the center pixel is determined to be a boundary column, and 1 is output to the signal line 12. The main scanning direction boundary row data weighting addition circuit 13 calculates the weighted sum S of the following equation for the main scanning line data including the center pixel P i,j among the data within the 5×5 scanning window of the signal line 7, and calculates the weighted sum S of the signal line 7. Output to 14.
S=Pi,j-2+2Pi,j-1+Pi,j+2Pi,j+1
+Pi,j+2 ……(1)
データはθか1であるからSの範囲はθ≦S≦
7となる。このSの値は2値化回路15において
検査され、Sがθ〜3の時には信号線16にθ
を、Sが4〜7の時には信号線16に1を出力す
る。副走査方向境界列データの重み付け加算回路
17は信号線7の5×5走査窓内のデータの内、
中央画素Pi,jを含む副走査ラインデータに対して
次式の重み付け総和Sを求め信号線18に出力す
る。S=P i,j-2 +2P i,j-1 +P i,j +2P i,j+1 +P i,j+2 ...(1) Since the data is θ or 1, the range of S is θ≦S ≦
It becomes 7. This value of S is checked in the binarization circuit 15, and when S is θ~3, the signal line 16 is
When S is 4 to 7, 1 is output to the signal line 16. The sub-scanning direction boundary column data weighting addition circuit 17 selects among the data within the 5×5 scanning window of the signal line 7,
A weighted sum S of the following equation is determined for the sub-scanning line data including the center pixel P i,j and output to the signal line 18.
S=Pi-2,j+2Pi-1,j+Pi,j+2Pi+1,j
+Pi+2,j ……(2)
このSの値は2値化回路19において検査さ
れ、Sがθ〜3の時には信号線20にθを、Sが
4〜7の時には信号線20に1を出力する。デー
タ選択回路21は信号線10が1の時には信号線
16の信号を信号線22のセツト/リセツト信号
とし、信号線12が1の時には信号線20の信号
を信号線22のセツト/リセツト信号とする。信
号線10と信号線12が同時に1になることは前
記境界列検出により理論的に発生しない。信号線
10と信号線12がともにθのときには信号線2
2はオープンの状態である。信号線22のセツ
ト/リセツト信号はデータ記憶回路6内の5×5
走査窓の中央画素データPi,jを1/θに書換える。S=P i-2,j +2P i-1,j +P i,j +2P i+1,j +P i+2,j ...(2) This value of S is checked in the binarization circuit 19, and S When S is θ to 3, θ is output to the signal line 20, and when S is 4 to 7, 1 is output to the signal line 20. The data selection circuit 21 uses the signal on the signal line 16 as the set/reset signal on the signal line 22 when the signal line 10 is 1, and uses the signal on the signal line 20 as the set/reset signal on the signal line 22 when the signal line 12 is 1. do. The signal line 10 and signal line 12 becoming 1 at the same time does not theoretically occur due to the boundary column detection. When signal line 10 and signal line 12 are both θ, signal line 2
2 is an open state. The set/reset signal on the signal line 22 is connected to a 5×5 signal in the data storage circuit 6.
The center pixel data P i,j of the scanning window is rewritten to 1/θ.
孤立画素除去回路23は信号線7の5×5走査
窓内データの内、走査の前方に位置する画素
Pi+1,j+1がθの孤立画素であれば孤立画素除去信
号の1を信号線24に出力し、1の孤立画素であ
れば孤立画素除去信号のθを信号線24に出力す
る。また走査の後方に位置する画素Pi-1,j-1に対
しても同様の処理を行い信号線25に孤立画素除
去信号の1/θを出力する。信号線24と25の
信号はデータ記憶回路6の走査窓内データを駆動
することにより前者の信号線24の信号は入力画
像データの孤立雑音除去を行い、後者の信号線2
5の信号は前記の中央画素データPi,jを書換える
ことによつて新たに発生した孤立画素の除去をし
ている。また、前者の雑音除去は前記境界列検出
をより確かなものにする。 The isolated pixel removal circuit 23 removes pixels located in the front of the scan among the data within the 5×5 scan window of the signal line 7.
If P i+1,j+1 is an isolated pixel of θ, an isolated pixel removal signal of 1 is output to the signal line 24, and if it is an isolated pixel of 1, an isolated pixel removal signal of θ is output to the signal line 24. . Further, similar processing is performed on the pixels P i-1,j-1 located at the rear of the scan, and 1/θ of the isolated pixel removal signal is outputted to the signal line 25. The signals on the signal lines 24 and 25 drive the data within the scanning window of the data storage circuit 6, so that the signal on the former signal line 24 removes isolated noise from the input image data, and the signal on the latter signal line 2
The signal No. 5 removes newly generated isolated pixels by rewriting the central pixel data P i,j . Moreover, the former noise removal makes the boundary sequence detection more reliable.
以下、上記構成の要部について、さらに詳細な
構成を説明する。 Hereinafter, more detailed configuration of the main parts of the above configuration will be explained.
第2図はデータ記憶回路6の詳細な回路図であ
る。第2図において、26〜29はそれぞれ一走
査線分の画素データを記憶するシフトレジスタで
ある。従つて同図に示すPi+2,j+2〜Pi-2,j-2の画素
データが5×5走査窓データとなり信号線7に出
力される。この内Pi-2,j-2は最終データとして2
値画像データ出力信号端子8にも出力される。信
号線22のセツト/リセツト信号は3状態(1、
θ、オープン)信号で中央画素Pi,jを1/θにセ
ツト/リセツトする。オープンのときPi,jは変化
しない。 FIG. 2 is a detailed circuit diagram of the data storage circuit 6. In FIG. 2, numerals 26 to 29 are shift registers each storing pixel data for one scanning line. Therefore, the pixel data of P i+2,j+2 to P i-2,j-2 shown in the figure becomes 5×5 scanning window data and is output to the signal line 7. Of these, P i-2,j-2 is 2 as the final data
The value image data is also output to the output signal terminal 8. The set/reset signal on the signal line 22 has three states (1,
θ, open) signal sets/resets the central pixel P i,j to 1/θ. When open, P i,j does not change.
信号線24の孤立画素除去信号はその信号レベ
ルθまたは1を画素Pi+1,j+1に設定する。また、
信号線25の孤立画素除去信号も同様に画素
Pi-1,j-1に設定する。 The isolated pixel removal signal on the signal line 24 sets its signal level θ or 1 to the pixel P i+1,j+1 . Also,
Similarly, the isolated pixel removal signal on the signal line 25
Set to P i-1,j-1 .
次に、境界列検出回路9について説明する。 Next, the boundary column detection circuit 9 will be explained.
第3図は主走査方向の境界列検出回路9の詳細
ブロツク結線図である。第3図において、30〜
33はゲート回路網で、第3図bにその具体的回
路を示す。 FIG. 3 is a detailed block diagram of the boundary row detection circuit 9 in the main scanning direction. In Figure 3, 30~
33 is a gate circuit network, the specific circuit of which is shown in FIG. 3b.
35〜42は各ゲート回路網30〜33の出力
信号線、43〜46はオア回路、47〜48はア
ンド回路、49はオア回路である。ゲート回路網
30〜33はそれぞれ5×5走査窓データの内、
中心画素Pi,jを含まない主走査ラインデータを入
力とし、ゲート回路網30〜33の入力が全てθ
のとき1を出力する信号線35,37,39,4
1と入力が全て1のとき1を出力する信号線3
6,38,40,42をもつ。ゲート回路網30
と31は前記中央画素Pi,jをはさむ主走査ライン
データの内片側2列のデータ判定を、ゲート回路
網32と33は反対側2列のデータ判定を行つて
いる。オア回路43〜46はそれぞれ信号線35
と37,36と38,39と41,40と42の
論理和信号を出力する。アンド回路47〜48は
それぞれオア回路43と46,44と45の出力
の論理積信号を出力する。オア回路49はアンド
回路47と48の出力の論理和信号を信号線10
に出力する。この信号線10の信号が1のとき、
中央画素Pi,jを含む主走査ラインデータが境界列
と判定されたことになる。 35-42 are output signal lines of each gate circuit network 30-33, 43-46 are OR circuits, 47-48 are AND circuits, and 49 is an OR circuit. Gate circuit networks 30 to 33 each contain 5×5 scanning window data,
The main scanning line data that does not include the center pixel P i,j is input, and the inputs of the gate circuit networks 30 to 33 are all θ.
Signal lines 35, 37, 39, 4 that output 1 when
1 and signal line 3 that outputs 1 when all inputs are 1
It has 6, 38, 40, 42. Gate circuit network 30
and 31 perform data determination on two columns on one side of the main scanning line data sandwiching the central pixel P i,j, and gate circuit networks 32 and 33 perform data determination on two columns on the opposite side. The OR circuits 43 to 46 each have a signal line 35
and 37, 36 and 38, 39 and 41, and 40 and 42 are output. AND circuits 47 to 48 output AND signals of the outputs of OR circuits 43 and 46, and 44 and 45, respectively. The OR circuit 49 sends the OR signal of the outputs of the AND circuits 47 and 48 to the signal line 10.
Output to. When the signal on this signal line 10 is 1,
This means that the main scanning line data including the center pixel P i,j is determined to be a boundary row.
なお、副走査方向の境界列検出回路11の詳細
な構成(図示せず)も第3図と同じ構成となり、
各ゲート回路網への入力データは次のようにな
る。 Note that the detailed configuration (not shown) of the boundary row detection circuit 11 in the sub-scanning direction is also the same as that in FIG.
The input data to each gate network is as follows.
(Pi-2,j-2Pi−1,j−2Pi,j-2Pi+1,j-2
Pi+2、j-2)、
(Pi-2,j-1Pi-1,j-1Pi,j-1Pi+1,j-1Pi+2,j-1)、
(Pi-2,j+1Pi-1,j+1Pi,j+1Pi+1,j+1Pi+2,j+1)、
(Pi-2,j+2Pi-1,j+2Pi,j+2Pi+1,j+2Pi+2,j+2)。 (P i-2,j-2 Pi-1,j-2P i,j-2 P i+1,j-2
P i+2 , j-2 ), (P i-2,j-1 P i-1,j-1 P i,j-1 P i+1,j-1 P i+2,j-1 ) , (P i-2,j+1 P i-1,j+1 P i,j+1 P i+1,j+1 P i+2,j+1 ), (P i-2,j+ 2 P i-1,j+2 P i,j+2 P i+1,j+2 P i+2,j+2 ).
次に、重み付け加算回路13と2値化回路15
について説明する。 Next, the weighted addition circuit 13 and the binarization circuit 15
I will explain about it.
主走査方向境界列データの重み付け加算回路1
3と2値化回路15は、前記第1式の簡単な重み
付け加算と2値化(S=θ〜3のときθ、S=4
〜7のとき1とする)のときには2つの回路をま
とめて簡単に構成できる。第4図に主走査方向境
界列データの重み付け加算と2値化回路の詳細な
構成を示す。同図において、50は2ビツトの加
算回路、51はアンドゲート、52はオアゲート
である。加算回路50はPi,j-1を上位ビツト、
Pi,j-2を下位ビツトとするデータとPi,j+1を上位ビ
ツト、Pi,j+2を位下ビツトとするデータを加算す
る。アンドゲート51は加算回路50の加算値下
位2ビツトとPi,jの論理積をとり、オアゲート5
2は加算回路50の上位1ビツトとアンドゲート
51の出力の論理和をとり信号線16に出力す
る。 Weighting addition circuit 1 for main scanning direction boundary row data
3 and the binarization circuit 15 perform simple weighted addition and binarization of the first equation (when S=θ~3, θ, S=4
7), the two circuits can be easily configured together. FIG. 4 shows the detailed configuration of the weighted addition and binarization circuit for boundary row data in the main scanning direction. In the figure, 50 is a 2-bit adder circuit, 51 is an AND gate, and 52 is an OR gate. The adder circuit 50 selects P i,j-1 as the upper bit,
Data with P i,j-2 as the lower bit and data with P i,j+1 as the upper bit and P i,j+2 as the lower bit are added. The AND gate 51 performs the logical product of the lower two bits of the addition value of the adder circuit 50 and P i,j, and outputs the OR gate 5.
2 takes the logical sum of the upper 1 bit of the adder circuit 50 and the output of the AND gate 51 and outputs the result to the signal line 16.
なお、副走査方向境界列データの重み付け加算
回路17と2値化回路19も第4図と同じ構成と
なり、このときの加算回路はPi-1,jを上位ビツト、
Pi-2,jを下位ビツトとするデータとPi+1,jを上位ビ
ツト、Pi+2、jを下位ビツトとするデータを加算す
ることになる。 Note that the weighting addition circuit 17 and the binarization circuit 19 for the sub-scanning direction boundary row data also have the same configuration as in FIG .
Data with P i-2,j as the lower bit and data with P i+1,j as the upper bit and P i+2 , j as the lower bit are added.
次に、データ選択回路21について説明する。 Next, the data selection circuit 21 will be explained.
第5図はデータ選択回路21の詳細構成を示す
ものである。同図において、53,54は3状態
出力のバスバツフアゲートであり、それぞれ信号
線10,12が1のときゲート出力がオンとな
る。前記したように信号線10,12が同時に1
になる状態は論理的に発生しない。 FIG. 5 shows the detailed configuration of the data selection circuit 21. In the figure, reference numerals 53 and 54 are bus buffer gates with three-state outputs, and when the signal lines 10 and 12 are 1, the gate outputs are turned on. As mentioned above, the signal lines 10 and 12 are simultaneously
Such a state cannot logically occur.
次に、孤立画素除去回路23について説明す
る。 Next, the isolated pixel removal circuit 23 will be explained.
第6図は孤立画素除去回路23の詳細な回路図
である。孤立画素は注目画素周辺8画素による判
定と注目画素周辺の上下左右4画素による判定と
があるが、本実施例では後者のものを示してい
る。同図において、55〜57と60〜62は排
他的論理和ゲート、58と63はアンドゲート、
59と64は3状態出力のバスバツフアゲートで
ある。排他的論理和ゲート55〜57とアンドゲート
58は注目画素Pi+1,j+1の上下左右の画素データ
Pi+1,jPi+1,j+2Pi,j+1Pi+2,j+1が全て同じであるときバ
スバツフアゲート59をオンにする。バスバツフ
アゲート59はオンのとき画素Pi+2,j+1の信号を
信号線24に出力する。同様に排他的論理和ゲー
ト60〜62とアンドゲート63は注目画素
Pi-1,j-1の上下左右の画素データPi-1,j-2Pi-1、j
Pi-2,j-1Pi,j-1が全て同じであるときバスバツフア
ゲート64をオンにし、バスバツフアゲート64
は画素Pi,j-1の信号を信号線25に出力する。 FIG. 6 is a detailed circuit diagram of the isolated pixel removal circuit 23. An isolated pixel can be determined based on 8 pixels around the pixel of interest, or determined using 4 pixels on the top, bottom, left, and right around the pixel of interest, and this embodiment shows the latter. In the figure, 55-57 and 60-62 are exclusive OR gates, 58 and 63 are AND gates,
59 and 64 are bus buffer gates with three-state output. Exclusive OR gates 55 to 57 and AND gate 58 are pixel data on the top, bottom, left and right of the pixel of interest P i+1,j+1
When P i+1,j P i+1,j+2 P i,j+1 P i+2,j+1 are all the same, the bus buffer gate 59 is turned on. The bus buffer gate 59 outputs the signal of the pixel P i+2,j+1 to the signal line 24 when it is on. Similarly, exclusive OR gates 60 to 62 and AND gate 63 are pixels of interest.
Pixel data on the top , bottom, left and right of P i-1 ,j-1 P i-1,j-2 P i-1 , j
P i-2,j-1 When P i,j-1 are all the same, the bus buffer gate 64 is turned on, and the bus buffer gate 64
outputs the signal of pixel P i,j-1 to the signal line 25.
以上本実施例によれば走査窓の前方に位置する
画素の孤立画素除去をした後、走査窓の中央画素
をはさむ両側それぞれ複数ラインデータで中央画
素を含むラインが境界であることを判定している
ため、雑音等により境界が乱れている画像データ
に対しても境界を正しく判定する割合いが高くな
る。また主走査または副走査の境界線方向にある
中央画素を含むラインの重み付け加算値を2値化
処理し、中央画素再設定する方式は画像の線分の
方向に対してのみの平滑化処理であり視覚的に良
好な結果が得られることを実験的に確かめてい
る。さらに中央画素の再設定により新たに発生し
た孤立画素は走査窓の後方に位置する所で除去さ
れるため雑音の少ない再生画像を得ることができ
る。 As described above, according to this embodiment, after removing isolated pixels located in front of the scanning window, it is determined that the line containing the central pixel is a boundary using multiple line data on each side of the central pixel of the scanning window. Therefore, the rate of correctly determining boundaries is increased even for image data whose boundaries are disturbed due to noise or the like. In addition, the method of binarizing the weighted addition value of the line including the center pixel in the direction of the boundary line of main scanning or sub-scanning and resetting the center pixel is a smoothing process only in the direction of the line segment of the image. It has been experimentally confirmed that visually good results can be obtained. Furthermore, by resetting the central pixel, newly generated isolated pixels are removed at the rear of the scanning window, so a reproduced image with less noise can be obtained.
発明の効果
以上のように本発明は網点写真や文字線画の混
在する2値画像に対して、画像走査と平行な文
字・像画の直線部分の白黒境界領域を検出し部分
的な平滑化処理をかけることができるため、網点
写真を劣化させたり、文字線画の角の部分を丸め
たりせずに視覚的に良好な画像とすることがで
き、その効果は大きい。Effects of the Invention As described above, the present invention detects the black and white boundary area of the straight line part of the character/image parallel to the image scanning and performs partial smoothing on a binary image containing halftone photographs and character/line drawings. Since the process can be applied, it is possible to create a visually good image without deteriorating the halftone photograph or rounding the corners of the text and line drawings, which is highly effective.
第1図は本発明の一実施例における画像信号処
理装置のブロツク結線図、第2図はデータ記憶回
路の回路図、第3図aは主走査方向の境界列検出
回路のブロツク結線図、第3図bは同要部回路
図、第4図は主走査方向境界列データの重み付け
加算と2値化回路の回路図、第5図はデータ選択
回路の回路図、第6図は孤立画素除去回路の回路
図、第7図は従来の2値化画像処理の概念図であ
る。
5……2値画像データ入力信号端子、6……デ
ータ記憶回路、7……信号線、8……2値画像デ
ータ出力信号端子、9……境界列検出回路、13
……重み付け加算回路、11……境界列検出回
路、17……重み付け加算回路、21……データ
選択回路、23……孤立画素除去回路。
FIG. 1 is a block wiring diagram of an image signal processing device according to an embodiment of the present invention, FIG. 2 is a circuit diagram of a data storage circuit, FIG. 3a is a block wiring diagram of a boundary row detection circuit in the main scanning direction, and FIG. Figure 3b is the circuit diagram of the same main part, Figure 4 is the circuit diagram of the weighted addition and binarization circuit for border column data in the main scanning direction, Figure 5 is the circuit diagram of the data selection circuit, and Figure 6 is the isolated pixel removal circuit. The circuit diagram of FIG. 7 is a conceptual diagram of conventional binarized image processing. 5... Binary image data input signal terminal, 6... Data storage circuit, 7... Signal line, 8... Binary image data output signal terminal, 9... Boundary row detection circuit, 13
... Weighted addition circuit, 11 ... Boundary column detection circuit, 17 ... Weighted addition circuit, 21 ... Data selection circuit, 23 ... Isolated pixel removal circuit.
Claims (1)
処理に対して、前記2値画像信号をm×n画素の
走査窓で再走査する手段と、前記走査窓の中央画
素より主走査・副走査とも走査の前方に位置する
画素に対して孤立画素を除去する第1の孤立画素
除去手段と、前記走査窓の中央画素を含む主走査
または副走査方向の画素列が主走査と平行または
副走査と平行な2値画像信号の境界列であること
を検出する境界列検出手段と、前記中央画素を含
む主走査方向の画素列が主走査方向の境界列であ
るときには前記中央画素を含む主走査方向の各画
素の重み付け総和を求めて2値化し、前記中央画
素とする第1の重み付け加算手段と、前記中央画
素を含む副走査方向の画素列が副走査方向の境界
列であるときには前記中央画素を含む副走査方向
の各画素の重み付け総和を求めて2値化し前記中
央画素とする第2の重み付け加算手段と、前記走
査窓の中央画素より主走査・副走査とも走査の後
方に位置する画素に対して孤立画素除去する第2
の孤立画素除去手段を有する画像信号処理装置。 2 境界列検出手段は、中央画素を含む主走査ま
たは副走査方向の画素列の片方に隣接する2列の
内1列全てが1(またはθ)であり、他方に隣接
する2列の内1列全てがθ(または1)であると
き、前記中央画素を含む主走査または副走査方向
の画素列を主走査方向の画素列または副走査方向
の画素列とすることを特徴とする特許請求の範囲
第1項記載の画像信号処理装置。[Claims] 1. For image signal processing to scan an original image and obtain a binary image signal, means for rescanning the binary image signal with a scanning window of m×n pixels, and a means for rescanning the binary image signal with a scanning window of m×n pixels; a first isolated pixel removing means for removing an isolated pixel from a pixel located ahead of the pixel in both the main scanning and sub scanning directions; and a pixel column in the main scanning or sub scanning direction including the central pixel of the scanning window. Boundary row detection means for detecting a boundary row of a binary image signal parallel to main scanning or parallel to sub-scanning, and when a pixel row in the main scanning direction including the center pixel is a boundary row in the main scanning direction; A first weighted addition means calculates and binarizes the weighted sum of each pixel in the main scanning direction including the center pixel, and sets it as the center pixel; When it is a boundary row, a second weighted addition means calculates and binarizes the weighted sum of each pixel in the sub-scanning direction including the center pixel and uses it as the center pixel; The second method removes isolated pixels for pixels located at the rear of the scan.
An image signal processing device having isolated pixel removal means. 2. The boundary row detection means is configured such that one of the two pixel rows adjacent to one of the pixel rows in the main scanning or sub-scanning direction including the center pixel is all 1 (or θ), and one of the two rows adjacent to the other one is 1 (or θ). When all the columns are θ (or 1), the pixel column in the main scanning direction or the sub-scanning direction including the central pixel is defined as the pixel column in the main scanning direction or the pixel column in the sub-scanning direction. The image signal processing device according to scope 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59269075A JPS61145963A (en) | 1984-12-19 | 1984-12-19 | Picture signal processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59269075A JPS61145963A (en) | 1984-12-19 | 1984-12-19 | Picture signal processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61145963A JPS61145963A (en) | 1986-07-03 |
| JPH0241230B2 true JPH0241230B2 (en) | 1990-09-17 |
Family
ID=17467309
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59269075A Granted JPS61145963A (en) | 1984-12-19 | 1984-12-19 | Picture signal processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61145963A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7391824B2 (en) * | 2020-12-03 | 2023-12-05 | 株式会社東芝 | Information processing device, information processing method and program |
-
1984
- 1984-12-19 JP JP59269075A patent/JPS61145963A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61145963A (en) | 1986-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3097785B2 (en) | Image processing device | |
| JP3568732B2 (en) | Image processing device | |
| JPH0241230B2 (en) | ||
| JPH0213510B2 (en) | ||
| JPH08272956A (en) | Method and device for noise removal | |
| JPH0550187B2 (en) | ||
| JP2001119575A (en) | Image processing device | |
| JP2878318B2 (en) | Image area determination method for binary image | |
| JP2812401B2 (en) | Image processing device | |
| JPS61145962A (en) | Picture signal processing device | |
| JP2581049B2 (en) | Image area determination device | |
| JP3524261B2 (en) | Image processing device | |
| JPH0546749B2 (en) | ||
| JP2777476B2 (en) | Image processing device | |
| JP2521744B2 (en) | Image processing device | |
| JP4215225B2 (en) | Image processing apparatus and image processing method | |
| JPH0457274B2 (en) | ||
| JP2853141B2 (en) | Image area identification device | |
| JP2853140B2 (en) | Image area identification device | |
| JPS63193770A (en) | Image processing method and device | |
| JPS5967780A (en) | Image quality correction method | |
| JPH02195774A (en) | Multilevel image binarizing system | |
| JPS6358424B2 (en) | ||
| JP2800199B2 (en) | Image area identification device | |
| JPH0614352B2 (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |