JPS6336036B2 - - Google Patents

Info

Publication number
JPS6336036B2
JPS6336036B2 JP55014706A JP1470680A JPS6336036B2 JP S6336036 B2 JPS6336036 B2 JP S6336036B2 JP 55014706 A JP55014706 A JP 55014706A JP 1470680 A JP1470680 A JP 1470680A JP S6336036 B2 JPS6336036 B2 JP S6336036B2
Authority
JP
Japan
Prior art keywords
image
memory
contour line
line pattern
pixel
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
Application number
JP55014706A
Other languages
Japanese (ja)
Other versions
JPS56112605A (en
Inventor
Yoshio Arai
Hiroyuki Kataoka
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 JP1470680A priority Critical patent/JPS56112605A/en
Publication of JPS56112605A publication Critical patent/JPS56112605A/en
Publication of JPS6336036B2 publication Critical patent/JPS6336036B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Character Input (AREA)
  • Image Processing (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は文字・書画等の画像の汚れを検出する
方法に関し、特に等高線模様で構成された文字等
の画像(等高線模様画像)に汚れが生じたような
ときに、これを検出する方法に関する。なお、本
発明にいう「等高線模様画像」とは、第1図aに
示した普通の画像を、同図bのように、その輪郭
から等距離の曲線群であらわしたものである。 まず、等高線模様を作成する方法について簡単
に説明する。第2図に等高線模様画像作成装置の
ブロツク図を示す。なお、この例では画像は主走
査方向2048画素よりなるものとしているが、本発
明がこれに限定されるものでないことは明らかで
ある。1および2は、それぞれ1枚(フレーム)
の画像の全画素を記憶できるAおよびBメモリ、
3はクロツクおよび制御信号発生器、4はフリツ
プフロツプ、5,6はそれぞれ2046ビツトシフト
レジスタ、7〜9,51,52,61,62はそ
れぞれ1ビツトシフトレジスタ、10は2ビツト
カウンタ、11はアドレスカウンタ、12はアド
レス変換器である。 スタート(START)信号が入力されると、ク
ロツクおよび制御信号発生器3はAおよびBメモ
リ1,2の全領域を走査する期間だけ、イニシア
ル(INITIAL)信号を“1”にする。この信号
“1”がオアゲートO1,O2を介してメモリ1,
2に加えられるので、2つのメモリA,Bはいず
れも書き込みモードとなる。同時にアドレスカウ
ンタ11にはクロツク信号が入力され、Aおよび
Bメモリの各番地を順次指定する。 この時Aメモリ1にはアンドゲートA1を経て
新しいデータ(DATA)が供給されるので、新
しい読込みデータがAメモリに記憶される。一
方、Bメモリ2の入力にはイニシアル信号“1”
をインバータIによつて反転した信号“0”が入
力されるので、Bメモリの全領或はクリアされ
る。クロツクおよび制御信号発生器3は、またリ
セツト(RESET)信号を発生して、すべてのシ
フトレジスタ、フリツプフロツプおよびカウンタ
をリセツトする。 いま、第3図aに示すような画像が新データと
してAメモリ1に記憶されたと仮定して第2図装
置の動作を説明する。まず最初に、アドレスカウ
ンタ11がリセツトされ、イニシアル信号が
“0”になる。これによつて、A、Bメモリは読
出しモードに切換えられる。アドレスカウンタ1
1のカウント値が再び順々に増加して、Aおよび
Bメモリの読出し番地を指定する。 もつとも、この場合の番地指定は、Aメモリ1
に対するものの方がBメモリ2に対するものより
も1走査線分先行するように、アドレス変換器1
2が調節される。すなわち、Aメモリ1に対する
指定番地をADa、Bメモリ2に対するそれをADb
とすると、この例ではアドレスADaは〔ADb
2048〕になつている。 Aメモリの記憶データは順次読出されてシフト
レジスタ7に入力され、その後順次シフトレジス
タ8→9→6→61→62→5→51→52に転
送される。処理対象となつている画素の信号SR
0がシフトレジスタ61にあるとき、画面上でそ
の左上、真上、右上、左横、右横、左下、真下、
右下の各位置にある画素の信号は、第2図および
第4図に示したように、それぞれシフトレジスタ
7,8,9、シフトレジスタ6の最上位桁、シフ
トレジスタ62、シフトレジスタ5の最上位桁、
シフトレジスタ51および52からSR1〜SR8
として出力されている。 このときSR0が“0”ならば、アンドゲート
A2,A3が閉じられるので、各メモリのW/R
信号は“0”となる。すなわち、AおよびBメモ
リ1,2は読出しモードとなるので、Bメモリ2
の内容は変更されず、“0”のままに保たれる。
一方、SR0が“1”の場合には、第4図に示し
た周囲の点の読取り信号SR1〜SR8が全部
“1”であるかどうかをナンドゲートNAで調べ
る。全部“1”ならば、その出力は“0”となつ
てアンドゲートA2,A3が閉じられ、前記と同
様にBメモリ2の内容は変更されず、“0”のま
まに保たれる。 しかしながら、SR1〜SR8の全部が“1”で
ないとき、すなわちその中の少なくとも1つが
“0”(白)であるときは、ナンドゲートNAの出
力は“1”となつてアンドゲートA2,A3が開
かれる。その結果、Aメモリ1のW/R信号は
“1”、すなわち書込みモードとなるが、そのIN
信号は“0”であるから、Aメモリ1内では、処
理対象点の“1”が消されて“0”にされる。前
記のような条件を満たす点は輪郭の一部であり、
このような点はすべて消される。 処理動作の初めに2ビツトカウンタ10はリセ
ツトされて“00”となつているので、ノアゲート
NORの出力は“1”であり、したがつてアンド
ゲートA3の出力も“1”である。それ故に、B
メモリ2は書込みモードとなり、このときイニシ
アル信号は“0”で、Bメモリ2のIN信号は
“1”であるから、第4図のSR0に相当するBメ
モリの番地には“1”が書込まれる。 以上の操作を1フレームにわたつて行なうと、
Aメモリ1内に記憶されていた第3図aの画像は
同図cのように輪郭を削られてやせた形状に変換
され、一方Bメモリ2には同図aの画像の輪郭線
に相当する同図bの画像が記憶される。 前述の操作中に、Aメモリ1から読出されたデ
ータの中には“1”が1個以上含まれていたの
で、フリツプフロツプ4はセツト状態にされてい
る。 つぎに、前述と同様の処理を第3図cの画像に
ついて行なうが、この時2ビツトカウンタ10は
“01”となつているので、ノアゲートNORの出力
は“0”であり、アンドゲートA3が閉じられ
る。したがつて、輪郭の点(ビツト)が検出され
てもBメモリ2への書込みは行なわれない。しか
し、Aメモリ1内の記憶画像は、その輪郭が1画
素分削られる。さらに、同様な操作をくり返して
2ビツトカウンタの内容が“10”“11”となつた
ときも、同じようにアンドゲートA3が閉じられ
るので、Bメモリ2への輪郭線の書込みは行なわ
れず、Aメモリ1内の記憶画像が第3図dのよう
に細るだけである。 第4フレーム目では、2ビツトカウンタ10が
再び“00”になるので、前述の説明から明らかな
ように、その時のAメモリ1内の記憶画像の輪郭
がBメモリ2に記憶される。したがつて、この時
のA、Bメモリ内の記憶画像はそれぞれ第3図の
e,fのようになる。さらに同じ処理を行なう
と、Aメモリ1の記憶内容はすべて“0”にな
り、その次のフレーム処理終了時には、フリツプ
フロツプ4はリセツト状態を保つ。この時のフリ
ツプフロツプ4の出力をクロツクおよび制御信号
発生器3に供給し、処理動作を停止させる。 処理済の画像(第3図fのようなもの)はBメ
モリ2に記憶されているので、これを公知の適当
な出力装置(例えばラスタースキヤン方式のプリ
ンタ等)に供給してやれば、等高線模様に変換さ
れた可視画像を得ることができる。 前述のようにして作成された等高線模様画像
は、その後の取扱いによつて汚れを生じたり、意
図的に改ざんされたり、あるいはこれを複写して
得られる再生像に汚れが生じたりすることが多
い。 本発明の目的は、前述のような汚れまたは改ざ
んを検出する方法に関し、さらには汚れまたは改
ざんと判定された部分を消去して汚れのない複写
再生像を得る方法に関する。 第5図は本発明の1実施例のブロツク図で、2
1〜28は2039ビツトのシフトレジスタ、31〜
39は9ビツトのシフトレジスタであり、これら
は図示のように順次直列に接続されている。ま
ず、ラスタースキヤン方式によつて読取られた2
値形式の画像信号を前記各シフトレジスタに入力
する。ここでは、前述と同様に1走査線は2048ビ
ツト(画素)よりなるものと仮定しているので、
第5図におけるシフトレジスタの各段の情報相互
の位置関係は、入力された原画像上におけるそれ
と一致することになる。なお、1走査線のビツト
総数が前記値に限定されるものでないことはいう
までもない。 まず最初にシフトレジスタ35の第5桁に記憶
されている被処理点P0が黒(“1”)であるとし、
この点が正常情報か汚れかを判定する方法につい
て述べる。第6図から明らかなように、点P0
等高線模様画像の一部である場合には、その周囲
の点P1〜P8のすべてが黒(“1”)であることは
あり得ないので、(1)式は成立しない筈である。な
お、(1)式中の「・」は理論積を示す。 P0・P1・P2・P3・P4・P5・P6・P7・P8=1
……(1) それゆえに、第5図のアンド回路41で前記(1)
式の演算を行ない、その出力が“1”となつたと
きは、これらの各点P0〜P8を汚れとみなし、そ
の出力(リセツト信号)R1でこれら各点に対応
するシフトレジスタの内容をリセツトする。これ
によつて汚れが除去される。 しかしながら、第7図aのような汚れ(図中の
“1”は汚れをあらわす)を検出・消去しようと
する場合、前記(1)式が成立するのはO印を付した
3点においてのみであり、その他の点では(1)式は
成立しない。それゆえに同図bに符号“1”を付
した3点では、汚れの判定ができず、消去されな
いままに汚れが残ることになる。 ところで、被処理点P0が黒(“1”)であるに
も拘わらず、ノイズであるとして消去される場合
は、前記8点P1〜P8のさらに1ビツト外側の点
P9〜P24(第6図参照)は白(“0”)またはノイズ
であるから、この領域も前記判定に基づいて
“0”とすることができる。このために、第5図
の実施例ではアンド回路41よりのリセツト出力
R1を直接、またはオア回路42,43を介して
各シフトレジスタ33〜37の該当する段に供給
し、その位置の情報をリセツトして“0”にして
いる。 以上の処理によつて、比較的大きな汚れを検出
し、消去することが可能である。しかしながら、
第8図の上半分の斜線領域で示すような2ドツト
(画素)またはそれ以下の細幅の線状汚れは、以
上の処理では検出、消去することができない。な
お、第8図の下半分の斜線領域は本来の等高線模
様を形成する部分である。 このような線状汚れを検出する手法を以下に述
べる。 第9図において、被処理点P0が黒(“1”)で
あり、かつこの点P0が等高線模様の一部である
ならば、第3図fに示した等高線模様の固有の性
質から分かるように、その上下または左右の、少
なくとも1つの方向において、 点P0に隣接して少なくとも1ビツト分の白、
そのつぎに少なくとも1ビツト分の黒が存在する
はずである。さらに具体的にいえば、例えば前記
被処理点P0から上方向に連続して、黒および白
が第1表の左半部(イ)〜(ホ)に例示するようないずれ
かの態様で配列されるはずである。
The present invention relates to a method for detecting stains in images such as characters and calligraphy, and particularly relates to a method for detecting stains when an image such as characters formed of a contour line pattern (contour line pattern image) is contaminated. The "contour line pattern image" as referred to in the present invention is one in which the ordinary image shown in FIG. 1a is represented by a group of curved lines equidistant from the contour, as shown in FIG. First, a method for creating a contour line pattern will be briefly explained. FIG. 2 shows a block diagram of the contour line pattern image creation device. In this example, the image is made up of 2048 pixels in the main scanning direction, but it is clear that the present invention is not limited to this. 1 and 2 are each one (frame)
A and B memories capable of storing all pixels of the image;
3 is a clock and control signal generator, 4 is a flip-flop, 5 and 6 are each 2046-bit shift registers, 7 to 9, 51, 52, 61, and 62 are each 1-bit shift registers, 10 is a 2-bit counter, and 11 is an address. Counter 12 is an address converter. When the start (START) signal is input, the clock and control signal generator 3 sets the initial (INITIAL) signal to "1" only during the period of scanning the entire area of the A and B memories 1 and 2. This signal “1” passes through OR gates O1 and O2 to memory 1,
2, both memories A and B are in write mode. At the same time, a clock signal is input to the address counter 11 to sequentially designate each address in the A and B memories. At this time, new data (DATA) is supplied to A memory 1 via AND gate A1, so new read data is stored in A memory. On the other hand, the input of B memory 2 has an initial signal “1”.
Since the signal "0" which is inverted by the inverter I is input, the entire area of the B memory is cleared. Clock and control signal generator 3 also generates a RESET signal to reset all shift registers, flip-flops and counters. The operation of the apparatus shown in FIG. 2 will now be described assuming that an image as shown in FIG. 3a is stored in the A memory 1 as new data. First, the address counter 11 is reset and the initial signal becomes "0". As a result, the A and B memories are switched to read mode. address counter 1
The count value of 1 increases again in sequence to designate the read address of the A and B memories. However, the address specification in this case is A memory 1.
address converter 1 so that the one for B memory 2 precedes the one for B memory 2 by one scanning line.
2 is adjusted. In other words, the specified address for A memory 1 is AD a , and that for B memory 2 is AD b.
Then, in this example, the address AD a is [AD b +
2048]. The data stored in the A memory is sequentially read out and input to the shift register 7, and then sequentially transferred to the shift registers 8→9→6→61→62→5→51→52. Signal SR of the pixel being processed
When 0 is in the shift register 61, the upper left, right above, upper right, left side, right side, lower left, right below,
As shown in FIGS. 2 and 4, the signals of the pixels at the lower right positions are the most significant digits of shift registers 7, 8, and 9, shift register 6, shift register 62, and shift register 5, respectively. most significant digit,
SR1 to SR8 from shift registers 51 and 52
It is output as . If SR0 is "0" at this time, AND gates A2 and A3 are closed, so the W/R of each memory
The signal becomes "0". That is, since A and B memories 1 and 2 are in read mode, B memory 2
The content of is not changed and remains at "0".
On the other hand, when SR0 is "1", it is checked by the NAND gate NA whether the read signals SR1 to SR8 of the surrounding points shown in FIG. 4 are all "1". If they are all "1", the output becomes "0" and AND gates A2 and A3 are closed, and the contents of B memory 2 are not changed and kept at "0" as before. However, when all of SR1 to SR8 are not "1", that is, when at least one of them is "0" (white), the output of NAND gate NA becomes "1" and AND gates A2 and A3 are opened. It will be done. As a result, the W/R signal of A memory 1 becomes “1”, that is, it is in write mode, but its IN
Since the signal is "0", in the A memory 1, the "1" at the processing target point is erased and becomes "0". Points that satisfy the above conditions are part of the contour,
All such points will be erased. Since the 2-bit counter 10 is reset to "00" at the beginning of the processing operation, the NOR gate
The output of NOR is "1", and therefore the output of AND gate A3 is also "1". Therefore, B
Memory 2 enters the write mode, and at this time the initial signal is "0" and the IN signal of B memory 2 is "1", so "1" is written to the address of B memory corresponding to SR0 in Figure 4. be included. If you perform the above operations for one frame,
The image in Figure 3a stored in the A memory 1 is converted into a thin shape with its outline shaved off as shown in Figure 3c, while the image in the B memory 2 has a contour line corresponding to the image in Figure 3a. The image shown in Figure b is stored. During the above operation, the data read from A memory 1 contained one or more "1"s, so flip-flop 4 was placed in the set state. Next, the same processing as described above is performed on the image shown in FIG. Closed. Therefore, even if a point (bit) on the contour is detected, writing to the B memory 2 is not performed. However, the outline of the stored image in the A memory 1 is removed by one pixel. Furthermore, when the same operation is repeated and the contents of the 2-bit counter become "10" or "11", AND gate A3 is closed in the same way, so the outline is not written to B memory 2. The stored image in the A memory 1 is only narrowed as shown in FIG. 3d. In the fourth frame, the 2-bit counter 10 becomes "00" again, so as is clear from the above description, the outline of the image stored in the A memory 1 at that time is stored in the B memory 2. Therefore, the stored images in the A and B memories at this time become as shown in e and f in FIG. 3, respectively. When the same processing is performed again, all the stored contents of the A memory 1 become "0", and the flip-flop 4 remains in the reset state when the next frame processing is completed. The output of the flip-flop 4 at this time is supplied to the clock and control signal generator 3 to stop the processing operation. The processed image (such as the one shown in Figure 3 f) is stored in the B memory 2, so if it is supplied to a known suitable output device (for example, a raster scan printer, etc.), a contour line pattern will be created. A transformed visible image can be obtained. Contour line pattern images created as described above often become smudged during subsequent handling, are intentionally tampered with, or are smeared on reproduced images obtained by copying them. . The present invention relates to a method for detecting dirt or tampering as described above, and further relates to a method for erasing portions determined to be dirt or tampering to obtain a clean reproduced copy image. FIG. 5 is a block diagram of one embodiment of the present invention.
1 to 28 are 2039-bit shift registers, 31 to 28 are 2039-bit shift registers,
Reference numeral 39 denotes a 9-bit shift register, which are successively connected in series as shown. First, 2
An image signal in value format is input to each of the shift registers. Here, we assume that one scanning line consists of 2048 bits (pixels), as mentioned above.
The mutual positional relationship of the information in each stage of the shift register in FIG. 5 matches that on the input original image. It goes without saying that the total number of bits in one scanning line is not limited to the above value. First, assume that the point to be processed P 0 stored in the fifth digit of the shift register 35 is black (“1”),
A method for determining whether this point is normal information or dirty information will be described. As is clear from Figure 6, if point P 0 is part of the contour line pattern image, it is impossible for all of the surrounding points P 1 to P 8 to be black (“1”). Therefore, equation (1) should not hold. Note that "." in formula (1) indicates a theoretical product. P 0 , P 1 , P 2 , P 3 , P 4 , P 5 , P 6 , P 7 , P 8 = 1
...(1) Therefore, in the AND circuit 41 of FIG. 5, the above (1)
When the formula is calculated and the output becomes "1", each of these points P 0 to P 8 is regarded as dirty, and the output (reset signal) R1 is used to read the contents of the shift register corresponding to each of these points. Reset. This removes dirt. However, when attempting to detect and erase dirt as shown in Figure 7a ("1" in the figure represents dirt), equation (1) holds true only at the three points marked O. , and equation (1) does not hold in other respects. Therefore, stains cannot be determined at the three points marked with the symbol "1" in b of the same figure, and the stains remain without being erased. By the way, if the processed point P 0 is black (“1”) but is erased as noise, a point 1 bit outside of the 8 points P 1 to P 8
Since P 9 to P 24 (see FIG. 6) are white (“0”) or noise, this region can also be set to “0” based on the above determination. For this purpose, in the embodiment of FIG. 5, the reset output R1 from the AND circuit 41 is supplied directly or via the OR circuits 42 and 43 to the corresponding stage of each shift register 33 to 37, and the information on the position is transmitted. It is reset to "0". Through the above processing, it is possible to detect and erase relatively large stains. however,
A narrow linear stain of two dots (pixels) or less, as shown by the hatched area in the upper half of FIG. 8, cannot be detected or erased by the above processing. Note that the diagonally shaded area in the lower half of FIG. 8 is the area forming the original contour line pattern. A method for detecting such linear stains will be described below. In Figure 9, if the point P 0 to be processed is black (“1”) and this point P 0 is part of the contour line pattern, then from the inherent properties of the contour line pattern shown in Figure 3 f, As can be seen, at least one bit of white adjacent to point P 0 in at least one direction, above and below or to the left and right,
There should be at least one bit of black next to that. More specifically, for example, black and white continue upward from the processing point P 0 in any of the manners as illustrated in the left half (A) to (E) of Table 1. It should be arranged.

【表】 そして、前記(イ)〜(ホ)の配列時には、第1表右半
分に示した判別論理式にいずれも“1”になる。
なお、第1表中の「∨」は論理和をあらわす。ま
た(ヘ)は、P0が汚れと判定される場合を、対比の
ために示したものであり、これに対する判別論理
式は“0”になる。 前述のような黒白ドツトの配列関係は、下方向
においてはもちろん、左右方向においても同じで
ある。それ故に、前述のような場合それぞれの方
向についてつぎの(2)〜(5)式が成立する。 P0・(P26∨P27)・112=1 ……(2) P0・(P30∨P31)・722=1 ……(3) P0・(P28∨P29)・416=1 ……(4) P0・(P32∨P33)・517=1 ……(5) それゆえに、前記(2)〜(5)式が成立するか否かを
チエツクし、いずれか1つでも成立すれば、被処
理点P0は等高線模様の一部であると判定してそ
のままとし、また(2)〜(5)式のいずれも成立しない
ときはノイズと判定してこれを消去すればよい。 以上の検出、消去動作を行なうのは、第5図の
論理回路群44〜56である。図から明らかなよ
うに、例えばオア回路44、ナンド回路45およ
びアンド回路46によつて前記(2)式の演算が行な
われる。他の論理回路群がそれぞれ(3)〜(5)式の演
算を行なうことは容易に理解されるであろう。 最後に非常に小さい汚れを検出、消去する手法
を説明する。第6図において、連続したnドツ
ト、例えば3ドツトP4−P0−P5に関して、これ
を取巻く12ドツトの白黒を判別し、その中に黒
(“1”)が1つもなければ、前記3ドツトは汚れ
とみなすことができる。すなわち、(6)式の論理を
実行し、これが成立するならば、3点P4、P0
P5は汚れと判定して消去することができる。 P1∨P2∨P3∨P15∨P17∨P19∨P8∨P7∨P6∨P18
P16∨P14=0……(6) この論理演算を実行するのは、第5図のノア回
路57である。すなわち、前記(6)式が成立すると
きは、ノア回路57の出力が“1”となり、これ
がリセツト信号R3としてシフトレジスタ35の
P4、P0、P5桁に加えられるので、これらの位置
の情報はリセツトされて“0”にされる。なおこ
の場合、第5図に示した実施例では、各論理回路
の入力はそれぞれ対応するシフトレジスタの桁か
ら取出されるべきであるのはもちろんであり、ま
た図示しないフレームメモリまたは第5図と同じ
第2のシフトレジスタ群を設けておき、これらの
フレームメモリの該当番地または第2のシフトレ
ジスタ群の該当桁にリセツト信号R1,R2等を
供給して記憶内容をリセツトするようにするのが
よい。 以上の処理が等高線模様画像のすべての画素に
ついて行なわれると、比較的大きな汚れ、細長い
線状の汚れ、および非常に小さい汚れが検出、消
去されるので、汚れのない良質の画像が再生され
ると共に、原画像の改ざんを検出することも容易
になる。なお、以上の操作によつて汚れを消去す
ると、本来等高線模様の一部であつた画素までも
消去されることがあり得るが、本発明の処理を行
なつた後に、例えば同日出願にかかる特開昭56−
111976号公報に開示された手法にしたがつて欠落
部の再生を行なえば、最終的に汚れのない完全な
等高線模様画像を再生することができる。また以
上においては、等高線の幅および間隔がいずれも
1ビツトの場合について述べたが、これらの値が
任意のビツトの場合にも、被検ドツトの周囲の比
較対照領域のパターンを変えるだけでよいことは
明らかである。さらに以上では、論理素子の組合
わせによつて本発明を実施した例を示したが、同
様の動作は電算機を適当にプログラムすることに
よつても実現し得ることは明らかであろう。
[Table] When the arrays (A) to (E) are arranged above, all of the discriminant logical expressions shown in the right half of Table 1 become "1".
Note that "∨" in Table 1 represents a logical sum. Also, (f) shows for comparison the case where P 0 is determined to be dirty, and the discriminant logical expression for this case is "0". The arrangement relationship of the black and white dots as described above is the same not only in the downward direction but also in the left and right directions. Therefore, in the case described above, the following equations (2) to (5) hold true for each direction. P 0・(P 26 ∨P 27 )・112 = 1 ...(2) P 0・(P 30 ∨P 31 )・722 = 1 ...(3) P 0・(P 28 ∨P 29 )・416 = 1 …(4) P 0・(P 32 ∨P 33 )・517 = 1 …(5) Therefore, do the above equations (2) to (5) hold? If any one of them is true, it is determined that the point to be processed P 0 is part of the contour line pattern and it is left as is, and if none of equations (2) to (5) are true, then should be determined as noise and erased. The logic circuit groups 44 to 56 in FIG. 5 perform the above detection and erasing operations. As is clear from the figure, the operation of equation (2) is performed by, for example, an OR circuit 44, a NAND circuit 45, and an AND circuit 46. It will be easily understood that the other logic circuit groups perform the operations of equations (3) to (5), respectively. Finally, we will explain a method for detecting and erasing very small stains. In FIG. 6, regarding n consecutive dots, for example, 3 dots P 4 -P 0 -P 5 , the black and white of 12 surrounding dots are determined, and if there is no black ("1") among them, then the 3 dots can be considered as dirt. That is, if the logic of equation (6) is executed and this holds true, the three points P 4 , P 0 ,
P5 can be determined as dirt and can be erased. P 1 ∨P 2 ∨P 3 ∨P 15 ∨P 17 ∨P 19 ∨P 8 ∨P 7 ∨P 6 ∨P 18
P 16 ∨P 14 =0 (6) This logical operation is executed by the NOR circuit 57 in FIG. That is, when the above formula (6) holds true, the output of the NOR circuit 57 becomes "1", and this is sent to the shift register 35 as the reset signal R3.
Since it is added to the P 4 , P 0 , and P 5 digits, the information at these positions is reset to "0". In this case, in the embodiment shown in FIG. 5, it goes without saying that the inputs of each logic circuit should be taken out from the corresponding digits of the shift register, and also from the frame memory (not shown) or the digits shown in FIG. It is best to provide the same second shift register group and reset the stored contents by supplying reset signals R1, R2, etc. to the corresponding addresses of these frame memories or the corresponding digits of the second shift register group. good. When the above processing is performed on all pixels of the contour line pattern image, relatively large stains, long thin line stains, and very small stains are detected and erased, so a high-quality, clean image is reproduced. At the same time, it becomes easier to detect tampering with the original image. Note that when dirt is erased by the above operation, pixels that were originally part of the contour line pattern may also be erased, but after performing the processing of the present invention, for example, 1977-
If the missing portion is reproduced according to the method disclosed in Japanese Patent No. 111976, it is possible to finally reproduce a complete contour line pattern image without any stains. Furthermore, in the above, we have described the case where both the width and interval of the contour lines are 1 bit, but even when these values are arbitrary bits, it is only necessary to change the pattern of the comparison area around the test dot. That is clear. Furthermore, although the above example has shown an example in which the present invention is implemented by a combination of logic elements, it is clear that similar operations can also be realized by appropriately programming a computer.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は普通画像および本発明の処理対象であ
る等高線模様付画像の1例を示す図、第2図は等
高線模様付画像の作成装置のブロツク図、第3,
4図はその動作説明図、第5図は本発明の1実施
例のブロツク図、第6ないし9図はその動作を説
明するための図である。 21〜28,31〜39……シフトレジスタ、
41〜57……論理素子。
FIG. 1 is a diagram showing an example of a normal image and an image with a contour line pattern, which is the processing target of the present invention. FIG. 2 is a block diagram of an apparatus for creating an image with a contour line pattern.
FIG. 4 is a diagram for explaining its operation, FIG. 5 is a block diagram of one embodiment of the present invention, and FIGS. 6 to 9 are diagrams for explaining its operation. 21-28, 31-39...shift register,
41-57...Logic elements.

Claims (1)

【特許請求の範囲】 1 等高線模様画像を“1”および“0”の2値
信号形式により、画像単位に読取つて記憶する工
程と、 原画像上の被検ドツト(画素)が“1”である
か否かを画素ごとに検知する工程と、 被検ドツトが“1”であるときは、前記被検ド
ツトを基点として、上下方向および左右方向の4
種のパターンの中、直近の予定数の隣接ビツトが
“0”で、かつそれに続く予定数の隣接ビツトが
“1”であるものが、存在するか否かを判別する
工程と、 前記条件を満すパターンが1つでもあるとき
は、被検ドツトは汚れではないと判定する工程と
よりなることを特徴とする等高線模様画像の汚れ
検出方法。
[Claims] 1. A step of reading and storing a contour line pattern image image by image in a binary signal format of "1" and "0"; a step of detecting the presence or absence of a pixel for each pixel, and a step of detecting the presence or absence of a pixel on a pixel-by-pixel basis;
A step of determining whether or not there is a pattern in which the most recent planned number of adjacent bits is “0” and the next scheduled number of adjacent bits is “1” among the seed patterns; A method for detecting dirt in a contour pattern image, comprising the step of determining that a test dot is not dirt if there is at least one pattern that satisfies the pattern.
JP1470680A 1980-02-12 1980-02-12 Detecting method for stain on picture of contour pattern Granted JPS56112605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1470680A JPS56112605A (en) 1980-02-12 1980-02-12 Detecting method for stain on picture of contour pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1470680A JPS56112605A (en) 1980-02-12 1980-02-12 Detecting method for stain on picture of contour pattern

Publications (2)

Publication Number Publication Date
JPS56112605A JPS56112605A (en) 1981-09-05
JPS6336036B2 true JPS6336036B2 (en) 1988-07-18

Family

ID=11868609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1470680A Granted JPS56112605A (en) 1980-02-12 1980-02-12 Detecting method for stain on picture of contour pattern

Country Status (1)

Country Link
JP (1) JPS56112605A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57198852A (en) * 1981-05-30 1982-12-06 Toshiba Corp Inspecting device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS511033A (en) * 1974-06-24 1976-01-07 Hitachi Ltd 2 jigenpataanno zatsuonshorisochi
JPS52110529A (en) * 1976-03-15 1977-09-16 Toshiba Corp Noise erasing circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS511033A (en) * 1974-06-24 1976-01-07 Hitachi Ltd 2 jigenpataanno zatsuonshorisochi
JPS52110529A (en) * 1976-03-15 1977-09-16 Toshiba Corp Noise erasing circuit

Also Published As

Publication number Publication date
JPS56112605A (en) 1981-09-05

Similar Documents

Publication Publication Date Title
US4079367A (en) Apparatus for forming a character out of a pattern of separate display picture elements
US4466123A (en) Apparatus and method for correcting contour line pattern images
US4528692A (en) Character segmenting apparatus for optical character recognition
GB2038142A (en) Image data compression
EP0236781A2 (en) Image data processing method and apparatus therefor
US5444543A (en) Method and apparatus for detecting a closed-loop area of an image
JPS60157375A (en) Halftone expressing system
JPS6336036B2 (en)
JPS6243589B2 (en)
JPS5813066A (en) Picture size contracting system
JP2812401B2 (en) Image processing device
US4400737A (en) Apparatus for producing and reproducing embedded pattern
JP2903214B2 (en) Area designation device
JPS6338741B2 (en)
JPS6312309B2 (en)
JP2003032495A (en) Smoothing method and smoothing circuit
JPH03123981A (en) Image filter circuit
JPH01141466A (en) Image processing unit
JP2985303B2 (en) Recording device area recognition method
JPH01141464A (en) Image processing unit
JP3061830B2 (en) Image processing device
JPH0227369A (en) Color picture processor
JP3204457B2 (en) Image processing device
JPH0638021A (en) Color image processor
JPS6339950B2 (en)