JP2010219577A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2010219577A
JP2010219577A JP2009060380A JP2009060380A JP2010219577A JP 2010219577 A JP2010219577 A JP 2010219577A JP 2009060380 A JP2009060380 A JP 2009060380A JP 2009060380 A JP2009060380 A JP 2009060380A JP 2010219577 A JP2010219577 A JP 2010219577A
Authority
JP
Japan
Prior art keywords
pixels
pixel
line
image
image data
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
JP2009060380A
Other languages
Japanese (ja)
Inventor
Nariyasu Kyo
成泰 姜
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 JP2009060380A priority Critical patent/JP2010219577A/en
Publication of JP2010219577A publication Critical patent/JP2010219577A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of sensing an original image, a background portion and a latent image portion and converting them into a four-value image data in which density is different among the original image, the background portion and the latent image portion and outputting the converted image data. <P>SOLUTION: The image processing apparatus includes: a binary image storage section for storing binary image data for at least two lines of a horizontal scanning direction; a coupling dark pixel detecting section for extracting dark pixels from the binary image data, and detecting the number of pixels of the coupled dark pixel consisting of dark pixels adjacent in the horizontal direction and the center position; a candidate pixel extracting section for extracting candidate pixels of an isolated point and a dot from the coupled dark pixel up to the present line by comparison between a result of detection of the present line and a result of detection of one line before; and a four-value image generating section for estimating the isolated point and the dot from the candidate pixels on the basis of the maximum value of the number of pixels about the coupled dark pixels adjacent to the vertical scanning direction and the number of coupled lines, and allocating gradation density corresponding to the original image, the isolated point and the dot and generating a four-value image data. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理装置に係り、さらに詳しくは、孤立点の密度を変化させて濃度調整が行われる背景部と網点の大きさを変化させて濃度調整が行われる潜像部とからなる地紋画像が埋め込まれた2値画像データを4値画像データに変換して出力する画像処理装置に関する。   The present invention relates to an image processing apparatus, and more specifically, includes a background portion in which density adjustment is performed by changing the density of isolated points and a latent image portion in which density adjustment is performed by changing the size of halftone dots. The present invention relates to an image processing apparatus that converts binary image data in which a tint block image is embedded into quaternary image data and outputs it.

印刷物による情報漏洩及び印刷物の複製を抑制する技術として、地紋画像を埋め込んで印刷する技術が従来から知られている(例えば、特許文献1〜3)。例えば、文書データを用紙に印刷する際、文書データからなる原稿画像にコピー禁止などの文字列が地紋画像として埋め込まれる。地紋画像は、高解像度の孤立点によって構成される背景部と、低解像度の網点によって構成される潜像部からなり、地紋画像が埋め込まれた印刷物を複製した際に、高解像度の背景部が除去されて潜像部が浮かび上がる現象を利用することによって複製を抑制するものである。   2. Description of the Related Art Conventionally, a technique for embedding a tint block image and printing is known as a technique for suppressing information leakage due to printed matter and duplication of the printed matter (for example, Patent Documents 1 to 3). For example, when printing document data on paper, a character string such as copy prohibition is embedded as a copy-forgery-inhibited pattern image in a document image made up of document data. The copy-forgery-inhibited pattern image is composed of a background portion made up of high-resolution isolated dots and a latent image portion made up of low-resolution halftone dots. By using the phenomenon in which the latent image portion is lifted by removing the image, the duplication is suppressed.

地紋画像が複製の抑制効果を発揮するためには、複製時に背景部を構成する孤立点が消え、潜像部が視認できる程度に網点が鮮明に印刷される必要がある。さらに、印刷物において地紋画像を目立たせないためには、背景部と潜像部とがマクロ的に見てほぼ同じ濃度でなければならない。一般に、網点は、ミクロ的に見れば、多数の印刷ドットの集合体(塊り)であり、マクロ的な濃度調整は、網点を構成する印刷ドットの数を変化させて網点の大きさを大きくし、或いは、小さくすることによって行われる。これに対し、孤立点は、1個程度の印刷ドットからなり、マクロ的な濃度調整は、孤立点の密度を変化させることによって行われる。   In order for the copy-forgery-inhibited pattern image to exhibit the effect of suppressing duplication, it is necessary that the isolated dots constituting the background portion disappear during duplication, and the halftone dots must be printed so clearly that the latent image portion can be visually recognized. Further, in order to make the copy-forgery-inhibited pattern image inconspicuous in the printed matter, the background portion and the latent image portion must have substantially the same density when viewed macroscopically. In general, a halftone dot is an aggregate (lumps) of a large number of printing dots from a microscopic viewpoint, and macro density adjustment is performed by changing the number of printing dots constituting the halftone dot to increase the size of the halftone dot. This is done by increasing or decreasing the size. On the other hand, an isolated point is composed of about one print dot, and macro density adjustment is performed by changing the density of isolated points.

原稿画像に地紋画像を埋め込んで白画素及び黒画素からなる2値画像データを生成し、プリンタへ出力する画像処理装置の場合、背景部及び潜像部の絶対濃度、背景部及び潜像部間の濃度差、並びに、背景部及び潜像部と原稿画像との間の濃度差が全て最適となるように、ソフトウェア的に地紋画像の濃度調整を行わせることができる。しかしながら、原稿画像及び地紋画像の濃度を予め最適化したとしても、プリンタのドット再現性能が機構的な要因、個体差、経年変化などによって大きく異なるため、2値画像データの印刷に使用するプリンタによっては、有効な地紋画像を形成することができないという問題があった。   In the case of an image processing apparatus that generates binary image data composed of white pixels and black pixels by embedding a copy-forgery-inhibited pattern image in a document image, and outputs the data to a printer, the absolute density of the background portion and the latent image portion, and between the background portion and the latent image portion The density of the copy-forgery-inhibited pattern image can be adjusted by software so that the density difference between the background portion and the latent image portion and the original image are all optimal. However, even if the density of the original image and the copy-forgery-inhibited pattern image is optimized in advance, the dot reproduction performance of the printer varies greatly depending on mechanical factors, individual differences, aging, etc., and therefore it depends on the printer used for printing binary image data. However, there is a problem that an effective tint block image cannot be formed.

印刷ドットの大きさ及び位置の調整によりエッジを平滑化するスムージングの技術を利用することによって、入力データの解像度、例えば、600dpi(dot per inch)よりも高い解像度、例えば、1200dpi又は2400dpi相当で印刷することができるプリンタが知られている。また、露光時間の調整により印刷ドットの大きさを変化させることによってマクロ的な濃度調整が可能な電子写真方式のプリンタも知られている。そこで、地紋画像が埋め込まれた2値画像データを印刷する際に、原稿画像、背景部及び潜像部を構成する画素を検知し、原稿画像、背景部及び潜像部間で印刷解像度及び印刷濃度を異ならせて印刷させることが考えられる。   By using a smoothing technique that smooths edges by adjusting the size and position of printing dots, printing is performed at a resolution higher than the resolution of input data, for example, 600 dpi (dot per inch), for example, equivalent to 1200 dpi or 2400 dpi. Printers that can do this are known. There is also known an electrophotographic printer capable of macroscopic density adjustment by changing the size of printing dots by adjusting the exposure time. Therefore, when printing binary image data in which a copy-forgery-inhibited pattern image is embedded, pixels constituting the original image, the background portion, and the latent image portion are detected, and the print resolution and printing are performed between the original image, the background portion, and the latent image portion. It is conceivable to print with different densities.

潜像部を構成する網点の検出は、例えば、水平走査方向及び垂直走査方向に隣接する連結黒画素を抽出し、この様な連結黒画素が水平走査方向及び垂直走査方向に周期的に出現しているか否かを判別することによって行われていた。つまり、水平及び垂直の両走査方向に少なくとも3個の網点が連続して存在していなければ網点として検出されなかった。このため、潜像部として埋め込まれる文字、記号、図形などの形状及びサイズによっては、網点が1個又は2個しか存在しない領域が生じてしまい、当該領域内の網点を正しく検知できないという問題があった。また、予め作成された地紋画像では、潜像部を構成する網点が水平及び垂直の両走査方向に3個以上連続して存在していたとしても、原稿画像と合成することによって、網点が1個又は2個しか存在しない領域が生じてしまうということも考えられる。   Detection of halftone dots constituting the latent image portion is performed by, for example, extracting adjacent black pixels in the horizontal scanning direction and the vertical scanning direction, and such connected black pixels appear periodically in the horizontal scanning direction and the vertical scanning direction. It was done by determining whether or not. That is, if at least three halftone dots do not exist continuously in both the horizontal and vertical scanning directions, they are not detected as halftone dots. For this reason, depending on the shape and size of characters, symbols, figures, etc. embedded as a latent image portion, an area where only one or two halftone dots exist is generated, and the halftone dots in the area cannot be detected correctly. There was a problem. Further, in a tint block image created in advance, even if three or more halftone dots constituting the latent image portion exist continuously in both the horizontal and vertical scanning directions, the halftone dots are synthesized by combining with the original image. It is also conceivable that there will be a region where only one or two exists.

さらに、網点の上記検出方法では、水平及び垂直の両走査方向の周期性を判断する必要があることから、水平走査方向の1ライン分の2値画像データを保持するラインバッファとしては、垂直走査方向に関し網点の上限サイズの少なくとも3倍の容量を確保しなければならないという問題もあった。   Further, in the above halftone dot detection method, since it is necessary to determine the periodicity in both the horizontal and vertical scanning directions, a vertical line buffer for holding binary image data for one line in the horizontal scanning direction is used. There is also a problem that a capacity of at least three times the upper limit size of the halftone dot in the scanning direction must be secured.

特開2007−47383号公報JP 2007-47383 A 特開2008−271563号公報JP 2008-271563 A 特開2005−94327号公報JP 2005-94327 A

本発明は、上記事情に鑑みてなされたものであり、地紋画像が埋め込まれた2値画像データに基づいて原稿画像、背景部及び潜像部を検知し、原稿画像、背景部及び潜像部間で濃度を異ならせた4値画像データに変換して出力することができる画像処理装置を提供することを目的とする。特に、地紋画像の潜像部を構成する網点の検出精度を向上させた画像処理装置を提供することを目的とする。また、網点の検出に要するラインバッファの容量を低減させた画像処理装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and detects a document image, a background portion, and a latent image portion based on binary image data in which a copy-forgery-inhibited pattern image is embedded, and the document image, the background portion, and the latent image portion. An object of the present invention is to provide an image processing apparatus capable of converting and outputting quaternary image data having different densities. In particular, an object of the present invention is to provide an image processing apparatus in which the detection accuracy of halftone dots constituting a latent image portion of a tint block image is improved. It is another object of the present invention to provide an image processing apparatus in which the capacity of a line buffer required for detecting halftone dots is reduced.

第1の本発明による画像処理装置は、孤立点の密度を変化させて濃度調整が行われる背景部と網点の大きさを変化させて濃度調整が行われる潜像部とからなる地紋画像が埋め込まれた2値画像データを4値画像データに変換して出力する画像処理装置であって、水平走査方向の少なくとも2ライン分の上記2値画像データを保持する2値画像記憶部と、上記2値画像データから黒画素を抽出し、水平走査方向に隣接する黒画素からなる連結黒画素の画素数及び中心位置を検出する連結黒画素検出部と、上記連結黒画素検出部による現ラインの検出結果と1つ前のラインの検出結果との比較によって、現ラインまでの上記連結黒画素から上記孤立点及び上記網点の候補とする候補画素を抽出する候補画素抽出部と、垂直走査方向に隣接する上記連結黒画素に関する上記画素数の最大値及び連結ライン数に基づいて上記候補画素から上記孤立点及び上記網点を推定し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てて上記4値画像データを生成する4値画像生成部とを備えて構成される。   In the image processing apparatus according to the first aspect of the present invention, a copy-forgery-inhibited pattern image including a background portion in which density adjustment is performed by changing the density of isolated points and a latent image portion in which density adjustment is performed by changing the size of halftone dots. An image processing apparatus for converting embedded binary image data into quaternary image data and outputting the quaternary image data, the binary image storage unit holding the binary image data for at least two lines in the horizontal scanning direction; A black pixel is extracted from the binary image data, and the number of connected black pixels and the center position of the black pixels adjacent to each other in the horizontal scanning direction are detected. A candidate pixel extraction unit that extracts candidate pixels as candidates for the isolated points and halftone dots from the connected black pixels up to the current line by comparing the detection result with the detection result of the previous line; and a vertical scanning direction Adjacent to above The isolated point and the halftone dot are estimated from the candidate pixel based on the maximum value of the number of pixels and the number of connected lines regarding the black pixel, and the gradation density corresponding to the original image, the isolated point and the halftone dot is assigned. And a quaternary image generation unit that generates quaternary image data.

この画像処理装置では、原稿画像、孤立点及び網点に応じた階調濃度を黒画素に割り当てることによって2値画像データを4値画像データに変換して出力される。従って、この様な画像処理装置を用いれば、地紋画像が埋め込まれた2値画像データを印刷する際に、原稿画像、背景部及び潜像部を構成する画素を検知し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てた4値画像データを用いて印刷させられるので、原稿画像、背景部及び潜像部間で印刷解像度又は印刷濃度を異ならせて印刷することができる。その際、水平走査方向に隣接する黒画素からなる連結黒画素の画素数及び中心位置を現ラインと1つ前のラインとで比較することによって候補画素を抽出し、垂直走査方向に隣接する連結黒画素に関する画素数の最大値及び連結ライン数に基づいて孤立点及び網点が推定される。   In this image processing apparatus, binary image data is converted into quaternary image data by assigning gradation densities corresponding to the original image, isolated points, and halftone dots to black pixels, and output. Therefore, when such an image processing apparatus is used, when the binary image data in which the copy-forgery-inhibited pattern image is embedded is printed, pixels constituting the original image, the background portion, and the latent image portion are detected, and the original image, the isolated point is detected. In addition, printing is performed using quaternary image data to which gradation densities corresponding to halftone dots are assigned, so that printing can be performed with different print resolutions or print densities between the original image, the background portion, and the latent image portion. At that time, candidate pixels are extracted by comparing the current line and the previous line with the number and center position of connected black pixels made up of black pixels adjacent in the horizontal scanning direction, and connected adjacent in the vertical scanning direction. Isolated points and halftone dots are estimated based on the maximum number of pixels and the number of connected lines regarding black pixels.

この様な構成によれば、連結黒画素の画素数及び中心位置を現ラインと1つ前のラインとで比較することにより候補画素を抽出し、画素数の最大値及び連結ライン数に基づいて孤立点及び網点を推定するので、網点が1個又は2個しか存在しない領域であっても、網点を正しく検知することができる。従って、地紋画像が埋め込まれた2値画像データに基づいて原稿画像、背景部及び潜像部を検知し、原稿画像、背景部及び潜像部間で濃度を異ならせた4値画像データに変換して出力する際の網点の検出精度を向上させることができる。また、少なくとも2ライン分の2値画像データを保持し、連結黒画素の画素数及び中心位置を現ラインと1つ前のラインとで比較することによって孤立点及び網点を推定するので、水平及び垂直の両走査方向の周期性を判断して網点を検出する従来の検出方法に比べて、網点の検出に要するラインバッファの容量を低減させることができる。   According to such a configuration, candidate pixels are extracted by comparing the number of pixels and the center position of the connected black pixels between the current line and the previous line, and based on the maximum number of pixels and the number of connected lines. Since the isolated points and halftone dots are estimated, the halftone dots can be correctly detected even in a region where only one or two halftone dots exist. Therefore, based on the binary image data in which the copy-forgery-inhibited pattern image is embedded, the original image, the background portion, and the latent image portion are detected, and converted into four-value image data in which the density is different between the original image, the background portion, and the latent image portion. Thus, it is possible to improve the accuracy of halftone dot detection. In addition, since binary image data for at least two lines is held and the number of connected black pixels and the center position are compared between the current line and the previous line, the isolated points and halftone dots are estimated. The capacity of the line buffer required to detect halftone dots can be reduced as compared with the conventional detection method in which halftone dots are detected by judging the periodicity in both the vertical scanning directions.

第2の本発明による画像処理装置は、上記構成に加え、上記候補画素抽出部が、上記画素数が上記網点の水平走査方向の上限サイズを越える連結黒画素を候補画素から除外するように構成される。   In the image processing apparatus according to the second aspect of the present invention, in addition to the above configuration, the candidate pixel extraction unit excludes connected black pixels whose number of pixels exceeds the upper limit size of the halftone dot in the horizontal scanning direction from the candidate pixels. Composed.

第3の本発明による画像処理装置は、上記構成に加え、上記候補画素抽出部が、現ラインまでの上記連結ライン数が上記網点の垂直走査方向の上限サイズを越える連結黒画素を候補画素から除外するように構成される。   In the image processing apparatus according to the third aspect of the present invention, in addition to the above-described configuration, the candidate pixel extraction unit selects a connected black pixel in which the number of connected lines up to the current line exceeds the upper limit size of the halftone dot in the vertical scanning direction. Configured to be excluded from.

第4の本発明による画像処理装置は、上記構成に加え、上記候補画素抽出部が、1つ前のラインに隣接する黒画素が存在しない現ラインの連結黒画素について、上記最大値及び上記連結ライン数をリセットするように構成される。   In the image processing apparatus according to the fourth aspect of the present invention, in addition to the above-described configuration, the candidate pixel extraction unit may perform the maximum value and the connection for the connected black pixels of the current line in which there is no black pixel adjacent to the previous line. Configured to reset the number of lines.

第5の本発明による画像処理装置は、上記構成に加え、上記4値画像生成部が、現ラインについて上記最大値及び上記連結ライン数がいずれも1である候補画素を孤立点と判断し、上記最大値及び上記連結ライン数がいずれもN(Nは3以上かつ網点の垂直走査方向の上限サイズ以下の整数)である連結黒画素に関連付けられた候補画素を網点と判断するように構成される。   In the image processing apparatus according to the fifth aspect of the present invention, in addition to the above configuration, the quaternary image generation unit determines a candidate pixel having the maximum value and the number of connected lines of 1 for the current line as an isolated point, A candidate pixel associated with a connected black pixel in which the maximum value and the number of connected lines are both N (N is an integer not less than 3 and not more than the upper limit size of the halftone dot in the vertical scanning direction) is determined as a halftone dot. Composed.

本発明による画像処理装置によれば、連結黒画素の画素数及び中心位置を現ラインと1つ前のラインとで比較することにより候補画素を抽出し、画素数の最大値及び連結ライン数に基づいて孤立点及び網点を推定するので、網点が1個又は2個しか存在しない領域であっても、網点を正しく検知することができる。従って、地紋画像が埋め込まれた2値画像データに基づいて原稿画像、背景部及び潜像部を検知し、原稿画像、背景部及び潜像部間で濃度を異ならせた4値画像データに変換して出力する際の網点の検出精度を向上させることができる。また、少なくとも2ライン分の2値画像データを保持し、連結黒画素の画素数及び中心位置を現ラインと1つ前のラインとで比較することによって孤立点及び網点を推定するので、水平及び垂直の両走査方向の周期性を判断して網点を検出する従来の検出方法に比べて、網点の検出に要するラインバッファの容量を低減させることができる。   According to the image processing apparatus of the present invention, candidate pixels are extracted by comparing the number of pixels of the connected black pixels and the center position between the current line and the previous line, and the maximum number of pixels and the number of connected lines are obtained. Since isolated points and halftone dots are estimated based on this, halftone dots can be detected correctly even in a region where only one or two halftone dots exist. Therefore, based on the binary image data in which the copy-forgery-inhibited pattern image is embedded, the original image, the background portion, and the latent image portion are detected, and converted into four-value image data in which the density is different between the original image, the background portion, and the latent image portion. Thus, it is possible to improve the accuracy of halftone dot detection. In addition, since binary image data for at least two lines is held and the number of connected black pixels and the center position are compared between the current line and the previous line, the isolated points and halftone dots are estimated. The capacity of the line buffer required to detect halftone dots can be reduced as compared with the conventional detection method in which halftone dots are detected by judging the periodicity in both the vertical scanning directions.

本発明の実施の形態による画像処理装置20を含む地紋付加システム100の概略構成の一例を示したシステム図である。1 is a system diagram showing an example of a schematic configuration of a tint block adding system 100 including an image processing apparatus 20 according to an embodiment of the present invention. 図1のPC10において作成される地紋画像B1の一例を示した図である。It is the figure which showed an example of the copy-forgery-inhibited pattern image B1 produced in PC10 of FIG. 図1の地紋付加システム100の要部における構成例を示したブロック図であり、画像処理装置20内の機能構成の一例が示されている。FIG. 2 is a block diagram illustrating a configuration example of a main part of the tint block addition system 100 of FIG. 1, in which an example of a functional configuration in the image processing apparatus 20 is illustrated. 図3の画像処理装置20の動作の一例を模式的に示した説明図であり、2値画像を4値画像に変換する際の処理過程が示されている。It is explanatory drawing which showed typically an example of operation | movement of the image processing apparatus 20 of FIG. 3, and the process at the time of converting a binary image into a quaternary image is shown. 図3の画像処理装置20の動作例を模式的に示した説明図であり、連結ライン数と画素数の最大値とが一致せず、網点とはしない場合が示されている。FIG. 4 is an explanatory diagram schematically illustrating an operation example of the image processing apparatus 20 in FIG. 3, in which the number of connected lines does not match the maximum value of the number of pixels and is not a halftone dot. 図3の画像処理装置20の動作例を模式的に示した説明図であり、現ラインと前ラインとで連結黒画素の中心位置が一致しない場合が示されている。It is explanatory drawing which showed typically the operation example of the image processing apparatus 20 of FIG. 3, and the case where the center position of a connection black pixel does not correspond by the present line and the front line is shown. 図3の画像処理装置20の動作例を模式的に示した説明図であり、現ラインと前ラインとの間の画素数の差が0でも±2でもない場合が示されている。FIG. 4 is an explanatory diagram schematically showing an operation example of the image processing apparatus 20 in FIG. 3, and shows a case where the difference in the number of pixels between the current line and the previous line is neither 0 nor ± 2. 図3の画像処理装置20の動作例を模式的に示した説明図であり、条件(1)〜(5)を全て満たし、網点の候補画素として抽出すべき場合が示されている。FIG. 4 is an explanatory diagram schematically showing an operation example of the image processing apparatus 20 in FIG. 3, and shows a case where all of the conditions (1) to (5) are satisfied and extracted as halftone dot candidate pixels. 図3の画像処理装置20の動作例を模式的に示した説明図であり、網点の候補画素とすべきではない場合が示されている。It is explanatory drawing which showed typically the operation example of the image processing apparatus 20 of FIG. 3, and the case where it should not be set as the candidate pixel of a halftone dot is shown. 図3の画像処理装置20の動作例を示した図であり、階調濃度を割り当てる際に使用する画素値変換テーブルの一例が示されている。FIG. 4 is a diagram illustrating an operation example of the image processing apparatus 20 in FIG. 3, and illustrates an example of a pixel value conversion table used when assigning gradation densities. 図3の画像処理装置20によって生成された4値画像データに基づいて印刷解像度及び印刷濃度の調整を行うプリンタ30の動作例を示した図である。FIG. 4 is a diagram illustrating an operation example of a printer 30 that adjusts print resolution and print density based on quaternary image data generated by the image processing apparatus 20 of FIG. 3. 図3の画像処理装置20の動作の一例を示したフローチャートである。4 is a flowchart showing an example of the operation of the image processing apparatus 20 in FIG. 3. 図3の画像処理装置20の動作の一例を示したフローチャートである。4 is a flowchart showing an example of the operation of the image processing apparatus 20 in FIG. 3. 図3の画像処理装置20における候補画素の抽出処理の一例を示したフローチャートである。4 is a flowchart showing an example of candidate pixel extraction processing in the image processing apparatus 20 of FIG. 3. 図3の画像処理装置20における候補画素の抽出処理の一例を示したフローチャートである。4 is a flowchart showing an example of candidate pixel extraction processing in the image processing apparatus 20 of FIG. 3.

<システム図>
図1は、本発明の実施の形態による画像処理装置20を含む地紋付加システム100の概略構成の一例を示したシステム図である。この地紋付加システム100は、PC(パーソナルコンピュータ)10、画像処理装置20及びプリンタ30からなり、地紋画像を埋め込んだ2値画像データを4値画像データに変換して用紙A1に印刷するシステムである。
<System diagram>
FIG. 1 is a system diagram showing an example of a schematic configuration of a tint block adding system 100 including an image processing apparatus 20 according to an embodiment of the present invention. This copy-forgery-inhibited pattern addition system 100 includes a PC (personal computer) 10, an image processing apparatus 20, and a printer 30, and converts binary image data in which a copy-forgery-inhibited pattern image is embedded into four-value image data and prints it on paper A1. .

PC10は、地紋作成のためのアプリケーションプログラムを備え、当該アプリケーションプログラムを実行させることによって所望の地紋画像を作成し、当該地紋画像を原稿画像に付加して2値画像データを生成する情報処理端末である。地紋画像は、高解像度の孤立点によって構成される背景部と、低解像度の網点によって構成される潜像部とからなる2値画像であり、所定の文字列、記号、図形などが潜像部として埋め込まれる。   The PC 10 is an information processing terminal that includes an application program for creating a tint block, creates a desired tint block image by executing the application program, and adds the tint block image to the document image to generate binary image data. is there. A copy-forgery-inhibited pattern image is a binary image composed of a background portion composed of high-resolution isolated points and a latent image portion composed of low-resolution halftone dots, and a predetermined character string, symbol, figure or the like is a latent image. Embedded as part.

原稿画像は、スキャナ(図示せず)を用いて原稿から読み取られ、或いは、PC10によって作成された印刷用の2値画像である。地紋画像及び原稿画像を合成することによって、白画素及び黒画素からなる2値画像データが作成される。   The document image is a binary image for printing that is read from a document using a scanner (not shown) or created by the PC 10. By combining the copy-forgery-inhibited pattern image and the original image, binary image data including white pixels and black pixels is created.

画像処理装置20は、PC10から入力される2値画像データに基づいて原稿画像、孤立点及び網点を検知し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てることによって2値画像データを4値画像データに変換し、プリンタ30へ出力する動作を行っている。   The image processing device 20 detects a document image, an isolated point, and a halftone dot based on binary image data input from the PC 10 and assigns a gradation density corresponding to the document image, the isolated point, and the halftone dot to obtain a binary value. The image data is converted into quaternary image data and output to the printer 30 is performed.

プリンタ30は、画像処理装置20からの4値画像データに基づいて印刷解像度及び印刷濃度の調整を行い、地紋画像が埋め込まれた合成画像を用紙A1に印刷して印刷物A2を生成する印刷装置である。   The printer 30 is a printing device that adjusts the printing resolution and printing density based on the four-value image data from the image processing device 20 and prints the composite image in which the copy-forgery-inhibited pattern image is embedded on the paper A1 to generate the printed matter A2. is there.

この様なプリンタ30としては、例えば、感光体ドラムに光を照射して露光させ、トナーを付着させて用紙に転写させる電子写真方式のプリンタを用いることができる。印刷解像度の調整は、露光をオン又はオフするタイミングを制御し、印刷ドットの大きさ及び位置を変化させてエッジを平滑化することによって行われる。また、印刷濃度の調整は、露光時間を制御して印刷ドットの大きさを変化させることによって行われる。   As such a printer 30, for example, an electrophotographic printer that irradiates a photosensitive drum with light to be exposed, attaches toner, and transfers the toner onto a sheet can be used. The print resolution is adjusted by controlling the timing of turning on or off the exposure and changing the size and position of the print dots to smooth the edges. The print density is adjusted by changing the size of the print dots by controlling the exposure time.

ここでいう印刷解像度とは、単位長さ当たりの印刷ドットの数のことであり、上記露光タイミングの制御によるスムージングにより、入力データの解像度600dpiに対して、例えば、1200dpi又は2400dpi相当で印刷することができる。   Here, the printing resolution is the number of printing dots per unit length, and printing is performed at a resolution equivalent to 1200 dpi or 2400 dpi, for example, with respect to the resolution of 600 dpi of input data by smoothing by the above-described exposure timing control. Can do.

コピー(複写)機40を用いて印刷物A2を複製する場合、印刷ドットを読み取る際の入力解像度がプリンタ30の印刷解像度と同程度以下であれば、印刷物A2では目立たなかった地紋画像を複製物A3において目立たせることができる。つまり、印刷物A2では、背景部と潜像部とがマクロ的に見てほぼ同じ濃度であるのに対して、複製物A3では、地紋画像の背景部を構成する孤立点が除去され、網点によって構成される潜像部が浮かび上がって視認される。   When duplicating the printed matter A2 using the copy (copier) machine 40, if the input resolution when reading the print dots is less than or equal to the printing resolution of the printer 30, a copy-forgery-inhibited pattern image that was not noticeable in the printed matter A2 is copied. Can stand out. In other words, in the printed matter A2, the background portion and the latent image portion have substantially the same density when viewed macroscopically, but in the duplicate A3, the isolated points constituting the background portion of the tint block image are removed, and the halftone dots The latent image portion formed by

プリンタ30では、原稿画像、孤立点及び網点に応じた階調濃度が割り当てられた4値画像データに基づいて印刷解像度及び印刷濃度を調整することにより、原稿画像、背景部及び潜像部間で印刷解像度及び印刷濃度を異ならせて印刷することができる。従って、プリンタ30のドット再現性能に対応して有効な地紋画像を形成することができる。   The printer 30 adjusts the print resolution and the print density based on the four-value image data to which the gradation density corresponding to the original image, the isolated point, and the halftone dot is assigned, so that the space between the original image, the background portion, and the latent image portion. Thus, it is possible to print with different print resolution and print density. Therefore, it is possible to form an effective tint block image corresponding to the dot reproduction performance of the printer 30.

<地紋画像>
図2(a)〜(c)は、図1のPC10において作成される地紋画像B1の一例を示した図である。図2(a)には、孤立点によって構成される背景部B2と網点によって構成される潜像部B3とからなる地紋画像B1の全体が示されている。図2(b)には、背景部B2を拡大した様子が示され、図2(c)には、潜像部B3を拡大した様子が示されている。
<Background image>
2A to 2C are diagrams showing an example of the tint block image B1 created in the PC 10 of FIG. FIG. 2A shows the entire tint block image B1 including the background portion B2 constituted by isolated points and the latent image portion B3 constituted by halftone dots. FIG. 2B shows an enlarged view of the background portion B2, and FIG. 2C shows an enlarged view of the latent image portion B3.

孤立点は、1個の黒画素又は数個程度の互いに隣接する黒画素からなり、背景部B2の濃度調整は、孤立点の密度、すなわち、単位面積当たりの孤立点の個数を変化させることによって行われる。一方、網点は、互いに隣接する多数の黒画素の集合体であって、孤立点よりも大きな塊りとなっている。潜像部B3の濃度調整は、網点の大きさを変化させることによって行われる。   An isolated point is composed of one black pixel or several adjacent black pixels, and the density adjustment of the background portion B2 is performed by changing the density of isolated points, that is, the number of isolated points per unit area. Done. On the other hand, a halftone dot is an aggregate of a large number of black pixels adjacent to each other, and is larger than an isolated point. The density adjustment of the latent image portion B3 is performed by changing the size of the halftone dots.

網点は、水平走査方向、すなわち、この図では左右方向と、垂直走査方向、すなわち、上下方向とに関してそれぞれ対称な形状の図形、例えば、正方形、円などによって表される。この様な地紋画像B1を原稿画像に埋め込むことによって、2値画像データが作成される。   A halftone dot is represented by a figure having a symmetrical shape with respect to the horizontal scanning direction, that is, the horizontal direction in this drawing, and the vertical scanning direction, that is, the vertical direction, for example, a square, a circle, or the like. By embedding such a copy-forgery-inhibited pattern image B1 in the document image, binary image data is created.

<画像処理装置>
図3は、図1の地紋付加システム100の要部における構成例を示したブロック図であり、画像処理装置20内の機能構成の一例が示されている。この画像処理装置20は、ラインバッファ1、バッファ制御部2、連結黒画素検出部3、画素数及び中心位置記憶部4、候補画素抽出部5、連結パラメータ記憶部6並びに4値画像生成部7により構成される。
<Image processing device>
FIG. 3 is a block diagram illustrating a configuration example of a main part of the tint block addition system 100 in FIG. 1, and illustrates an example of a functional configuration in the image processing apparatus 20. The image processing apparatus 20 includes a line buffer 1, a buffer control unit 2, a connected black pixel detection unit 3, a pixel number and center position storage unit 4, a candidate pixel extraction unit 5, a connection parameter storage unit 6, and a quaternary image generation unit 7. Consists of.

ラインバッファ1は、地紋画像が付加された2値画像データを水平走査方向の少なくとも2ライン分保持することができる2値画像記憶部である。ここでいう水平走査方向とは、2値画像の水平方向のことである。   The line buffer 1 is a binary image storage unit that can hold binary image data to which a copy-forgery-inhibited pattern image is added for at least two lines in the horizontal scanning direction. The horizontal scanning direction here is the horizontal direction of the binary image.

ここでは、PC10などの外部機器から2値画像の水平幅単位で2値画像データが入力される場合に、当該2値画像の水平幅の2倍以上のライン容量がラインバッファ1として確保されるものとする。   Here, when binary image data is input from an external device such as the PC 10 in units of the horizontal width of the binary image, a line capacity that is twice or more the horizontal width of the binary image is secured as the line buffer 1. Shall.

バッファ制御部2は、ラインバッファ1に対する2値画像データの読み書きを制御し、PC10から順次に入力される2値画像データをバッファリングして連結黒画素検出部3及び4値画像生成部7へ出力する動作を行っている。   The buffer control unit 2 controls the reading and writing of binary image data with respect to the line buffer 1, buffers the binary image data sequentially input from the PC 10, and sends it to the connected black pixel detection unit 3 and the quaternary image generation unit 7. The operation to output is performed.

ここでは、ラインバッファ1によって3ライン分の2値画像データが保持され、各画像データは、画像の水平幅に相当する周期で更新されるものとする。すなわち、連結黒画素の検出対象としてこれから処理するラインを現ライン、1つ前のラインを前ライン、次に処理するラインを次ラインと呼ぶことにすれば、ラインバッファ1には、前ライン、現ライン及び次ラインの2値画像データが保持される。   Here, binary image data for three lines is held by the line buffer 1, and each image data is updated at a period corresponding to the horizontal width of the image. That is, if the line to be processed as a connected black pixel detection target is called the current line, the previous line is called the previous line, and the next line to be processed is called the next line, the line buffer 1 has the previous line, The binary image data of the current line and the next line is held.

連結黒画素検出部3は、ラインバッファ1上の2値画像データを走査して黒画素を抽出し、連結黒画素の画素数と、水平走査方向の中心位置とを検出して、画素数情報及び中心位置情報を画素数及び中心位置記憶部4内に格納する動作を行っている。   The connected black pixel detection unit 3 scans the binary image data on the line buffer 1 to extract black pixels, detects the number of connected black pixels and the center position in the horizontal scanning direction, and outputs pixel number information. The center position information is stored in the pixel number and center position storage unit 4.

黒画素とは、例えば、画素値=1の画素のことであり、連結黒画素は、水平走査方向に隣接する黒画素からなる。ここでは、孤立している1個の黒画素も画素数=1の連結黒画素と呼ぶことにする。また、連結黒画素の中心位置は、水平ライン中における相対位置であり、ここでは、画素単位で判定され、画素数が偶数である場合には、中央の境界線を挟む2つの画素のいずれか、例えば、前方に位置する画素が中心位置と判定されるものとする。   The black pixel is, for example, a pixel having a pixel value = 1, and the connected black pixels are black pixels adjacent in the horizontal scanning direction. Here, one isolated black pixel is also referred to as a connected black pixel with the number of pixels = 1. Further, the center position of the connected black pixels is a relative position in the horizontal line. Here, when the number of pixels is an even number, the center position of the connected black pixels is one of two pixels sandwiching the central boundary line. For example, it is assumed that the pixel located in front is determined as the center position.

画素数及び中心位置記憶部4には、現ラインについて検出された画素数情報及び中心位置情報と、前ラインについて検出された画素数情報及び中心位置情報が保持される。この画素数及び中心位置記憶部4は、例えば、2ライン分の画素にそれぞれ対応付けられた複数のレジスタによって構成され、連結黒画素の中心位置に対応するレジスタに当該連結黒画素を構成する黒画素数を格納することによって中心位置情報が保持される。   The pixel number and center position storage unit 4 holds the pixel number information and center position information detected for the current line, and the pixel number information and center position information detected for the previous line. The number of pixels and center position storage unit 4 is configured by, for example, a plurality of registers respectively associated with pixels for two lines, and the black corresponding to the connected black pixels in the register corresponding to the center position of the connected black pixels. By storing the number of pixels, the center position information is retained.

候補画素抽出部5は、連結黒画素検出部3による現ラインの検出結果と前ラインの検出結果とを比較することによって、現ラインまでの連結黒画素から孤立点及び網点の候補とする候補画素を抽出し、その抽出結果を4値画像生成部7へ出力する動作を行っている。   The candidate pixel extraction unit 5 compares the detection result of the current line by the connection black pixel detection unit 3 with the detection result of the previous line, thereby selecting candidates for isolated points and halftone dots from the connection black pixels up to the current line. An operation of extracting a pixel and outputting the extraction result to the quaternary image generation unit 7 is performed.

連結パラメータ記憶部6には、2値画像において垂直走査方向に隣接する連結黒画素に関する画素数の最大値と連結ライン数とが連結パラメータとして保持される。連結ライン数は、垂直走査方向に隣接する連結黒画素からなる集合体に含まれるライン数である。   In the connection parameter storage unit 6, the maximum value of the number of pixels and the number of connection lines regarding the connection black pixels adjacent in the vertical scanning direction in the binary image are held as connection parameters. The number of connected lines is the number of lines included in an aggregate composed of connected black pixels adjacent in the vertical scanning direction.

まず、地紋画像の潜像部を構成する網点の水平走査方向の上限サイズをMとし、画素数がMを越える連結黒画素は、孤立点及び網点の対象外であるので、候補画素から除外する。   First, the upper limit size in the horizontal scanning direction of halftone dots constituting the latent image portion of the copy-forgery-inhibited pattern image is M, and connected black pixels having a pixel number exceeding M are excluded from isolated points and halftone dots. exclude.

例えば、この様な連結黒画素の中心位置に対応するレジスタに保持されている画素数を0に書き換えることによって、当該連結黒画素を構成する黒画素が候補画素から除外される。或いは、連結黒画素の画素数を保持するレジスタとして、0以上M以下の整数の格納可能なレジスタを用い、画素数がMを越える連結黒画素については画素数=0を格納するようにしても良い。   For example, by rewriting the number of pixels held in the register corresponding to the center position of such a connected black pixel to 0, the black pixels constituting the connected black pixel are excluded from the candidate pixels. Alternatively, as a register for holding the number of connected black pixels, a register capable of storing an integer of 0 or more and M or less is used, and for a connected black pixel whose number of pixels exceeds M, the number of pixels = 0 may be stored. good.

また、連結パラメータ記憶部6としては、0以上M以下の整数の格納可能なレジスタを用いることができる。   As the connection parameter storage unit 6, a register capable of storing an integer of 0 or more and M or less can be used.

次に、現ラインについて、連結黒画素の画素数として0以外の数値が格納されているレジスタに注目し、このレジスタの画素数と、前ラインにおいて当該レジスタと同じ水平走査方向の位置に対応するレジスタの画素数とを比較する。   Next, attention is paid to a register in which a numerical value other than 0 is stored as the number of connected black pixels for the current line, and the number of pixels of this register corresponds to the same position in the horizontal scanning direction as that register in the previous line. Compare the number of pixels in the register.

そして、次の条件(1)及び(2)を満たすか否かの判定を順に行う。続いてさらに、孤立点及び網点のディセーブル信号、連結ライン数及び次ラインの2値画像データを参照して、条件(3)〜(5)を満たすか否かの判定を順に行う。
(1)前ラインの画素数≧1である。
(2)画素数の差=0又は±2である。
(3)前ラインの処理において孤立点及び網点のディセーブル信号が出力されていない。
(4)前ラインまでに連結ライン数が網点の上限サイズMに到達していない。
(5)現ラインの連結黒画素の左下、下及び右下のいずれにも黒画素が存在しない。
Then, it is sequentially determined whether or not the following conditions (1) and (2) are satisfied. Subsequently, referring to the disable signal of the isolated points and halftone dots, the number of connected lines, and the binary image data of the next line, it is sequentially determined whether or not the conditions (3) to (5) are satisfied.
(1) The number of pixels in the previous line ≧ 1.
(2) Difference in the number of pixels = 0 or ± 2.
(3) The disable signal for isolated points and halftone dots is not output in the processing of the previous line.
(4) The number of connected lines has not reached the upper limit size M of halftone dots by the previous line.
(5) There is no black pixel in any of the lower left, lower and lower right of the connected black pixels in the current line.

条件(1)を満たさない場合、ラインバッファ1における前ライン及び現ラインの2値画像データを参照する。このとき、現ラインの連結黒画素の左上、上又は右上のいずれかに黒画素が存在すれば、左右対称ではないので、当該現ラインの連結黒画素を孤立点及び網点の候補画素としない。そして、上記現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力する。   When the condition (1) is not satisfied, the binary image data of the previous line and the current line in the line buffer 1 is referred to. At this time, if a black pixel exists in any of the upper left, upper, or upper right of the connected black pixels in the current line, it is not left-right symmetric. Therefore, the connected black pixels in the current line are not considered as isolated pixels and halftone dot candidate pixels. . Then, in order to exclude the connected black pixel of the next line having the same center position in the horizontal scanning direction as the connected black pixel of the current line from the candidate pixels, the isolated point and the halftone dot with respect to the connected black pixel of such next line The disable signal is output.

一方、現ラインの連結黒画素の左上、上及び右上のいずれにも黒画素が存在しなければ、孤立点又は網点の開始ラインである可能性があるので、連結パラメータ記憶部6内の最大値及び連結ライン数をリセットし、条件(5)を満たすか否かの判定を行う。つまり、前ラインに隣接する黒画素が存在しない現ラインの連結黒画素について、画素数の最大値及び連結ライン数をリセットする。   On the other hand, if there are no black pixels at the upper left, upper, and upper right of the connected black pixels in the current line, there is a possibility that the line is the start line of an isolated point or a halftone dot. The value and the number of connected lines are reset, and it is determined whether or not the condition (5) is satisfied. That is, the maximum value of the number of pixels and the number of connected lines are reset for the connected black pixels of the current line in which there are no black pixels adjacent to the previous line.

条件(2)を満たさない場合、左右対称ではないか、或いは、左右対称であっても画素数の変化が大きいので、当該現ラインの連結黒画素を孤立点及び網点の候補画素としない。そして、上記現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力する。   If the condition (2) is not satisfied, it is not left-right symmetric, or even if it is left-right symmetric, the change in the number of pixels is large. Therefore, the connected black pixel of the current line is not used as a candidate pixel for an isolated point or a halftone dot. Then, in order to exclude the connected black pixel of the next line having the same center position in the horizontal scanning direction as the connected black pixel of the current line from the candidate pixels, the isolated point and the halftone dot with respect to the connected black pixel of such next line The disable signal is output.

条件(3)を満たさない場合、前ラインにおいて孤立点及び網点ディセーブルとなっている連結黒画素と垂直方向に連結するので、当該現ラインの連結黒画素を孤立点及び網点の候補画素としない。そして、孤立点及び網点のディセーブル信号は、そのまま継続して出力する。   If the condition (3) is not satisfied, the connected black pixels in the previous line are connected in the vertical direction to the connected black pixels that are disabled in the isolated points and halftone dots. And not. The disable signals for the isolated points and halftone dots are continuously output as they are.

条件(4)を満たさない場合、現ラインまでの連結ライン数が網点の垂直走査方向の上限サイズMを越えることになるので、当該現ラインの連結黒画素を孤立点及び網点の候補画素から除外する。そして、上記現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力する。   When the condition (4) is not satisfied, the number of connected lines up to the current line exceeds the upper limit size M of the halftone dot in the vertical scanning direction. Exclude from Then, in order to exclude the connected black pixel of the next line having the same center position in the horizontal scanning direction as the connected black pixel of the current line from the candidate pixels, the isolated point and the halftone dot with respect to the connected black pixel of such next line The disable signal is output.

条件(5)は、ラインバッファ1における次ライン及び現ラインの2値画像データを参照して判定が行われる。この条件(5)を満たさない場合、すなわち、現ラインの連結黒画素の左下、下又は右下のいずれかに黒画素が存在すれば、次ラインの連結黒画素と垂直方向に連結又は隣接するので、当該現ラインの連結黒画素を孤立点及び網点の候補画素としない。   The condition (5) is determined by referring to the binary image data of the next line and the current line in the line buffer 1. If this condition (5) is not satisfied, that is, if a black pixel exists in any of the lower left, lower or lower right of the connected black pixels in the current line, they are connected or adjacent to the connected black pixels in the next line in the vertical direction. Therefore, the connected black pixels on the current line are not set as isolated point and halftone dot candidate pixels.

ここで、現ラインの連結黒画素は、網点を構成する連結黒画素の可能性があるが、垂直方向に連結する黒画素の末尾ラインに達していないため、この段階では孤立点及び網点の候補画素とせず、垂直方向に連結する黒画素の末尾ラインで条件(5)を満たせば、孤立点及び網点の候補画素とする。従って、その様な現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素に対して、孤立点及び網点のディセーブル信号は出力しない。   Here, the connected black pixel of the current line may be a connected black pixel constituting a halftone dot, but since it does not reach the end line of the black pixel connected in the vertical direction, an isolated point and a halftone dot are present at this stage. If the condition (5) is satisfied with the end line of the black pixels connected in the vertical direction instead of the candidate pixels, the isolated pixels and the halftone dots are selected. Therefore, the isolated point and halftone dot disable signals are not output to the connected black pixels of the next line that have the same center position in the horizontal scanning direction as the connected black pixels of the current line.

条件(1)〜(4)を全て満たす場合と、条件(1)を満たさない場合であって、現ラインの連結黒画素の左上、上及び右上のいずれにも黒画素が存在しない場合、当該現ラインの連結黒画素の画素数が前ラインまでの判定で得られた最大値を越えていれば、連結パラメータ記憶部6の画素数の最大値を更新する。また、連結パラメータ記憶部6の連結ライン数をインクリメントする。   When all of the conditions (1) to (4) are satisfied and when the condition (1) is not satisfied, and there are no black pixels on the upper left, upper and upper right of the connected black pixels on the current line, If the number of connected black pixels on the current line exceeds the maximum value obtained by the determination up to the previous line, the maximum value of the number of pixels in the connected parameter storage unit 6 is updated. Further, the number of connection lines in the connection parameter storage unit 6 is incremented.

一方、条件(1)〜(5)を全て満たす場合と、条件(1)を満たさない場合であって、現ラインの連結黒画素の左上、上及び右上のいずれにも黒画素が存在せず、しかも、条件(5)を満たす場合には、当該現ラインの連結黒画素を孤立点及び網点の候補画素とする。   On the other hand, when all of the conditions (1) to (5) are satisfied and when the condition (1) is not satisfied, there are no black pixels in the upper left, upper and upper right of the connected black pixels in the current line. In addition, when the condition (5) is satisfied, the connected black pixels of the current line are set as isolated point and halftone dot candidate pixels.

4値画像生成部7は、孤立点及び網点推定部21、画素値変換部22並びにキュー構造の4値メモリ23からなり、連結パラメータを参照して孤立点及び網点を推定し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てて4値画像データを生成する動作を行っている。   The quaternary image generation unit 7 includes an isolated point / halftone dot estimation unit 21, a pixel value conversion unit 22, and a quaternary quaternary memory 23. The quaternary image generation unit 7 estimates an isolated point and a halftone dot with reference to the connection parameters, and the original image. Then, an operation is performed in which gradation density corresponding to isolated points and halftone dots is assigned to generate quaternary image data.

孤立点及び網点推定部21は、連結パラメータ記憶部6に保持されている画素数の最大値及び連結ライン数に基づいて、候補画素から孤立点及び網点を推定する動作を行っている。ここでは、連結黒画素の候補画素からなる画素の集合体について、水平走査方向の最大サイズと垂直走査方向の最大サイズとが一致している場合に、孤立点又は網点と判断する。また、孤立点は、1個の連結黒画素からなるものとする。   The isolated point and halftone dot estimation unit 21 performs an operation of estimating isolated points and halftone dots from candidate pixels based on the maximum number of pixels and the number of connected lines held in the connection parameter storage unit 6. Here, regarding an aggregate of pixels composed of candidate pixels of connected black pixels, if the maximum size in the horizontal scanning direction matches the maximum size in the vertical scanning direction, it is determined as an isolated point or a halftone dot. The isolated point is assumed to be composed of one connected black pixel.

具体的には、連結パラメータを参照して、次の条件(a)〜(d)のいずれを満たすかの判定を行い、その判定結果に基づいて孤立点及び網点を推定する。
(a)画素数の最大値=連結ライン数=1
(b)画素数の最大値=連結ライン数=N(Nは3以上かつ網点の垂直走査方向の上限サイズM以下の任意の整数)
(c)画素数の最大値=連結ライン数=2
(d)画素数の最大値≠連結ライン数
Specifically, referring to the connection parameter, it is determined which of the following conditions (a) to (d) is satisfied, and isolated points and halftone dots are estimated based on the determination result.
(A) Maximum number of pixels = number of connected lines = 1
(B) Maximum number of pixels = number of connected lines = N (N is an arbitrary integer not less than 3 and not more than the upper limit size M in the vertical scanning direction of halftone dots)
(C) Maximum number of pixels = number of connected lines = 2
(D) Maximum number of pixels ≠ number of connected lines

条件(a)を満たす場合、当該現ラインの連結黒画素を孤立点と判断し、上記現ラインの連結黒画素に対して孤立点イネーブル信号を出力する。   When the condition (a) is satisfied, the connected black pixel of the current line is determined as an isolated point, and an isolated point enable signal is output to the connected black pixel of the current line.

条件(b)を満たす場合、当該現ラインの連結黒画素に関連付けられた候補画素を網点と判断し、上記現ラインの連結黒画素に関連付けられた候補画素に対して網点イネーブル信号を出力する。   If the condition (b) is satisfied, the candidate pixel associated with the connected black pixel of the current line is determined as a halftone dot, and a halftone dot enable signal is output to the candidate pixel associated with the connected black pixel of the current line. To do.

具体的には、当該現ラインの連結黒画素について、その中心位置を基準として画素数の最大値に対応する範囲の画素(白画素及び黒画素)に網点ネーブル信号を出力する。その際、現ラインから(M−1)個前のラインまでの合計M個のラインについて、現ラインの連結黒画素と水平走査方向の中心位置が同じ連結黒画素を含む画素に網点イネーブル信号が出力される。つまり、網点イネーブル信号は、現ラインを下端とし、網点を取り囲むN×Nの正方形の領域内の全画素に対して出力される。   Specifically, for the connected black pixels on the current line, a halftone dot signal is output to pixels (white pixels and black pixels) in a range corresponding to the maximum value of the number of pixels with reference to the center position. At that time, for a total of M lines from the current line to the (M−1) th previous line, a halftone dot enable signal is transmitted to the pixel including the connected black pixel having the same center position in the horizontal scanning direction as the connected black pixel of the current line. Is output. That is, the halftone dot enable signal is output to all pixels in an N × N square area surrounding the halftone dot with the current line as the lower end.

なお、網点のサイズが3以上の一定値Fに固定されている場合には、条件(b)を画素数の最大値=連結ライン数=Fに置き換えれば良い。   When the halftone dot size is fixed to a constant value F of 3 or more, the condition (b) may be replaced with the maximum number of pixels = number of connected lines = F.

条件(c)を満たす場合、水平走査方向に隣接する2個の黒画素が垂直走査方向に2個連結されており、孤立点と網点とを明確に識別させるために、通常、当該現ラインの連結黒画素に関連付けられた候補画素は孤立点及び網点のいずれにも含めず、イネーブル信号はいずれも出力しない。ただし、条件(c)を満たす候補画素が地紋画像を構成する孤立点又は網点として用いられることがあれば、条件(c)を条件(a)又は(b)に含めても良い。   When the condition (c) is satisfied, two black pixels adjacent in the horizontal scanning direction are connected in the vertical scanning direction, and in order to clearly distinguish the isolated point and the halftone dot, normally, the current line The candidate pixels associated with the connected black pixels are not included in either the isolated point or the halftone dot, and no enable signal is output. However, the condition (c) may be included in the condition (a) or (b) if the candidate pixel satisfying the condition (c) is used as an isolated point or halftone dot constituting the copy-forgery-inhibited pattern image.

条件(d)を満たす場合、左右対称であっても水平走査方向又は垂直走査方向に長いので、当該現ラインの連結黒画素に関連付けられた候補画素は孤立点及び網点とせず、イネーブル信号はいずれも出力しない。   When the condition (d) is satisfied, even if it is bilaterally symmetric, it is long in the horizontal scanning direction or the vertical scanning direction. Therefore, the candidate pixels associated with the connected black pixels of the current line are not isolated points and halftone dots, and the enable signal is Neither is output.

画素値変換部22は、孤立点及び網点推定部21による孤立点及び網点の推定結果に基づいてバッファ制御部2からの2値画像データを4値画像データに変換し、プリンタ30へ出力する動作を行っている。ここでは、網点の垂直走査方向の上限サイズMに相当するライン容量を備えたキュー構造の4値メモリ23を用いて4値画像データへの変換が行われる。   The pixel value conversion unit 22 converts the binary image data from the buffer control unit 2 into quaternary image data based on the isolated point and halftone dot estimation results by the isolated point and halftone dot estimation unit 21, and outputs it to the printer 30. The operation to be performed. In this case, conversion to four-value image data is performed using a four-value memory 23 having a queue structure having a line capacity corresponding to the upper limit size M in the vertical scanning direction of halftone dots.

具体的には、まず、4値メモリ23に対して、現ラインの2値画像データをエンキューする。次に、4値メモリ23にストアされている現ラインから(M−1)個前のラインまでの各画素について、孤立点及び網点推定部21からの孤立点イネーブル信号及び網点イネーブル信号を参照し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てることによって、2値画像データから4値画像データを生成する。   Specifically, first, the binary image data of the current line is enqueued in the quaternary memory 23. Next, for each pixel from the current line stored in the quaternary memory 23 to the (M−1) th previous line, an isolated point enable signal and a halftone dot enable signal from the isolated point and halftone dot estimation unit 21 are obtained. By referring to and assigning gradation densities according to the original image, isolated points, and halftone dots, quaternary image data is generated from the binary image data.

このとき、孤立点イネーブル信号は、現ラインの候補画素(黒画素)にだけ出力されるのに対して、網点イネーブル信号は、現ラインを含め、網点を囲むN×Nの正方形の領域内の全ての画素に出力される。従って、網点の形状によっては、白画素にも網点イネーブル信号が出力される場合が生じるが、白画素の場合には、変換対象とはせず、2値画像データがそのまま出力される。   At this time, the isolated point enable signal is output only to the candidate pixel (black pixel) of the current line, whereas the halftone dot enable signal includes an N × N square region including the current line and surrounding the halftone dot. Are output to all pixels. Therefore, depending on the shape of the halftone dot, the halftone dot enable signal may be output to the white pixel. However, in the case of the white pixel, the binary image data is output as it is without being converted.

原稿画像、孤立点及び網点に応じた階調濃度の割り当ては、例えば、階調濃度を孤立点又は網点イネーブルに関連付けて保持する画素値変換テーブルに基づいて行われる。   The assignment of the gradation density according to the original image, the isolated point, and the halftone dot is performed based on, for example, a pixel value conversion table that holds the gradation density in association with the isolated point or halftone dot enable.

次に、2値画像データから4値画像データへの変換処理が終了すれば、現ラインから見て(M−1)個前のラインの4値画像データをデキューする。そして、ラインバッファ1へのラインデータの入力と連動して4値メモリ23に2値画像データをエンキューし、4値メモリ23上のラインデータを更新して、データ変換のためのメモリアクセス、変換後の4値画像データをデキューすることを繰り返す。   Next, when the conversion process from the binary image data to the quaternary image data is completed, the quaternary image data of the (M−1) th line before the current line is dequeued. Then, in conjunction with the input of the line data to the line buffer 1, the binary image data is enqueued in the quaternary memory 23, the line data on the quaternary memory 23 is updated, and memory access and conversion for data conversion are performed. The dequeuing of the later four-value image data is repeated.

なお、現ラインが先頭ラインからM番目のラインよりも前のラインである場合には、4値メモリ23上に(M−1)個前のラインの2値画像データは存在しないので、2値画像データから4値画像データへの変換処理のみを行い、4値画像データのデキューは行わない。また、現ラインが末尾ラインである場合には、4値メモリ23上に存在する画像データは全て確定しているので、現ラインから(M−1)個前のラインまでの全4値画像データがデキューされる。   If the current line is a line preceding the Mth line from the first line, the binary image data of the (M−1) th previous line does not exist in the quaternary memory 23, so the binary Only conversion processing from image data to quaternary image data is performed, and queuing of quaternary image data is not performed. If the current line is the last line, all the image data existing in the quaternary memory 23 is fixed, and therefore all the quaternary image data from the current line to the (M−1) th previous line. Is dequeued.

ここで、現ラインについての画素数及び中心位置の検出結果と前ラインについての検出結果とを比較することによって孤立点及び網点の候補画素を抽出する際、条件(1)〜(5)の判定だけでは、網点の候補画素が適切に抽出されない場合が考えられる。すなわち、連結黒画素からなる集合体が、左右対称であっても上下対称ではない場合、或いは、左右対称かつ上下対称であっても輪郭が凸多角形ではない場合にも、網点の候補画素として抽出されてしまう。   Here, when extracting candidate pixels of isolated points and halftone dots by comparing the detection result of the number of pixels and the center position for the current line with the detection result for the previous line, the conditions (1) to (5) It is conceivable that halftone dot candidate pixels cannot be extracted appropriately only by determination. That is, even when the aggregate of connected black pixels is left-right symmetric or not vertically symmetric, or when the outline is not a convex polygon even if left-right symmetric and vertically symmetric, the candidate pixel for halftone dots Will be extracted.

ここでいう凸多角形とは、輪郭線上の任意の2点について、この2点間に存在する輪郭線上の全ての点が2点を結ぶ線分よりも外側に位置している多角形のことである。   The term “convex polygon” as used herein refers to a polygon in which any two points on the contour line are located outside the line segment connecting the two points between the two points. It is.

そこで、この様な場合を除外するために、条件(1)〜(5)の判定を行った後に、必要に応じて、次の条件(6)及び(7)を満たすか否かの判定を付加しても良い。
(6)1つ前のラインとの間で画素数の差が+2となるラインと−2となるラインとが現ラインまでに同じ数だけ出現している。
(7)1つ前のラインとの間で画素数の差が−2となるラインが出現してから、現ラインまでに1つ前のラインとの間で画素数の差が+2となるラインは出現していない。
Therefore, in order to exclude such a case, after determining the conditions (1) to (5), it is determined whether or not the following conditions (6) and (7) are satisfied as necessary. It may be added.
(6) The same number of lines where the difference in the number of pixels from the previous line is +2 and the line which is −2 appear by the current line.
(7) A line in which the difference in the number of pixels from the previous line appears to −2, and the difference in the number of pixels from the previous line up to the current line becomes +2. Has not appeared.

<処理過程>
図4は、図3の画像処理装置20の動作の一例を模式的に示した説明図であり、2値画像を4値画像に変換する際の処理過程が示されている。ラインバッファ1には、常に3ライン分、すなわち、次ライン、現ライン及び前ラインの2値画像データが保持され、2値画像の水平幅31に相当する周期で更新される。
<Processing process>
FIG. 4 is an explanatory diagram schematically showing an example of the operation of the image processing apparatus 20 in FIG. 3, and shows a processing process when converting a binary image into a quaternary image. The line buffer 1 always holds binary image data for three lines, that is, the next line, the current line, and the previous line, and is updated at a period corresponding to the horizontal width 31 of the binary image.

前ラインデータは、1画素目から5画素目までが白画素、6画素目から8画素目までが黒画素、9画素目から12画素目までが白画素、13画素目から16画素目までが黒画素、17画素目以降が白画素となっている。   For the previous line data, the first to fifth pixels are white pixels, the sixth to eighth pixels are black pixels, the ninth to twelfth pixels are white pixels, and the thirteenth to sixteenth pixels are The black pixel and the 17th and subsequent pixels are white pixels.

現ラインデータは、1画素目が白画素、2画素目が黒画素、3画素目から5画素目までが白画素、6画素目から8画素目までが黒画素、9画素目から13画素目までが白画素、14画素目から15画素目までが黒画素、16画素目以降が白画素となっている。   In the current line data, the first pixel is a white pixel, the second pixel is a black pixel, the third pixel to the fifth pixel are white pixels, the sixth pixel to the eighth pixel are black pixels, the ninth pixel to the thirteenth pixel Up to the white pixels, the 14th to 15th pixels are black pixels, and the 16th and subsequent pixels are white pixels.

次ラインデータは、1画素目から5画素目までが白画素、6画素目から8画素目までが黒画素、9画素目以降が白画素となっている。   In the next line data, the first pixel to the fifth pixel are white pixels, the sixth pixel to the eighth pixel are black pixels, and the ninth and subsequent pixels are white pixels.

連結黒画素検出部3は、ラインバッファ1上の2値画像データを走査して、印刷ドットに対応する黒画素、例えば、画素値「1」の画素を抽出し、水平走査方向に隣接する黒画素からなる連結黒画素32の画素数及び中心位置を判定する。その判定結果は、現ラインの連結黒画素32について画素数を保持するレジスタのうち、連結黒画素32の中心位置に対応するレジスタに当該連結黒画素32の画素数を格納することによって保持される。   The connected black pixel detection unit 3 scans the binary image data on the line buffer 1 to extract a black pixel corresponding to the print dot, for example, a pixel having a pixel value “1” and adjacent black in the horizontal scanning direction. The number of pixels and the center position of the connected black pixels 32 made up of pixels are determined. The determination result is held by storing the number of connected black pixels 32 in a register corresponding to the center position of the connected black pixels 32 among the registers holding the number of pixels for the connected black pixels 32 of the current line. .

具体的には、2画素目の連結黒画素32に対応する現ライン画素数レジスタに画素数「1」、6画素目から8画素目までの連結黒画素32の中心位置に対応する現ライン画素数レジスタに画素数「3」、14画素目から15画素目までの連結黒画素32の中心位置に対応する現ライン画素数レジスタに画素数「2」がそれぞれ格納されている。   Specifically, the current line pixel corresponding to the center position of the connected black pixel 32 from the sixth pixel to the eighth pixel is set in the current line pixel number register corresponding to the second connected black pixel 32. The number register stores the number of pixels “3”, and the current line pixel number register corresponding to the center position of the connected black pixels 32 from the 14th pixel to the 15th pixel stores “2”.

前ラインの画素数を保持する前ライン画素数レジスタには、6画素目から8画素目までの連結黒画素32の中心位置に対応する前ライン画素数レジスタに画素数「3」、13画素目から16画素目までの連結黒画素32の中心位置に対応する前ライン画素数レジスタに画素数「4」がそれぞれ格納されている。   In the previous line pixel number register for holding the number of pixels of the previous line, the number of pixels “3” and 13th pixel are stored in the previous line pixel number register corresponding to the center position of the connected black pixels 32 from the sixth pixel to the eighth pixel. The pixel number “4” is stored in the previous line pixel number register corresponding to the center position of the connected black pixels 32 from the first to the 16th pixel.

候補画素抽出部5は、現ラインについての画素数及び中心位置の検出結果と前ラインについての検出結果とを比較して条件(1)〜(5)の判定を行い、候補画素を抽出するとともに、必要に応じて孤立点及び網点のディセーブル信号を出力する。   The candidate pixel extraction unit 5 compares the detection result of the number of pixels and the center position for the current line with the detection result for the previous line, performs the determination of the conditions (1) to (5), and extracts the candidate pixels. If necessary, an isolated point and halftone dot disable signal is output.

この例では、現ラインの2画素目の連結黒画素32について、条件(1)を満たしていないが、当該連結黒画素32の左上、上及び右上のいずれにも黒画素が存在せず、さらに、条件(5)も満たしているので、孤立点の候補画素となっている。また、6画素目から8画素目の連結黒画素32について、条件(3)を満たしていないので、候補画素から除外されている。また、14画素目から15画素目の連結黒画素32について、条件(1)〜(5)を全て満たしているので、候補画素となっている。   In this example, the condition (1) is not satisfied for the second connected black pixel 32 of the current line, but there is no black pixel in any of the upper left, upper, and upper right of the connected black pixel 32. Since the condition (5) is also satisfied, it is a candidate pixel for an isolated point. Further, the connected black pixel 32 from the sixth pixel to the eighth pixel is excluded from the candidate pixels because the condition (3) is not satisfied. Further, the connected black pixels 32 from the 14th pixel to the 15th pixel satisfy all the conditions (1) to (5), and thus are candidate pixels.

垂直走査方向に隣接する連結黒画素32に関する画素数の最大値を保持するレジスタには、候補画素の抽出に伴って更新した後の最大値が格納されている。具体的には、2画素目の連結黒画素32に対応する最大値レジスタに最大値「1」、6画素目から8画素目までの連結黒画素32の中心位置に対応する最大値レジスタに最大値「3」、14画素目から15画素目までの連結黒画素32の中心位置に対応する最大値レジスタに最大値「4」がそれぞれ格納されている。   The register that holds the maximum value of the number of pixels related to the connected black pixels 32 adjacent in the vertical scanning direction stores the maximum value after being updated along with the extraction of the candidate pixels. Specifically, the maximum value “1” is stored in the maximum value register corresponding to the connected black pixel 32 of the second pixel, and the maximum value is stored in the maximum value register corresponding to the center position of the connected black pixel 32 from the sixth pixel to the eighth pixel. The value “3” and the maximum value “4” are stored in the maximum value registers corresponding to the center positions of the connected black pixels 32 from the 14th pixel to the 15th pixel, respectively.

また、垂直走査方向の連結ライン数を保持するレジスタには、候補画素の抽出に伴って更新した後の連結ライン数が格納されている。具体的には、2画素目の連結黒画素32に対応する垂直連結数レジスタに連結ライン数「1」、6画素目から8画素目までの連結黒画素32の中心位置に対応する垂直連結数レジスタに連結ライン数「9」、14画素目から15画素目までの連結黒画素32の中心位置に対応する垂直連結数レジスタに連結ライン数「4」がそれぞれ格納されている。   Further, the register that holds the number of connected lines in the vertical scanning direction stores the number of connected lines that is updated as candidate pixels are extracted. Specifically, the number of connected lines is “1” in the vertical connection number register corresponding to the connected black pixel 32 of the second pixel, and the number of vertical connections corresponding to the center positions of the connected black pixels 32 from the sixth pixel to the eighth pixel. The number of connected lines “9” is stored in the register, and the number of connected lines “4” is stored in the vertical connected number register corresponding to the center position of the connected black pixels 32 from the 14th pixel to the 15th pixel.

4値画像生成部7は、画素数の最大値を保持するレジスタと、連結ライン数を保持するレジスタとを参照して孤立点及び網点を推定し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てて4値画像データを生成する。孤立点及び網点は、条件(a)〜(d)のいずれを満たすかの判定結果に基づいて推定される。   The quaternary image generation unit 7 estimates isolated points and halftone dots by referring to a register that holds the maximum value of the number of pixels and a register that holds the number of connected lines, and according to the original image, the isolated points, and the halftone dots. The gradation density is assigned to generate quaternary image data. The isolated points and halftone dots are estimated based on the determination result as to which of the conditions (a) to (d) is satisfied.

この例では、現ラインの2画素目の連結黒画素32について、条件(a)を満たしているので、当該現ラインの連結黒画素32を孤立点と判断して、孤立点イネーブル信号が出力されている。   In this example, the condition (a) is satisfied for the second connected black pixel 32 of the current line, so the connected black pixel 32 of the current line is determined to be an isolated point, and an isolated point enable signal is output. ing.

また、14画素目から15画素目の連結黒画素32について、条件(b)を満たしているので、当該現ラインの連結黒画素32に関連付けられた候補画素を網点と判断して、網点イネーブル信号が出力されている。具体的には、現ラインの連結黒画素32について、その中心位置を基準として画素数の最大値「4」に対応する範囲の画素に網点ネーブル信号が出力されている。すなわち、網点イネーブル信号は、現ラインを下端とし、網点を取り囲む4×4の正方形の領域内の全画素に対して出力されている。   Since the 14th to 15th connected black pixels 32 satisfy the condition (b), the candidate pixel associated with the connected black pixel 32 of the current line is determined as a halftone dot. An enable signal is output. Specifically, for the connected black pixels 32 on the current line, a halftone dot signal is output to pixels in a range corresponding to the maximum value “4” of the number of pixels with the center position as a reference. That is, the halftone dot enable signal is output to all pixels in a 4 × 4 square area surrounding the halftone dot with the current line as the lower end.

4値メモリ23には、現ラインの2値画像データがエンキューされ、ストアされている現ラインから(M−1)個前のラインまでの各ラインデータについて、孤立点イネーブル信号及び網点イネーブル信号を参照し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てることによって、2値画像データから4値画像データが生成される。   In the quaternary memory 23, binary image data of the current line is enqueued, and an isolated point enable signal and a halftone dot enable signal are stored for each line data from the stored current line to the (M-1) th previous line. Referring to FIG. 4, quaternary image data is generated from binary image data by assigning gradation densities corresponding to the original image, isolated points, and halftone dots.

具体的には、原稿画像に階調濃度「1」、孤立点に階調濃度「2」、網点に階調濃度「3」、そして、白画素に階調濃度「0」をそれぞれ割り当てることによって、4値画像データが生成される。なお、この図では、白画素の画素値の記載を省略している。   Specifically, gradation density “1” is assigned to the original image, gradation density “2” is assigned to the isolated point, gradation density “3” is assigned to the halftone dot, and gradation density “0” is assigned to the white pixel. Thus, quaternary image data is generated. In this figure, the description of the pixel value of the white pixel is omitted.

2値画像データから4値画像データへの変換処理が終了すれば、(M−1)個前のラインの4値画像データがデキューされる。   When the conversion process from the binary image data to the quaternary image data is completed, the (M−1) previous quaternary image data is dequeued.

<網点候補の抽出>
図5〜図9は、図3の画像処理装置20の動作例を模式的に示した説明図であり、現ラインを含む5個のラインについて抽出された連結黒画素32の一例が示されている。図5(a)及び(b)には、垂直走査方向の連結ライン数と画素数の最大値とが一致せず、網点とはしない場合が示されている。丸印付きの黒画素33は、連結黒画素32の中心位置の黒画素である。
<Extraction of halftone dot candidates>
5 to 9 are explanatory diagrams schematically showing an operation example of the image processing apparatus 20 of FIG. 3, in which an example of the connected black pixels 32 extracted for five lines including the current line is shown. Yes. FIGS. 5A and 5B show a case where the number of connected lines in the vertical scanning direction and the maximum value of the number of pixels do not match and do not form halftone dots. The black pixel 33 with a circle is a black pixel at the center position of the connected black pixel 32.

図5(a)には、3画素目の黒画素33を中心位置とする画素数「2」の連結黒画素32が垂直走査方向に5個連結されており、連結ライン数=5、最大値=2の場合が示されている。図5(b)には、3画素目の黒画素33を中心位置とする画素数「1」の連結黒画素32と、画素数「3」の連結黒画素32が垂直走査方向に連結されており、連結ライン数=5、最大値=3の場合が示されている。これらのケースでは、左右及び上下対称であっても垂直走査方向に長いので、各候補画素は網点としない。   In FIG. 5A, five connected black pixels 32 having a pixel number “2” centered on the black pixel 33 of the third pixel are connected in the vertical scanning direction, the number of connected lines = 5, and the maximum value. The case of = 2 is shown. In FIG. 5B, a connected black pixel 32 having the pixel number “1” and a connected black pixel 32 having the pixel number “3” are connected in the vertical scanning direction with the black pixel 33 of the third pixel as the center position. In this example, the number of connected lines = 5 and the maximum value = 3. In these cases, each candidate pixel is not a halftone dot because it is long in the vertical scanning direction even if it is laterally and vertically symmetric.

図6(a)及び(b)には、現ラインと前ラインとで連結黒画素32の中心位置が一致せず、網点の候補画素とはしない場合が示されている。図6(a)には、2画素目の黒画素33を中心位置とする画素数「4」の連結黒画素32と、3画素目の黒画素33を中心位置とする画素数「5」の連結黒画素32が垂直走査方向に連結されており、3ライン目と2ライン目とで中心位置が一致していない場合が示されている。   FIGS. 6A and 6B show a case where the center position of the connected black pixel 32 does not match between the current line and the previous line, and the halftone dot candidate pixel is not used. FIG. 6A shows a connected black pixel 32 having a pixel number “4” centered on the second black pixel 33 and a pixel number “5” centered on the third black pixel 33. A case where the connected black pixels 32 are connected in the vertical scanning direction and the center positions of the third line and the second line do not coincide is shown.

図6(b)には、2画素目の黒画素33を中心位置とする画素数「3」の連結黒画素32と、3画素目の黒画素33を中心位置とする画素数「5」の連結黒画素32が垂直走査方向に連結されており、3ライン目と2ライン目とで中心位置が一致していない場合が示されている。   FIG. 6B shows a connected black pixel 32 having a pixel number “3” centered on the second black pixel 33 and a pixel number “5” centered on the third pixel black pixel 33. A case where the connected black pixels 32 are connected in the vertical scanning direction and the center positions of the third line and the second line do not coincide is shown.

これらのケースでは、現ラインと前ラインとで連結黒画素の中心位置が一致していないので、条件(1)が満たされず、左右対称でもない。このため、これらの連結黒画素32は、網点の候補画素としない。   In these cases, since the center positions of the connected black pixels do not match between the current line and the previous line, the condition (1) is not satisfied and the left and right are not symmetrical. For this reason, these connected black pixels 32 are not considered as dot candidate pixels.

図7(a)及び(b)には、現ラインと前ラインとの間の画素数の差が0でも±2でもなく、網点の候補画素とはしない場合が示されている。図7(a)には、3画素目の黒画素33を中心位置とする画素数「4」の連結黒画素32と、画素数「5」の連結黒画素32が垂直走査方向に連結されており、3ライン目と2ライン目とで画素数の差が+1である場合が示されている。   FIGS. 7A and 7B show a case where the difference in the number of pixels between the current line and the previous line is neither 0 nor ± 2, and is not a halftone dot candidate pixel. In FIG. 7A, a connected black pixel 32 with a pixel number “4” and a connected black pixel 32 with a pixel number “5” are connected in the vertical scanning direction with the black pixel 33 of the third pixel as the center position. A case where the difference in the number of pixels between the third line and the second line is +1 is shown.

図7(b)には、3画素目の黒画素33を中心位置とする画素数「3」の連結黒画素32と、画素数「5」の連結黒画素32と、画素数「1」の連結黒画素32が垂直走査方向に連結されており、4ライン目と3ライン目とで画素数の差が−4である場合が示されている。   In FIG. 7B, a connected black pixel 32 with a pixel number “3”, a connected black pixel 32 with a pixel number “5”, and a pixel number “1” with the black pixel 33 of the third pixel as the center position. A case where the connected black pixels 32 are connected in the vertical scanning direction and the difference in the number of pixels between the fourth line and the third line is −4 is shown.

これらのケースでは、条件(2)が満たされず、左右対称ではないか、或いは、左右対称であっても画素数の変化が大きいので、網点の候補画素としない。   In these cases, the condition (2) is not satisfied and is not symmetric, or even if it is symmetric, the change in the number of pixels is large.

図8(a)〜(c)には、条件(1)〜(5)を全て満たしており、網点の候補画素として抽出すべき場合が示されている。図8(a)には、3画素目の黒画素33を中心位置とする画素数「5」の連結黒画素32が垂直走査方向に連結されている場合が示されている。図8(b)には、3画素目の黒画素33を中心位置とする画素数「3」の連結黒画素32と、画素数「5」の連結黒画素32が垂直走査方向に連結されている場合が示されている。   FIGS. 8A to 8C show a case where all of the conditions (1) to (5) are satisfied and should be extracted as halftone dot candidate pixels. FIG. 8A shows a case where the connected black pixels 32 having the number of pixels “5” centered on the black pixel 33 of the third pixel are connected in the vertical scanning direction. In FIG. 8B, a connected black pixel 32 having a pixel number “3” and a connected black pixel 32 having a pixel number “5” are connected in the vertical scanning direction with the black pixel 33 of the third pixel as the center position. The case is shown.

図8(c)には、3画素目の黒画素33を中心位置とする画素数「1」の連結黒画素32と、画素数「3」の連結黒画素32と、画素数「5」の連結黒画素32が垂直走査方向に連結されている場合が示されている。   In FIG. 8C, a connected black pixel 32 with the pixel number “1”, a connected black pixel 32 with the pixel number “3”, and a pixel number “5” with the black pixel 33 of the third pixel as the center position. A case where the connected black pixels 32 are connected in the vertical scanning direction is shown.

図9(a)及び(b)には、条件(1)〜(5)を全て満たしているが、条件(6)又は(7)を満たしておらず、網点の候補画素とすべきではない場合が示されている。図9(a)には、3画素目の黒画素33を中心位置とする画素数「3」の連結黒画素32と、画素数「5」の連結黒画素32が垂直走査方向に連結されており、1つ前のラインとの間で画素数の差が+2となるラインと−2となるラインとが現ラインまでに同じ数だけ出現していない場合が示されている。   In FIGS. 9A and 9B, all of the conditions (1) to (5) are satisfied, but the condition (6) or (7) is not satisfied and the halftone dot candidate pixel should be used. The case where there is no is shown. In FIG. 9A, a connected black pixel 32 having a pixel number “3” and a connected black pixel 32 having a pixel number “5” are connected in the vertical scanning direction with the black pixel 33 of the third pixel as the center position. In addition, a case is shown in which the same number of lines where the difference in the number of pixels from the previous line is +2 and the line which is −2 do not appear up to the current line.

このケースでは、連結黒画素32からなる集合体が、左右対称であっても上下対称ではないので、網点の候補画素とすべきではない。   In this case, the aggregate composed of the connected black pixels 32 is not symmetrical even if it is bilaterally symmetric, so it should not be a candidate pixel for a halftone dot.

図9(b)には、3画素目の黒画素33を中心位置とする画素数「5」の連結黒画素32と、画素数「3」の連結黒画素32が垂直走査方向に連結されており、1つ前のラインとの間で画素数の差が−2となるラインが出現してから、現ラインまでに1つ前のラインとの間で画素数の差が+2となるラインが出現している場合が示されている。   In FIG. 9B, a connected black pixel 32 having a pixel number “5” and a connected black pixel 32 having a pixel number “3” are connected in the vertical scanning direction with the black pixel 33 of the third pixel as the center position. A line having a pixel number difference of −2 from the previous line appears, and a line having a pixel number difference of +2 from the previous line until the current line The case where it appears is shown.

このケースでは、連結黒画素32からなる集合体が、左右対称かつ上下対称であっても輪郭が凸多角形ではないので、網点の候補画素とすべきではない。   In this case, even if the aggregate of the connected black pixels 32 is bilaterally symmetric and vertically symmetric, the outline is not a convex polygon and should not be a halftone dot candidate pixel.

<画素値変換テーブル>
図10は、図3の画像処理装置20の動作例を示した図であり、原稿画像、孤立点及び網点に応じた階調濃度を割り当てる際に使用する画素値変換テーブルの一例が示されている。この画素値変換テーブルは、イネーブルなしの場合、孤立点イネーブルの場合、及び、網点イネーブルの場合の階調濃度をそれぞれ2値画像データに関連付けて保持するテーブルである。
<Pixel value conversion table>
FIG. 10 is a diagram illustrating an operation example of the image processing apparatus 20 in FIG. 3, and illustrates an example of a pixel value conversion table used when assigning gradation densities according to a document image, isolated points, and halftone dots. ing. This pixel value conversion table is a table that holds the gradation density in the case of no enable, the isolated point enabled, and the halftone enabled in association with the binary image data.

具体的には、2値画像の白画素(画素値=0)について、イネーブルなしの場合と、網点イネーブルの場合の階調濃度として、2値画像データと同じ画素値「0」が割り当てられている。また、2値画像の黒画素(画素値=1)について、イネーブルなしの場合の階調濃度として、2値画像データと同じ画素値「1」が割り当てられている。   Specifically, the white pixel (pixel value = 0) of the binary image is assigned the same pixel value “0” as that of the binary image data as the gradation density when the enable is not performed and when the halftone is enabled. ing. For the black pixel (pixel value = 1) of the binary image, the same pixel value “1” as that of the binary image data is assigned as the gradation density when the enable is not performed.

一方、2値画像の黒画素(画素値=1)について、孤立点イネーブルの場合の階調濃度として、画素値「2」が割り当てられ、網点イネーブルの場合の階調濃度として、画素値「3」が割り当てられている。   On the other hand, for a black pixel (pixel value = 1) of the binary image, the pixel value “2” is assigned as the gradation density when the isolated point is enabled, and the pixel value “ 3 "is assigned.

この様な画素値変換テーブルを用いて階調濃度を割り当てることにより、2値画像データから画素値「0」〜「3」の4値画像データを生成することができる。   By assigning gradation density using such a pixel value conversion table, it is possible to generate quaternary image data of pixel values “0” to “3” from the binary image data.

<プリンタ設定>
図11(a)〜(c)は、図3の画像処理装置20によって生成された4値画像データに基づいて印刷解像度及び印刷濃度の調整を行うプリンタ30の動作例を示した図であり、プリンタ30のドット再現性能が異なっている場合の印刷解像度及び印刷濃度の設定の一例が示されている。
<Printer settings>
11A to 11C are diagrams illustrating an operation example of the printer 30 that adjusts the print resolution and the print density based on the quaternary image data generated by the image processing apparatus 20 of FIG. An example of setting the print resolution and print density when the dot reproduction performance of the printer 30 is different is shown.

図11(a)には、ドット再現性能が標準的なプリンタの設定例が示され、図11(b)には、ドット再現性能が高いプリンタの設定例が示され、図11(c)には、ドット再現性能が低いプリンタの設定例が示されている。   FIG. 11A shows a setting example of a printer with standard dot reproduction performance, FIG. 11B shows a setting example of a printer with high dot reproduction performance, and FIG. Shows a setting example of a printer with low dot reproduction performance.

原稿画像(画素値=1)については、いずれの場合であっても、スムージングの選択に依存して印刷解像度600dpi又は1200dpiのいずれかが選択され、印刷濃度としては予め定められた標準値が選択される。   For the original image (pixel value = 1), in either case, either printing resolution 600 dpi or 1200 dpi is selected depending on the smoothing selection, and a predetermined standard value is selected as the printing density. Is done.

地紋画像の背景部(画素値=2)及び潜像部(画素値=3)については、プリンタのドット再現性能に応じて印刷解像度及び印刷濃度が選択される。   For the background portion (pixel value = 2) and latent image portion (pixel value = 3) of the copy-forgery-inhibited pattern image, the print resolution and print density are selected according to the dot reproduction performance of the printer.

具体的には、ドット再現性能が高いプリンタの場合、印刷物A2において、地紋画像が濃すぎて原稿画像が識別しづらいという問題があった。また、その様な印刷物A2をコピー機40で複製した場合に、背景部が消えず、潜像部が目立たないという問題があった。   Specifically, in the case of a printer with high dot reproduction performance, there is a problem that the copy-forgery-inhibited pattern image is too dark on the printed matter A2 and the original image is difficult to identify. Further, when such a printed matter A2 is duplicated by the copying machine 40, there is a problem that the background portion does not disappear and the latent image portion does not stand out.

そこで、複製時に背景部が消えるレベルまで背景部の印刷濃度を下げるとともに、背景部及び潜像部間のマクロ的な濃度を合わせるために、潜像部の印刷濃度も下げて印刷することが考えられる。   Therefore, it is considered that the print density of the background portion is lowered to a level at which the background portion disappears at the time of copying, and the print density of the latent image portion is also lowered in order to match the macro density between the background portion and the latent image portion. It is done.

このとき、背景部と潜像部とを同じ下げ幅で印刷濃度を下げてしまうと、複製時に潜像部が薄くなりすぎて目立たなくなってしまうので、背景部及び潜像部間で印刷濃度の下げ幅を異ならせている。具体的には、背景部が標準値に対する下げ幅を20%としているのに対して、潜像部は下げ幅を10%としている。   At this time, if the print density is lowered with the same reduction width for the background portion and the latent image portion, the latent image portion becomes too thin and unnoticeable at the time of duplication. The range of lowering is different. Specifically, the background portion has a reduction amount of 20% with respect to the standard value, while the latent image portion has a reduction amount of 10%.

この様に潜像部の下げ幅を背景部よりも小さくすることにより、複製時に潜像部が薄くなりすぎるのを防止することができる。   Thus, by making the lowering width of the latent image portion smaller than that of the background portion, it is possible to prevent the latent image portion from becoming too thin during duplication.

一方、ドット再現性能が低いプリンタの場合、印刷物A2において、背景部が薄すぎて潜像部が目立ってしまうという問題があった。また、その様な印刷物A2をコピー機40で複製した場合に、潜像部が消えてしまうという問題があった。   On the other hand, in the case of a printer with low dot reproduction performance, there is a problem in the printed matter A2 that the background portion is too thin and the latent image portion becomes conspicuous. Further, when such a printed matter A2 is duplicated by the copying machine 40, there is a problem that the latent image portion disappears.

そこで、複製時に消えないレベルまで潜像部の印刷濃度を上げるとともに、背景部及び潜像部間のマクロ的な濃度を合わせるために、背景部の印刷濃度も上げて印刷することが考えられる。   Therefore, it is conceivable to print by increasing the print density of the background portion in order to increase the print density of the latent image portion to a level that does not disappear during duplication and to match the macro density between the background portion and the latent image portion.

このとき、背景部と潜像部とを同じ上げ幅で印刷濃度を上げてしまうと、印刷物において潜像部が目立ってしまうので、背景部及び潜像部間で印刷濃度の上げ幅を異ならせている。具体的には、背景部が標準値に対する上げ幅を20%としているのに対して、潜像部は上げ幅を10%としている。   At this time, if the print density is increased with the same increase width for the background portion and the latent image portion, the latent image portion becomes conspicuous in the printed matter, so the increase width of the print density is different between the background portion and the latent image portion. . Specifically, the background portion has a raised width of 20% with respect to the standard value, while the latent image portion has a raised width of 10%.

この様に潜像部の上げ幅を背景部よりも小さくすることにより、印刷物において潜像部が目立つのを防止することができる。   Thus, by making the raising width of the latent image portion smaller than that of the background portion, it is possible to prevent the latent image portion from conspicuous in the printed matter.

図12及び図13のステップS101〜S117は、図3の画像処理装置20の動作の一例を示したフローチャートである。まず、連結黒画素検出部3は、ラインバッファ1上の2値画像データを走査して現ラインから黒画素を抽出し、隣接する黒画素からなる連結黒画素の画素数とその中心位置を判定して、各連結黒画素の中心位置に対応するレジスタに画素数情報を格納する(ステップS101〜S103)。   Steps S101 to S117 in FIGS. 12 and 13 are flowcharts showing an example of the operation of the image processing apparatus 20 in FIG. First, the connected black pixel detection unit 3 scans the binary image data on the line buffer 1 to extract black pixels from the current line, and determines the number of connected black pixels composed of adjacent black pixels and the center position thereof. Then, the pixel number information is stored in a register corresponding to the center position of each connected black pixel (steps S101 to S103).

次に、候補画素抽出部5は、画素数が網点の上限サイズMを越える連結黒画素を孤立点及び網点の候補画素から除外するために、その様な連結黒画素に対応するレジスタの画素数情報を画素数=0に書き換える(ステップS104,S108)。   Next, the candidate pixel extraction unit 5 excludes connected black pixels whose number of pixels exceeds the upper limit size M of halftone dots from isolated point and halftone dot candidate pixels. The pixel number information is rewritten to the pixel number = 0 (steps S104 and S108).

さらに、候補画素抽出部5は、連結黒画素の画素数として0以外の数値が格納されているレジスタに注目し、このレジスタの画素数と、前ラインにおいて当該レジスタと同じ水平走査方向の位置に対応するレジスタの画素数とを比較する。そして、条件(1)〜(5)に基づいて孤立点及び網点の候補画素を抽出する(ステップS104,S105)。   Further, the candidate pixel extraction unit 5 pays attention to a register in which a numerical value other than 0 is stored as the number of connected black pixels, and the number of pixels in this register and the same position in the horizontal scanning direction as the register in the previous line. Compare the number of pixels in the corresponding register. Then, isolated point and halftone dot candidate pixels are extracted based on the conditions (1) to (5) (steps S104 and S105).

次に、4値画像生成部7の孤立点及び網点推定部21は、連結パラメータを参照し、画素数の最大値と垂直走査方向の連結ライン数とが最大値=連結ライン数=1を満たす場合に、当該現ラインの連結黒画素を孤立点と判断し、中心位置の黒画素に対して孤立点イネーブル信号を出力する(ステップS106,S109)。   Next, the isolated point and halftone dot estimation unit 21 of the quaternary image generation unit 7 refers to the connection parameter, and sets the maximum value of the number of pixels and the number of connection lines in the vertical scanning direction to the maximum value = number of connection lines = 1. If it is satisfied, the connected black pixel on the current line is determined as an isolated point, and an isolated point enable signal is output to the black pixel at the center position (steps S106 and S109).

また、画素数の最大値と垂直走査方向の連結ライン数とが最大値=連結ライン数=Nを満たす場合に、当該現ラインの連結黒画素に関連付けられた候補画素を網点と判断し、中心位置の黒画素を基準として画素数の最大値に対応する範囲の画素に対して網点イネーブル信号を出力する(ステップS106,S107,S110)。   When the maximum value of the number of pixels and the number of connected lines in the vertical scanning direction satisfy the maximum value = number of connected lines = N, the candidate pixel associated with the connected black pixel of the current line is determined as a halftone dot, A halftone dot enable signal is output to pixels in a range corresponding to the maximum number of pixels with the black pixel at the center as a reference (steps S106, S107, S110).

次に、画素値変換部22は、ラインバッファ1上の現ラインの2値画像データを4値メモリ23にエンキューする(ステップS111)。そして、4値メモリ23に保持されている現ラインから(M−1)個前のラインまでの各画素について、孤立点及び網点推定部21からの孤立点イネーブル信号及び網点イネーブル信号に基づいて画素値を変換し、2値画像データから4値画像データを生成する(ステップS112)。   Next, the pixel value conversion unit 22 enqueues the binary image data of the current line on the line buffer 1 into the quaternary memory 23 (step S111). For each pixel from the current line held in the quaternary memory 23 to the (M−1) th previous line, based on the isolated point and halftone dot enable signal from the isolated point and halftone dot estimation unit 21. The pixel values are converted to generate quaternary image data from the binary image data (step S112).

次に、画素値変換部22は、現ラインが先頭ラインからM(網点の上限サイズ)番目以降のラインでなければ、4値画像データをデキューすることなく次ラインの処理に移行して、ステップS101以降の処理手順を繰り返す(ステップS113,S117)。   Next, the pixel value conversion unit 22 proceeds to the processing of the next line without dequeuing the quaternary image data if the current line is not the Mth (upper limit size of halftone dot) line after the first line. The processing procedure after step S101 is repeated (steps S113 and S117).

一方、現ラインが先頭ラインからM番目以降のラインであっても、現ラインが末尾ラインであれば、4値メモリ23に保持されている全ラインの4値画像データをデキューして次のラインの処理に移行し、ステップS101以降の処理手順を繰り返す(ステップS113〜S115)。   On the other hand, even if the current line is the Mth and subsequent lines from the first line, if the current line is the last line, the quaternary image data of all lines held in the quaternary memory 23 is dequeued and the next line Then, the processing procedure after step S101 is repeated (steps S113 to S115).

また、現ラインが先頭ラインからM番目以降のラインであって、現ラインが末尾ラインでなければ、4値メモリ23に保持されている(M−1)個前のラインの4値画像データをデキューして次のラインの処理に移行し、ステップS101以降の処理手順を繰り返す(ステップS113,S114,S116,S117)。   Further, if the current line is the M-th line from the first line and the current line is not the last line, the (M−1) -th previous line of 4-level image data stored in the 4-level memory 23 is stored. The process is dequeued and the process proceeds to the next line, and the processing procedure from step S101 is repeated (steps S113, S114, S116, and S117).

図14及び図15のステップS201〜S213は、図3の画像処理装置20における候補画素の抽出処理の一例を示したフローチャートである。候補画素抽出部5は、連結黒画素検出部3による現ラインの検出結果と前ラインの検出結果とを比較することによって、現ラインまでの黒画素から孤立点及び網点の候補画素を抽出する。   Steps S201 to S213 in FIGS. 14 and 15 are flowcharts showing an example of candidate pixel extraction processing in the image processing apparatus 20 in FIG. The candidate pixel extraction unit 5 extracts the isolated point and halftone dot candidate pixels from the black pixels up to the current line by comparing the detection result of the current line and the detection result of the previous line by the connected black pixel detection unit 3. .

その際、まず、現ラインが先頭ラインであるか否かを判定し、先頭ラインでなければ、現ラインについて、連結黒画素の画素数として0以外の数値が格納されているレジスタに注目する。そして、このレジスタの画素数と、前ラインにおいて当該レジスタと同じ水平走査方向の位置に対応するレジスタの画素数とを比較して、前ラインの画素数が1以上であるか否かを判定する(ステップS201,S202)。   At that time, it is first determined whether or not the current line is the first line. If the current line is not the first line, attention is paid to a register in which a numerical value other than 0 is stored as the number of connected black pixels for the current line. Then, the number of pixels in this register is compared with the number of pixels in the register corresponding to the same position in the horizontal scanning direction as that register in the previous line to determine whether the number of pixels in the previous line is 1 or more. (Steps S201 and S202).

このとき、前ラインの画素数が1以上でなければ、ラインバッファ1上の前ライン及び現ラインの2値画像データを参照し、現ラインの連結黒画素の左上、上又は右上のいずれかに黒画素が存在しているか否かを判定する(ステップS202,S211)。   At this time, if the number of pixels of the previous line is not 1 or more, the binary image data of the previous line and the current line on the line buffer 1 is referred to and either the upper left, upper or upper right of the connected black pixels of the current line. It is determined whether or not a black pixel exists (steps S202 and S211).

現ラインの連結黒画素の左上、上又は右上のいずれかに黒画素が存在すれば、現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力し、この処理を終了する(ステップS212)。   If there is a black pixel in the upper left, upper or upper right of the connected black pixel in the current line, the connected black pixel in the next line having the same center position in the horizontal scanning direction as the connected black pixel in the current line is excluded from the candidate pixels. Therefore, an isolated point and halftone dot disable signal is output to such a connected black pixel in the next line, and this process ends (step S212).

一方、現ラインの連結黒画素の左上、上及び右上のいずれにも黒画素が存在しなければ、連結パラメータ記憶部6内の最大値及び連結ライン数を「0」にリセットする(ステップS213)。   On the other hand, if there is no black pixel in any of the upper left, upper and upper right of the connected black pixels of the current line, the maximum value and the number of connected lines in the connected parameter storage unit 6 are reset to “0” (step S213). .

前ラインの画素数が1以上である場合には、現ラインと前ラインとの間の画素数の差を算出し、当該画素数の差が0又は±2であるか否かを判定する(ステップS202,S203)。   If the number of pixels in the previous line is 1 or more, the difference in the number of pixels between the current line and the previous line is calculated, and it is determined whether the difference in the number of pixels is 0 or ± 2 ( Steps S202 and S203).

画素数の差が0及び±2でなければ、現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力し、この処理を終了する(ステップS203,S212)。   If the difference in the number of pixels is not 0 or ± 2, such a next line is connected in order to exclude a connected black pixel in the next line having the same center position in the horizontal scanning direction as that of the current line. Disabling signals for isolated points and halftone dots are output to the black pixels, and this process is terminated (steps S203 and S212).

一方、画素数の差が0又は±2のいずれかであれば、前ラインの処理におけるディセーブル信号を参照し、垂直走査方向に隣接する前ラインの黒画素が候補画素となっているか否かを判定する(ステップS203,S204)。   On the other hand, if the difference in the number of pixels is either 0 or ± 2, whether or not the black pixel of the previous line adjacent in the vertical scanning direction is a candidate pixel by referring to the disable signal in the process of the previous line Is determined (steps S203 and S204).

前ラインの黒画素が候補画素でなければ、孤立点及び網点のディセーブル信号はそのまま継続して出力し、この処理を終了する(ステップS204,S212)。前ラインの黒画素が候補画素であれば、前ラインまでの連結ライン数が網点の上限サイズMに到達しているか否かを判定する(ステップS204,S205)。   If the black pixel on the previous line is not a candidate pixel, the disable signal of the isolated point and halftone dot is continuously output as it is, and this process is terminated (steps S204 and S212). If the black pixel on the previous line is a candidate pixel, it is determined whether or not the number of connected lines up to the previous line has reached the upper limit size M of halftone dots (steps S204 and S205).

前ラインまでの連結ライン数が上限サイズMに到達していれば、現ラインの連結黒画素と水平走査方向の中心位置が同じ次ラインの連結黒画素を候補画素から除外するために、その様な次ラインの連結黒画素に対して孤立点及び網点のディセーブル信号を出力し、この処理を終了する(ステップS205,S212)。   If the number of connected lines up to the previous line has reached the upper limit size M, in order to exclude the connected black pixel of the next line that has the same center position in the horizontal scanning direction as the connected black pixel of the current line, An isolated point and halftone dot disable signal is output to the connected black pixel of the next line, and the process is terminated (steps S205 and S212).

ステップS201において現ラインが先頭ラインである場合と、ステップS213において連結パラメータをリセットした後と、ステップS205において前ラインまでの連結ライン数が上限サイズMに到達していない場合には、当該現ラインの連結黒画素の画素数が前ラインまでの判定で得られた最大値を越えているか否かを判定し、画素数が当該最大値を越えていれば、連結パラメータ記憶部6の画素数の最大値を更新する(ステップS206,S207)。そして、連結パラメータ記憶部6の連結ライン数をインクリメントする(ステップS208)。   If the current line is the first line in step S201, if the connection parameter is reset in step S213, and if the number of connected lines up to the previous line has not reached the upper limit size M in step S205, the current line It is determined whether or not the number of connected black pixels exceeds the maximum value obtained in the determination up to the previous line. If the number of pixels exceeds the maximum value, the number of pixels in the connection parameter storage unit 6 is determined. The maximum value is updated (steps S206 and S207). Then, the number of connection lines in the connection parameter storage unit 6 is incremented (step S208).

次に、ラインバッファ1上の現ライン及び次ラインの2値画像データを参照する。そして、現ラインの連結黒画素の左下、下又は右下のいずれかに黒画素が存在するか否かを判定する(ステップS209)。   Next, the binary image data of the current line and the next line on the line buffer 1 are referred to. Then, it is determined whether or not a black pixel exists in any of the lower left, lower or lower right of the connected black pixels in the current line (step S209).

このとき、現ラインの連結黒画素の左下、下又は右下のいずれかに黒画素が存在すれば、この処理を終了する。一方、現ラインの連結黒画素の左下、下及び右下のいずれにも黒画素が存在しなければ、当該現ラインの連結黒画素を孤立点及び網点の候補画素であると判定してこの処理を終了する(ステップS210)。   At this time, if there is a black pixel in any of the lower left, lower, or lower right of the connected black pixels in the current line, this process ends. On the other hand, if there are no black pixels in the lower left, lower and lower right of the connected black pixels in the current line, it is determined that the connected black pixel in the current line is a candidate pixel for an isolated point and a halftone dot. The process ends (step S210).

本実施の形態によれば、連結黒画素32の画素数及び中心位置を現ラインと前ラインとで比較することにより候補画素を抽出し、画素数の最大値及び連結ライン数に基づいて孤立点及び網点を推定するので、網点が1個又は2個しか存在しない領域であっても、網点を正しく検知することができる。従って、地紋画像B1が埋め込まれた2値画像データに基づいて原稿画像、背景部B2及び潜像部B3を検知し、原稿画像、背景部B2及び潜像部B3間で濃度を異ならせた4値画像データに変換して出力する際の網点の検出精度を向上させることができる。   According to the present embodiment, candidate pixels are extracted by comparing the number of pixels and the center position of the connected black pixels 32 between the current line and the previous line, and the isolated points are based on the maximum number of pixels and the number of connected lines. Since the halftone dots are estimated, the halftone dots can be detected correctly even in a region where only one or two halftone dots exist. Accordingly, the original image, the background portion B2, and the latent image portion B3 are detected based on the binary image data in which the copy-forgery-inhibited pattern image B1 is embedded, and the density is varied between the original image, the background portion B2, and the latent image portion B3. It is possible to improve halftone dot detection accuracy when converted into value image data and output.

また、少なくとも2ライン分の2値画像データを保持し、連結黒画素32の画素数及び中心位置を現ラインと前ラインとで比較することによって孤立点及び網点を推定するので、水平及び垂直の両走査方向の周期性を判断して網点を検出する従来の検出方法に比べて、網点の検出に要するラインバッファ1の容量を低減させることができる。   In addition, since binary image data for at least two lines is stored and the number of connected black pixels 32 and the center position are compared between the current line and the previous line, isolated points and halftone dots are estimated. Compared to the conventional detection method for detecting halftone dots by judging the periodicity in both scanning directions, the capacity of the line buffer 1 required for detection of halftone dots can be reduced.

1 ラインバッファ
2 バッファ制御部
3 連結黒画素検出部
4 画素数及び中心位置記憶部
5 候補画素抽出部
6 連結パラメータ記憶部
7 4値画像生成部
10 PC
20 画像処理装置
21 孤立点及び網点推定部
22 画素値変換部
23 キュー構造の4値メモリ
30 プリンタ
31 2値画像の水平幅
32 連結黒画素
40 コピー機
100 地紋付加システム
A1 用紙
A2 印刷物
A3 複製物
B1 地紋画像
B2 背景部
B3 潜像部
DESCRIPTION OF SYMBOLS 1 Line buffer 2 Buffer control part 3 Connection black pixel detection part 4 Pixel number and center position memory | storage part 5 Candidate pixel extraction part 6 Connection parameter memory | storage part 7 Four value image generation part 10 PC
20 Image processing device 21 Isolated point and halftone dot estimation unit 22 Pixel value conversion unit 23 Quaternary quaternary memory 30 Printer 31 Horizontal width of binary image 32 Concatenated black pixel 40 Copy machine 100 Background pattern addition system A1 Paper A2 Printed matter A3 Duplicate Object B1 Copy-forgery-inhibited pattern image B2 Background portion B3 Latent image portion

Claims (5)

孤立点の密度を変化させて濃度調整が行われる背景部と網点の大きさを変化させて濃度調整が行われる潜像部とからなる地紋画像が埋め込まれた2値画像データを4値画像データに変換して出力する画像処理装置であって、
水平走査方向の少なくとも2ライン分の上記2値画像データを保持する2値画像記憶部と、
上記2値画像データから黒画素を抽出し、水平走査方向に隣接する黒画素からなる連結黒画素の画素数及び中心位置を検出する連結黒画素検出部と、
上記連結黒画素検出部による現ラインの検出結果と1つ前のラインの検出結果との比較によって、現ラインまでの上記連結黒画素から上記孤立点及び上記網点の候補とする候補画素を抽出する候補画素抽出部と、
垂直走査方向に隣接する上記連結黒画素に関する上記画素数の最大値及び連結ライン数に基づいて上記候補画素から上記孤立点及び上記網点を推定し、原稿画像、孤立点及び網点に応じた階調濃度を割り当てて上記4値画像データを生成する4値画像生成部とを備えたことを特徴とする画像処理装置。
Binary image data in which a copy-forgery-inhibited pattern image composed of a background portion in which density adjustment is performed by changing the density of isolated points and a latent image portion in which density adjustment is performed by changing the size of halftone dots is embedded as a quaternary image. An image processing apparatus that converts data to output and outputs the data,
A binary image storage unit for holding the binary image data for at least two lines in the horizontal scanning direction;
A connected black pixel detection unit that extracts black pixels from the binary image data and detects the number and center position of the connected black pixels including black pixels adjacent in the horizontal scanning direction;
Extract candidate pixels as candidates for the isolated points and halftone dots from the connected black pixels up to the current line by comparing the detection result of the current line with the detection result of the previous line by the connected black pixel detection unit. A candidate pixel extraction unit to perform,
The isolated points and halftone dots are estimated from the candidate pixels based on the maximum number of pixels and the number of connected lines related to the connected black pixels adjacent in the vertical scanning direction, and according to the original image, the isolated points, and the halftone dots. An image processing apparatus comprising: a quaternary image generation unit that assigns gradation density and generates the quaternary image data.
上記候補画素抽出部は、上記画素数が上記網点の水平走査方向の上限サイズを越える連結黒画素を候補画素から除外することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the candidate pixel extraction unit excludes connected black pixels whose number of pixels exceeds an upper limit size in a horizontal scanning direction of the halftone dots from candidate pixels. 上記候補画素抽出部は、現ラインまでの上記連結ライン数が上記網点の垂直走査方向の上限サイズを越える連結黒画素を候補画素から除外することを特徴とする請求項1に記載の画像処理装置。   2. The image processing according to claim 1, wherein the candidate pixel extraction unit excludes, from the candidate pixels, connected black pixels whose number of connected lines up to the current line exceeds an upper limit size of the halftone dot in the vertical scanning direction. apparatus. 上記候補画素抽出部は、1つ前のラインに隣接する黒画素が存在しない現ラインの連結黒画素について、上記最大値及び上記連結ライン数をリセットすることを特徴とする請求項1から3のいずれかに記載の画像処理装置。   The said candidate pixel extraction part resets the said maximum value and the said number of connected lines about the connection black pixel of the present line in which the black pixel adjacent to a previous line does not exist, The said number of connection lines is characterized by the above-mentioned. The image processing apparatus according to any one of the above. 上記4値画像生成部は、現ラインについて上記最大値及び上記連結ライン数がいずれも1である候補画素を孤立点と判断し、上記最大値及び上記連結ライン数がいずれもN(Nは3以上かつ網点の垂直走査方向の上限サイズ以下の整数)である連結黒画素に関連付けられた候補画素を網点と判断することを特徴とする請求項1に記載の画像処理装置。   The quaternary image generation unit determines a candidate pixel having the maximum value and the number of connected lines of 1 for the current line as an isolated point, and the maximum value and the number of connected lines are both N (N is 3). 2. The image processing apparatus according to claim 1, wherein the candidate pixel associated with the connected black pixel which is equal to or larger than the upper limit size in the vertical scanning direction of the halftone dot is determined as the halftone dot.
JP2009060380A 2009-03-13 2009-03-13 Image processing apparatus Pending JP2010219577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009060380A JP2010219577A (en) 2009-03-13 2009-03-13 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009060380A JP2010219577A (en) 2009-03-13 2009-03-13 Image processing apparatus

Publications (1)

Publication Number Publication Date
JP2010219577A true JP2010219577A (en) 2010-09-30

Family

ID=42977997

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009060380A Pending JP2010219577A (en) 2009-03-13 2009-03-13 Image processing apparatus

Country Status (1)

Country Link
JP (1) JP2010219577A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021005234A (en) * 2019-06-26 2021-01-14 日立オムロンターミナルソリューションズ株式会社 Form recognition device, form recognition method, and form recognition system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021005234A (en) * 2019-06-26 2021-01-14 日立オムロンターミナルソリューションズ株式会社 Form recognition device, form recognition method, and form recognition system
JP7267854B2 (en) 2019-06-26 2023-05-02 日立チャネルソリューションズ株式会社 Form recognition device, form recognition method, and form recognition system

Similar Documents

Publication Publication Date Title
JP3938176B2 (en) Image processing method, image processing apparatus, program, and recording medium
EP1670232B1 (en) Detecting and protecting a copy guarded document
JP5157774B2 (en) Image forming apparatus, image forming method, and program
JP6338469B2 (en) Image processing apparatus and image processing method
JP2006262481A (en) Image processing apparatus
JP4448051B2 (en) Image reading apparatus and method
JP2009182512A (en) Apparatus, method, and program for image processing, and recording medium
JP4366399B2 (en) Image processing apparatus capable of specifying large dot area and small dot area, its control method, program, and storage medium
JP2007201850A (en) Image forming apparatus, image formation method, and program
JP4471395B2 (en) Image forming apparatus and image processing method
JP2009201059A (en) Image processing apparatus, and control method thereof
JP2003348342A (en) Image processing apparatus and image forming apparatus
JP4502001B2 (en) Image processing apparatus and image processing method
JP2007005972A (en) Image processing apparatus
JP2010219577A (en) Image processing apparatus
JP5454380B2 (en) Background pattern image processing apparatus and background pattern image processing method
JP2007221222A (en) Image forming apparatus, and method and program for controlling same
JP4935467B2 (en) Image processing device
JP2007312049A (en) Information embedding processing system, additional information embedding device, and additional information restoring device
JP4101188B2 (en) Image processing apparatus, image processing method, and computer program
JP2007166335A (en) Image processing apparatus, image processing method, and image processing program
JP2007166218A (en) Image processing apparatus, image processing method, and program
JP3582245B2 (en) Image forming device
JP5269820B2 (en) Background pattern detection apparatus, image forming apparatus, and background pattern detection method
JP4524714B2 (en) Image processing apparatus and line pair pattern discrimination method