JPH0778247A - Device and method for eliminating binary image noise - Google Patents

Device and method for eliminating binary image noise

Info

Publication number
JPH0778247A
JPH0778247A JP5223592A JP22359293A JPH0778247A JP H0778247 A JPH0778247 A JP H0778247A JP 5223592 A JP5223592 A JP 5223592A JP 22359293 A JP22359293 A JP 22359293A JP H0778247 A JPH0778247 A JP H0778247A
Authority
JP
Japan
Prior art keywords
image
axis
parameter
processed
noise removal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5223592A
Other languages
Japanese (ja)
Inventor
Hiroshi Iida
博史 飯田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP5223592A priority Critical patent/JPH0778247A/en
Publication of JPH0778247A publication Critical patent/JPH0778247A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To surely eliminate noises crowded in a binary image without requiring specific hardware by applying specific processing to an image to be processed. CONSTITUTION:A noise elimination part 13 takes the AND of the image to be processed and image in which the image to be processed is shifted in X and Y axial directions or two directions at 45 deg. from X axis or Y axis, respectively according to a shift parameter, and repeats processing to set the above result as the next image to be processed for (n) times (n>=2) according to a noise elimination parameter. The noise elimination part takes the AND of obtained images to be processed in the X and Y axis or in the two directions at 45 deg. from the X or Y axis and shifted images in which the image to be processed is shifted in at least the two directions according to the shift parameter, and repeats the processing to set the result as the next image to be processed for (n) times (n>=2) according to the noise elimination parameter. The AND of all the obtained images to be processed is taken, then, the AND of the result and an original image is taken.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、スキャナやファクシ
ミリから2値画像を入力して蓄積や検索などを行う画像
処理システムに関し、詳しくは入力した2値画像のノイ
ズ除去に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing system for inputting a binary image from a scanner or a facsimile and storing or retrieving the binary image, and more particularly to noise removal of the input binary image.

【0002】[0002]

【従来の技術】一般に、スキャナやファクシミリから入
力した画像には雑音成分(ノイズ)が含まれている。こ
のノイズの影響を少なくするため、従来の画像処理シス
テムでは、必須または選択のいずれかにより、多値で入
力した画像に対してノイズ除去を行って2値化するか、
または2値で入力した画像に対してノイズ除去を行って
から画像の蓄積/登録等の処理を行っている。
2. Description of the Related Art Generally, an image input from a scanner or a facsimile contains a noise component (noise). In order to reduce the effect of this noise, in the conventional image processing system, noise removal is performed on the multi-valued input image to perform binarization, according to either indispensability or selection.
Alternatively, noise removal is performed on a binary input image, and then image accumulation / registration processing is performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、多値で
入力した画像に対してノイズ除去を行って2値化する方
式(例えば特開平4−208772)では、遠隔地から
送信されてきたファクシミリ画像は一般的に2値画像で
あるため、これには適用できないという不具合がる。
However, in the method of binarizing a multi-valued image by removing noise from the image (for example, Japanese Patent Laid-Open No. 4-208772), a facsimile image transmitted from a remote location is Since it is generally a binary image, it cannot be applied to this.

【0004】また、2値で入力した画像に対してのノイ
ズ除去方式(例えば特開平4−205276)では、判
別する基準点の2値信号と、その基準点の周囲点の2値
信号を加算し、その加算結果がある閾値以上の場合のみ
信号画像とみなし、閾値以下の場合はノイズ画素と判断
しているため、ノイズ画素が密集しているような状況で
はノイズ画素であるにもかかわらず、信号画素とみなさ
れる場合が多い。しかも、特開平4−205276号の
ノイズ除去装置では、シフトレジスタを組み合わせて信
号判定回路を構成しているため、ノイズ除去を行うため
に特殊なハードウェアが必要になるという難点がある。
Further, in a noise removal method for a binary input image (for example, Japanese Patent Laid-Open No. 4-205276), a binary signal of a reference point to be discriminated and a binary signal of surrounding points of the reference point are added. However, if the addition result is greater than a certain threshold value, it is considered as a signal image, and if it is less than the threshold value, it is determined as a noise pixel, so it is a noise pixel in a situation where noise pixels are dense. , Are often regarded as signal pixels. Moreover, in the noise eliminator disclosed in Japanese Patent Laid-Open No. 4-205276, since the signal determination circuit is configured by combining the shift registers, there is a drawback that special hardware is required to remove the noise.

【0005】さらに、2値で入力した画像に対してのノ
イズ除去方式(例えば特開昭64−3782)では、2
値画像のシフト、AND、ORという画像処理命令を組
み合わせて2値画像に対するノイズ除去を行うようにし
たものが提案されている。この方式では、2値画像のシ
フトはX方向、Y方向、または±45度方向についての
処理をそれぞれ一回だけ行い、その結果を組み合わせて
除去された画像を求めるか、あるいはX方向、Y方向に
ついての処理をそれぞれ交互に繰り返す方式を用いてい
る。ところが、この方式では図9(a)に示すような原
画像の場合、ノイズ除去処理を実施しても、(b)のよ
うにあるドット以上に密集しているノイズ(領域C)を
除去できないという難点があった。
Further, in the noise removal method for an image input in binary (for example, Japanese Patent Laid-Open No. 64-3782), 2 is used.
It has been proposed that image processing instructions such as shift of a value image, AND and OR are combined to remove noise from a binary image. In this method, the binary image is shifted only once in the X direction, Y direction, or ± 45 ° direction, and the result is combined to obtain the removed image, or the image is removed in the X direction, Y direction. The method of repeating each of the above processes is used. However, with this method, in the case of an original image as shown in FIG. 9A, even if noise removal processing is performed, noise (area C) that is denser than a certain dot as shown in FIG. 9B cannot be removed. There was a difficulty.

【0006】この発明は、特殊なハードウェアを必要と
せずに、2値画像の密集しているノイズを確実に除去で
きる2値画像ノイズ除去装置およびノイズ除去方法を提
供することを目的とする。
It is an object of the present invention to provide a binary image noise removing device and a noise removing method which can reliably remove the noise in which a binary image is dense, without requiring special hardware.

【0007】[0007]

【課題を解決するための手段】第1の発明に係わる2値
画像ノイズ除去装置は、原画像となる2値の画像データ
を入力する画像データ入力手段と、ノイズ除去のための
ノイズ除去パラメータを記憶するノイズ除去パラメータ
記憶手段と、画像をシフトする際の基準となるシフトパ
ラメータを記憶するシフトパラメータ記憶手段と、前記
画像データに基づく処理対象画像と、当該処理対象画像
を前記シフトパラメータに従ってそれぞれX軸方向、Y
軸方向、X軸またはY軸から45度の2方向にシフトし
たシフト画像の論理積をとり、その結果を次の処理対象
画像とする処理をノイズ除去パラメータで指定されたn
(n≧2)回分繰り返す第1のノイズ除去手段と、前記
第1のノイズ除去手段で得られたX軸方向、Y軸方向、
X軸またはY軸から45度の2方向のそれぞれの処理対
象画像と、当該処理対象画像を前記シフトパラメータに
従って少なくとも2方向にシフトしたシフト画像との論
理和をとる処理と、当該処理結果と原画像との論理積を
とり、その結果を次の論理和をとる処理の処理対象画像
とする処理をノイズ除去パラメータに従ってn(n≧
2)回繰り返す第2のノイズ除去手段と、前記第2のノ
イズ除去手段で得られたX軸方向、Y軸方向、X軸また
はY軸から45度の2方向の処理対象画像の全ての論理
和をとり、その結果と原画像との論理積をとる第3のノ
イズ除去手段とを具えたことを特徴とする。
A binary image noise removing apparatus according to a first aspect of the present invention comprises an image data input means for inputting binary image data as an original image and a noise removing parameter for removing noise. A noise removal parameter storage unit to store, a shift parameter storage unit to store a shift parameter serving as a reference when shifting an image, a processing target image based on the image data, and the processing target image according to the shift parameter. Axial direction, Y
The logical product of the shift images shifted in two directions of 45 degrees from the axial direction, the X-axis or the Y-axis is calculated, and the result is used as the next image to be processed.
(N ≧ 2) repeating first noise removing means, and X-axis direction and Y-axis direction obtained by the first noise removing means,
A process of ORing a processing target image in each of two directions of 45 degrees from the X axis or the Y axis and a shift image obtained by shifting the processing target image in at least two directions according to the shift parameter, and the processing result and the original According to the noise removal parameter, n (n ≧
2) The second noise removing means that repeats twice, and all the logics of the processing target image obtained by the second noise removing means in the X-axis direction, the Y-axis direction, the X-axis, or two directions of 45 degrees from the Y-axis. The present invention is characterized by comprising a third noise removing means for taking a sum and taking a logical product of the result and the original image.

【0008】第2の発明に係わるノイズ除去方法は、原
画像となる2値の画像データと、ノイズ除去のためのノ
イズ除去パラメータと、画像をシフトする際の基準とな
るシフトパラメータを用い、前記画像データに基づく処
理対象画像と当該処理対象画像を前記シフトパラメータ
に従ってそれぞれX軸方向、Y軸方向、X軸またはY軸
から45度の2方向にシフトしたシフト画像の論理積を
とり、その結果を次の処理対象画像とする処理をノイズ
除去パラメータに従ってn(n≧2)回繰り返す第1の
ノイズ除去手順と、前記第1のノイズ除去手順で得られ
たX軸方向、Y軸方向、X軸またはY軸から45度の2
方向のそれぞれの処理対象画像と当該処理対象画像を前
記シフトパラメータに従って少なくとも2方向にシフト
したシフト画像の論理和をとる処理と、当該処理結果と
原画像の論理積をとり、その結果を次の論理和をとる処
理の処理対象画像とする処理をノイズ除去パラメータに
従ってn(n≧2)回繰り返す第2のノイズ除去手順
と、前記第2のノイズ除去手順で得られたX軸方向、Y
軸方向、X軸またはY軸から45度の2方向の処理対象
画像の全ての論理和をとり、その結果と原画像との論理
積をとる第3のノイズ除去手順とからなることを特徴と
する。
A noise removing method according to a second aspect of the present invention uses binary image data as an original image, a noise removing parameter for removing noise, and a shift parameter serving as a reference when shifting an image. The logical product of the processing target image based on the image data and the shift image obtained by shifting the processing target image in the X-axis direction, the Y-axis direction, and the X-axis or two directions of 45 degrees from the Y-axis according to the shift parameter is obtained, and the result is obtained. The first noise removal procedure that repeats the process of using as the next processing target image n (n ≧ 2) times according to the noise removal parameter, and the X-axis direction, the Y-axis direction, and the X-axis obtained by the first noise removal procedure. 45 degrees from axis or Y-axis 2
Processing of each processing target image in each direction and a shift image obtained by shifting the processing target image in at least two directions according to the shift parameter, and the logical product of the processing result and the original image, and the result is A second noise removal procedure in which the processing of the image to be processed in the logical sum processing is repeated n (n ≧ 2) times according to the noise removal parameter, and the X-axis direction obtained in the second noise removal procedure, Y
And a third noise removal procedure for obtaining a logical product of the result and the original image by taking the logical sum of all the images to be processed in the two directions of 45 degrees from the axial direction, the X axis or the Y axis. To do.

【0009】[0009]

【作用】上記2値画像ノイズ除去装置およびノイズ除去
方法においては、処理対象画像と、当該処理対象画像を
シフトパラメータに従ってそれぞれX軸方向、Y軸方
向、X軸またはY軸から45度の2方向にシフトしたシ
フト画像との論理積をとり、その結果を次の処理対象画
像とする処理をノイズ除去パラメータに従ってn(n≧
2)回繰り返し、これにより得られたX軸方向、Y軸方
向、X軸またはY軸から45度の2方向のそれぞれの処
理対象画像と、当該処理対象画像をシフトパラメータに
従って少なくとも2方向にシフトしたシフト画像との論
理和をとる処理と、当該処理結果と原画像との論理積を
とり、その結果を次の論理和をとる処理の処理対象画像
とする処理をn(n≧2)回繰り返し、これにより得ら
れたX軸方向、Y軸方向、X軸またはY軸から45度の
2方向の処理対象画像の全ての論理和をとり、その結果
と原画像との論理積をとるようにしている。
In the binary image noise eliminator and the noise eliminator, the image to be processed and the image to be processed are respectively in the X-axis direction, the Y-axis direction, and the X-axis or two directions of 45 degrees from the Y-axis according to the shift parameters. The logical product of the shift image and the shifted image is obtained, and the result is used as the next image to be processed.
2) Repeatedly, and the processing target images in the X axis direction, the Y axis direction, and the two directions of 45 degrees from the X axis or the Y axis, and the processing target image are shifted in at least two directions according to the shift parameter. The process of obtaining the logical sum of the shift image and the original image and the process result of the logical product of the process result and the original image are set as the process target image of the process of obtaining the next logical sum n (n ≧ 2) times. Repeatedly, take the logical sum of all the images to be processed in the X-axis direction, the Y-axis direction, and the two directions of 45 degrees from the X-axis or the Y-axis, and take the logical product of the result and the original image. I have to.

【0010】[0010]

【実施例】以下、この発明に係わる2値画像ノイズ除去
装置およびノイズ除去方法の一実施例を図面を参照しな
がら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a binary image noise removing apparatus and a noise removing method according to the present invention will be described below with reference to the drawings.

【0011】図1は、この発明に係わる2値画像ノイズ
除去装置およびノイズ除去方法を適用した画像処理シス
テムの機能的な構成を示すブロック図である。この画像
処理システム10は、画像データ入力部11、ノイズ除
去パラメータ入力部12、ノイズ除去部13、画像デー
タ出力部14により構成されている。
FIG. 1 is a block diagram showing a functional configuration of an image processing system to which a binary image noise removing apparatus and a noise removing method according to the present invention are applied. The image processing system 10 includes an image data input unit 11, a noise removal parameter input unit 12, a noise removal unit 13, and an image data output unit 14.

【0012】画像データ入力部11は、処理対象画像と
なる2値の画像データを図示せぬファイルからメモリ上
に読み込み、ノイズ除去部13に受け渡す。
The image data input unit 11 reads binary image data as an image to be processed from a file (not shown) on a memory and transfers it to the noise removing unit 13.

【0013】ノイズ除去パラメータ入力部12は、ユー
ザによるノイズ除去のためのノイズ除去パラメータの入
力を受け付け、このノイズ除去パラメータ(パラメータ
データ)をノイズ除去部13に受け渡す。
The noise removal parameter input unit 12 receives a noise removal parameter input by the user for noise removal, and transfers this noise removal parameter (parameter data) to the noise removal unit 13.

【0014】ノイズ除去部13は、ノイズ除去パラメー
タ入力部12から入力したノイズ除去パラメータと、図
示せぬシフトパラメータ入力部から入力したシフトパラ
メータを内部の図示せぬメモリに記憶し、画像データ入
力部11から入力された画像データに対して、前記ノイ
ズ除去パラメータとシフトパラメータに従ってノイズの
除去処理を行う。
The noise removal unit 13 stores the noise removal parameter input from the noise removal parameter input unit 12 and the shift parameter input from the shift parameter input unit (not shown) in an internal memory (not shown), and the image data input unit Noise removal processing is performed on the image data input from 11 according to the noise removal parameter and the shift parameter.

【0015】画像データ出力部14は、ノイズ除去部1
3で処理されたノイズ除去画像データをメモリ上からフ
ァイルに書き込み、必要に応じて外部に出力する。
The image data output unit 14 is a noise removing unit 1.
The noise-removed image data processed in 3 is written in a file from the memory and output to the outside as necessary.

【0016】次に、上記ノイズ除去部13の構成を図2
の詳細ブロック図により説明する。横方向フィルタ手段
16は、画像データに基づく処理対象画像と、当該処理
対象画像をシフトパラメータに従って横方向にシフトし
たシフト画像とのANDをとり、その結果を次の処理対
象画像とする処理を、ノイズ除去パラメータに従ってn
(n≧2)回繰り返す第1のノイズ除去処理と、この第
1のノイズ除去処理で得られた処理結果に基づく処理対
象画像と当該処理対象画像をシフトパラメータに従って
3方向にシフトしたシフト画像のORをとる処理を実行
した後、当該処理結果と原画像とのANDをとり、その
結果を次の処理対象画像とする処理を、ノイズ除去パラ
メータに従ってn(n≧2)回繰り返す第2のノイズ除
去処理を実行する。
Next, the configuration of the noise removing section 13 is shown in FIG.
Will be described with reference to the detailed block diagram of FIG. The horizontal direction filter means 16 performs the AND operation of the processing target image based on the image data and the shift image obtained by horizontally shifting the processing target image according to the shift parameter, and sets the result as the next processing target image. N according to the denoising parameter
A first noise removal process that is repeated (n ≧ 2) times, a processing target image based on the processing result obtained by the first noise removal process, and a shift image obtained by shifting the processing target image in three directions according to shift parameters. After performing the process of taking the OR, the process of ANDing the process result and the original image, and the process of setting the result as the next image to be processed is repeated n (n ≧ 2) times according to the noise removal parameter. Execute the removal process.

【0017】縦方向フィルタ手段17は、画像データに
基づく処理対象画像と、当該処理対象画像をシフトパラ
メータに従って縦方向にシフトしたシフト画像とのAN
Dをとり、その結果を次の処理対象画像とする処理を、
ノイズ除去パラメータに従ってn(n≧2)回繰り返す
第1のノイズ除去処理と、この第1のノイズ除去処理で
得られた処理結果に基づく処理対象画像と当該処理対象
画像をシフトパラメータに従って3方向にシフトしたシ
フト画像のORをとる処理を実行した後、当該処理結果
と原画像とのANDをとり、その結果を次の処理対象画
像とする処理を、ノイズ除去パラメータに従ってn(n
≧2)回繰り返す第2のノイズ除去処理を実行する。
The vertical direction filter means 17 is an AN of a processing target image based on image data and a shift image obtained by vertically shifting the processing target image according to a shift parameter.
The process of taking D and setting the result as the next image to be processed is
A first noise removal process that is repeated n (n ≧ 2) times according to the noise removal parameter, a processing target image based on the processing result obtained by the first noise removal process, and the processing target image in three directions according to the shift parameter. After performing a process of ORing the shifted shift images, a process of ANDing the process result and the original image and setting the result as the next image to be processed is performed by n (n
A second noise removal process is repeated ≧ 2) times.

【0018】左下45度方向フィルタ手段18は、画像
データに基づく処理対象画像と、当該処理対象画像をシ
フトパラメータに従って左下45度の方向にシフトした
シフト画像とのANDをとり、その結果を次の処理対象
画像とする処理を、ノイズ除去パラメータに従ってn
(n≧2)回繰り返す第1のノイズ除去処理と、この第
1のノイズ除去処理で得られた処理結果に基づく処理対
象画像と当該処理対象画像をシフトパラメータに従って
2方向にシフトしたシフト画像のORをとる処理を実行
した後、当該処理結果と原画像とのANDをとり、その
結果を次の処理対象画像とする処理を、ノイズ除去パラ
メータに従ってn(n≧2)回繰り返す第2のノイズ除
去処理を実行する。
The lower left 45 ° direction filter means 18 ANDs the processing target image based on the image data and the shift image obtained by shifting the processing target image in the lower left 45 ° direction according to the shift parameter, and the result is calculated as follows. The process to be the image to be processed is n
A first noise removal process that is repeated (n ≧ 2) times, a processing target image based on a processing result obtained by the first noise removal process, and a shift image obtained by shifting the processing target image in two directions according to a shift parameter. After performing the process of taking the OR, the process of ANDing the process result and the original image, and the process of setting the result as the next image to be processed is repeated n (n ≧ 2) times according to the noise removal parameter. Execute the removal process.

【0019】左上45度方向フィルタ手段18は、画像
データに基づく処理対象画像と、当該処理対象画像をシ
フトパラメータに従って左上45度の方向にシフトした
シフト画像とのANDをとり、その結果を次の処理対象
画像とする処理を、ノイズ除去パラメータに従ってn
(n≧2)回繰り返す第1のノイズ除去処理と、この第
1のノイズ除去処理で得られた処理結果に基づく処理対
象画像と当該処理対象画像をシフトパラメータに従って
2方向にシフトしたシフト画像のORをとる処理を実行
した後、当該処理結果と原画像とのANDをとり、その
結果を次の処理対象画像とする処理を、ノイズ除去パラ
メータに従ってn(n≧2)回繰り返す第2のノイズ除
去処理を実行する。
The upper left 45 degree direction filter means 18 ANDs the processing target image based on the image data and the shifted image obtained by shifting the processing target image in the upper left 45 degree direction according to the shift parameter, and the result is calculated as follows. The process to be the image to be processed is n
A first noise removal process that is repeated (n ≧ 2) times, a processing target image based on a processing result obtained by the first noise removal process, and a shift image obtained by shifting the processing target image in two directions according to a shift parameter. After performing the process of taking the OR, the process of ANDing the process result and the original image, and the process of setting the result as the next image to be processed is repeated n (n ≧ 2) times according to the noise removal parameter. Execute the removal process.

【0020】各フィルタ手段が保持しているシフトパラ
メータの一例を図3に示す。シフトパラメータは、第1
のノイズ除去処理に使用するパラメータ1と、第2のノ
イズ除去処理に使用するパラメータ2により構成されて
いる。各パラメータによる画像のシフト方向を図4に示
す。図4は、斜線で示す中央のセグメントから見たとき
のシフト方向(矢印)とその座標データを表している。
横および縦方向についてはそれぞれ上下左右の4方向に
シフトし、左下および左上方向については左下と右上、
左上と右下というように斜めに対向する2方向にシフト
する。各フィルタ手段は、ノイズ除去パラメータ入力手
段12から入力されたノイズ除去パラメータに加えて、
自分の方向に応じたシフトパラメータを内部の図示せぬ
メモリに保持している。これらのパラメータは所定のイ
ンターフェースを通じて変更することができる。
An example of shift parameters held by each filter means is shown in FIG. The shift parameter is the first
And the parameter 2 used for the second noise removal processing. FIG. 4 shows the shift direction of the image according to each parameter. FIG. 4 shows the shift direction (arrow) and its coordinate data when viewed from the central segment indicated by the diagonal lines.
For the horizontal and vertical directions, shift to the four directions of up, down, left and right respectively.
Shift in two directions diagonally opposite each other, such as upper left and lower right. Each filter means, in addition to the noise removal parameter input from the noise removal parameter input means 12,
The shift parameter according to the direction of oneself is held in an internal memory (not shown). These parameters can be changed through a given interface.

【0021】フィルタ画像合成手段21は、上記各フィ
ルタ手段16〜19で得られた縦方向、横方向、左下4
5度方向、左上45度方向の処理結果の全てのORをと
り、その結果と原画像とのANDをとる第3のノイズ除
去処理を実行する。
The filter image synthesizing means 21 is arranged in the vertical direction, the horizontal direction, and the lower left 4 obtained by the filter means 16 to 19.
A third noise removal process is performed in which all ORs of the processing results in the 5 ° direction and the upper left 45 ° direction are taken and the results are ANDed with the original image.

【0022】画像細線化手段22では、上記処理により
得られた画像に対してさらに細線化処理を行い、最終的
な画像を作成する。なお、画像細線化手段22による細
線化処理は、この発明に必須の処理要件ではないので省
略することもできる。
The image thinning means 22 further thins the image obtained by the above process to create a final image. The thinning processing by the image thinning means 22 is not an essential processing requirement of the present invention, and thus can be omitted.

【0023】図5は、図1に示した画像処理システム1
0を実現するための具体例を示したもので、例えばワー
クステーションやパソコンなどのハードウェア構成を示
している。
FIG. 5 shows the image processing system 1 shown in FIG.
It shows a concrete example for realizing 0, and shows the hardware configuration of, for example, a workstation or a personal computer.

【0024】ディスプレイ24は、CRTなどの表示装
置であり、画面上に入出力画像などを表示する。ディス
プレイ24における表示は、図示せぬディスプレイ制御
部により制御されている。
The display 24 is a display device such as a CRT and displays input / output images and the like on the screen. The display on the display 24 is controlled by a display control unit (not shown).

【0025】キーボード/マウス25は、コマンドや文
字列などのデータを入力したり、画面上で指示選択を行
うための入力装置であり、入力された各種のデータや指
示は、図示せぬキーボード/マウス制御部を通じてプロ
セッサ部28に送られる。キーボード/マウス25は、
図1のノイズ除去パラメータ入力部12の機能を実現し
ている。
The keyboard / mouse 25 is an input device for inputting data such as commands and character strings and for selecting instructions on the screen. Various input data and instructions are stored in a keyboard / not shown. It is sent to the processor unit 28 through the mouse control unit. The keyboard / mouse 25
The function of the noise removal parameter input unit 12 of FIG. 1 is realized.

【0026】ハードディスク26は、磁気ディスクなど
の2次記憶装置で構成され、入出力画像をファイル形式
で格納している。ディスク26におけるデータの入出力
は図示せぬディスク制御部で制御されている。ハードデ
ィスク26と図示せぬディスク制御部は、図1の画像デ
ータ入力部11および画像データ出力部14の機能を実
現している。
The hard disk 26 is composed of a secondary storage device such as a magnetic disk, and stores input / output images in a file format. Input / output of data to / from the disk 26 is controlled by a disk controller (not shown). The hard disk 26 and a disk control unit (not shown) realize the functions of the image data input unit 11 and the image data output unit 14 of FIG.

【0027】メモリ27は、RAMなどのメモリ装置で
構成されるバッファ記憶であり、ハードディスク26か
ら読み込んだ2値画像データや各種の制御プログラムの
ほか、キーボード/マウス25から入力された各種のデ
ータや命令などを一時的に記憶する。
The memory 27 is a buffer memory composed of a memory device such as a RAM, and stores binary image data read from the hard disk 26 and various control programs, and various data input from the keyboard / mouse 25. Temporarily store instructions and the like.

【0028】プロセッサ部28は、CPU及びその周辺
回路で構成される制御装置であり、制御プログラムに従
って上記各部を動作させ、システム全体を制御する。プ
ロセッサ部28は、図1のノイズ除去部13の機能を実
現している。
The processor unit 28 is a control unit composed of a CPU and its peripheral circuits, and operates the above-mentioned units according to a control program to control the entire system. The processor unit 28 realizes the function of the noise removing unit 13 of FIG.

【0029】これらの各部はバス29により相互に接続
されている。
These respective parts are connected to each other by a bus 29.

【0030】次に、上記画像処理システム10におい
て、2値画像データのノイズ除去を行う場合の動作を図
6のフローチャートにより説明する。なお、ここでは縦
方向にシフトしたときのノイズ除去処理を代表例として
説明する。また、ノイズ除去パラメータは2とし、シフ
トパラメータは図3の値を用いるものとする。
Next, the operation of the image processing system 10 for removing noise from binary image data will be described with reference to the flowchart of FIG. Note that, here, the noise removal processing when shifting in the vertical direction will be described as a typical example. Further, the noise removal parameter is set to 2, and the shift parameter uses the values shown in FIG.

【0031】まず、ノイズ除去部13の縦方向フィルタ
手段17は、内部に保持する縦方向シフトパラメータを
読み出し(ステップ101)、続いて画像データ入力部
11から入力した2値の画像データをメモリにコピーす
る(ステップ102)。次に、縦方向フィルタ手段17
は、画像データに基づく処理対象画像と、当該処理対象
画像を縦方向のパラメータ1に従って縦方向にシフトし
たシフト画像とのANDをとり、その結果を次の処理対
象画像とする処理を行い(ステップ103)、この処理
回数nが2になるまで繰り返す(ステップ104)。
First, the vertical direction filter means 17 of the noise removing unit 13 reads out the vertical direction shift parameter stored therein (step 101), and subsequently, the binary image data input from the image data input unit 11 is stored in the memory. Copy (step 102). Next, the vertical direction filter means 17
Performs AND processing of the processing target image based on the image data and the shift image obtained by vertically shifting the processing target image according to the vertical direction parameter 1 and sets the result as the next processing target image (step 103), and this process is repeated until the number of times n reaches 2 (step 104).

【0032】次に、縦方向フィルタ手段17は、ステッ
プ103の処理で得られた処理結果に基づく処理対象画
像と、当該処理対象画像を縦方向のパラメータ2に従っ
て3方向にシフトしたシフト画像のORをとる処理と、
当該処理結果と原画像とのANDをとり、その結果を次
の処理対象画像とする処理を行い(ステップ105)、
これらの処理回数nが2になるまで繰り返す(ステップ
106)。
Next, the vertical direction filter means 17 ORs the processing target image based on the processing result obtained in step 103 and the shift image obtained by shifting the processing target image in three directions according to the vertical direction parameter 2. And the process of taking
The processing result and the original image are ANDed, and the result is processed as the next processing target image (step 105),
These steps are repeated until the number of times n of processing reaches 2 (step 106).

【0033】次に、フィルタ画像合成手段21は、ステ
ップ107の処理で得られた処理結果と、横方向(ステ
ップ110〜ステップ115)、左下(ステップ116
〜ステップ121)、左上方向(ステップ122〜ステ
ップ127)の処理結果の全てのORをとり、その結果
と原画像とのANDをとる(ステップ107)。続い
て、画像細線化手段22は、フィルタ画像合成手段21
で得られた処理結果と、それを縦方向および横方向にそ
れぞれ1ドットづつずらした画像とのANDをとり、画
像の細線化を行う(ステップ108)。画像データ出力
部14は、ノイズ除去された画像データを所定のファイ
ルに書き込む(ステップ109)。
Next, the filtered image synthesizing means 21 compares the processing result obtained in the processing of step 107, the horizontal direction (steps 110 to 115), and the lower left (step 116).
Up to step 121), all ORs of the processing results in the upper left direction (steps 122 to 127) are taken, and the results are ANDed with the original image (step 107). Subsequently, the image thinning unit 22 is the filter image synthesizing unit 21.
The processing result obtained in (1) and the image obtained by shifting the processing result by one dot in the vertical direction and the image in the horizontal direction are ANDed to thin the image (step 108). The image data output unit 14 writes the noise-removed image data in a predetermined file (step 109).

【0034】ここで、上述した縦方向にシフトしたとき
のノイズ除去処理の具体例を図7により説明する。
Here, a specific example of the noise removal processing when the above-mentioned vertical shift is performed will be described with reference to FIG.

【0035】(1)第1のノイズ除去処理 原画像(a)と、これを縦方向のパラメータ1に従って
縦方向にシフトしたシフト画像(b)との間でAND
(1回目)をとり、処理結果(c)を得る。次に、
(c)を処理対象画像とし、(c)を縦方向のパラメー
タ1に従って縦方向にシフトしたシフト画像(d)との
間でAND(2回目)をとり、処理結果(e)を得る。
(1) First noise removal processing AND between the original image (a) and the shifted image (b) obtained by vertically shifting the original image according to the vertical parameter 1
(1st time) is taken to obtain the processing result (c). next,
The processing result (e) is obtained by ANDing (c) the image to be processed with the shift image (d) obtained by vertically shifting (c) in accordance with the vertical parameter 1.

【0036】(2)第2のノイズ除去処理 処理結果(e)と、この(e)を縦方向のパラメータ2
に従って3方向にシフトしたシフト画像との間でそれぞ
れOR(1回目)をとり、処理結果(f)を得る。続い
て、(f)と原画像(a)との間でAND(1回目)を
とり、処理結果(g)を得る。さらに、(g)とこの
(g)を縦方向のパラメータ2に従って3方向にシフト
したシフト画像との間でそれぞれOR(2回目)をと
り、処理結果(h)を得る。続いて、(h)と原画像
(a)との間でAND(2回目)をとり、処理結果
(i)を得る。
(2) Second noise removal processing The processing result (e) and this (e) are used as the parameter 2 in the vertical direction.
According to the above, the OR (first time) is performed with each of the shift images shifted in the three directions to obtain the processing result (f). Subsequently, AND (first time) is performed between (f) and the original image (a) to obtain the processing result (g). Further, OR (second time) is taken between (g) and the shifted image obtained by shifting this (g) in three directions according to the vertical parameter 2, and the processing result (h) is obtained. Subsequently, AND (second time) is performed between (h) and the original image (a) to obtain the processing result (i).

【0037】以上の処理を横、左下、左上方向について
もそれぞれ行い、これらの処理結果の全てのORをと
り、最後にその結果と原画像とのANDをとることによ
り、第3のノイズ除去処理が終了する。これにより、ノ
イズ除去パラメータで与えられる数値より小さいゴマ粒
のようなノイズ、すなわち連続する画素の数がノイズ除
去パラメータより少ない画素の集まりは確実に除去する
ことができる。例えば、図8に示すような原画像(a)
に対して、ノイズ除去パラメータを2と設定すること
で、連続する画素の数が2以下の領域A〜Cが除去され
たノイズ除去画像(b)を得ることができる。この場
合、ノイズ除去パラメータを1とすれば領域Cを残すこ
とができる。また、ノイズ除去パラメータを3に設定す
れば、領域Dを消すことができる。
The above-described processing is performed in the horizontal, lower left, and upper left directions, and the OR of all the processing results is taken, and finally the result is ANDed with the original image to obtain the third noise removal processing. Ends. This makes it possible to reliably remove noise such as sesame grains smaller than the value given by the noise removal parameter, that is, a group of pixels in which the number of consecutive pixels is smaller than the noise removal parameter. For example, the original image (a) as shown in FIG.
On the other hand, by setting the noise removal parameter to 2, it is possible to obtain the noise removed image (b) from which the regions A to C in which the number of consecutive pixels is 2 or less are removed. In this case, if the noise removal parameter is set to 1, the area C can be left. If the noise removal parameter is set to 3, the area D can be erased.

【0038】このように、入力画像の画質や入力機器な
どの特性に合わせてノイズ除去パラメータの数値を適宜
設定することにより、ノイズ除去を最適化することが可
能となる。一般的な画像に対して最もノイズ除去に効果
があるノイズ除去パラメータは4であり、通常のFAX
画像にも適している。このノイズ除去パラメータはノイ
ズの密集度によって変更可能であり、画像の質に対応し
て適宜変更することができる。
As described above, the noise removal can be optimized by appropriately setting the numerical value of the noise removal parameter according to the image quality of the input image and the characteristics of the input device. The denoising parameter that is most effective for denoising a general image is 4, which is a normal FAX.
Also suitable for images. This noise removal parameter can be changed according to the noise density, and can be changed as appropriate according to the image quality.

【0039】[0039]

【発明の効果】以上説明したように、この発明に係わる
2値画像ノイズ除去装置およびノイズ除去方法において
は、ノイズ除去を行う場合に対象となる画像をX軸方
向、Y軸方向、X軸またはY軸から45度の2方向につ
いてシフトし、それぞれノイズ除去パラメータの数だけ
論理和および論理積をとる処理を行い、さらにその結果
を組み合わせて論理和および論理積をとる処理を行うよ
うにしたため、ノイズ画素が密集しているような状況で
も、ゴマ粒のようなノイズを確実に除去することができ
る。しかも、2値画像のシフト、AND、ORという最
も簡単な画像処理命令だけを組み合わせて処理を行うの
で、通常のワークステーションであれば、特殊なハード
ウェアなしに2値画像のノイズ除去を実行することがで
きる。また、ノイズ除去パラメータを適当な値に設定す
ることにより、入力画像または入力機器の特性に合わせ
たノイズ除去を行うことができる。
As described above, in the binary image noise eliminator and noise eliminator according to the present invention, the image to be removed when the noise is removed is the X-axis direction, Y-axis direction, X-axis or Since the shift is performed in two directions of 45 degrees from the Y-axis, the process of obtaining the logical sum and the logical product is performed by the number of the noise removal parameters, respectively, and the result is combined to perform the process of obtaining the logical sum and the logical product. Even in a situation where noise pixels are dense, noise such as sesame seeds can be reliably removed. Moreover, since processing is performed by combining only the simplest image processing commands such as binary image shift, AND, and OR, in a normal workstation, noise removal of a binary image is executed without special hardware. be able to. Further, by setting the noise removal parameter to an appropriate value, it is possible to perform noise removal according to the characteristics of the input image or the input device.

【0040】特に、多値で入力した画像に対してノイズ
除去を行って2値化する方式と比較した場合、ソフトウ
ェアの構成が簡単なため処理が高速化できるうえ、メモ
リの消費量を少なく抑えることができる。
In particular, when compared with the method in which noise is removed from a multi-valued input image and binarization is performed, the processing can be speeded up due to the simple software configuration, and the memory consumption can be reduced. be able to.

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

【図1】画像処理システム(実施例)の機能的な構成を
示すブロック図。
FIG. 1 is a block diagram showing a functional configuration of an image processing system (embodiment).

【図2】ノイズ除去部の詳細な構成を示すブロック図。FIG. 2 is a block diagram showing a detailed configuration of a noise removing unit.

【図3】各フィルタ手段が保持するシフトパラメータの
一例を示す説明図。
FIG. 3 is an explanatory diagram showing an example of shift parameters held by each filter means.

【図4】各パラメータによる画像のシフト方向を示す説
明図。
FIG. 4 is an explanatory diagram showing an image shift direction according to each parameter.

【図5】画像処理システムを実現するための具体例を示
す構成図。
FIG. 5 is a configuration diagram showing a specific example for realizing an image processing system.

【図6】ノイズ除去の処理手順を示すフローチャート。FIG. 6 is a flowchart showing a noise removal processing procedure.

【図7】ノイズ除去処理の具体例(縦方向)を示す説明
図。
FIG. 7 is an explanatory diagram showing a specific example (vertical direction) of noise removal processing.

【図8】原画像とノイズ除去画像の関係(本発明)を示
す説明図。
FIG. 8 is an explanatory diagram showing a relationship (present invention) between an original image and a noise-removed image.

【図9】原画像とノイズ除去画像の関係(従来例)を示
す説明図。
FIG. 9 is an explanatory diagram showing a relationship (prior art example) between an original image and a noise-removed image.

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

10…画像処理システム、11…画像データ入力部、1
2…ノイズ除去パラメータ入力部、13…ノイズ除去
部、14…画像データ出力部、16…横方向フィルタ手
段、17…縦方向フィルタ手段、18…左下方向フィル
タ手段、19…左上方向フィルタ手段、21…フィルタ
画像合成手段、22…画像細線化手段
10 ... Image processing system, 11 ... Image data input unit, 1
2 ... Noise removal parameter input unit, 13 ... Noise removal unit, 14 ... Image data output unit, 16 ... Horizontal filter unit, 17 ... Vertical filter unit, 18 ... Lower left filter unit, 19 ... Upper left filter unit, 21 ... filter image synthesizing means, 22 ... image thinning means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】原画像となる2値の画像データを入力する
画像データ入力手段と、 ノイズ除去パラメータを記憶
するノイズ除去パラメータ記憶手段と、 シフトパラメータを記憶するシフトパラメータ記憶手段
と、 前記画像データに基づく処理対象画像と、当該処理対象
画像をシフトパラメータに従ってそれぞれX軸方向、Y
軸方向、X軸またはY軸から45度の2方向にシフトし
たシフト画像との論理積をとり、その結果を次の処理対
象画像とする処理を、ノイズ除去パラメータに従ってn
(n≧2)回実行する第1のノイズ除去手段と、 前記第1のノイズ除去手段で得られたX軸方向、Y軸方
向、X軸またはY軸から45度の2方向のそれぞれの処
理結果に基づく処理対象画像と、当該処理対象画像をシ
フトパラメータに従って少なくとも2方向にシフトした
シフト画像との論理和をとる処理、および当該処理結果
と原画像との論理積をとり、その結果を次の処理対象画
像とする処理を、ノイズ除去パラメータに従ってn(n
≧2)回実行する第2のノイズ除去手段と、 前記第2のノイズ除去手段で得られたX軸方向、Y軸方
向、X軸またはY軸から45度の2方向の処理結果の全
ての論理和をとり、その結果と原画像との論理積をとる
第3のノイズ除去手段と、 を具えたことを特徴とする2値画像ノイズ除去装置。
1. Image data input means for inputting binary image data as an original image, noise removal parameter storage means for storing noise removal parameters, shift parameter storage means for storing shift parameters, and the image data Based on the shift parameter, and the processing target image based on
According to the noise removal parameter, the logical product of a shift image shifted in two directions of 45 degrees from the axial direction, the X-axis, or the Y-axis is taken, and the result is set as the next image to be processed.
(N ≧ 2) times of first noise removing means, and each of the X-axis direction, the Y-axis direction, and the two directions of 45 degrees from the X-axis or Y-axis obtained by the first noise removing means. A process of taking a logical sum of a processing target image based on the result and a shift image obtained by shifting the processing target image in at least two directions according to a shift parameter, and taking a logical product of the processing result and the original image, Process the image to be processed as n (n (n
≧ 2) second noise removing means, and all the processing results obtained by the second noise removing means in the X-axis direction, the Y-axis direction, and the two directions of 45 degrees from the X-axis or the Y-axis. A binary image noise removing device comprising: a third noise removing means for taking a logical sum and taking a logical product of the result and the original image.
【請求項2】原画像となる2値の画像データと、ノイズ
除去パラメータと、シフトパラメータを用い、前記画像
データに基づく処理対象画像と、当該処理対象画像をシ
フトパラメータに従ってそれぞれX軸方向、Y軸方向、
X軸またはY軸から45度の2方向にシフトしたシフト
画像との論理積をとり、その結果を次の処理対象画像と
する処理を、ノイズ除去パラメータに従ってn(n≧
2)回繰り返す第1のノイズ除去手順と、 前記第1のノイズ除去手順で得られたX軸方向、Y軸方
向、X軸またはY軸から45度の2方向のそれぞれの処
理対象画像と当該処理対象画像をシフトパラメータに従
って少なくとも2方向にシフトしたシフト画像との論理
和をとる処理と、当該処理結果と原画像との論理積をと
り、その結果を次の処理対象画像とする処理を、ノイズ
除去パラメータに従ってn(n≧2)回繰り返す第2の
ノイズ除去手順と、 前記第2のノイズ除去手順で得られたX軸方向、Y軸方
向、X軸またはY軸から45度の2方向の処理対象画像
の全ての論理和をとり、その結果と原画像との論理積を
とる第3のノイズ除去手順と、 からなることを特徴とするノイズ除去方法。
2. Binary image data serving as an original image, a noise removal parameter, and a shift parameter are used, and an image to be processed based on the image data and the image to be processed are respectively set in the X-axis direction and Y according to the shift parameter. Axial direction,
According to the noise removal parameter, n is calculated according to the noise removal parameter by performing a logical product with a shift image that is shifted in two directions of 45 degrees from the X axis or the Y axis and using the result as the next image to be processed.
2) a first noise removal procedure that is repeated twice, and an image to be processed in each of the X-axis direction, the Y-axis direction, and the X-axis or two directions of 45 degrees from the Y-axis obtained in the first noise removal procedure. A process of taking a logical sum of a processed image and a shift image obtained by shifting the processed image in at least two directions according to a shift parameter, and a process of taking a logical product of the processed result and the original image and setting the result as the next processed image; A second noise removal procedure repeated n (n ≧ 2) times according to the noise removal parameter, and the X-axis direction, the Y-axis direction, the X-axis or two directions of 45 degrees from the Y-axis obtained in the second noise removal procedure. A noise removal method comprising: taking a logical sum of all the images to be processed and taking a logical product of the result and the original image.
JP5223592A 1993-09-08 1993-09-08 Device and method for eliminating binary image noise Pending JPH0778247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5223592A JPH0778247A (en) 1993-09-08 1993-09-08 Device and method for eliminating binary image noise

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5223592A JPH0778247A (en) 1993-09-08 1993-09-08 Device and method for eliminating binary image noise

Publications (1)

Publication Number Publication Date
JPH0778247A true JPH0778247A (en) 1995-03-20

Family

ID=16800590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5223592A Pending JPH0778247A (en) 1993-09-08 1993-09-08 Device and method for eliminating binary image noise

Country Status (1)

Country Link
JP (1) JPH0778247A (en)

Similar Documents

Publication Publication Date Title
JP3104868B2 (en) Image processing device
US20020080144A1 (en) Adaptive thresholding using loose gray scale template matching
JPH07225570A (en) Statistical production of density maintenance template for print strengthening
JPH10228536A (en) Image processing method
JPH06203153A (en) Image processing method and apparatus
JP2857292B2 (en) Apparatus for realizing two-dimensional digital filter
JPH0778247A (en) Device and method for eliminating binary image noise
US20050007375A1 (en) Seamless image processing method and apparatus
JPS6353586B2 (en)
US8180169B2 (en) System and method for multi-scale sigma filtering using quadrature mirror filters
JP3150525B2 (en) Data management device in image scaling processor
JPH11203467A (en) Display device and display method
JP2001043359A (en) Image processor and method
JPH10232929A (en) Image processing method and apparatus
JP2841942B2 (en) Image input device
JP2585872B2 (en) Image noise removal device
JPH01156069A (en) Image processor
JP2691559B2 (en) Pixel density conversion device and method thereof
JP3456617B2 (en) Area dividing device
JP2697679B2 (en) Dither image display device
JPH02288668A (en) Picture element density conversion processor
JPH096962A (en) Evaluating method for sharpness
US20010045954A1 (en) Data processing apparatus and recording medium
JP2002247368A (en) Image processing apparatus, image processing method, program for executing the method, and recording medium storing the program
JP2857260B2 (en) Judgment method of rectangular area