JP2002016797A - Image processing method and its unit - Google Patents

Image processing method and its unit

Info

Publication number
JP2002016797A
JP2002016797A JP2000195734A JP2000195734A JP2002016797A JP 2002016797 A JP2002016797 A JP 2002016797A JP 2000195734 A JP2000195734 A JP 2000195734A JP 2000195734 A JP2000195734 A JP 2000195734A JP 2002016797 A JP2002016797 A JP 2002016797A
Authority
JP
Japan
Prior art keywords
pixel
white
pixels
black
line
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.)
Granted
Application number
JP2000195734A
Other languages
Japanese (ja)
Other versions
JP3799218B2 (en
Inventor
Takahiko Nakamura
孝彦 中村
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.)
Riso Kagaku Corp
Original Assignee
Riso Kagaku Corp
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 Riso Kagaku Corp filed Critical Riso Kagaku Corp
Priority to JP2000195734A priority Critical patent/JP3799218B2/en
Publication of JP2002016797A publication Critical patent/JP2002016797A/en
Application granted granted Critical
Publication of JP3799218B2 publication Critical patent/JP3799218B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an image processing unit that is used to generate black/ white print data without causing white level deformation or back level smear. SOLUTION: The image processing unit is provided with a discrimination section 20 that consists of a 1st discrimination means 21 that discriminates whether or not a target pixel is a pixel placed at an end of black pixels whose number is a predetermined pixel number (m+1) or over, of a pixel width detection means 24 and a 2nd discrimination means 22 that discriminate whether or not white pixels whose number is (n) or below are consecutively in existence adjacent to the target pixel, and of a 3rd discrimination means 23 that discriminates whether or not the target pixel is used for an object pixel of thickening processing on the basis of discrimination results ax, ay by the 1st discrimination means 21 and discrimination results dx, dy by the 2nd discrimination means 22. A white/black inversion section 30 inverts the target pixel into a white pixel when the discrimination result (e) of the 3rd discrimination means 23 indicates the unity and thickens a white line by one pixel so as to prevent white level deformation and also can prevent black level smear by replacing black pixels with white pixels and applying the similar processing to the replaced pixels.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理方法およ
び装置に関し、より詳細には、例えば、感熱孔版原紙に
穿孔を施して印刷を行う製版印刷装置、電子写真技術に
より感光体に潜像を形成し用紙に転写する装置(複写
機)、或いは感熱紙などに印刷する装置(ファクシミリ
やプリンタ)などにおいて、白黒の2値画像を印刷出力
するに際して利用される画像処理方法および装置に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus, and more particularly to, for example, a stencil printing apparatus for performing printing by perforating a thermosensitive stencil sheet, and a method for forming a latent image on a photoconductor by electrophotography. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and apparatus used for printing and outputting a black-and-white binary image in a device for forming and transferring to paper (copier) or a device for printing on thermal paper (facsimile or printer). .

【0002】[0002]

【従来の技術】複写機、プリンタあるいは製版印刷装置
などの印刷装置においては、通常、白と黒の2階調で表
された原画像(2値画像)の黒画素部分を印字し、白画
素部分を印字しないことで、原画像を印刷物上において
再現するようにしている。
2. Description of the Related Art In a printing apparatus such as a copying machine, a printer or a plate-making printing apparatus, a black pixel portion of an original image (binary image) represented by two gradations of white and black is usually printed, and a white pixel is printed. By not printing the portion, the original image is reproduced on the printed matter.

【0003】ここで、印刷出力前の画像処理において原
画像をデータ展開するに際しては、通常、図11(a)
に示すように画素の点の集まりとしてデジタル画像が表
現され、図11(b)に示すように各画素(ドット)の
形状は矩形(例えば正方形)と考えている。
Here, in developing data of an original image in image processing before print output, normally, FIG.
As shown in FIG. 11, a digital image is expressed as a group of pixel points, and as shown in FIG. 11B, the shape of each pixel (dot) is considered to be a rectangle (for example, a square).

【0004】これに対して、印刷結果の画素形状は矩形
ではなく、略円形となることが殆どであるため、隙間な
く且つ重なり部分が生じないように黒画素を印刷出力す
ることは実際上不可能である。例えば、図11(c)に
示すように、データ展開における矩形状の画素の一辺の
長さと印字結果のドット径(直径)を同じとした場合、
黒画素に塗り潰されない部分(隙間)ができてしまう。
また、図11(d)に示すように、データ展開における
矩形状の画素の対角線の長さと印字結果のドット径を同
じとした場合、矩形からはみ出た部分は隣の黒画素を塗
り潰してしまい、重なり部分を生じる。また、通常は、
黒べ夕を奇麗に印刷するなどの目的で、ドット径を図1
1(d)に示すドット径よりも大きく設定されるので、
この場合、重なり部分が一層拡がることになる。
On the other hand, since the pixel shape of the printing result is not a rectangle but a substantially circular shape in most cases, it is practically impossible to print out black pixels without gaps and without overlapping portions. It is possible. For example, as shown in FIG. 11C, when the length of one side of a rectangular pixel in data development and the dot diameter (diameter) of a print result are the same,
A portion (gap) that is not filled with the black pixel is formed.
Further, as shown in FIG. 11D, when the length of the diagonal line of the rectangular pixel in the data development and the dot diameter of the print result are the same, the portion outside the rectangle fills the adjacent black pixel, An overlap occurs. Also, usually
The dot diameter is shown in Fig. 1 for the purpose of printing black and white beautifully.
Since the dot diameter is set to be larger than the dot diameter shown in FIG.
In this case, the overlapping portion is further expanded.

【0005】しかしながら、図11(d)に示すよう
な、重なり部分が生じるような形態で印刷を行なう場
合、図5(a)に示すように、黒画素に挟まれた白線を
含む画像を印刷すると、図5(b)に示す印刷結果のよ
うに、白線の印刷結果部分が実際よりも細くなって、白
画素が潰れるという問題が生じる。
[0005] However, when printing is performed in such a manner that an overlapping portion occurs as shown in FIG. 11D, an image including a white line sandwiched between black pixels is printed as shown in FIG. 5A. Then, as shown in the print result shown in FIG. 5B, the print result portion of the white line becomes thinner than the actual one, and there arises a problem that white pixels are crushed.

【0006】また、数画素幅(黒画素)の細線を含む画
像を印刷すると、印刷ミス(未印字や小ドット化)が生
じたときには、白画素(白線)が潰れるという問題とは
逆に黒画素(黒線)が掠れるという問題が生じ、特に、
図11(c)に示すような、黒画素に塗り潰されない部
分ができる態様で印刷を行なう場合には、この問題がよ
り生じやすくなる。
Further, when an image including a thin line having a width of several pixels (black pixels) is printed, when a printing error (unprinted or small dots) occurs, black pixels are contradictory to the problem that white pixels (white lines) are crushed. The problem that the pixel (black line) is blurred occurs.
This problem is more likely to occur when printing is performed in such a manner that a portion that is not filled with black pixels is formed as shown in FIG.

【0007】これらの問題を解決する方法として、例え
ば、特開平8−300728号に記載されているよう
に、白画素潰れが生ずる虞れのある領域の画像ドット信
号に対しては正規の信号幅よりも狭い画像ドット信号を
発生させ、逆に黒画素掠れが生ずる虞れのある領域の画
像ドット信号に対しては正規の信号幅よりも広い画像ド
ット信号を発生させるという、レーザビームブリン夕の
画像濃淡調整方法を利用することが考えられる。
As a method for solving these problems, for example, as described in Japanese Patent Application Laid-Open No. 8-300728, a regular signal width is required for an image dot signal in an area where white pixel collapse is likely to occur. It generates a narrower image dot signal and conversely generates an image dot signal wider than the regular signal width for an image dot signal in an area where black pixel blurring may occur. It is conceivable to use an image shading adjustment method.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記特
開平8−300728号に記載の方法では、画素毎にド
ット径を変化させる必要があるため、画素毎にドット径
を変化させる手段を持たず、全ドットが一定のドット径
で印字される印刷装置には使えない手法であるという問
題がある。
However, in the method described in JP-A-8-300728, since it is necessary to change the dot diameter for each pixel, there is no means for changing the dot diameter for each pixel. There is a problem that this method cannot be used for a printing apparatus in which all dots are printed with a fixed dot diameter.

【0009】本発明は上記事情に鑑みてなされたもので
あり、印刷ドット径が全て均一であるような印刷装置に
おいて、白画素潰れや黒画素掠れの問題を防止すること
ができる画像処理方法および装置を提供することを目的
とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and provides an image processing method capable of preventing the problem of white pixel crushing and black pixel blurring in a printing apparatus in which the printing dot diameters are all uniform. It is intended to provide a device.

【0010】[0010]

【課題を解決するための手段】本発明による第1の画像
処理方法は、白画素および黒画素で構成された2値画像
について、白画素および黒画素のうちのいずれか一方の
画素を他方の画素に変更する画像処理方法であって、一
方の画素が予め定められた画素数以上の該一方の画素群
の端部に位置する画素であるとき、一方の画素を他方の
画素に変更する(すなわち白黒反転する)ことを特徴と
するものである。
According to a first image processing method of the present invention, for a binary image composed of white pixels and black pixels, one of the white pixels and the black pixels is replaced with the other pixel. In the image processing method of changing to a pixel, when one pixel is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels, one pixel is changed to the other pixel ( That is, black-and-white inversion is performed).

【0011】ここで「一方の画素が予め定められた画素
数以上の該一方の画素群の端部に位置する画素であると
き」とは、一方の画素が予め定められた画素数以上の該
一方の画素群を構成する画素であって、かつ、該一方の
画素に隣接して前記他方の画素が少なくとも1画素分存
在するときを意味する。
Here, "when one pixel is a pixel located at the end of the one pixel group having a predetermined number of pixels or more" means that one pixel is a pixel having a predetermined number of pixels or more. It means a pixel that constitutes one pixel group and that the other pixel is adjacent to the one pixel for at least one pixel.

【0012】本発明による第2の画像処理方法は、白画
素および黒画素で構成された2値画像について、白画素
および黒画素のうちのいずれか一方の画素を他方の画素
に変更する画像処理方法であって、一方の画素が予め定
められた画素数以上の該一方の画素群の端部に位置する
画素であり、かつ、一方の画素群の配列方向とは反対方
向において、一方の画素に隣接して、予め定められた画
素数の他方の画素が連続して存在するとき、一方の画素
を他方の画素に変更することを特徴とするものである。
In a second image processing method according to the present invention, for a binary image composed of white pixels and black pixels, one of the white pixels and the black pixels is changed to the other pixel. The method, wherein one pixel is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels, and one pixel is disposed in a direction opposite to the arrangement direction of the one pixel group. When one of the predetermined number of pixels is continuously adjacent to the other pixel, one pixel is changed to the other pixel.

【0013】上記において、一方の画素群の端部に位置
する画素についての「予め定められた画素数」は、白黒
反転させずに、元の画素の状態を維持させるべき画素幅
に応じて決定するとよい。例えば、白画素に隣接する黒
画素を白画素に変更(反転)して白画素を1画素分太ら
せることにより白画素潰れを防止する場合には、最低限
残すべき黒画素の数に「1」を加えた値とするとよい。
In the above, the "predetermined number of pixels" for the pixels located at the end of one of the pixel groups is determined according to the pixel width to maintain the state of the original pixel without inverting black and white. Good to do. For example, when changing (inverting) a black pixel adjacent to a white pixel to a white pixel and making the white pixel thicker by one pixel to prevent white pixel collapse, the minimum number of black pixels to be left is “1”. "Should be added.

【0014】また、一方の画素に隣接して存する画素に
ついての「予め定められた画素数」は、白黒反転させて
白画素や黒画素を1画素分太らせることにより、白画素
潰れや黒画素掠れを防止しようとする画素幅に応じて決
定するとよい。この場合の「予め定められた画素数」
は、任意の1つの画素数でもよいし、1〜n(nは正の
整数)やn1(≠1)〜n2(n1,n2は正の整数)
など所定の幅を有するように画素数を設定してもよい。
幅を有するように設定する場合には、いずれかの幅に合
致したとき、予め定められた画素数の他方の画素が連続
して存在すると判定する。
The "predetermined number of pixels" of a pixel existing adjacent to one pixel is determined by inverting black and white to make white and black pixels thicker by one pixel, thereby crushing white pixels and black pixels. It may be determined according to the pixel width for which blurring is to be prevented. "Predetermined number of pixels" in this case
May be an arbitrary number of pixels, 1 to n (n is a positive integer) or n1 (≠ 1) to n2 (n1, n2 are positive integers)
For example, the number of pixels may be set to have a predetermined width.
In the case of setting to have a width, when any one of the widths is matched, it is determined that the other pixels having the predetermined number of pixels are continuously present.

【0015】ここで、本発明による第2の画像処理方法
によれば、例えば、所定幅以下の白の縦線や横線につい
ては、該白線に隣接した黒画素群の端部に位置する画素
が白黒反転されて白線が1画素分太るが、縦線および横
線のうちのいずれか一方が所定幅でない場合には、縦線
と横線とがぶつかる部分の白画素に隣接した黒画素群の
端部に位置する画素については白黒反転の対象外とさ
れ、黒画素のまま残ることになり、元の縦線および横線
においては存在しなかった、「がたつき」が生じてしま
う。
According to the second image processing method of the present invention, for example, for a white vertical line or a horizontal line having a predetermined width or less, a pixel located at an end of a black pixel group adjacent to the white line is used. The white line is inverted by black and white and the white line is thickened by one pixel, but if one of the vertical line and the horizontal line is not the predetermined width, the end of the black pixel group adjacent to the white pixel where the vertical line and the horizontal line meet Are excluded from the black-and-white inversion and remain as black pixels, resulting in "rattle" which did not exist in the original vertical and horizontal lines.

【0016】そこで、本発明による第2の画像処理方法
においては、前記縦線と横線とがぶつかる部分において
白黒反転の対象外とされる黒画素も白黒反転の対象画素
とすることが望ましく、以下のようにする。すなわち、
本発明による第2の画像処理方法においては、一方の画
素が予め定められた画素数以上の該一方の画素群の端部
に位置する画素であり、かつ、該一方の画素群の配列方
向と交差(例えば直交)する方向において、一方の画素
に隣接して他方の画素に変更される画素が存在し、か
つ、一方の画素群の配列方向とは反対方向において他方
の画素が少なくとも1画素分存在するとき、一方の画素
を他方の画素に変更することが望ましい。
Therefore, in the second image processing method according to the present invention, it is desirable that the black pixels which are not subjected to the black-and-white inversion at the portion where the vertical line and the horizontal line meet are also set as the black-and-white inversion target pixels. Like That is,
In the second image processing method according to the present invention, one of the pixels is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels, and the arrangement direction of the one pixel group is In a direction intersecting (for example, orthogonally), there is a pixel that is adjacent to one pixel and is changed to the other pixel, and the other pixel has at least one pixel in a direction opposite to the arrangement direction of one pixel group. When present, it is desirable to change one pixel to the other.

【0017】本発明による画像処理装置は、上記第1の
画像処理方法を実施する装置、すなわち、白画素および
黒画素で構成された2値画像について、白画素および黒
画素のうちのいずれか一方の画素を他方の画素に変更す
る白黒反転手段を備えてなる画像処理装置であって、一
方の画素が予め定められた画素数以上の該一方の画素群
の端部に位置する画素であり、かつ、一方の画素群の配
列方向とは反対方向において、一方の画素に隣接して他
方の画素が少なくとも1画素分存在するか否かを判定す
る判定手段をさらに備えたものとすると共に、白黒反転
手段を、判定手段の判定結果に基づいて、一方の画素を
他方の画素に変更するものとしたことを特徴とするもの
である。
An image processing apparatus according to the present invention is an apparatus for carrying out the first image processing method, that is, for a binary image composed of white pixels and black pixels, one of white pixels and black pixels. An image processing apparatus comprising black-and-white inversion means for changing the pixel of the pixel to the other pixel, wherein one pixel is located at the end of the one pixel group more than a predetermined number of pixels, In addition, in the opposite direction to the arrangement direction of one of the pixel groups, a determination unit for determining whether or not at least one pixel is present adjacent to one pixel is provided. The reversing means changes one pixel to the other pixel based on the result of the judgment by the judging means.

【0018】この第1の画像処理装置において「判定手
段の判定結果に基づいて、一方の画素を他方の画素に変
更する」とは、前記判定結果が、一方の画素が予め定め
られた画素数以上の該一方の画素群の端部に位置する画
素であり、かつ、該一方の画素群の配列方向とは反対方
向において、一方の画素に隣接して他方の画素が少なく
とも1画素分存在することを示しているとき、前記一方
の画素を白黒反転することを意味する。
In the first image processing apparatus, "changing one pixel to the other pixel based on the determination result of the determination means" means that the determination result indicates that one pixel has a predetermined number of pixels. At least one pixel adjacent to one pixel in the direction opposite to the arrangement direction of the one pixel group is a pixel located at an end of the one pixel group as described above. Means that the one pixel is black and white inverted.

【0019】本発明による画像処理装置は、上記第2の
画像処理方法を実施する装置であって、一方の画素が予
め定められた画素数以上の該一方の画素群の端部に位置
する画素であるか否かを判定する判定手段を備えたもの
とすると共に、白黒反転手段を、判定手段の判定結果に
基づいて、一方の画素を他方の画素に変更するものとし
たことを特徴とするものである。
An image processing apparatus according to the present invention is an apparatus for performing the above-mentioned second image processing method, wherein one pixel is located at an end of the one pixel group having a predetermined number of pixels or more. And determining means for changing one pixel to the other pixel based on the determination result of the determining means. Things.

【0020】この第2の画像処理装置において「判定手
段の判定結果に基づいて、一方の画素を他方の画素に変
更する」とは、前記判定結果が、一方の画素が予め定め
られた画素数以上の該一方の画素群の端部に位置する画
素であり、かつ、該一方の画素群の配列方向とは反対方
向において前記一方の画素に隣接して、予め定められた
画素数の他方の画素が連続して存在することを示してい
るとき、前記一方の画素を白黒反転することを意味す
る。
In the second image processing apparatus, "changing one pixel to the other pixel based on the judgment result of the judging means" means that the judgment result indicates that one pixel has a predetermined number of pixels. A pixel located at an end of the one pixel group as described above, and adjacent to the one pixel in a direction opposite to the arrangement direction of the one pixel group, the other of a predetermined number of pixels. When it indicates that pixels are continuously present, it means that the one pixel is inverted between black and white.

【0021】本発明による第2の画像処理装置において
は、判定手段を、さらに、一方の画素が予め定められた
画素数以上の該一方の画素群の端部に位置する画素であ
り、かつ、該一方の画素群の配列方向と交差する方向に
おいて一方の画素に隣接して他方の画素に変更される画
素が存在し、かつ、一方の画素群の配列方向とは反対方
向において他方の画素が少なくとも1画素分存在するか
否かを判定するものとするのが望ましい。この場合、白
黒反転手段は、前記判定結果が、一方の画素が予め定め
られた画素数以上の該一方の画素群の端部に位置する画
素であり、かつ、該一方の画素群の配列方向と交差する
方向において一方の画素に隣接して他方の画素に変更さ
れる画素が存在し、かつ、一方の画素群の配列方向とは
反対方向において他方の画素が少なくとも1画素分存在
することを示しているときにも、一方の画素を白黒反転
する。
In the second image processing apparatus according to the present invention, the judging means further comprises: one of the pixels located at an end of the one of the pixel groups having a predetermined number of pixels or more; There is a pixel that is changed to the other pixel adjacent to one pixel in a direction intersecting the arrangement direction of the one pixel group, and the other pixel is arranged in a direction opposite to the arrangement direction of the one pixel group. It is desirable to determine whether at least one pixel exists. In this case, the black-and-white inverting means determines that the determination result indicates that one of the pixels is located at an end of the one of the pixel groups with a predetermined number of pixels or more, and the arrangement direction of the one of the pixel groups is It is assumed that there is a pixel which is changed to the other pixel adjacent to one pixel in a direction intersecting with the other pixel, and that the other pixel is present for at least one pixel in a direction opposite to the arrangement direction of the one pixel group. Also, one pixel is inverted between black and white.

【0022】[0022]

【発明の効果】本発明による第1の画像処理方法および
装置によれば、一方の画素が予め定められた画素数以上
の該一方の画素群の端部に位置する画素であるとき、こ
の端部に位置する一方の画素を白黒反転するようにした
ので、他方の画素を1画素分だけ太らせることができ、
例えば白画素で表される1画素幅以上の白線を白潰れが
生じ難くなるように1画素だけ太らせることができる。
また、一方の画素が予め定められた画素数以上の該一方
の画素群の端部に位置する画素でないときには白黒反転
することがないので、画素(線)を太らせても、隣接す
る他方の画素で表わされる画像に大きな影響を与えるこ
とがない。つまり、第1の画像処理方法および装置によ
れば、一方の画素で表される線を太らせても、隣接する
他方の画素で表される画像に大きな影響を与えない部分
に限って太線化処理を施して印刷し、それ以外の部分は
従来の印刷データのままで印刷できるので、白潰れや黒
掠れのない印刷物を得ることができる。
According to the first image processing method and apparatus according to the present invention, when one pixel is a pixel located at an end of the one pixel group which is equal to or more than a predetermined number of pixels, this end Because one of the pixels located in the area is inverted between black and white, the other pixel can be made thicker by one pixel,
For example, a white line having a width of one pixel or more and represented by a white pixel can be made thicker by one pixel so that white crushing hardly occurs.
Further, when one pixel is not a pixel located at the end of the one pixel group which is equal to or more than a predetermined number of pixels, black-and-white inversion does not occur. It does not significantly affect the image represented by pixels. That is, according to the first image processing method and apparatus, even if the line represented by one pixel is thickened, the thick line is limited to a portion that does not significantly affect the image represented by the other adjacent pixel. Printing is performed after processing, and the other portions can be printed with the conventional print data as they are, so that a printed matter without whiteout or blackishness can be obtained.

【0023】また、本発明による第2の画像処理方法お
よび装置によれば、一方の画素が予め定められた画素数
以上の該一方の画素群の端部に位置する画素である場合
において、一方の画素群の配列方向とは反対方向に、一
方の画素に隣接して、予め定められた画素数の他方の画
素が連続して存在するとき、前記一方の画素を白黒反転
するようにしたので、上記第1の画像処理方法および装
置における「他方の画素が少なくとも1画素分存在する
とき」を「所定幅の他方の画素群が存在するとき」と変
更した点を除いて、上記第1の画像処理方法および装置
と略同様の効果を得ることができる。つまり、第2の画
像処理方法および装置においては、1画素分だけ太らせ
たい幅の画素群(例えば白潰れや黒掠れを生じ易い線)
のみについて白黒反転処理を施すことができるので、可
能な限り原画像そのものを表すと共に白潰れや黒掠れを
防止することができる。
According to the second image processing method and apparatus of the present invention, when one of the pixels is a pixel located at the end of the one pixel group which is equal to or more than a predetermined number of pixels, In the direction opposite to the arrangement direction of the pixel group, adjacent to one pixel, when the other pixel of a predetermined number of pixels is continuously present, the one pixel is black and white inverted. Except that “when the other pixel exists for at least one pixel” in the first image processing method and apparatus is changed to “when the other pixel group having a predetermined width exists”. Almost the same effects as those of the image processing method and apparatus can be obtained. That is, in the second image processing method and the second image processing apparatus, a pixel group having a width desired to be increased by one pixel (for example, a line which is liable to cause whiteout or blackout)
Since only the black-and-white inversion process can be performed on only the original image, it is possible to represent the original image itself as much as possible and to prevent whiteout and blackout.

【0024】また、本発明による第2の画像処理方法お
よび装置において、さらに、一方の画素が予め定められ
た画素数以上の該一方の画素群の端部に位置する画素で
あり、かつ、該一方の画素群の配列方向と交差する方向
において、一方の画素に隣接して他方の画素に変更され
る画素が存在し、かつ、一方の画素群の配列方向とは反
対方向において他方の画素が少なくとも1画素分存在す
るとき、前記一方の画素を白黒反転するようにすれば、
線と線とがぶつかっている所においても、新たな「がた
つき」を生じさせないように白黒反転処理を施すことが
できる。
Further, in the second image processing method and apparatus according to the present invention, further, one of the pixels is a pixel located at an end of the one pixel group having a predetermined number of pixels or more, and In the direction intersecting with the arrangement direction of one pixel group, there is a pixel adjacent to one pixel that is changed to the other pixel, and the other pixel is arranged in a direction opposite to the arrangement direction of one pixel group. If at least one pixel is present, the one pixel is inverted between black and white.
Even where the lines collide with each other, a black-and-white inversion process can be performed so as not to cause a new “rattle”.

【0025】また、本発明による画像処理方法は、上記
特開平8−300728号に記載の方法とは異なり、画
素毎にドット径を変化させる必要がないので、画素毎に
ドット径を変化させる手段を持たない装置にも、簡単に
適用することができる。
The image processing method according to the present invention is different from the method described in Japanese Patent Application Laid-Open No. 8-300728, since it is not necessary to change the dot diameter for each pixel. It can be easily applied to a device having no.

【0026】[0026]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0027】図1は本発明の第1の実施の形態による画
像処理方法を実現する画像処理装置の概略構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus for realizing an image processing method according to the first embodiment of the present invention.

【0028】この画像処理装置1は、多数のラインメモ
リ11を有するデータ記憶部10と、第1判定手段2
1、第2判定手段22、第3判定手段23、および画素
幅検出手段24からなる判定部20と、判定部20の判
定結果に応じて、白画素を黒画素に、あるいは黒画素を
白画素に反転する白黒反転部30とからなる。
The image processing apparatus 1 includes a data storage unit 10 having a large number of line memories 11 and a first determination unit 2.
A determination unit 20 including a first, a second determination unit 22, a third determination unit 23, and a pixel width detection unit 24, and a white pixel as a black pixel or a black pixel as a white pixel according to the determination result of the determination unit 20. And a black-and-white reversal unit 30 for reversing the color.

【0029】以下の説明においては、白画素潰れを防止
するために、所定の条件に合致する黒画素を白画素に反
転する(以下白線太線化ともいう)処理を行なうものと
して説明する。
In the following description, it is assumed that black pixels meeting predetermined conditions are inverted to white pixels (hereinafter also referred to as thickening white lines) in order to prevent white pixel collapse.

【0030】画像処理装置1に入力される画像データD
は、図11(a)に示すように、画像の左上を起点とし
て、図中右側を主走査方向xとし、下方向を副走査方向
yとする、画素データD(x,y) で構成されたものであ
る。ここで、画素データD(x,y) は、2値画像を表すデ
ータである。なお、2値画像は、元々2値画像であるも
のに限らず、スキャナやデジタルスチルカメラなどで取
得されたり、あるいはパソコンなどで生成されたモノク
ロ画像やカラー画像を印刷出力用の2値データに変換し
て得られる画像も含む意味である。
Image data D input to the image processing apparatus 1
Is composed of pixel data D (x, y), with the upper left of the image as the starting point, the right side in the figure as the main scanning direction x, and the lower direction as the sub scanning direction y, as shown in FIG. It is a thing. Here, the pixel data D (x, y) is data representing a binary image. The binary image is not limited to a binary image originally, but a monochrome image or a color image obtained by a scanner or a digital still camera or generated by a personal computer or the like is converted into binary data for print output. This includes images obtained by conversion.

【0031】データ記憶部10の各ラインメモリ11
は、最新の画素の含まれる主走査方向xの1ライン分を
j番目のラインとしたとき、 j-1番目のラインから j-
(n+1+m)番目のラインまでの対応する各ライン分の画素
データD(x,j-1) ,D(x,j-2),…,D(x,j-(n+1)) ,
…,D(x,j-(n+1+m)) を記憶するものある(xは主走査
方向の画素数分だけ)。ここで、m(正の整数)は最低
限保存すべき黒画素群の画素数を表し、n(正の整数)
は白線太線化を行なう対象となる白線の画素幅の最大値
を表す。m,nの値はドットゲインなど印刷装置の状況
によって、mは何画素幅までの黒画素群を残すべきかに
応じて、またnは何画素幅までの白線を白線太線化の対
象とすべきかに応じて、それぞれ調節するとよい。
Each line memory 11 of the data storage unit 10
Is the j-th line when one line in the main scanning direction x including the latest pixel is the j-th line.
Pixel data D (x, j-1), D (x, j-2),..., D (x, j- (n + 1) for each corresponding line up to the (n + 1 + m) th line )),
.., D (x, j- (n + 1 + m)) (where x is the number of pixels in the main scanning direction). Here, m (positive integer) represents the minimum number of pixels of the black pixel group to be stored, and n (positive integer)
Represents the maximum value of the pixel width of the white line to be subjected to the thickening of the white line. The values of m and n depend on the condition of the printing apparatus such as the dot gain, m depends on how many pixel widths the black pixel group should be left, and n should be how many pixel widths the white line should be the object of thickening the white line. It is good to adjust each according to the feeling.

【0032】なお、以下の処理は、画素ごとに行なわれ
るが、処理の際の注目画素Pは j-(n+1)番目のラインに
設定するものとする。また、以下の説明は白線太線化に
ついてのものであるので、黒画素のみに注目画素を設定
すればよい。
The following processing is performed for each pixel, and the pixel of interest P in the processing is set to the j- (n + 1) -th line. Further, the following description is about thickening the white line, so that the target pixel may be set only for the black pixel.

【0033】第1判定手段21は、注目画素が予め定め
られた画素数以下の黒画素群(最低限保存すべき数mの
黒画素群)を構成する画素であるか否かと、黒画素(注
目画素)の右側あるいは下側に白線(白画素)が存在す
るか否か、すなわち黒画素である注目画素が予め定めら
れた画素数以上の黒画素群の端部に位置する画素である
か否か(白線太線化が可能な画素であるか否か)を判定
するものである。
The first judging means 21 determines whether or not the pixel of interest is a pixel constituting a black pixel group having a predetermined number of pixels or less (a minimum number m of black pixel groups to be stored), and Whether or not a white line (white pixel) exists on the right side or lower side of the target pixel), that is, whether the target pixel, which is a black pixel, is a pixel located at an end of a black pixel group having a predetermined number of pixels or more The determination is made as to whether or not the pixel is a pixel that can be thickened with a white line.

【0034】この第1判定手段21には、データ記憶部
10から j-(n+1+m)番目〜 j-n番目までのm+2ライン
分の画素データDのうち、注目画素P(i,j-(n+1)) を含
む (m+2)×(m+2) 画素分の画像データDが入力される
(図2(a)参照)。なお、後述するように、第1判定
手段21は、予め設定された、保存すべき黒画素群を示
すパターン(判定用テンプレート)との間でパターンマ
ッチングを行ない、判定結果を第3判定手段23に入力
するものであるが、この判定処理に際しては、入力され
た (m+2)×(m+2) 画素分の全画素データDを用いるので
はなく、そのうち、主走査方向(縦線)の判定の際に
は、D(i-m,j-(n+1)) ,…,D(i-1,j-(n+1)) ,D(i,j
-(n+1)) ,D(i+1,j-(n+1)) を、副走査方向(横線)の
判定の際には、D(i,j-(n+1+m)) ,…,D(i,j-(n+2))
,D(i,j-(n+1)) ,D(i,j-n) を使用する。このよう
に、必ずしも使用しないデータを第1判定手段21に入
力しているのは回路構成上の都合による。したがって、
第1判定手段21には、少なくとも主走査方向および副
走査方向の判定の際に用いられる上記各データが入力さ
れるようにすればよい。
The first determination means 21 stores the target pixel P (i, j-j) in the pixel data D for the (m + 2) lines from the j- (n + 1 + m) th to jnth from the data storage unit 10. Image data D for (m + 2) × (m + 2) pixels including (n + 1)) is input (see FIG. 2A). As described later, the first determination unit 21 performs pattern matching with a preset pattern (determination template) indicating a black pixel group to be stored, and determines the determination result by the third determination unit 23. In this determination processing, the input pixel data D of (m + 2) × (m + 2) pixels is not used, but the main scanning direction (vertical line) is used. , D (im, j- (n + 1)),..., D (i-1, j- (n + 1)), D (i, j
-(n + 1)) and D (i + 1, j- (n + 1)) are determined by D (i, j- (n + 1 + m) in the sub-scanning direction (horizontal line). ), ..., D (i, j- (n + 2))
, D (i, j- (n + 1)) and D (i, jn). The reason why the data that is not necessarily used is input to the first determination unit 21 is due to the circuit configuration. Therefore,
The first determination unit 21 may be configured to receive at least the above-described data used in determining the main scanning direction and the sub-scanning direction.

【0035】第1判定手段21における判定処理に際し
て用いられるパターンの一例(m=1および任意の場
合)を図3に示す。図3(a),(c)は縦線の判定を
行なうためのパターンを示し、同図(b),(d)は横
線の判定を行なうためのパターンを示す。第1判定手段
21は、画素データD(i-m,j-(n+1)) ,…,D(i-1,j-
(n+1)) ,D(i,j-(n+1)) ,D(i+1,j-(n+1)) の画素配
列パターンと図3(c)の画素配列パターンが一致した
ときに、縦線に関する判定結果ax を、白線太線化が可
能であることを示す「1」にし、一致しないときは白線
太線化が不可能であることを示す「0」にする。同様
に、画素データD(i,j-(n+1+m)) ,…,D(i,j-(n+2))
,D(i,j-(n+1)) ,D(i,j-n) の画素配列パターンと
図3(d)の画素配列パターンが一致したときに、横線
に関する判定結果ay を、白線太線化が可能であること
を示す「1」にし、一致しないときは白線太線化が不可
能であることを示す「0」にする。これにより、白線を
太らせても隣の黒画素群に大きな影響を与えないかどう
かが判定され、大きな影響を与えない場合に限って、白
黒反転可能な画素であると判定することができる。
FIG. 3 shows an example (m = 1 and any case) of a pattern used in the judgment processing in the first judgment means 21. FIG. 3A and 3C show patterns for determining a vertical line, and FIGS. 3B and 3D show patterns for determining a horizontal line. The first determination means 21 determines whether the pixel data D (im, j- (n + 1)),..., D (i-1, j-
(n + 1)), D (i, j- (n + 1)), D (i + 1, j- (n + 1)) and the pixel array pattern in FIG. At this time, the determination result a x relating to the vertical line is set to “1” indicating that white line thickening is possible, and “0” indicating that white line thickening is impossible when they do not match. Similarly, pixel data D (i, j- (n + 1 + m)),..., D (i, j- (n + 2))
, D (i, j- (n + 1)), D (i, jn) and the pixel array pattern of FIG. 3D, the determination result a y on the horizontal line is represented by the white thick line The value is set to “1” indicating that it is possible to change the color to “1”. Thus, it is determined whether or not the thickening of the white line does not greatly affect the adjacent black pixel group, and only when it does not have a great effect, it can be determined that the pixel can be inverted between black and white.

【0036】画素幅検出手段24は、黒画素に隣接し
て、予め定められた画素数以下の白画素が連続して存在
するか否か、すなわち太線化を行うべき所定画素幅(前
記最大値n)以下の白画素群(細い白線)が存在するか
否かを検出するものである。
The pixel width detecting means 24 determines whether or not white pixels having a predetermined number of pixels or less are continuously present adjacent to the black pixels, that is, a predetermined pixel width to be thickened (the maximum pixel width). n) It is to detect whether or not the following white pixel group (thin white line) exists.

【0037】この画素幅検出手段24には、最新の画素
の含まれるj番目のラインと、データ記憶部10から j
-1番目〜 j-(n+1)番目までのn+1ライン分の、計n+
2ライン分の画素データDのうち、注目画素P(i,j-(n+
1)) を含む (n+2)×(n+2) 画素分の画素データDが入力
される(図2(b)参照)。なお、後述するように、画
素幅検出手段24は、予め設定された、白線太線化を行
なうべき白画素群を示すパターン(線幅検出用テンプレ
ート)との間でパターンマッチングを行ない、判定結果
を第3判定手段23に入力するものであるが、この判定
処理に際しては、入力された (n+2)×(n+2) 画素分の全
画素データDを用いるのではなく、そのうち、主走査方
向(縦線)の判定の際には、D(i,j-(n+1)) ,D(i+1,j
-(n+1)),…,D(i+(n+1),j-(n+1)) を、副走査方向
(横線)の判定の際には、D(i,j-(n+1)) ,D(i,j-n)
,…,D(i,j) を使用する。このように、必ずしも使
用しないデータを画素幅検出手段24に入力しているの
は、上記第1判定手段21における場合と同様に回路構
成上の都合による。したがって、画素幅検出手段24に
は、少なくとも主走査方向および副走査方向の判定の際
に用いられる上記各データが入力されるようにすればよ
い。
The pixel width detection means 24 stores the j-th line containing the latest pixel and the data storage unit 10
N + 1 lines from the -1st to j- (n + 1) ths, for a total of n +
Of the pixel data D for two lines, the target pixel P (i, j- (n +
The pixel data D for (n + 2) × (n + 2) pixels including (1)) is input (see FIG. 2B). As will be described later, the pixel width detection unit 24 performs pattern matching with a preset pattern (line width detection template) indicating a white pixel group to be subjected to white line thickening, and determines the determination result. The data is input to the third determination means 23. In this determination processing, the input (n + 2) × (n + 2) pixels are not used for all pixel data D. When determining the direction (vertical line), D (i, j- (n + 1)) and D (i + 1, j
-(n + 1)),..., D (i + (n + 1), j- (n + 1)) are determined as D (i, j- (n +1)), D (i, jn)
, ..., D (i, j) are used. The reason why the data which is not necessarily used is input to the pixel width detecting means 24 is due to the circuit configuration as in the case of the first determining means 21. Therefore, the above-described data used for determining at least the main scanning direction and the sub-scanning direction may be input to the pixel width detection unit 24.

【0038】画素幅検出手段24における判定処理に際
して用いられるパターンの一例を図4に示す。図4
(a)は、n=3とした場合における、縦線の判定を行
なうためのパターンを示し、同図(b)は横線の判定を
行なうためのパターンを示す。なお、wは白線の画素幅
であり、画素幅検出手段24においては、各図に示すよ
うに、1〜nまでの各wに対応するパターンが用いら
れ、各パターンごとに線幅検出が行なわれる。
FIG. 4 shows an example of a pattern used in the judgment processing in the pixel width detecting means 24. FIG.
(A) shows a pattern for determining a vertical line when n = 3, and (b) shows a pattern for determining a horizontal line. Note that w is the pixel width of the white line, and the pixel width detecting means 24 uses patterns corresponding to each of w from 1 to n as shown in each drawing, and performs line width detection for each pattern. It is.

【0039】画素幅検出手段24は、画素データD(i,j
-(n+1)) ,D(i+1,j-(n+1)) ,…,D(i+(n+1),j-(n+
1)) の画素配列パターンと図4(a)の各wについての
画素配列パターンが一致したときに、縦線に関する検出
結果bx(w)を、各線幅wの縦線(白画素)が検出された
ことを示す「1」にし、一致しないときは各線幅wの縦
線が検出されなかったことを示す「0」にする。同様
に、画素データD(i,j-(n+1)) ,D(i,j-n) ,…,D
(i,j) の画素配列パターンと図4(b)の各wについて
の画素配列パターンが一致したときに、横線に関する検
出結果by(w)を、各線幅wの横線(白画素)が検出され
たことを示す「1」にし、一致しないときは各線幅wの
縦線が検出されなかったことを示す「0」にする。
The pixel width detecting means 24 outputs the pixel data D (i, j
-(n + 1)), D (i + 1, j- (n + 1)), ..., D (i + (n + 1), j- (n +
When the pixel array pattern of 1)) matches the pixel array pattern of each w in FIG. 4A, the detection result b x (w) for the vertical line is determined by the vertical line (white pixel) of each line width w. The value is set to "1" indicating that detection has been performed, and if not coincident, the value is set to "0" indicating that a vertical line having each line width w has not been detected. Similarly, pixel data D (i, j- (n + 1)), D (i, jn),.
(i, j) when the pixel array pattern for each w of pixel array pattern and figure 4 (b) are matched, the result detected regarding horizontal b y (w), each line width w of the horizontal line (white pixels) The value is set to "1" indicating that detection has been performed, and if not coincident, the value is set to "0" indicating that a vertical line having each line width w has not been detected.

【0040】第2判定手段22には、画素幅検出手段2
4からの各検出結果bx(w),by(w)(W=1〜n)が入
力される。この第2判定手段22においては、縦線に関
する各検出結果bx(w)の論理和dx と、横線に関する各
検出結果by(w)の論理和dyを取る。これを論理式で表
すと式(1)となる。各論理和dx ,dy が「1」であ
るときには、黒画素に隣接して所定画素幅(前記最大値
n)以下の白画素群が存在することを示し、「0」であ
るときには、黒画素に隣接して所定画素幅以下の白画素
群が存在しないことを示す。つまり、画素幅検出手段2
4と第2判定手段22で、黒画素に隣接して、太線化を
行うべき所定画素幅以下の白画素が連続して存在するか
否か(細い白線が存在するか否か)を判定する手段とし
て機能している。
The second determining means 22 includes the pixel width detecting means 2
Each detection result from 4 b x (w), b y (w) (W = 1~n) is input. In the second determination unit 22 takes a logical sum d x of the detection result b x (w) about a vertical line, the logical sum d y of the detection result about the horizontal line b y (w). When this is represented by a logical expression, Expression (1) is obtained. When each of the logical sums d x and dy is “1”, it indicates that there is a white pixel group having a predetermined pixel width (the maximum value n) or less adjacent to the black pixel, and when “0”, This indicates that there is no white pixel group having a predetermined pixel width or less adjacent to the black pixel. That is, the pixel width detecting means 2
4 and the second determination means 22 determines whether or not there is a continuous white pixel having a predetermined pixel width or less to be thickened adjacent to the black pixel (whether or not a thin white line exists). It functions as a means.

【0041】[0041]

【数1】 第3判定手段23には、第1判定手段21の判定結果a
x ,ay と、第2判定手段23の判定結果としての論理
和dx ,dy が入力される。第3判定手段23は、
x ,ay とdx ,dy とに基づいて、白線太線化処理
を行なうべきか否かを判定する。判定の条件は、縦線ま
たは横線のいずれかにおいて、第1判定手段21と第2
判定手段22の出力が共に「1」であるとき、判定結果
eを、白線太線化処理を行なうべきことを示す「1」と
し、これが満たされないときには判定結果eを、白線太
線化処理を行なうべきでないことを示す「0」とする。
これを論理式で表すと式(2)となる。
(Equation 1) The third determination means 23 includes a determination result a of the first determination means 21.
x, and a y, logical OR d x as the determination result of the second judging means 23, d y is input. The third determination means 23 is
a x, a y and d x, based on the d y, determines whether to perform the white line thickening process. The condition for the judgment is that the first judgment means 21 and the second judgment
When both the outputs of the judging means 22 are "1", the judgment result e is set to "1" indicating that the white line thickening processing should be performed, and when this is not satisfied, the judgment result e should be white line thickening processing It is set to “0” indicating that this is not the case.
When this is expressed by a logical expression, it becomes Expression (2).

【0042】[0042]

【数2】 この式(2)から判るように、第3判定手段23は、注
目画素が予め定められた画素数m以下の黒画素群の端部
に位置する画素であり、かつ、黒画素(注目画素)に隣
接して、予め定められた画素幅n以下の白画素が連続し
て存在する(つまり画素幅n以下の白線が存在する)と
きにのみ判定結果eを「1」とする。
(Equation 2) As can be seen from Expression (2), the third determination unit 23 determines that the target pixel is a pixel located at an end of a black pixel group having a predetermined number m or less of pixels and a black pixel (target pixel) The determination result e is set to "1" only when white pixels having a predetermined pixel width n or less continuously exist adjacent to (i.e., a white line having a pixel width n or less exists).

【0043】白黒反転部30には、 j-(n+1)番目のライ
ンの注目画素P(i,j-(n+1)) のデータD(i,j-(n+1)) が
データ記憶部10から入力されると共に、第3判定手段
23から判定結果eが入力される。
The data D (i, j- (n + 1)) of the target pixel P (i, j- (n + 1)) on the j- (n + 1) -th line is stored in the black-and-white inversion unit 30. The determination result e is input from the third determination unit 23 while being input from the data storage unit 10.

【0044】白黒反転部30は、第3判定手段23から
の判定結果eが「1」であるときには、注目画素P(i,j
-(n+1)) は黒画素であるので、黒画素を示す画素データ
D(i,j-(n+1))を白画素を示すデータ値に反転(ネガポ
ジ反転)して出力し、判定結果eが「0」のときには入
力された注目画素のデータ値をそのまま出力して、印字
データD1とする。ここで、所定画素幅n以下の白線が
検出されたときの注目画素(i,j-(n+1)) の位置は白線と
隣り合う画素数m+1以上の黒画素群を構成する黒画素
であるため、この黒画素を白画素に反転する白線太線化
処理により、白線は1画素幅分太る。一方、所定画素幅
n以下の白線が検出された場合であっても、この白線と
隣り合う黒画素が画素数m+1以上の黒画素群を構成す
るものでないときには白線太線化処理の対象画素とはな
らない。これにより、所定画素幅m+1の黒画素群に隣
接して存する、所定画素幅n以下の細い白線のみが1画
素幅分だけ太線化されることになり、潰れの目立つよう
な細い白線の潰れを目立たなくすることができる。
When the judgment result e from the third judgment means 23 is "1", the black-and-white inversion unit 30 outputs the target pixel P (i, j
-(n + 1)) is a black pixel, so pixel data D (i, j- (n + 1)) indicating a black pixel is inverted (negative-positive inversion) and output as a data value indicating a white pixel. When the determination result e is “0”, the input data value of the target pixel is output as it is, and is set as print data D1. Here, when a white line having a predetermined pixel width n or less is detected, the position of the target pixel (i, j- (n + 1)) is a black pixel constituting a black pixel group of m + 1 or more pixels adjacent to the white line. Therefore, the white line is thickened by one pixel width by the white line thickening process of inverting the black pixel to the white pixel. On the other hand, even when a white line having a predetermined pixel width n or less is detected, if a black pixel adjacent to this white line does not constitute a black pixel group having a pixel number of m + 1 or more, the target pixel of the white line thickening process is No. As a result, only a thin white line having a predetermined pixel width n or less, which is adjacent to a black pixel group having a predetermined pixel width m + 1, is thickened by one pixel width. It can be less noticeable.

【0045】例えば、図5(a)に示すように1画素幅
の白線のある2値画像を示す画像データDに基づいて印
刷すると、従来であれば図5(b)に示すように潰れ気
味に印刷されてしまう。これに対し、本願発明を適用す
ることにより、画像データDを、図5(c)に示すよう
に2画素幅の白線のある2値画像を表す印字データD1
に変換することができ、この変換された印字データD1
に基づいて印刷すると、図5(d)に示すように潰れの
ない白線として印刷することができる。
For example, when printing is performed based on image data D representing a binary image having a white line having a width of one pixel as shown in FIG. 5A, if it is conventional, it tends to collapse as shown in FIG. 5B. Will be printed. On the other hand, by applying the present invention, the image data D is converted into print data D1 representing a binary image having a white line having a width of two pixels as shown in FIG.
And the converted print data D1
When printing is performed on the basis of, the image can be printed as a white line without crushing as shown in FIG.

【0046】また、第1判定手段21において、注目画
素が最低限保存すべき数mの黒画素群を構成する画素で
あるか否かを判定し、該当する場合にはネガポジ反転を
許容しない旨の判定結果「0」を出力しているので、m
+1画素幅の黒画素群の白画素(白線)に隣接する黒画
素のみが白画素に反転されることとなり、白線太線化処
理を施した際に、最低限m=1としておくことで、1画
素幅の黒線を消してしまうことがなく、mを1以上とす
れば、白線の隣にあるm画素幅の黒線を細らせてしまう
ことがない。
Further, the first judging means 21 judges whether or not the pixel of interest is a pixel constituting a minimum number m of black pixel groups to be preserved, and if so, negative reversal is not permitted. Since the judgment result “0” is output, m
Only a black pixel adjacent to a white pixel (white line) of a black pixel group having a width of +1 pixel is inverted to a white pixel, and when the white line thickening processing is performed, at least m = 1 is set so that 1 If the black line having the pixel width is not erased, and if m is set to 1 or more, the black line having the pixel width of m adjacent to the white line will not be thinned.

【0047】例えば、画像データDが1画素幅の白線
(縦線)のある2値画像を表している場合において、m
=1とした場合には、図6(a)に示すように、白線の
左側に2画素幅以上の黒画素があるときには、図3
(a)に示す判定パターンにより白線の隣1画素幅分の
黒画素が白線太線化処理が可能な画素と判定される。こ
れに対して、図6(b)に示すように、白線の左側に2
画素幅以上の黒画素がないときには、所定画素幅n以下
の白線が検出された場合であっても、白線に隣接する黒
画素を白線太線化処理が可能な画素と判定することはな
い。
For example, when the image data D represents a binary image having a white line (vertical line) of one pixel width, m
= 1, as shown in FIG. 6A, when there is a black pixel having a width of two pixels or more on the left side of the white line,
According to the determination pattern shown in (a), a black pixel corresponding to one pixel width adjacent to the white line is determined as a pixel that can be subjected to white line thickening processing. On the other hand, as shown in FIG.
When there is no black pixel larger than the pixel width, even if a white line smaller than the predetermined pixel width n is detected, a black pixel adjacent to the white line is not determined to be a pixel capable of performing the white line thickening process.

【0048】また、画素幅検出手段24において、1〜
n画素幅の白線を検出し、該当する白線が検出された場
合にのみネガポジ反転を許容する旨の判定結果「0」を
第2判定手段22から出力しているので、m+1画素幅
の黒画素群の白線に隣接する画素のうち、n画素幅以下
の白線に隣接する黒画素のみを白線太線化処理の対象と
することができる。これにより、白潰れが生じて問題と
なる幅n以下の細い白線のみを太らせ、白潰れが生じて
も問題とならないくらい十分に広い白線は白線太線化処
理の対象外とすることができるので、白潰れを防止しつ
つ、黒画素を可能な限り原画像そのものを表すように残
すことができる。
In the pixel width detecting means 24, 1 to
Since the white line having the width of n pixels is detected, and the determination result “0” indicating that the negative-positive inversion is permitted is output from the second determination unit 22 only when the white line is detected, the black pixel having the width of m + 1 pixels is obtained. Of the pixels adjacent to the white line of the group, only the black pixels adjacent to the white line having a width of n pixels or less can be subjected to the white line thickening processing. As a result, only a thin white line having a width n or less, which is a problem due to white crushing, can be thickened, and a white line sufficiently wide enough to cause no problem even when white crushing occurs can be excluded from the white line thickening processing. In addition, black pixels can be left so as to represent the original image as much as possible while preventing whitening.

【0049】例えば、n=2とし縦線を検出する場合に
は、図4(a)に示す各画素幅wの判定パターンによ
り、図7(a)に示す1画素幅、および図7(b)に示
す2画素幅の白線に隣接する黒画素のみが白線太線化処
理が可能な画素と判定され、図7(c)に示す3画素幅
の白線に隣接する黒画素は白線太線化処理が可能な画素
と判定されない。
For example, when a vertical line is detected with n = 2, one pixel width shown in FIG. 7A and a pixel width shown in FIG. Only the black pixels adjacent to the two-pixel wide white line shown in FIG. 7) are determined to be pixels capable of white line thickening processing, and the black pixels adjacent to the three-pixel wide white line shown in FIG. Not determined as a possible pixel.

【0050】なお、極端に細い白線は潰れてもかまわな
いというときには、n1(≠1)〜n2の画素幅の白線
を検出するように設定しても構わない。また、唯一の線
幅の白線のみを検出するように図4に示すwを固定して
もかまわない。
When an extremely thin white line can be crushed, it may be set so as to detect a white line having a pixel width of n1 (≠ 1) to n2. Further, w shown in FIG. 4 may be fixed so that only a white line having a single line width is detected.

【0051】また、上記説明では、注目画素が白線太線
化が可能な画素であるか否かを判定する第1判定手段2
1と、黒画素に隣接して太線化を行うべき細い白線が存
在するか否かを判定する画素幅検出手段24および第2
判定手段22を設け、注目画素が白線太線化が可能な画
素であるか否かを第3判定手段23により総合的に判定
する構成として説明したが、注目画素が予め定められた
画素数以下の黒画素群を構成する画素でなく、かつ、黒
画素(注目画素)に隣接して、予め定められた画素幅以
下の白画素が連続して存在する(つまり所定幅以下の白
線が存在する)か否かを判定する統合した判定パターン
を用意し、判定処理を1度の処理として行なってもよ
い。図8は、統合した判定パターンの一例を示す図であ
って、上記説明におけるm=1、n=3の場合を図8
(a),(b)に、m=2、n=3の場合を図8
(c),(d)に示している。
In the above description, the first determination means 2 determines whether or not the target pixel is a pixel capable of making the white line thicker.
1 and a pixel width detecting means 24 for determining whether there is a thin white line to be thickened adjacent to a black pixel and a second
Although the determination unit 22 is provided and the third determination unit 23 comprehensively determines whether or not the target pixel is a pixel capable of forming a thick white line, the target pixel is equal to or less than a predetermined number of pixels. A white pixel having a predetermined pixel width or less continuously exists not as a pixel constituting the black pixel group but adjacent to a black pixel (target pixel) (that is, a white line having a predetermined width or less exists). An integrated judgment pattern for judging whether or not may be prepared, and the judgment processing may be performed as one processing. FIG. 8 is a diagram showing an example of an integrated determination pattern. FIG. 8 shows a case where m = 1 and n = 3 in the above description.
FIGS. 8A and 8B show a case where m = 2 and n = 3.
(C) and (d).

【0052】次に、本発明の第2の実施の形態による画
像処理方法を実現する画像処理装置について説明する。
図9は本発明の第2の実施の形態による画像処理装置の
概略構成を示すブロック図である。
Next, an image processing apparatus for realizing the image processing method according to the second embodiment of the present invention will be described.
FIG. 9 is a block diagram showing a schematic configuration of an image processing device according to the second embodiment of the present invention.

【0053】この第2の実施の形態による画像処理装1
は、基本的に上記第1の実施の形態による画像処理装置
1と同様の構成を備えている。異なるのは、図9に示す
ように、判定部20を、履歴検出手段25および履歴記
憶手段26をさらに備えた構成とすると共に、第2判定
手段における判定処理のアルゴリズムを変更した点であ
る。以下、この異なる点について説明する。
The image processing apparatus 1 according to the second embodiment
Has basically the same configuration as the image processing apparatus 1 according to the first embodiment. The difference is that, as shown in FIG. 9, the determination unit 20 is further provided with a history detection unit 25 and a history storage unit 26, and the algorithm of the determination process in the second determination unit is changed. Hereinafter, this different point will be described.

【0054】履歴記憶手段26は、第3判定手段23の
判定結果eの履歴を、注目画素P(i,j-(n+1)) の左隣の
画素P(i-1,j-(n+1)) より注目画素の上隣の画素P(i,j
-(n+2)) までの1ライン分だけ保存しておくものであ
る。
The history storage means 26 stores the history of the judgment result e of the third judgment means 23 in the pixel P (i-1, j- (n) adjacent to the left of the pixel of interest P (i, j- (n + 1)). n + 1)) and the pixel P (i, j
Only one line up to-(n + 2)) is saved.

【0055】履歴検出手段25は、履歴記憶手段26か
ら注目画素の上隣と左隣の画素における判定結果eの値
を読み込み、上隣の画素における判定結果e(i,j-(n+
2)) をcx 、左隣の画素における判定結果e(i-1,j-(n+
1)) をcy として出力する。すなわち、cx は縦線の履
歴を、cy は横線の履歴を表し、値が「1」のときには
白線太線化処理が行なわれたことを表し、値が「0」の
ときには、白線太線化処理が行なわれなかったことを表
す。
The history detection unit 25 reads the value of the determination result e for the pixel on the upper and left sides of the target pixel from the history storage unit 26, and determines the determination result e (i, j- (n +
2)) is c x , and the determination result e (i-1, j- (n +
1)) is output as c y . That is, the history of the c x is the vertical line, c y represents the history of the horizontal line, it indicates that the white line thickening process is performed when the value is "1", when the value is "0", white bolding Indicates that no processing was performed.

【0056】第2判定手段22には、画素幅検出手段2
4からの各検出結果bx(w),by(w)に加えて、履歴検出
手段25の各検出結果cx ,cy が入力される。第2
の実施の形態による第2判定手段22においては、縦線
に関する各検出結果bx(w),cx の論理和dx と、横線
に関する各検出結果by(w),cy の論理和dy を取る。
これを論理式で表すと式(3)となる。論理和dx
「1」であるときには、黒画素の右隣に隣接して所定画
素幅(前記最大値n)以下の白画素群が存在するか、あ
るいは上隣の画素が白線太線化処理の対象た画素である
ことを示し、「0」であるときには、黒画素の右隣に隣
接して画素幅n以下の白画素群が存在せず、且つ上隣の
画素が白線太線化処理の対象外であることを示す。ま
た、論理和d y が「1」であるときには、黒画素の下隣
に隣接して画素幅n以下の白画素群が存在するか、ある
いは左隣の画素が白線太線化処理の対象画素であること
を示し、「0」であるときには、黒画素の下隣に隣接し
て画素幅n以下の白画素群が存在せず、且つ左隣の画素
が白線太線化処理の対象外であることを示す。つまり、
画素幅検出手段24と第2判定手段22と履歴検出手段
25と履歴記憶手段36で、黒画素に隣接して太線化を
行うべき所定画素幅以下の白画素が連続して存在する
か、またはこの黒画素の上隣画素(横線検出のとき)あ
るいは左隣画素(縦線検出のとき)が白線太線化処理の
対象画素であるか否かを判定する手段として機能してい
る。
The second determining means 22 includes the pixel width detecting means 2
Each detection result b from 4x(w), byHistory detection in addition to (w)
Each detection result c of the means 25x, CyIs entered. Second
In the second determination means 22 according to the embodiment, the vertical line
Each detection result bx(w), cxLogical sum d ofx And the horizontal line
Each detection result by(w), cyLogical sum d ofy I take the.
When this is represented by a logical expression, Expression (3) is obtained. Logical sum dxBut
When it is “1”, a predetermined image is adjacent to the right of the black pixel.
Whether a white pixel group having a width equal to or smaller than the element width (the maximum value n) exists or not.
Or, the pixel on the upper side is the pixel on which the white line thickening process is performed.
When it is “0”, it is right next to the black pixel.
There is no white pixel group having a pixel width n or less
This indicates that the pixel is not subject to the white line thickening processing. Ma
OR y Is “1”, next to the black pixel
A white pixel group having a pixel width n or less exists adjacent to
Or the pixel on the left is the target pixel for the white line thickening process
When it is “0”, it is adjacent to and below the black pixel.
And there is no white pixel group with a pixel width n or less, and the pixel on the left is
Indicates that the line is not the target of the white line thickening process. That is,
Pixel width detecting means 24, second determining means 22, and history detecting means
25 and the history storage means 36, a thick line is
There are consecutive white pixels that are smaller than the specified pixel width to be performed
Or the pixel above the black pixel (when horizontal line is detected)
Or, the pixel on the left (when detecting a vertical line)
Function as a means for determining whether the pixel is the target pixel.
You.

【0057】[0057]

【数3】 この式(3)から判るように、第2判定手段22は、画
素幅検出手段24において、太線化処理の対象とすべき
1〜n画素幅の白線を検出できなかったときであって
も、黒画素である注目画素の上隣(横線検出のとき)あ
るいは左隣(縦線検出のとき)の画素が白線太線化処理
の対象画素であるときには、判定結果dx,dy
「1」とする。
(Equation 3) As can be seen from the equation (3), even when the pixel width detection unit 24 cannot detect a white line having a width of 1 to n pixels to be subjected to the thickening process, the second determination unit 22 If the pixel immediately above (at the time of horizontal line detection) or left (at the time of vertical line detection) a target pixel that is a black pixel is a target pixel of the white line thickening process, the determination results d x and dy are set to “1”. And

【0058】したがって、第3判定手段23は、黒画素
の上隣(横線検出のとき)や左隣(縦線検出のとき)の
画素が白線太線化処理の対象画素であるときには、1〜
n画素幅の白線が部分的に画素幅n以上となっている場
合であっても、画素幅n以下の白線と任意の画素幅の白
線とがぶつかっている部分であると判断し、この部分に
隣接する黒画素は白線太線化処理を行なうことが適切な
画素である旨を示すように判定結果eを「1」とする。
これにより、画素幅n以下の白線と任意の画素幅の白線
とがぶつかっている所(画素幅n以下の白線が部分的に
太くなっている所)だけ白線太線化が行なわれず、元の
線には現れていなかった「がたつき」が新たに発生する
という問題を生じない。
Therefore, when the pixel immediately above (when detecting a horizontal line) or left (when detecting a vertical line) the black pixel is the target pixel of the white line thickening process, the third determination means 23 determines that
Even when the white line having the pixel width of n is partially equal to or larger than the pixel width n, it is determined that the white line having the pixel width of n or less and the white line having an arbitrary pixel width collide with each other. The determination result e is set to “1” so as to indicate that the black pixel adjacent to is a pixel that is suitable for performing the white line thickening process.
As a result, the white line is not thickened only when the white line having the pixel width n or less and the white line having an arbitrary pixel width collide (where the white line having the pixel width n or less is partially thickened). This does not cause a problem that "rattle" which has not appeared in the above is newly generated.

【0059】例えば、m=1,n=3とした場合におい
て、図10(a)に示すようにTの字を横に配置したよ
うな1画素幅の白線のある画像を表す画像データDにつ
いて白線太線化処理を行なう場合、第1の実施の形態で
は、図10(b)に示すように縦線と横線がぶつかる所
Q(図中△印)の左側の黒画素の上下の数画素は白線太
線化処理の対象画素として判定される一方、画素Qは右
側および上下に延びる4画素以上の白線を構成するた
め、この画素Qの左側の黒画素は白線太線化処理の対象
画素として判定されない。このため、図10(c)に示
すように「がたつき」の有する印字データD1が生成さ
れ、該印字データD1に基づいて印刷すると、印刷ドッ
ト径の大きさに拘わらず「がたつき」のある線が印字さ
れる。
For example, in the case where m = 1 and n = 3, as shown in FIG. 10 (a), image data D representing an image having a white line of 1 pixel width such that a letter T is arranged horizontally. When the white line thickening process is performed, in the first embodiment, as shown in FIG. 10B, several pixels above and below the black pixel on the left side of the point Q (△ in the figure) where the vertical line and the horizontal line meet are shown. While the pixel Q is determined as a target pixel of the white line thickening process, the pixel Q forms a white line of four or more pixels extending rightward and vertically, and a black pixel on the left side of the pixel Q is not determined as a target pixel of the white line thickening process. . For this reason, as shown in FIG. 10C, print data D1 having “rattle” is generated, and when printing is performed based on the print data D1, “rattle” is generated regardless of the size of the print dot diameter. Is printed.

【0060】これに対し、第2の実施の形態を適用する
ことにより、画素Qの左上隣の画素は白線太線化処理の
対象画素であるので、画素Qの左隣の黒画素は、画素Q
の右側あるいは上下に白画素が何個存在するかに拘わら
ず判定結果dx を「1」、すなわち白線太線化処理の対
象画素として判定することができる。したがって、図1
0(e)に示すように「がたつき」のない印字データD
1が生成され、縦線と横線がぶつかる所でも、線の「が
たつき」が起こらない、より品質のよい印刷物にするこ
とができる。
On the other hand, by applying the second embodiment, the pixel on the upper left of the pixel Q is the target pixel for the white line thickening process, and the black pixel on the left of the pixel Q is the pixel Q
Regardless of how many white pixels exist on the right side or above and below, the determination result d x can be determined to be “1”, that is, the target pixel of the white line thickening process. Therefore, FIG.
0 (e), the print data D without “rattle”
1 is generated, and even in a place where a vertical line and a horizontal line meet, it is possible to obtain a higher quality printed matter in which the line does not “jitter”.

【0061】以上本発明による画像処理方法および装置
の好ましい実施の形態について説明したが、本発明は必
ずしも上述した実施の形態に限定されるものではない。
Although the preferred embodiments of the image processing method and apparatus according to the present invention have been described above, the present invention is not necessarily limited to the above-described embodiments.

【0062】例えば、第1の実施の形態による画像処理
装置1の第3判定手段23において、第2判定手段22
の判定結果を無視する構成、換言すれば、判定部20
を、第1判定手段21のみからなる構成とし、判定結果
x ,ay を白黒反転部30に直接入力することもでき
る。この場合、当然ではあるが、第2の実施の形態によ
る構成とするまでもなく、縦線と横線がぶつかる所に隣
接する黒画素についても白線太線化処理の対象画素とし
て判定することができ、図10(e)に示すように、縦
線と横線がぶつかる所でも「がたつき」のない印字デー
タD1が生成される。
For example, in the third determining means 23 of the image processing apparatus 1 according to the first embodiment, the second determining means 22
In other words, the determination unit 20 ignores the determination result.
Can be configured to include only the first determination unit 21 and the determination results a x and a y can be directly input to the black-and-white inversion unit 30. In this case, needless to say, the black pixel adjacent to the position where the vertical line and the horizontal line meet can be determined as the target pixel of the white line thickening process without needing to adopt the configuration according to the second embodiment. As shown in FIG. 10 (e), print data D1 without "rattle" is generated even where a vertical line and a horizontal line meet.

【0063】また、上記説明においては縦線あるいは横
線について判定処理や線幅検出処理を行なうようにして
いたが、判定や線幅検出の際に使用されるパターン(テ
ンプレート)を斜め方向に設定すれば、斜め線について
白線太線化処理を行なうようにすることもできる。
In the above description, the judgment processing and the line width detection processing are performed on the vertical line or the horizontal line. However, the pattern (template) used for the judgment and the line width detection is set obliquely. For example, white line thickening processing can be performed on oblique lines.

【0064】また、上記説明は、白画素潰れを防止する
ために白線太線化処理を行なうものとして説明したもの
であるが、上記説明における白画素と黒画素との関係を
逆にすることにより、黒線掠れを防止するために黒線太
線化処理を行なう構成とすることもできる。
In the above description, white line thickening processing is performed to prevent white pixel collapse. However, by reversing the relationship between white pixels and black pixels in the above description, A configuration in which black line thickening processing is performed to prevent black line blurring may be employed.

【0065】さらに上記説明では、線の長さについては
特に問題としていなかったが、所定の長さの線について
のみ、上記処理を施すようにすることもできる。
Further, in the above description, the length of the line is not a particular problem, but the above processing can be performed only on a line having a predetermined length.

【0066】また、上記説明では、所定条件に合致する
線幅を1画素分だけ太らせるものとして説明したが、本
発明は線に限らず、通常の画像を表す2値画像に適用す
ることもできる。
In the above description, the line width meeting the predetermined condition is assumed to be increased by one pixel. However, the present invention is not limited to the line, and may be applied to a binary image representing a normal image. it can.

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

【図1】本発明の第1の実施の形態による画像処理装置
の概略構成を示すブロック図
FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus according to a first embodiment of the present invention;

【図2】第1判定手段の判定処理に使用される画像デー
タを説明する図(a)、画素幅検出手段の検出処理に使
用される画像データを説明する図(b)
FIG. 2A is a diagram illustrating image data used in a determination process of a first determination unit, and FIG. 2B is a diagram illustrating image data used in a detection process of a pixel width detection unit.

【図3】第1判定手段における判定処理に際して用いら
れる判定パターンの一例を示す図(a),(b)(m=
1の場合)、(c),(d)(m=任意の場合)
FIGS. 3A and 3B show an example of a determination pattern used in a determination process in a first determination unit; FIG.
1), (c), (d) (m = any case)

【図4】画素幅検出手段における検出処理に際して用い
られる検出パターンの一例(n=3)を示す図(a),
(b)
FIGS. 4A and 4B show an example (n = 3) of a detection pattern used in a detection process in a pixel width detection unit;
(B)

【図5】従来の印字結果と第1の実施の形態の効果を説
明する図
FIG. 5 is a view for explaining a conventional printing result and the effect of the first embodiment.

【図6】白線太線化処理の対象画素を説明するための図
(m=1のとき)
FIG. 6 is a diagram for explaining a target pixel of a white line thickening process (when m = 1);

【図7】白線太線化処理の対象画素を説明するための図
(n=2のとき)
FIG. 7 is a diagram for explaining a target pixel of a white line thickening process (when n = 2);

【図8】統合した判定パターンの一例を示す図であっ
て、m=1,n=3の場合(a),(b)、m=2,n
=3の場合(c),(d)
FIG. 8 is a diagram illustrating an example of an integrated determination pattern, where (a), (b), and m = 2, n when m = 1 and n = 3;
= 3 (c), (d)

【図9】本発明の第2の実施の形態による画像処理装置
の概略構成を示すブロック図
FIG. 9 is a block diagram illustrating a schematic configuration of an image processing apparatus according to a second embodiment of the present invention;

【図10】第2の実施の形態の効果を説明する図FIG. 10 is a diagram illustrating an effect of the second embodiment.

【図11】画像、画像データ、および印刷ドットとの関
係を示した図であって、画像と画像データとの対応を示
した図(a)、画像データの画素形状を示した図
(b)、印刷ドット形状を示した図(c),(d)
FIGS. 11A and 11B are diagrams showing a relationship between an image, image data, and print dots, wherein FIG. 11A shows a correspondence between an image and image data, and FIG. 11B shows a pixel shape of the image data; (C), (d) showing print dot shapes

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

1 画像処理装置 10 データ記憶部 11 ラインメモリ 20 判定部 21 第1判定手段 22 第2判定手段 23 第3判定手段 24 画素幅検出手段 25 履歴検出手段 26 履歴記憶手段 30 白黒反転部 REFERENCE SIGNS LIST 1 image processing device 10 data storage unit 11 line memory 20 determination unit 21 first determination unit 22 second determination unit 23 third determination unit 24 pixel width detection unit 25 history detection unit 26 history storage unit 30 black and white inversion unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 白画素および黒画素で構成された2値
画像について、前記白画素および黒画素のうちのいずれ
か一方の画素を他方の画素に変更する画像処理方法であ
って、 前記一方の画素が予め定められた画素数以上の該一方の
画素群の端部に位置する画素であるとき、該一方の画素
を前記他方の画素に変更することを特徴とする画像処理
方法。
1. An image processing method for a binary image composed of white pixels and black pixels, wherein one of the white pixels and the black pixels is changed to the other pixel. An image processing method, wherein, when a pixel is a pixel located at an end of the one pixel group having a predetermined number of pixels or more, the one pixel is changed to the other pixel.
【請求項2】 白画素および黒画素で構成された2値
画像について、前記白画素および黒画素のうちのいずれ
か一方の画素を他方の画素に変更する画像処理方法であ
って、 前記一方の画素が予め定められた画素数以上の該一方の
画素群の端部に位置する画素であり、かつ、該一方の画
素群の配列方向とは反対方向において該一方の画素に隣
接して、予め定められた画素数の前記他方の画素が連続
して存在するとき、該一方の画素を前記他方の画素に変
更することを特徴とする画像処理方法。
2. An image processing method for changing one pixel of the white pixel and the black pixel to the other pixel for a binary image composed of white pixels and black pixels, A pixel is a pixel located at an end of the one pixel group equal to or more than a predetermined number of pixels, and is adjacent to the one pixel in a direction opposite to the arrangement direction of the one pixel group, and An image processing method, wherein, when a predetermined number of the other pixels are continuously present, the one pixel is changed to the other pixel.
【請求項3】 前記一方の画素が予め定められた画素
数以上の該一方の画素群の端部に位置する画素であり、
かつ、該一方の画素群の配列方向と交差する方向におい
て該一方の画素に隣接して前記他方の画素に変更される
画素が存在し、かつ、前記一方の画素群の配列方向とは
反対方向において前記他方の画素が少なくとも1画素分
存在するとき、該一方の画素を前記他方の画素に変更す
ること特徴とする請求項2記載の画像処理方法。
3. The method according to claim 1, wherein the one pixel is a pixel located at an end of the one pixel group having a predetermined number of pixels or more.
In addition, there is a pixel that is changed to the other pixel adjacent to the one pixel in a direction intersecting with the arrangement direction of the one pixel group, and a direction opposite to the arrangement direction of the one pixel group. 3. The image processing method according to claim 2, wherein, when the other pixel exists for at least one pixel, the one pixel is changed to the other pixel.
【請求項4】 白画素および黒画素で構成された2値
画像について、前記白画素および黒画素のうちのいずれ
か一方の画素を他方の画素に変更する白黒反転手段を備
えてなる画像処理装置であって、 前記一方の画素が予め定められた画素数以上の該一方の
画素群の端部に位置する画素であるか否かを判定する判
定手段を備え、 前記白黒反転手段が、前記判定手段の判定結果に基づい
て、前記一方の画素を前記他方の画素に変更するもので
あることを特徴とする画像処理装置。
4. An image processing apparatus comprising a black-and-white inverting means for changing one of the white pixels and the black pixels to the other of a binary image composed of white pixels and black pixels. And determining means for determining whether the one pixel is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels. An image processing apparatus according to claim 1, wherein said one pixel is changed to said other pixel based on a determination result of said means.
【請求項5】 白画素および黒画素で構成された2値
画像について、前記白画素および黒画素のうちのいずれ
か一方の画素を他方の画素に変更する白黒反転手段を備
えてなる画像処理装置であって、 前記一方の画素が予め定められた画素数以上の該一方の
画素群の端部に位置する画素であり、かつ、該一方の画
素群の配列方向とは反対方向において該一方の画素に隣
接して、予め定められた画素数の前記他方の画素が連続
して存在するか否かを判定する判定手段を備え、 前記白黒反転手段が、前記判定手段の判定結果に基づい
て、前記一方の画素を前記他方の画素に変更するもので
あることを特徴とする画像処理装置。
5. An image processing apparatus comprising a black-and-white inverting means for changing one of the white pixels and the black pixels to the other pixel in a binary image composed of white pixels and black pixels. Wherein the one pixel is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels, and the one pixel in a direction opposite to the arrangement direction of the one pixel group. Adjacent to a pixel, comprising a determination means for determining whether the other pixel of a predetermined number of pixels is continuously present, the black and white inversion means, based on the determination result of the determination means, An image processing apparatus, wherein one of the pixels is changed to the other pixel.
【請求項6】 前記判定手段が、さらに、前記一方の
画素が予め定められた画素数以上の該一方の画素群の端
部に位置する画素であり、かつ、該一方の画素群の配列
方向と交差する方向において該一方の画素に隣接して前
記他方の画素に変更される画素が存在し、かつ、該一方
の画素群の配列方向とは反対方向において前記他方の画
素が少なくとも1画素分存在するか否かを判定するもの
であることを特徴とする請求項5記載の画像処理装置。
6. The image processing apparatus according to claim 1, wherein the determining unit is further configured such that the one pixel is a pixel located at an end of the one pixel group that is equal to or more than a predetermined number of pixels, and an arrangement direction of the one pixel group. There is a pixel that is changed to the other pixel adjacent to the one pixel in a direction that intersects with the other pixel, and the other pixel has at least one pixel in a direction opposite to the arrangement direction of the one pixel group. The image processing apparatus according to claim 5, wherein it is determined whether or not the image is present.
JP2000195734A 2000-06-29 2000-06-29 Image processing method and apparatus Expired - Fee Related JP3799218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000195734A JP3799218B2 (en) 2000-06-29 2000-06-29 Image processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000195734A JP3799218B2 (en) 2000-06-29 2000-06-29 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JP2002016797A true JP2002016797A (en) 2002-01-18
JP3799218B2 JP3799218B2 (en) 2006-07-19

Family

ID=18694346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000195734A Expired - Fee Related JP3799218B2 (en) 2000-06-29 2000-06-29 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3799218B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159051A (en) * 2006-12-22 2008-07-10 Palo Alto Research Center Inc Method for decimation of image
JP2012027784A (en) * 2010-07-26 2012-02-09 Fuji Xerox Co Ltd Image processing device and program
JP2013125996A (en) * 2011-12-13 2013-06-24 Canon Inc Image processing apparatus, image processing method, and computer program
JP2014108604A (en) * 2012-12-04 2014-06-12 Canon Inc Image formation apparatus
JP2014177109A (en) * 2013-03-15 2014-09-25 Ricoh Co Ltd Image forming apparatus
JP2016052745A (en) * 2014-09-04 2016-04-14 株式会社リコー Image forming method, image forming device and production method of printed matter
JP2017094637A (en) * 2015-11-26 2017-06-01 キヤノン株式会社 Image formation device and control method thereof
JP2018024257A (en) * 2017-11-01 2018-02-15 株式会社リコー Image formation apparatus
JP2018148280A (en) * 2017-03-01 2018-09-20 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP2019051716A (en) * 2014-09-04 2019-04-04 株式会社リコー Image formation method, image formation apparatus, and production method of printed matter
JP2021103902A (en) * 2018-12-20 2021-07-15 キヤノン株式会社 Image processing device, control method of the same, and program

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159051A (en) * 2006-12-22 2008-07-10 Palo Alto Research Center Inc Method for decimation of image
JP2012027784A (en) * 2010-07-26 2012-02-09 Fuji Xerox Co Ltd Image processing device and program
US8593695B2 (en) 2010-07-26 2013-11-26 Fuji Xerox Co., Ltd. Image processing apparatus and non-transitory computer readable recording medium
JP2013125996A (en) * 2011-12-13 2013-06-24 Canon Inc Image processing apparatus, image processing method, and computer program
JP2014108604A (en) * 2012-12-04 2014-06-12 Canon Inc Image formation apparatus
JP2014177109A (en) * 2013-03-15 2014-09-25 Ricoh Co Ltd Image forming apparatus
JP2016052745A (en) * 2014-09-04 2016-04-14 株式会社リコー Image forming method, image forming device and production method of printed matter
JP2019051716A (en) * 2014-09-04 2019-04-04 株式会社リコー Image formation method, image formation apparatus, and production method of printed matter
JP2017094637A (en) * 2015-11-26 2017-06-01 キヤノン株式会社 Image formation device and control method thereof
JP2018148280A (en) * 2017-03-01 2018-09-20 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP2018024257A (en) * 2017-11-01 2018-02-15 株式会社リコー Image formation apparatus
JP2021103902A (en) * 2018-12-20 2021-07-15 キヤノン株式会社 Image processing device, control method of the same, and program
JP7077451B2 (en) 2018-12-20 2022-05-30 キヤノン株式会社 Image forming apparatus and control method of image forming apparatus, and program

Also Published As

Publication number Publication date
JP3799218B2 (en) 2006-07-19

Similar Documents

Publication Publication Date Title
US9734439B2 (en) Image processing apparatus and method thereof
US7463389B2 (en) Image processing method, image processing device and program
JP4189517B2 (en) Image processing apparatus, image processing method, and program
JP3799218B2 (en) Image processing method and apparatus
US8976408B2 (en) Apparatus, method, and computer-readable storage medium for maintaining reproducibility of lines or characters of image
EP2392466B1 (en) Background pattern image combining apparatus, background pattern image combining method, and computer-readable storage medium for computer program
JP4894488B2 (en) Image processing apparatus and image processing method
JP6249240B2 (en) Image processing device
JP2007005972A (en) Image processing apparatus
JP3807891B2 (en) Image information area discrimination method and apparatus
JPH06290300A (en) Image area identifying device
JP2006259261A (en) Image forming apparatus
US7085005B2 (en) Method of and apparatus for distinguishing type of pixel
JP2007152874A (en) Image forming apparatus
JP2021103902A (en) Image processing device, control method of the same, and program
JP6681033B2 (en) Image processing device
JP4983947B2 (en) Halftone image generation apparatus and halftone image generation method
JP6688193B2 (en) Image processing apparatus, image forming apparatus, image processing method, and image processing program
JP6025803B2 (en) Image processing device
JP4002032B2 (en) Facsimile apparatus and image adjustment method
JPH04186486A (en) Image processor
JPH10336441A (en) Image area attribute discrimination method
JPH0561971A (en) Image processing device
JPH1127531A (en) Image processor, method and storage medium
KR20120060742A (en) Micro pictures printing system, image forming method and printing method thereof

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060308

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060404

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060424

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090428

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110428

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130428

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140428

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees