JP2008117248A - Image processor - Google Patents

Image processor Download PDF

Info

Publication number
JP2008117248A
JP2008117248A JP2006301242A JP2006301242A JP2008117248A JP 2008117248 A JP2008117248 A JP 2008117248A JP 2006301242 A JP2006301242 A JP 2006301242A JP 2006301242 A JP2006301242 A JP 2006301242A JP 2008117248 A JP2008117248 A JP 2008117248A
Authority
JP
Japan
Prior art keywords
pattern
collation
pixels
black
white
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
JP2006301242A
Other languages
Japanese (ja)
Inventor
Takanobu Sakamoto
貴宣 坂本
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery 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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2006301242A priority Critical patent/JP2008117248A/en
Publication of JP2008117248A publication Critical patent/JP2008117248A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor simplifying smoothing of binary image data by reducing a collation frequency. <P>SOLUTION: An input pattern data selection part 21 sequentially selects a collation area with 3×3 pixels from the image data to be processed and inputs it into a collation part 22, and the collation part 22 sequentially collates an inputted monochrome pattern and a plurality of monochrome pattern images stored in a matching pattern memory 24. When one monochrome pattern is matched an output selection part 23 reads an output pattern image corresponding to the detected monochrome pattern from an output pattern memory 25 and outputs it. At that time, patterns having all white pixels and all black pixels are registered as the monochrome pattern used for the first collation, the collation is completed in the early stages of collation processing when an area has all the white pixels or all the black pixels having high appearance frequency, so that the overall collation frequency can be reduced. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像処理装置に関し、特に、画像データに対してパターンマッチングによるスムージング処理を行う機能を備えた画像処理装置に関する。   The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus having a function of performing a smoothing process by pattern matching on image data.

スキャナで読み取った2値画像データを主走査方向及び副走査方向に拡大したり、ファクシミリ受信画像データの解像度がプリンタの解像度より低い場合に線密度変換を行うと、拡大した画像、あるいは、線密度変換した画像に段差が生じる。この画像データを拡大した際や線密度変換した際に生じる段差部分(ジャギ−)を滑らかにする方法の一つとして、パターンマッチングによるスムージング処理が行われている(例えば、特許文献1参照)。
特開2003−32495号公報
When binary image data read by the scanner is enlarged in the main scanning direction and sub-scanning direction, or when line density conversion is performed when the resolution of the facsimile reception image data is lower than the resolution of the printer, the enlarged image or the line density There is a step in the converted image. As one method for smoothing the stepped portion (jaggy) generated when the image data is enlarged or the line density is converted, smoothing processing by pattern matching is performed (for example, see Patent Document 1).
JP 2003-32495 A

パターンマッチングによる拡大スムージング処理では、拡大処理を行った場合に段差が生じる白黒パターンと、この白黒パターンに拡大処理を行った場合に出力するパターン画像とを対応付けて予め記憶しておき、拡大処理を行う画像データの中に、予め記憶している白黒パターン画像が含まれている場合、それに対応する出力パターン画像を読み出して出力することにより、拡大スムージング処理を行った画像を得るようにしている。   In the enlargement smoothing process by pattern matching, a black and white pattern in which a step is generated when the enlargement process is performed and a pattern image output when the enlargement process is performed on the black and white pattern are stored in advance in association with each other. If the image data to be processed includes a monochrome pattern image stored in advance, an output pattern image corresponding to the image data is read and output to obtain an image subjected to the enlarged smoothing process. .

上記のように、従来、2値画像に対して拡大スムージング処理を行う際、パターンテーブルに予め登録されている複数の白黒パターンと拡大スムージング処理を行う画像とを照合し、照合の結果、一致した場合、当該白黒パターンに対応する出力パターンを出力するようにしているが、予め登録されている白黒パターンのいずれにも当てはまらないということは、パターンテーブルに登録されている全ての白黒パターンと照合してみるまでは分からない。   As described above, when performing an enlarged smoothing process on a binary image, a plurality of black and white patterns registered in advance in the pattern table are collated with the image to be subjected to the enlarged smoothing process, and the result of the matching is the same. In this case, an output pattern corresponding to the black and white pattern is output, but the fact that it does not apply to any of the black and white patterns registered in advance is compared with all the black and white patterns registered in the pattern table. I don't know until I try.

一方、一般的な画像ではパターン参照領域が全て白画素、または全て黒画素となる場合というのはかなりの頻度で発生するが、従来、全て白画素や全て黒画素という白黒パターンがパターンテーブルに登録されていなかったので、全て白画素または全て黒画素の場合、登録されている全ての白黒パターンと所定の順序にて順次照合した後、いずれにも合致しないことが分かり、全て白画素または全て黒画素の画像、すなわち、そのまま拡大した内容を出力していた。
このように、かなりの頻度で発生する全て白画素または全て黒画素の参照領域についてもパターンテーブルに記憶されている全ての白黒パターンと照合しており、非常に無駄な照合を相当数行う必要があったので、処理が進まないという問題があった。
On the other hand, in general images, when the pattern reference area is all white pixels or all black pixels, it occurs quite often, but conventionally, black and white patterns such as all white pixels and all black pixels are registered in the pattern table. In the case of all white pixels or all black pixels, it was found that after matching with all registered black and white patterns sequentially in a predetermined order, they did not match either, all white pixels or all black pixels The pixel image, that is, the enlarged content is output as it is.
In this way, all white pixels or all black pixel reference areas that occur with considerable frequency are collated with all the black-and-white patterns stored in the pattern table, and it is necessary to perform a considerable amount of unnecessary collation. Because there was, there was a problem that processing did not proceed.

本発明は、上記の問題に鑑みてなされたもので、2値画像データのスムージング処理を行う際、照合回数を削減して、処理の簡略化を図ることができる画像処理装置を提供することを目的とする。   The present invention has been made in view of the above problems, and provides an image processing apparatus capable of simplifying the processing by reducing the number of collations when performing smoothing processing of binary image data. Objective.

上述の目的を達成するため、請求項1に係る発明の画像処理装置は、予め複数の白黒パターンを出力パターンと対応付けて記憶する記憶手段と、入力された白黒パターンと上記記憶手段に予め記憶されている白黒パターンとの照合を行う照合手段と、上記照合手段による照合の結果、一致した場合、当該白黒パターンに対応する出力パターンを出力する出力手段とを備えた画像処理装置であって、上記記憶手段に予め記憶される白黒パターンとして、上記照合の時間的に早い段階で参照される位置に、全て白画素及び/または全て黒画素の白黒パターンが登録されていることを特徴とする。   In order to achieve the above-described object, an image processing apparatus according to a first aspect of the present invention includes a storage unit that stores a plurality of monochrome patterns in association with output patterns in advance, and stores the input monochrome pattern and the storage unit in advance. An image processing apparatus comprising: a collating unit that collates with a monochrome pattern that has been matched; and an output unit that outputs an output pattern corresponding to the black and white pattern when the collation results in the collation by the collating unit; As a monochrome pattern stored in advance in the storage means, a monochrome pattern of all white pixels and / or all black pixels is registered at a position referred to at an earlier stage of the collation.

また、請求項2に係る発明の画像処理装置は、請求項1に記載された画像処理装置において、全て白画素及び/または全て黒画素の白黒パターンが、上記照合時最初に参照される位置に登録されていることを特徴とし、
請求項3に係る発明の画像処理装置は、請求項1に記載された画像処理装置において、上記記憶手段に予め記憶される白黒パターンとして、上記照合時最初に参照される位置に頻出白黒パターンが登録され、次に参照される位置に全て白画素及び/または全て黒画素の白黒パターンが登録されていることを特徴とする。
According to a second aspect of the present invention, there is provided the image processing device according to the first aspect, wherein the black and white pattern of all white pixels and / or all black pixels is first referred to at the time of collation. It is registered,
According to a third aspect of the present invention, there is provided the image processing apparatus according to the first aspect, wherein a frequent black-and-white pattern is provided at a position referred to first at the time of collation as a black-and-white pattern stored in advance in the storage means. A black and white pattern of all white pixels and / or all black pixels is registered at a position to be registered and referred to next.

請求項1〜請求項3に係る発明の画像処理装置によれば、記憶手段に予め記憶される白黒パターンとして、照合の時間的に早い段階で参照される位置、例えば、照合時最初に参照される位置、あるいは、頻出白黒パターンの次に参照される位置に、全て白画素及び/または全て黒画素の白黒パターンが登録されているので、パターン参照領域が全て白画素または全て黒画素である場合には、照合処理の早い段階で照合が完了するので、全体的な照合回数を減らすことができる。
なお、理論的には、どのパターンにも一致しないパターンを照合する際に照合回数は2回増えるが、全体を見た際、ほとんどの照合領域が全て白画素または全て黒画素ということが多いので、全体としての照合回数を減らすことが可能となる。
According to the image processing apparatus of the first to third aspects of the present invention, as a monochrome pattern stored in advance in the storage unit, a position referred to at an early stage of collation, for example, first referred to during collation. Or a black and white pattern of all white pixels and / or all black pixels is registered at a position referenced next to a frequent black and white pattern, or the pattern reference area is all white pixels or all black pixels Since the collation is completed at an early stage of the collation process, the total number of collations can be reduced.
Theoretically, when matching a pattern that does not match any pattern, the number of times of matching increases by two. However, when looking at the whole, most of the matching regions are often all white pixels or all black pixels. It is possible to reduce the number of collations as a whole.

以下、本発明の画像処理装置を複写機能、ファクシミリ機能、プリント機能、スキャナ機能等を有するデジタル複合機に適用した実施例について説明する。
図1はデジタル複合機のハードウェア構成を示すブロック図であり、CPU1、ROM(Read Only Memory)2、RAM(Random Access Memory)3、表示・操作部4、読取部5、画像メモリ6、記録部7、コーデック8、モデム9、ネットワーク制御ユニットNCU10、LANインターフェース(I/F)11及び拡大スムージング処理部12から構成され、各部がバス13を介して接続されている。
Hereinafter, an embodiment in which the image processing apparatus of the present invention is applied to a digital multifunction machine having a copying function, a facsimile function, a printing function, a scanner function, and the like will be described.
FIG. 1 is a block diagram showing the hardware configuration of a digital multi-function peripheral. CPU 1, ROM (Read Only Memory) 2, RAM (Random Access Memory) 3, display / operation unit 4, reading unit 5, image memory 6, recording A unit 7, a codec 8, a modem 9, a network control unit NCU 10, a LAN interface (I / F) 11, and an enlarged smoothing processing unit 12 are connected to each other via a bus 13.

CPU1はバス13を介してデジタル複合機のハードウェア各部を制御するとともに、ROM2に記憶されたプログラムに基づいて各種のプログラムを実行する。ROM2はデジタル複合機の動作に必要な種々のプログラムや操作メッセージ等を予め記憶するとともに、拡大スムージング処理時のパターンマッチングに使用する白黒パターンおよび対応する出力パターンを記憶するパターン記憶領域14を備えている。なお、このパターン記憶領域14のパターンマッチングに使用する白黒パターンの最初に読み出される位置に、全て白画素及び全て黒画素のパターンが記憶されている。
また、RAM3はSRAM等で構成され、プログラムの実行時に発生する一時的なデータを記憶する。
The CPU 1 controls each hardware unit of the digital multi-function peripheral via the bus 13 and executes various programs based on the programs stored in the ROM 2. The ROM 2 previously stores various programs and operation messages necessary for the operation of the digital multi-function peripheral, and includes a pattern storage area 14 for storing a monochrome pattern and a corresponding output pattern used for pattern matching during the enlarged smoothing process. Yes. Note that patterns of all white pixels and all black pixels are stored at the first read position of the monochrome pattern used for pattern matching in the pattern storage area 14.
The RAM 3 is composed of an SRAM or the like, and stores temporary data generated when the program is executed.

表示・操作部4は、デジタル複合機の動作状態を表示したり、種々の機能の操作画面の表示を行う表示部と、デジタル複合機を操作するための複数のキーよりなり、読取部5はオートドキュメントフィーダー(ADF)やフラットベッドスキャナ(FBS)等の読取り用原稿載置台を備え、CCD等を利用したスキャナで原稿を読み取り、ドットイメージデータを出力する。   The display / operation unit 4 includes a display unit that displays an operation state of the digital multifunction peripheral or displays an operation screen of various functions, and a plurality of keys for operating the digital multifunction peripheral. An original document reading table such as an auto document feeder (ADF) or a flatbed scanner (FBS) is provided. The original is read by a scanner using a CCD or the like, and dot image data is output.

また、画像メモリ6は、DRAM等を用いて構成され、送信すべき画像データまたは受信した画像データあるいは読取部5で読み取った画像データを記憶し、記録部7は電子写真方式等のプリンタ装置を備え、受信したデータ、コピー原稿データあるいは外部のパソコン等から送信されたプリントデータをプリントアウトする。   The image memory 6 is configured by using a DRAM or the like, and stores image data to be transmitted or received image data or image data read by the reading unit 5, and a recording unit 7 is a printer device such as an electrophotographic system. The received data, copy original data, or print data transmitted from an external personal computer or the like is printed out.

コーデック8は所定のプロトコルに対応して符号化・復号するものであり、読み取った原稿の画像データを送信するためにMH、MRまたはMMR方式により符号化し、外部から受信した画像データを復号するとともに、電子メールに添付可能なファイルとして一般的に利用される画像フォーマットであるTIFF方式等にも対応して符号化、復号する。   The codec 8 encodes and decodes in accordance with a predetermined protocol. In order to transmit the image data of the read original, the codec 8 is encoded by the MH, MR, or MMR system, and the image data received from the outside is decoded. Also, encoding and decoding are also performed in correspondence with the TIFF method, which is an image format generally used as a file that can be attached to an e-mail.

モデム9はバス13に接続されており、ファクシミリ通信が可能なファクスモデムとしての機能を有し、このモデム9は同様にバス13に接続されたNCU10と接続されている。NCU10はアナログ回線の閉結及び開放の動作を行うハードウェアであり、必要に応じてモデム9を公衆交換電話網(PSTN)に接続する。
LANインターフェース11はLANに接続され、LANからの信号を受信する一方、LANに対して信号やデータを送信するものであり、信号変換やプロトコル変換などのインターフェース処理を実行する。
The modem 9 is connected to the bus 13 and has a function as a fax modem capable of facsimile communication. The modem 9 is also connected to the NCU 10 connected to the bus 13. The NCU 10 is hardware that closes and opens an analog line, and connects the modem 9 to a public switched telephone network (PSTN) as necessary.
The LAN interface 11 is connected to the LAN, receives signals from the LAN, and transmits signals and data to the LAN, and executes interface processing such as signal conversion and protocol conversion.

また、パターンマッチングによる拡大スムージング処理を行う拡大スムージング処理部12は、図2の機能ブロック図に示すように、入力パターンデータ選択部21、照合部22及び出力選択部23よりなるが、これらの各部はCPU1、ROM2、RAM3等によって構成され、各部の機能はソフトウェアプログラムによって実行される。   Further, as shown in the functional block diagram of FIG. 2, the enlarged smoothing processing unit 12 that performs the enlarged smoothing process by pattern matching includes an input pattern data selection unit 21, a matching unit 22, and an output selection unit 23. Is constituted by a CPU 1, a ROM 2, a RAM 3, and the like, and the functions of each unit are executed by a software program.

なお、マッチングパターンメモリ24及び出力パターンメモリ25は、ROM2のパターン記憶領域14のメモリであり、マッチングパターンメモリ24は、単純拡大処理を行った場合に段差が生じる白黒パターンを記憶し、出力パターンメモリ25は、マッチングパターンメモリ24に記憶されている白黒パターンに対して拡大スムージング処理を行った際に出力するパターン画像を各白黒パターンに対応付けて記憶している。   The matching pattern memory 24 and the output pattern memory 25 are memories in the pattern storage area 14 of the ROM 2, and the matching pattern memory 24 stores a black and white pattern in which a step is generated when simple enlargement processing is performed. Reference numeral 25 denotes a pattern image output when the enlarged smoothing process is performed on the black and white pattern stored in the matching pattern memory 24 in association with each black and white pattern.

図3はマッチングパターンメモリ24が記憶している白黒パターン画像の一例を示した図であり、白抜きの正方形は白画素、黒塗りの正方形は黒画素を示している。
図3(a)、(b)に示すように、マッチングパターンメモリ24の最初に参照する位置に、全て白画素及び全て黒画素の白黒パターンが登録されており、これらに続いて参照される位置に図3(c)、(d)に示すような白黒パターンが所定個数登録されている。
FIG. 3 is a diagram showing an example of a black and white pattern image stored in the matching pattern memory 24. A white square indicates a white pixel, and a black square indicates a black pixel.
As shown in FIGS. 3A and 3B, black and white patterns of all white pixels and all black pixels are registered at the first reference position in the matching pattern memory 24, and are subsequently referred to. A predetermined number of monochrome patterns as shown in FIGS. 3C and 3D are registered.

また、図4は出力パターン画像の一例であり、図4(c)、(d)に示す出力パターン画像は、選択された白黒パターンが図3(c)、(d)の白黒パターンに一致した時に、それぞれ出力されるパターン画像である。このような出力パターン画像がマッチングパターンメモリ24に記憶されているそれぞれの白黒パターンに対応して出力パターンメモリ25に記憶されている。   FIG. 4 shows an example of an output pattern image. In the output pattern images shown in FIGS. 4C and 4D, the selected monochrome pattern matches the monochrome pattern shown in FIGS. 3C and 3D. It is a pattern image that is sometimes output. Such an output pattern image is stored in the output pattern memory 25 corresponding to each monochrome pattern stored in the matching pattern memory 24.

そして、入力パターンデータ選択部21は、コーデック8により復号された画像データから3画素×3画素の照合領域を順次選択して照合部22に入力し、照合部22は入力パターンデータ選択部21から入力された白黒パターンとマッチングパターンメモリ24が記憶している複数の白黒パターンとを順次照合することにより、入力された白黒パターンに一致する白黒パターンをマッチングパターンメモリ24から検索する。   Then, the input pattern data selection unit 21 sequentially selects a 3 pixel × 3 pixel verification region from the image data decoded by the codec 8 and inputs it to the verification unit 22, and the verification unit 22 receives the input pattern data from the input pattern data selection unit 21. By sequentially collating the input monochrome pattern with a plurality of monochrome patterns stored in the matching pattern memory 24, the matching pattern memory 24 is searched for a monochrome pattern that matches the input monochrome pattern.

入力された白黒パターンがマッチングパターンメモリ24に記憶されている複数の白黒パターンのいずれかと一致した場合、照合部22が出力選択部23に信号を送り、出力選択部23が、検出された白黒パターンに対応した出力パターン画像を出力パターンメモリ25から読み出して出力する。また、いずれの白黒パターンとも一致しなかった場合、出力選択部23は入力された白黒パターンをそのまま拡大処理して出力する。   If the input monochrome pattern matches any of the plurality of monochrome patterns stored in the matching pattern memory 24, the collation unit 22 sends a signal to the output selection unit 23, and the output selection unit 23 detects the detected monochrome pattern. Are read out from the output pattern memory 25 and output. If none of the monochrome patterns match, the output selection unit 23 enlarges and outputs the input monochrome pattern as it is.

デジタル複合機は上記のような構成を備えており、ファクシミリ送信時には、原稿の画像データが読取部5で読み取られ、コーデック8で圧縮されて画像メモリ6に蓄積される。この圧縮された画像データが画像メモリ6から読み出されてモデム9で変調され、NCU10からPSTNを通して通信相手先に送信される。また、ファクシミリ受信時には、受信した画像データがモデム9で復調され、画像メモリ6に蓄積された後、コーデック8で復号されてそのまま、または、拡大スムージング処理部12により拡大スムージング処理された後、記録部7により印刷される。   The digital multi-function peripheral has the above-described configuration. When the facsimile is transmitted, the image data of the original is read by the reading unit 5, compressed by the codec 8, and stored in the image memory 6. The compressed image data is read from the image memory 6, modulated by the modem 9, and transmitted from the NCU 10 to the communication partner through the PSTN. At the time of facsimile reception, the received image data is demodulated by the modem 9 and stored in the image memory 6 and then decoded by the codec 8 as it is or after being subjected to the enlargement smoothing processing by the enlargement smoothing processing unit 12 and then recorded. Printed by part 7.

次に、上記の拡大スムージング処理部の機能をCPU1が実施する場合の作用について、図5のフローチャートにより説明する。
図5のフローチャートに示す拡大スムージング処理のプログラムを開始すると、CPU1は、まず、コーデック8により復号された画像データから最初の3画素×3画素の処理対象を選択した(ステップ101)後、ROM2のパターン記憶領域14から最初の白黒パターンを抽出し(ステップ102)、選択した処理対象データと抽出した白黒パターンとを比較することにより一致したか否かを判定する(ステップ103)。
選択した処理対象データと抽出した白黒パターンとが一致したと判定した場合、CPU1は、ROM2のパターン記憶領域14に記憶されている、抽出した白黒パターンに対応した出力パターンに置き換えて出力する(ステップ104)。
Next, the operation when the CPU 1 implements the function of the above-described enlarged smoothing processing unit will be described with reference to the flowchart of FIG.
When the program for the enlargement smoothing process shown in the flowchart of FIG. 5 is started, the CPU 1 first selects the first 3 pixels × 3 pixels processing target from the image data decoded by the codec 8 (step 101), and then the ROM 2 The first monochrome pattern is extracted from the pattern storage area 14 (step 102), and it is determined whether or not they match by comparing the selected processing target data with the extracted monochrome pattern (step 103).
If it is determined that the selected processing target data matches the extracted black and white pattern, the CPU 1 replaces the output with the output pattern corresponding to the extracted black and white pattern stored in the pattern storage area 14 of the ROM 2 (step). 104).

一方、ステップ103で選択した処理対象データと抽出した白黒パターンとが一致しないと判定した場合、CPU1は、ROM2のパターン記憶領域14に記憶された全ての白黒パターンについて照合が完了したか否かを判定し(ステップ105)、全ての白黒パターンとの照合が完了していないと判定した場合、ROM2のパターン記憶領域14から次の白黒パターンを抽出した(ステップ106)後、ステップ103に戻り、選択した処理対象データと抽出した白黒パターンとを比較する。
また、ステップ105でROM2のパターン記憶領域14に記憶された全ての白黒パターンについて照合が完了したと判定した場合、CPU1は、処理対象データをそのまま2倍に拡大処理して出力する(ステップ107)。
On the other hand, if it is determined that the processing target data selected in step 103 does not match the extracted black and white pattern, the CPU 1 determines whether or not collation has been completed for all the black and white patterns stored in the pattern storage area 14 of the ROM 2. If it is determined (step 105) and it is determined that collation with all the black and white patterns has not been completed, the next black and white pattern is extracted from the pattern storage area 14 of the ROM 2 (step 106). The processed processing data is compared with the extracted monochrome pattern.
If it is determined in step 105 that collation has been completed for all the monochrome patterns stored in the pattern storage area 14 of the ROM 2, the CPU 1 enlarges the processing target data as it is and outputs it (step 107). .

そして、ステップ104で一致した白黒パターンに対応した出力パターンを出力した後、または、ステップ107で処理対象データをそのまま拡大処理出力した後、CPU1は画像全体の照合を完了したか否かを判定し(ステップ108)、画像全体の照合を完了していないと判定した場合、コーデック8により復号された画像データから次の3画素×3画素の処理対象データを選択した(ステップ109)後、同様にしてパターンマッチング処理を実行し、ステップ108で画像全体の照合が完了したと判定した場合、拡大スムージング処理を終了する。   Then, after outputting an output pattern corresponding to the matched black and white pattern in step 104, or after outputting the processing target data as it is in step 107 as it is, the CPU 1 determines whether or not collation of the entire image has been completed. (Step 108), if it is determined that the verification of the entire image has not been completed, the next 3 pixel × 3 pixel processing target data is selected from the image data decoded by the codec 8 (Step 109), and similarly. When the pattern matching process is executed and it is determined in step 108 that the entire image has been collated, the enlargement smoothing process is terminated.

以上のようにして拡大スムージング処理が実行されるが、パターンマッチングに使用する白黒パターンとして最初に図3(a)に示す全て白画素のパターンが抽出されるので、コーデック8により復号された画像データから選択された3画素×3画素の処理対象データは、まず、全て白画素のパターンと照合され、一致した場合は、2倍に拡大された全て白画素のパターンが出力される。   The enlargement smoothing process is executed as described above. Since the pattern of all white pixels shown in FIG. 3A is first extracted as the monochrome pattern used for pattern matching, the image data decoded by the codec 8 is extracted. The processing target data of 3 pixels × 3 pixels selected from the above are first collated with the pattern of all white pixels, and if they match, the pattern of all white pixels enlarged twice is output.

また、3画素×3画素の処理対象データが全て白画素のパターンと一致しなかった場合には、次に図3(b)に示す全て黒画素のパターンと照合され、一致した場合は、2倍に拡大された全て黒画素のパターンが出力される。
また、3画素×3画素の処理対象データが全て白画素、または全て黒画素のパターンと一致しなかった場合には、ROM2のパターン記憶領域14に記憶された以降の白黒パターンと順次比較され、いずれかの白黒パターンと一致した場合は、ROM2のパターン記憶領域14から一致した白黒パターンに対応した出力パターンが出力され、いずれの白黒パターンとも一致しなかった場合には、照合対象がそのまま2倍に拡大処理されて出力される。
If all the processing target data of 3 pixels × 3 pixels does not match the pattern of white pixels, then the pattern is checked with the pattern of all black pixels shown in FIG. A pattern of all black pixels enlarged twice is output.
In addition, when the processing target data of 3 pixels × 3 pixels does not match the pattern of all white pixels or all black pixels, it is sequentially compared with the subsequent monochrome patterns stored in the pattern storage area 14 of the ROM 2, If it matches any of the monochrome patterns, an output pattern corresponding to the matched monochrome pattern is output from the pattern storage area 14 of the ROM 2, and if it does not match any of the monochrome patterns, the collation target is doubled as it is. Is enlarged and output.

以上のように、最初に照合に使用される白黒パターンとして全て白画素及び全て黒画素のパターンがマッチングパターンメモリに登録されているので、出現頻度の高い全て白画素または全て黒画素の領域の場合、照合処理の早い段階で照合が完了し、全体的な照合回数を減らすことができるので、拡大スムージング処理の処理時間を短縮することができる。   As described above, the pattern of all white pixels and all black pixels is registered in the matching pattern memory as the black and white pattern used for collation first. Since the collation is completed at an early stage of the collation process and the total number of collations can be reduced, the processing time of the expanded smoothing process can be shortened.

なお、上記の実施例では、単純拡大処理を行った場合に段差が生じる白黒パターンに全て白画素及び全て黒画素の白黒パターンを追加したが、一般的には全て黒画素のパターンにマッチするよりも、全て白画素のパターンにマッチする確率の方が高いと考えられるので、全て白画素のパターンのみを追加するようにしてもよい。   In the above-described embodiment, the white and black patterns of all white pixels and all black pixels are added to the black and white pattern in which a step is generated when the simple enlargement process is performed. However, since it is considered that the probability of matching the pattern of all white pixels is higher, only the pattern of all white pixels may be added.

また、上記の実施例では、最初の照合時に参照される白黒パターンとして全て白画素及び全て黒画素の白黒パターンを登録したが、最初の照合時に参照される白黒パターンとして、出現頻度の高い、いくつかの頻出パターンを登録し、頻出パターンの照合後に参照される白黒パターンとして、全て白画素及び全て黒画素の白黒パターンを登録することも可能である。   In the above embodiment, the black and white pattern of all white pixels and all black pixels is registered as the black and white pattern to be referred to at the time of the first collation. It is also possible to register such a frequent pattern and register a monochrome pattern of all white pixels and all black pixels as a monochrome pattern referred to after the frequent pattern matching.

さらに、照合に使用するマッチングパターンテーブル内の複数の白黒パターンについて、原稿の種別設定、例えば、文字、写真、文字/写真等の設定に応じて参照順序を変えるようにすることもでき、また、テーブル内の複数のパターンについて、参照順序を手動操作によって変更できるようにしてもよい。   Further, for a plurality of black and white patterns in the matching pattern table used for collation, the reference order can be changed according to the document type setting, for example, character, photo, character / photo, etc. For a plurality of patterns in the table, the reference order may be changed manually.

また、ユーザ毎の学習機能を設け、学習結果に基づいて、照合に使用するマッチングパターンテーブル内のパターンの参照順序を変えることもできる。
すなわち、ユーザ毎に実際にパターンマッチングを行ったときのマッチング結果(履歴)を記憶しておき、複数のパターンについて、実際にマッチングした回数(頻度)に応じて参照順序を決定し、マッチングした回数の多いパターン順に照合を行うようにすれば、さらに、照合時間を短縮することができる。
In addition, a learning function for each user can be provided, and the reference order of patterns in the matching pattern table used for matching can be changed based on the learning result.
That is, the matching result (history) when pattern matching is actually performed for each user is stored, the reference order is determined according to the number of times (frequency) of actual matching for a plurality of patterns, and the number of times of matching If collation is performed in the order of patterns having a large number of patterns, the collation time can be further shortened.

また、テーブル内の複数のパターンについて、照合に使用しないパターン(非参照パターン)を設定できるようすることも可能であり、このようにすれば、画質は低下するが、非参照パターンを増やすほど処理が簡単になり、照合時間を減少させることができる。   In addition, it is possible to set a pattern (non-reference pattern) that is not used for collation for a plurality of patterns in the table. In this way, the image quality decreases, but the more non-reference patterns are processed Can be simplified and the verification time can be reduced.

さらに、上記の実施例では、本発明を拡大スムージング処理に適用した例について説明したが、線密度変換時や単なる画像のスムージング処理にも本発明を適用することが可能であり、また、照合対象とする画素数も3×3に限らず、任意の画素数を設定でき、拡大倍率も2倍に限らず、任意の倍率を設定することができる。
また、上記の実施例では、本発明の画像処理装置を、デジタル複合機に適用した場合について説明したが、本発明の画像処理装置はファクシミリ装置やコピー機等の他の画像処理装置にも適用することができる。
Further, in the above-described embodiment, the example in which the present invention is applied to the enlarged smoothing process has been described. However, the present invention can also be applied to the linear density conversion or the simple image smoothing process, and the matching target The number of pixels is not limited to 3 × 3, and an arbitrary number of pixels can be set, and the enlargement magnification is not limited to two, and an arbitrary magnification can be set.
In the above embodiment, the image processing apparatus of the present invention is applied to a digital multi-function peripheral. However, the image processing apparatus of the present invention is also applicable to other image processing apparatuses such as a facsimile machine and a copier. can do.

デジタル複合機のハードウェア構成を示すブロック図である。2 is a block diagram illustrating a hardware configuration of a digital multifunction peripheral. FIG. 拡大スムージング処理部の機能を示す機能ブロック図である。It is a functional block diagram which shows the function of an expansion smoothing process part. ROMのパターン記憶領域に記憶される白黒パターンの一例である。It is an example of the monochrome pattern memorize | stored in the pattern memory area of ROM. ROMのパターン記憶領域に記憶される出力パターンの一例である。It is an example of the output pattern memorize | stored in the pattern memory area of ROM. 拡大スムージング処理実行時の作用を示すフローチャートである。It is a flowchart which shows the effect | action at the time of execution of an expansion smoothing process.

符号の説明Explanation of symbols

1 CPU
2 ROM
3 RAM
4 表示・操作部
5 読取部
6 画像メモリ
7 記録部
8 コーデック
9 モデム
10 NCU
11 LAN I/F
12 拡大スムージング処理部
13 バス
14 パターン記憶領域
21 入力パターンデータ選択部
22 照合部
23 出力選択部
24 マッチングパターンメモリ
25 出力パターンメモリ
1 CPU
2 ROM
3 RAM
4 Display / Operation Unit 5 Reading Unit 6 Image Memory 7 Recording Unit 8 Codec 9 Modem 10 NCU
11 LAN I / F
12 Enlarged Smoothing Processing Unit 13 Bus 14 Pattern Storage Area 21 Input Pattern Data Selection Unit 22 Verification Unit 23 Output Selection Unit 24 Matching Pattern Memory 25 Output Pattern Memory

Claims (3)

予め複数の白黒パターンを出力パターンと対応付けて記憶する記憶手段と、入力された白黒パターンと上記記憶手段に予め記憶されている白黒パターンとの照合を行う照合手段と、上記照合手段による照合の結果、一致した場合、当該白黒パターンに対応する出力パターンを出力する出力手段とを備えた画像処理装置であって、
上記記憶手段に予め記憶される白黒パターンとして、上記照合の時間的に早い段階で参照される位置に、全て白画素及び/または全て黒画素の白黒パターンが登録されていることを特徴とする画像処理装置。
Storage means for storing a plurality of monochrome patterns in association with output patterns in advance, collation means for collating an input monochrome pattern with a monochrome pattern stored in advance in the storage means, and collation by the collation means As a result, an image processing apparatus including an output unit that outputs an output pattern corresponding to the black and white pattern when they match,
An image in which a monochrome pattern of all white pixels and / or all black pixels is registered as a monochrome pattern stored in advance in the storage means at a position referred to at an earlier stage of the collation. Processing equipment.
請求項1に記載された画像処理装置において、
全て白画素及び/または全て黒画素の白黒パターンが、上記照合時最初に参照される位置に登録されてことを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
An image processing apparatus, wherein a black and white pattern of all white pixels and / or all black pixels is registered at a position to be referred to first at the time of collation.
請求項1に記載された画像処理装置において、
上記記憶手段に予め記憶される白黒パターンとして、上記照合時最初に参照される位置に頻出白黒パターンが登録され、次に参照される位置に全て白画素及び/または全て黒画素の白黒パターンが登録されていることを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
As a monochrome pattern stored in advance in the storage means, a frequent monochrome pattern is registered at the first reference position at the time of collation, and a monochrome pattern of all white pixels and / or all black pixels is registered at the next reference position. An image processing apparatus.
JP2006301242A 2006-11-07 2006-11-07 Image processor Pending JP2008117248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006301242A JP2008117248A (en) 2006-11-07 2006-11-07 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006301242A JP2008117248A (en) 2006-11-07 2006-11-07 Image processor

Publications (1)

Publication Number Publication Date
JP2008117248A true JP2008117248A (en) 2008-05-22

Family

ID=39503098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006301242A Pending JP2008117248A (en) 2006-11-07 2006-11-07 Image processor

Country Status (1)

Country Link
JP (1) JP2008117248A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186549A (en) * 2015-03-27 2016-10-27 三菱電機株式会社 Smoothing processor and smoothing processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186549A (en) * 2015-03-27 2016-10-27 三菱電機株式会社 Smoothing processor and smoothing processing method

Similar Documents

Publication Publication Date Title
US8659773B2 (en) Image sending apparatus and preview display method
US8554007B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium for computer program
JP5225201B2 (en) Image processing device
JP4367516B2 (en) Image processing device
US20070030288A1 (en) Apparatus and method for overlaying pattern data on a reproduced image
JP5052562B2 (en) Image processing device
JP2008117248A (en) Image processor
JP4141923B2 (en) Color image processing device
JP2003333267A (en) Communication terminal device and server device
JP4049133B2 (en) Network MFP
JP4137006B2 (en) Image information device
JP2004158999A (en) Color image reading and recording apparatus
JP2008277955A (en) Image processing device and image processing system
JP5072907B2 (en) Image processing device
JP2008258930A (en) Image processing apparatus
JP2006166134A (en) Image communication equipment, its control method, program, and storage medium
JP3918644B2 (en) Facsimile device
JP2005347909A (en) Image communication device
JP4741970B2 (en) Image forming apparatus and image forming method
JP4844744B2 (en) Facsimile machine
JP2006295301A (en) Image forming apparatus
JP5062633B2 (en) Image processing apparatus, image processing method, and program
JP2007311911A (en) Image forming apparatus
JP2008257611A (en) Image processing device
JP2005323133A (en) Communication terminal equipment