JP2017028657A - Image processing method and image processing apparatus - Google Patents

Image processing method and image processing apparatus Download PDF

Info

Publication number
JP2017028657A
JP2017028657A JP2015148645A JP2015148645A JP2017028657A JP 2017028657 A JP2017028657 A JP 2017028657A JP 2015148645 A JP2015148645 A JP 2015148645A JP 2015148645 A JP2015148645 A JP 2015148645A JP 2017028657 A JP2017028657 A JP 2017028657A
Authority
JP
Japan
Prior art keywords
pixel
pixel value
correction
image
pixels
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
JP2015148645A
Other languages
Japanese (ja)
Other versions
JP6576143B2 (en
Inventor
横内 健一
Kenichi Yokouchi
健一 横内
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.)
Screen Holdings Co Ltd
Original Assignee
Screen Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Screen Holdings Co Ltd filed Critical Screen Holdings Co Ltd
Priority to JP2015148645A priority Critical patent/JP6576143B2/en
Publication of JP2017028657A publication Critical patent/JP2017028657A/en
Application granted granted Critical
Publication of JP6576143B2 publication Critical patent/JP6576143B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To sharpen characters and fine lines without thickening, and to improve blurring of the characters and fine lines at the time of printing.SOLUTION: Four pixels arranged continuously in the vertical direction are selected from an object image, and correction applied to pixels Pb, Pc is determined based on the pixel values Va, Vb, Vc, Vd of four pixels. When Va=Vd=0, Vb≤50, Vc≥50, the pixel value Vb is corrected to the minimum pixel value 0, and the pixel value Vc is corrected to the maximum pixel value 100. When Va=Vd=0, Vb≥50, Vc≤50, the pixel value Vb is corrected to the maximum pixel value 100, and the pixel value Vc is corrected to the minimum pixel value 0. With regard to an object image outputted from an RIP processing system performing super sampling, half-tone in the vicinity of the boundary of a character or a fine line is eliminated, thus improving the blurring of the characters and fine lines at the time of printing.SELECTED DRAWING: Figure 3

Description

本発明は、画像処理方法および画像処理装置に関し、特に、文字や細線のかすれを改善する画像処理方法および画像処理装置に関する。   The present invention relates to an image processing method and an image processing apparatus, and more particularly to an image processing method and an image processing apparatus that improve blurring of characters and fine lines.

印刷分野では、印刷データ作成ソフトウエアを用いて作成されたベクトル形式のデータを印刷機で処理できるラスター形式のデータに変換するRIP(Raster Image Processor)処理が行われる。RIP処理システムの中には、ベクトル形式で表現された文字や図形のデータをラスター形式の画像データに変換するときに、画素の全体が文字や図形の内部に含まれる場合だけでなく、画素の一部が文字や図形の内部に含まれる場合にも塗りを行う(例えば、黒くする)ものがある。このようなRIP処理システムを用いた場合、出力画像に含まれる文字や図形はやや太くなる。   In the printing field, RIP (Raster Image Processor) processing is performed to convert vector format data created using print data creation software into raster format data that can be processed by a printing press. In the RIP processing system, when character or graphic data expressed in vector format is converted into raster format image data, not only when the entire pixel is included in the character or graphic data, Some of them are painted (for example, blackened) even when a part is included in a character or figure. When such a RIP processing system is used, characters and figures included in the output image are slightly thick.

そこで、文字や図形を太くせずにRIP処理を行う方法として、出力画像の解像度よりも高い解像度でRIP処理を行い、RIP処理後の画像にダウンサンプリング処理(例えば、平均化処理)を行う方法が知られている。この方法は、一般にスーパーサンプリングと呼ばれる。スーパーサンプリングは、アンチエイリアス処理の一種である。   Therefore, as a method of performing RIP processing without making characters and figures thick, a method of performing RIP processing at a resolution higher than the resolution of the output image and performing downsampling processing (for example, averaging processing) on the image after RIP processing It has been known. This method is generally called supersampling. Supersampling is a type of anti-aliasing.

スーパーサンプリングを行うRIP処理システムでは、RIP処理後の画像は2値データであるのに対して、出力画像(ダウンサンプリング処理後の画像)は中間調の画素を含む多値データとなる。印刷機は、中間調の画素を含む出力画像を印刷するときに、網掛け処理を行う。しかし、網掛け処理を用いて中間調を表現すると、印刷結果にかすれが発生する。特に、RIP処理後の画像に文字や細線が含まれる場合、出力画像の印刷結果では文字や細線がかすれて、印刷品質が低下する。   In an RIP processing system that performs supersampling, an image after RIP processing is binary data, whereas an output image (image after downsampling processing) is multivalued data including halftone pixels. The printing machine performs a shading process when printing an output image including halftone pixels. However, if halftones are expressed using shading processing, the print result will be blurred. In particular, when characters and fine lines are included in the image after the RIP process, the characters and fine lines are blurred in the print result of the output image, and the print quality deteriorates.

本願発明に関連して、特許文献1には、誤差拡散法を用いて2値化処理を行った場合に細線がかすれることを防止する画像処理方法が記載されている。特許文献1に記載された画像処理方法では、注目画素とその近傍画素との濃度差に基づきエッジ判定を行い、エッジ判定結果が予め定めたパターンに適合するか否かによって注目画素が線に属するか否かを判定する。線に属すると判定したときには、注目画素の2値化誤差を所定値に設定して2値化処理を行う。   In relation to the present invention, Patent Document 1 describes an image processing method for preventing thin lines from fading when binarization processing is performed using an error diffusion method. In the image processing method described in Patent Document 1, edge determination is performed based on a density difference between a target pixel and its neighboring pixels, and the target pixel belongs to a line depending on whether the edge determination result matches a predetermined pattern. It is determined whether or not. When it is determined that the pixel belongs to the line, the binarization process is performed by setting the binarization error of the target pixel to a predetermined value.

特開平4−74062号公報JP-A-4-74062

図14および図15は、特許文献1に記載された画像処理方法による処理例を示す図である。以下、画像を示す図面において、正方形は画素を表し、画素に記載された数字は画素値を表す。また、画素値は0以上100以下の値を取るものとする。   14 and 15 are diagrams illustrating a processing example according to the image processing method described in Patent Document 1. FIG. Hereinafter, in the drawings showing images, squares represent pixels, and numbers written on the pixels represent pixel values. In addition, the pixel value is assumed to be a value between 0 and 100.

図14(a)に示す処理前の画像では、2行目に画素値50の画素が7個連続して並び、3行目に画素値100の画素が7個連続して並んでいる。この画像に特許文献1に記載された方法を適用した場合、画素値50の画素は線に属すると判定され、これらの画素の画素値は100に補正される。図14(b)に示す処理後の画像では、2行目と3行目に2個の画素値100の画素が垂直方向に連続して並ぶ。この結果、線が太くなる。   In the image before processing shown in FIG. 14A, seven pixels with a pixel value of 50 are arranged in the second row, and seven pixels with a pixel value of 100 are arranged in the third row. When the method described in Patent Document 1 is applied to this image, it is determined that a pixel with a pixel value of 50 belongs to a line, and the pixel value of these pixels is corrected to 100. In the processed image shown in FIG. 14B, two pixels having a pixel value of 100 are continuously arranged in the vertical direction in the second and third rows. As a result, the line becomes thicker.

図15(a)に示す処理前の画像では、2行目に画素値25の画素が7個連続して並び、3行目に画素値50の画素が7個連続して並んでいる。この画像に特許文献1に記載された方法を適用した場合、画素値50の画素は線に属すると判定され、これらの画素の画素値は100に補正される。図15(b)に示す処理後の画像では、処理前の画像と同様に、2行目に画素値25の画素が7個連続して並んでいる。   In the image before processing shown in FIG. 15A, seven pixels with a pixel value of 25 are arranged in the second row, and seven pixels with a pixel value of 50 are arranged in the third row. When the method described in Patent Document 1 is applied to this image, it is determined that a pixel with a pixel value of 50 belongs to a line, and the pixel value of these pixels is corrected to 100. In the image after processing shown in FIG. 15B, as in the image before processing, seven pixels having the pixel value 25 are continuously arranged in the second row.

特許文献1に記載された画像処理方法では、線に属さないと判定された画素については、誤差拡散法などによって2値化が行われる。このため、この方法では、文字や細線を太くせずに鮮明化することができない。   In the image processing method described in Patent Document 1, binarization is performed by an error diffusion method or the like for pixels that are determined not to belong to a line. For this reason, with this method, it is not possible to sharpen characters or thin lines without making them thick.

それ故に、本発明は、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善する画像処理方法および画像処理装置を提供することを目的とする。   SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an image processing method and an image processing apparatus that can sharpen characters and fine lines without making them thick and improve blurring of characters and fine lines during printing.

第1の発明は、画像処理方法であって、
多値の対象画像から第1方向に連続して並んだ複数の画素を順に選択する画素群選択ステップと、
前記画素群選択ステップで選択された複数の画素の画素値に基づき、前記複数の画素に含まれ、両端以外の連続する2個の対象画素に適用する補正について判定する画素値判定ステップと、
前記画素値判定ステップによる判定結果に従い、一方の対象画素の画素値を最小画素値に、他方の対象画素の画素値を最大画素値に補正する画素値補正ステップとを備える。
The first invention is an image processing method,
A pixel group selection step for sequentially selecting a plurality of pixels arranged in a row in the first direction from the multi-value target image;
A pixel value determination step for determining a correction to be applied to two consecutive target pixels included in the plurality of pixels other than both ends based on pixel values of the plurality of pixels selected in the pixel group selection step;
A pixel value correcting step of correcting the pixel value of one target pixel to the minimum pixel value and the pixel value of the other target pixel to the maximum pixel value according to the determination result of the pixel value determining step.

第2の発明は、第1の発明において、
前記画素群選択ステップは、前記対象画像から前記第1方向に連続して並んだ第1〜第4画素を選択し、
前記画素値判定ステップは、前記第1および第4画素の画素値が前記最小画素値に等しく、前記第2画素の画素値が第1閾値以下、かつ、前記第3画素の画素値が第2閾値以上の場合には第1補正と判定し、前記第1および第4画素の画素値が前記最小画素値に等しく、前記第2画素の画素値が前記第2閾値以上、かつ、前記第3画素の画素値が前記第1閾値以下の場合には第2補正と判定し、その他の場合には補正なしと判定し、
前記画素値補正ステップは、前記画素値判定ステップで第1補正と判定された場合には、前記第2画素の画素値を前記最小画素値に、前記第3画素の画素値を前記最大画素値に補正し、前記画素値判定ステップで第2補正と判定された場合には、前記第2画素の画素値を前記最大画素値に、前記第3画素の画素値を前記最小画素値に補正することを特徴とする。
According to a second invention, in the first invention,
The pixel group selection step selects first to fourth pixels arranged continuously in the first direction from the target image,
In the pixel value determining step, the pixel values of the first and fourth pixels are equal to the minimum pixel value, the pixel value of the second pixel is equal to or less than a first threshold value, and the pixel value of the third pixel is a second value. If the threshold value is greater than or equal to the threshold value, the first correction is determined, the pixel values of the first and fourth pixels are equal to the minimum pixel value, the pixel value of the second pixel is greater than or equal to the second threshold value, and the third If the pixel value of the pixel is less than or equal to the first threshold, it is determined as the second correction, otherwise it is determined as no correction,
In the pixel value correcting step, when the pixel value determining step determines that the first correction is made, the pixel value of the second pixel is set to the minimum pixel value, and the pixel value of the third pixel is set to the maximum pixel value. If the second correction is determined in the pixel value determination step, the pixel value of the second pixel is corrected to the maximum pixel value, and the pixel value of the third pixel is corrected to the minimum pixel value. It is characterized by that.

第3の発明は、第2の発明において、
前記対象画像は、水平方向および垂直方向に前記対象画像のn倍(nは2以上の整数)の解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記最小画素値をV1、前記最大画素値をV2としたとき、前記第1閾値は{V1+(n−1)×V2}/n、前記第2閾値は{(n−1)×V1+V2}/nであることを特徴とする。
According to a third invention, in the second invention,
The target image is an image obtained by performing a downsampling process on a high-resolution image having a resolution n times (n is an integer of 2 or more) the target image in the horizontal direction and the vertical direction,
When the minimum pixel value is V1 and the maximum pixel value is V2, the first threshold value is {V1 + (n−1) × V2} / n, and the second threshold value is {(n−1) × V1 + V2} / n.

第4の発明は、第3の発明において、
前記nは2であることを特徴とする。
According to a fourth invention, in the third invention,
The n is 2.

第5の発明は、第1または第2の発明において、
前記対象画像は、前記対象画像よりも高い解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記画素値判定ステップは、前記画素群選択ステップで選択された複数の画素の画素値に加えて、前記複数の画素に対応し、前記高解像度画像に含まれる複数の画素の画素値に基づき、前記対象画素に適用する補正について判定することを特徴とする。
According to a fifth invention, in the first or second invention,
The target image is an image obtained by performing a downsampling process on a high-resolution image having a higher resolution than the target image,
The pixel value determination step corresponds to the plurality of pixels in addition to the pixel values of the plurality of pixels selected in the pixel group selection step, and is based on the pixel values of the plurality of pixels included in the high-resolution image, The correction to be applied to the target pixel is determined.

第6の発明は、第1または第2の発明において、
前記画素値判定ステップは、前記画素群選択ステップで選択された複数の画素に対して前記第1方向に直交する方向に隣接する複数の隣接画素に含まれる対象画素について補正を行うと判定した場合には、前記複数の画素に含まれる一部の画素の画素値を無視するように判定条件を緩和して、前記対象画素に適用する補正について判定することを特徴とする。
A sixth invention is the first or second invention, wherein
The pixel value determination step determines that correction is performed on target pixels included in a plurality of adjacent pixels adjacent to the plurality of pixels selected in the pixel group selection step in a direction orthogonal to the first direction. Is characterized in that the determination condition is relaxed so as to ignore the pixel values of some of the pixels included in the plurality of pixels, and the correction to be applied to the target pixel is determined.

第7の発明は、第1または第2の発明において、
前記画素値判定ステップは、前記対象画素の画素値が両方とも中間画素値に等しい場合には、直前と同じ補正と判定することを特徴とする。
In a seventh invention according to the first or second invention,
In the pixel value determination step, when both pixel values of the target pixel are equal to the intermediate pixel value, it is determined that the correction is the same as that immediately before.

第8の発明は、第1または第2の発明において、
前記対象画像は、前記対象画像よりも高い解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記画素値補正ステップは、前記最小画素値に補正すべき対象画素の画素値を前記高解像度画像の対応する画素群の最小値に、前記最大画素値に補正すべき対象画素の画素値を前記高解像度画像の対応する画素群の最大値に補正することを特徴とする。
The eighth invention is the first or second invention,
The target image is an image obtained by performing a downsampling process on a high-resolution image having a higher resolution than the target image,
In the pixel value correcting step, the pixel value of the target pixel to be corrected to the minimum pixel value is set to the minimum value of the corresponding pixel group of the high resolution image, and the pixel value of the target pixel to be corrected to the maximum pixel value is set to the maximum pixel value. The correction is made to the maximum value of the corresponding pixel group of the high-resolution image.

第9の発明は、画像処理装置であって、
多値の対象画像から第1方向に連続して並んだ複数の画素を順に選択する画素群選択部と、
前記画素群選択部で選択された複数の画素の画素値に基づき、前記複数の画素に含まれ、両端以外の連続する2個の対象画素に適用する補正について判定する画素値判定部と、
前記画素値判定部による判定結果に従い、一方の対象画素の画素値を最小画素値に、他方の対象画素の画素値を最大画素値に補正する画素値補正部とを備える。
A ninth invention is an image processing apparatus,
A pixel group selector that sequentially selects a plurality of pixels arranged in a row in the first direction from the multi-value target image;
A pixel value determination unit that determines correction to be applied to two consecutive target pixels that are included in the plurality of pixels and other than both ends, based on pixel values of the plurality of pixels selected by the pixel group selection unit;
A pixel value correction unit that corrects the pixel value of one target pixel to the minimum pixel value and the pixel value of the other target pixel to the maximum pixel value according to the determination result by the pixel value determination unit.

上記第1または第9の発明によれば、第1方向に連続して並んだ複数の画素の画素値に基づき判定を行い、判定結果に従い2個の対象画素の画素値を最小画素値と最大画素値に補正することにより、対象画像が第1方向に直交する方向(以下、第2方向という)に延伸する線を含む場合に、線の幅を太くせずに、線の境界付近にある中間調をなくすことができる。したがって、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   According to the first or ninth aspect, the determination is performed based on the pixel values of a plurality of pixels arranged continuously in the first direction, and the pixel values of the two target pixels are set to the minimum pixel value and the maximum according to the determination result. When the target image includes a line extending in a direction orthogonal to the first direction (hereinafter referred to as the second direction) by correcting to the pixel value, the line width is not increased and the line is near the boundary of the line. The halftone can be eliminated. Therefore, the characters and fine lines can be clarified without being thickened, and the blurring of characters and fine lines during printing can be improved.

上記第2の発明によれば、第2方向に延伸する線の幅が2画素未満の場合に、第2および第3画素の画素値を最小画素値と最大画素値に補正することにより、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   According to the second aspect, when the width of the line extending in the second direction is less than two pixels, the pixel values of the second and third pixels are corrected to the minimum pixel value and the maximum pixel value, thereby It can be made clear without making the fine lines thick, and the blurring of characters and fine lines during printing can be improved.

上記第3または第4の発明によれば、第1および第2閾値を用いて対象画素に適用する補正について判定することにより、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   According to the third or fourth aspect of the invention, by determining the correction to be applied to the target pixel using the first and second threshold values, the characters and fine lines are sharpened without being thickened, and the characters and fine lines at the time of printing are displayed. The blur of the can be improved.

上記第5の発明によれば、対象画像に加えて高解像度画像を参照して対象画素に適用する補正について判定することにより、線が第2方向に延伸する場合に限って補正を行い、印刷品質を向上させることができる。   According to the fifth aspect, the correction is performed only when the line extends in the second direction by determining the correction to be applied to the target pixel with reference to the high-resolution image in addition to the target image, and printing is performed. Quality can be improved.

上記第6の発明によれば、隣接部分について補正を行った場合には、一部の画素の画素値を無視するように判定条件を緩和して対象画素に適用する補正について判定することにより、隣接部分について行った補正を継続して行い、複雑な文字や図形の境界付近にある中間調をなくし、印刷品質を向上させることができる。   According to the sixth aspect, when correction is performed for the adjacent portion, the determination condition is relaxed so that the pixel values of some pixels are ignored, and the correction applied to the target pixel is determined. It is possible to continue the correction performed on the adjacent portion, eliminate the halftone near the boundary of complex characters and figures, and improve the print quality.

上記第7の発明によれば、対象画素の画素値が両方とも中間画素値に等しい場合には直前と同じ補正を行うことにより、滑らかな線に補正し、印刷品質を向上させることができる。   According to the seventh aspect, when both the pixel values of the target pixel are equal to the intermediate pixel value, the same correction as before is performed, so that a smooth line can be corrected and the print quality can be improved.

上記第8の発明によれば、文字や細線の画素値が最大画素値ではなく中間画素値(最小画素値と最大画素値の間の画素値)である場合や、背景の画素値が最小画素値ではなく中間画素値である場合でも、それぞれの中間画素値に合わせて適切に文字や細線のかすれを改善することができる。   According to the eighth aspect, when the pixel value of the character or the thin line is not the maximum pixel value but an intermediate pixel value (a pixel value between the minimum pixel value and the maximum pixel value), or the background pixel value is the minimum pixel value Even in the case of an intermediate pixel value instead of a value, it is possible to appropriately improve the blurring of characters and fine lines in accordance with the respective intermediate pixel values.

本発明の実施形態に係る画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. 図1に示す画像処理装置に入力される対象画像の例を示す図である。It is a figure which shows the example of the target image input into the image processing apparatus shown in FIG. 図1に示す画像処理装置による処理例を示す図である。It is a figure which shows the process example by the image processing apparatus shown in FIG. 図1に示す画像処理装置における選択領域内の画素を示す図である。It is a figure which shows the pixel in the selection area | region in the image processing apparatus shown in FIG. 図1に示す画像処理装置の画素値判定部による判定結果を示す図である。It is a figure which shows the determination result by the pixel value determination part of the image processing apparatus shown in FIG. 図1に示す画像処理装置に入力される対象画像内の画素と高解像度画像内の画素の関係を示す図である。It is a figure which shows the relationship between the pixel in the object image input into the image processing apparatus shown in FIG. 1, and the pixel in a high resolution image. 図1に示す画像処理装置において第1および第2補正を行うための追加条件を示す図である。It is a figure which shows the additional conditions for performing 1st and 2nd correction | amendment in the image processing apparatus shown in FIG. 図1に示す画像処理装置による処理例を示す図である。It is a figure which shows the process example by the image processing apparatus shown in FIG. 図1に示す画像処理装置による処理例を示す図である。It is a figure which shows the process example by the image processing apparatus shown in FIG. 図1に示す画像処理装置による処理例を示す図である。It is a figure which shows the process example by the image processing apparatus shown in FIG. 図1に示す画像処理装置による処理例を示す図である。It is a figure which shows the process example by the image processing apparatus shown in FIG. 図1に示す画像処理装置の動作を示すフローチャートである。2 is a flowchart illustrating an operation of the image processing apparatus illustrated in FIG. 1. 図1に示す画像処理装置による実際の処理例を示す図である。It is a figure which shows the example of an actual process by the image processing apparatus shown in FIG. 従来の画像処理方法による処理例を示す図である。It is a figure which shows the example of a process by the conventional image processing method. 従来の画像処理方法による処理例を示す図である。It is a figure which shows the example of a process by the conventional image processing method.

図1は、本発明の実施形態に係る画像処理装置の構成を示すブロック図である。図1に示す画像処理装置10は、画像記憶部11、画素群選択部12、画素値判定部13、および、画素値補正部14を備え、本発明の実施形態に係る画像処理方法を実施する。画像処理装置10は、典型的にはコンピュータが画像処理プログラムを実行することにより構成される。   FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. An image processing apparatus 10 illustrated in FIG. 1 includes an image storage unit 11, a pixel group selection unit 12, a pixel value determination unit 13, and a pixel value correction unit 14, and performs an image processing method according to an embodiment of the present invention. . The image processing apparatus 10 is typically configured by a computer executing an image processing program.

画像処理装置10の前段にはスーパーサンプリングを行うRIP処理システム20が設けられ、画像処理装置10の後段には印刷機30が設けられる。RIP処理システム20は、出力画像の解像度よりも高い解像度でRIP処理を行い、RIP処理後の画像にダウンサンプリング処理を行う。以下、RIP処理システム20は、出力画像の2倍の解像度でRIP処理を行い、RIP処理後の画像にダウンサンプリング処理として平均化処理を行うものとする。RIP処理システム20は、画像処理装置10に対して、RIP処理後の画像とダウンサンプリング処理後の画像とを出力する(以下、前者を高解像度画像X2、後者を対象画像X1という)。画像処理装置10は、高解像度画像X2を参照して、対象画像X1に対して補正処理を行う。   An RIP processing system 20 that performs supersampling is provided in the front stage of the image processing apparatus 10, and a printing machine 30 is provided in the rear stage of the image processing apparatus 10. The RIP processing system 20 performs RIP processing at a resolution higher than the resolution of the output image, and performs downsampling processing on the image after the RIP processing. Hereinafter, it is assumed that the RIP processing system 20 performs RIP processing at twice the resolution of the output image, and performs averaging processing as downsampling processing on the image after RIP processing. The RIP processing system 20 outputs an image after RIP processing and an image after downsampling processing to the image processing apparatus 10 (hereinafter, the former is referred to as a high-resolution image X2 and the latter is referred to as a target image X1). The image processing apparatus 10 performs correction processing on the target image X1 with reference to the high resolution image X2.

高解像度画像X2は、2値データまたは多値データのいずれでもよい。以下では説明の便宜上、高解像度画像X2は画素を塗るか否かを画素ごとに示す2値データであり、高解像度画像X2に含まれる画素の画素値は0または100であるとする。画素値0は画素を塗らない(画素が白である)ことを示し、画素値100は画素を塗る(画素が黒である)ことを示す。対象画像X1は、多値データである。対象画像X1に含まれる画素は、高解像度画像X2に含まれる(2×2)個の画素に対応する。対象画像X1に含まれる画素の画素値は、高解像度画像X2内の対応する(2×2)個の画素の画素値の平均値であり、0、25、50、75、および、100のうちのいずれかになる。このうち25、50、および、75は中間調であり、50は最小画素値0と最大画素値100のちょうど中間の中間画素値である。   The high resolution image X2 may be either binary data or multivalue data. Hereinafter, for convenience of explanation, it is assumed that the high-resolution image X2 is binary data indicating whether or not to apply a pixel for each pixel, and the pixel value of the pixel included in the high-resolution image X2 is 0 or 100. A pixel value of 0 indicates that no pixel is painted (the pixel is white), and a pixel value of 100 indicates that the pixel is painted (the pixel is black). The target image X1 is multi-value data. The pixels included in the target image X1 correspond to (2 × 2) pixels included in the high resolution image X2. The pixel value of the pixel included in the target image X1 is an average value of the pixel values of the corresponding (2 × 2) pixels in the high-resolution image X2, and is selected from 0, 25, 50, 75, and 100 One of them. Of these, 25, 50, and 75 are intermediate tones, and 50 is an intermediate pixel value that is exactly halfway between the minimum pixel value 0 and the maximum pixel value 100.

画像記憶部11は、RIP処理システム20から出力された対象画像X1と高解像度画像X2を記憶する。画素群選択部12は、画像記憶部11に記憶された対象画像X1から、垂直方向に連続して並んだ4個の画素を順に選択する。画素値判定部13は、画素群選択部12で選択された4個の画素の画素値に基づき、2個の対象画素に適用する補正について判定する。画素値補正部14は、画素値判定部13による判定結果に従い、一方の対象画素の画素値を最小画素値0に、他方の対象画素の画素値を最大画素値100に補正する。これにより、画像記憶部11に記憶された対象画像X1は補正される。   The image storage unit 11 stores the target image X1 and the high resolution image X2 output from the RIP processing system 20. The pixel group selection unit 12 sequentially selects four pixels arranged in a row in the vertical direction from the target image X1 stored in the image storage unit 11. The pixel value determination unit 13 determines correction to be applied to the two target pixels based on the pixel values of the four pixels selected by the pixel group selection unit 12. The pixel value correction unit 14 corrects the pixel value of one target pixel to the minimum pixel value 0 and the pixel value of the other target pixel to the maximum pixel value 100 according to the determination result by the pixel value determination unit 13. As a result, the target image X1 stored in the image storage unit 11 is corrected.

画素群選択部12は、対象画像X1に対して、垂直方向に連続して並んだ4個の画素を含む領域(以下、選択領域という)を設定する。画素群選択部12は、最初に対象画像X1の左上端に選択領域を設定し、その後、対象画像X1内で選択領域を左から右、および、上から下に順に移動させる。選択領域が対象画像X1の右下端に到達したときに、対象画像X1に対する処理は終了する。画像処理装置10は、印刷機30に対して、処理後の対象画像X1を出力する。印刷機30は、画像処理装置10から出力された処理後の対象画像X1に基づき印刷を行う。   The pixel group selection unit 12 sets an area (hereinafter referred to as a selection area) including four pixels arranged continuously in the vertical direction with respect to the target image X1. The pixel group selection unit 12 first sets a selection region at the upper left corner of the target image X1, and then moves the selection region in order from the left to the right and from top to bottom in the target image X1. When the selected area reaches the lower right end of the target image X1, the process for the target image X1 ends. The image processing apparatus 10 outputs the processed target image X1 to the printing press 30. The printing machine 30 performs printing based on the processed target image X1 output from the image processing apparatus 10.

図2は、対象画像X1の例を示す図である。対象画像X1は文字や図形などを含み、文字や図形は水平方向の線や垂直方向の線などを含む。文字に含まれる線の幅は、文字サイズや文字フォントなどによって決定される。図形に含まれる線の幅は、図形の形状や図形サイズなどによって決定される。図2には、文字「t」に含まれる水平方向の線について、線の幅方向(垂直方向)に連続して並んだ複数の画素が記載されている。図2に示すように、線が十分に太い場合には、複数の画素値100の画素が線の幅方向に連続して並ぶ。画素値100の画素の並びの端には、中間調(ここでは、画素値50)の画素が存在することがある。   FIG. 2 is a diagram illustrating an example of the target image X1. The target image X1 includes characters and graphics, and the characters and graphics include horizontal lines and vertical lines. The width of the line included in the character is determined by the character size, character font, and the like. The width of the line included in the figure is determined by the shape of the figure and the figure size. FIG. 2 shows a plurality of pixels arranged in a line in the width direction (vertical direction) of the horizontal line included in the character “t”. As shown in FIG. 2, when the line is sufficiently thick, pixels having a plurality of pixel values 100 are continuously arranged in the width direction of the line. A pixel having a halftone (here, pixel value 50) may exist at the end of the arrangement of pixels having a pixel value 100.

RIP処理システム20から画像処理装置10を介さずに印刷機30に対象画像X1を出力した場合、印刷機30は対象画像X1に含まれる中間調を表現するために網掛け処理を行う。しかし、網掛け処理を用いて中間調を表現すると、印刷結果にかすれが発生する。かすれは、画素値50の画素を印刷したときに目立ちやすい。画素値100の画素が線の幅方向に連続して2個以上並ぶ場合には、画素値100の画素の並びの端に中間調の画素が存在しても、文字や図形自身が十分に太いので、中間調の画素によるかすれはあまり目立たない。これに対して、線の幅方向に並ぶ画素値100の画素の個数が2個未満の場合に、線の境界付近に中間調の画素が存在すると、中間調の画素によるかすれが目立つ。例えば、後述する図3に示すように、1個の画素値100の画素と1個の画素値50の画素とが線の幅方向に隣接して並んでいる場合には、画素値50の画素によるかすれが目立つ。   When the target image X1 is output from the RIP processing system 20 to the printing press 30 without going through the image processing apparatus 10, the printing press 30 performs a shading process to express the halftone included in the target image X1. However, if halftones are expressed using shading processing, the print result will be blurred. Fading is easily noticeable when a pixel having a pixel value of 50 is printed. When two or more pixels having a pixel value of 100 are continuously arranged in the width direction of the line, even if a halftone pixel exists at the end of the arrangement of pixels having a pixel value of 100, the character or figure itself is sufficiently thick Therefore, fading due to halftone pixels is not so noticeable. On the other hand, when the number of pixels having a pixel value 100 aligned in the line width direction is less than two and there are halftone pixels near the boundary of the line, blurring due to the halftone pixels is noticeable. For example, as shown in FIG. 3 to be described later, when one pixel value 100 pixel and one pixel value 50 pixel are arranged adjacent to each other in the line width direction, the pixel value 50 pixel Fading due to is conspicuous.

この問題を解決するために、画像処理装置10は、画素群選択部12、画素値判定部13、および、画素値補正部14を備えている。画像処理装置10は、これらの構成要素を用いて、対象画像X1から垂直方向に連続して並んだ4個の画素を順に選択し、選択した4個の画素の画素値に基づき2番目および3番目の画素に適用する補正について判定し、判定結果に従い、2番目および3番目の画素のうち一方の画素の画素値を最小画素値0に、他方の画素の画素値を最大画素値100に補正する。また、画像処理装置10は、印刷品質を向上させるために、高解像度画像X2を参照して判定する処理、判定条件を緩和する処理、および、直前と同じ補正と判定する処理を行う。   In order to solve this problem, the image processing apparatus 10 includes a pixel group selection unit 12, a pixel value determination unit 13, and a pixel value correction unit 14. The image processing apparatus 10 uses these components to sequentially select four pixels arranged in a row in the vertical direction from the target image X1, and based on the pixel values of the selected four pixels, the second and third pixels are selected. The correction applied to the second pixel is determined, and the pixel value of one of the second and third pixels is corrected to the minimum pixel value 0 and the pixel value of the other pixel is corrected to the maximum pixel value 100 according to the determination result. To do. Further, in order to improve the print quality, the image processing apparatus 10 performs a process of determining with reference to the high-resolution image X2, a process of relaxing the determination condition, and a process of determining the same correction as immediately before.

図3は、画像処理装置10による処理例を示す図である。図3(a)に示す処理前の画像では、3行目に画素値50の画素が7個連続して並び、4行目に画素値100の画素が7個連続して並んでいる。画素群選択部12は、対象画像X1に対して、垂直方向に連続して並んだ4個の画素を含む選択領域を設定する。例えば、画素群選択部12は、2行2列目から5行2列目までの画素を含む選択領域R1を設定する。その後、画素群選択部12は、選択領域を左から右へ移動させて、選択領域R2〜R5を順に設定する。   FIG. 3 is a diagram illustrating an example of processing performed by the image processing apparatus 10. In the image before processing shown in FIG. 3A, seven pixels with a pixel value of 50 are arranged in the third row and seven pixels with a pixel value of 100 are arranged in the fourth row. The pixel group selection unit 12 sets a selection area including four pixels arranged continuously in the vertical direction with respect to the target image X1. For example, the pixel group selection unit 12 sets a selection region R1 including pixels from the second row and the second column to the fifth row and the second column. Thereafter, the pixel group selection unit 12 moves the selection region from left to right, and sequentially sets the selection regions R2 to R5.

画素値判定部13は、画素群選択部12で選択された4個の画素の画素値に基づき判定を行う。以下、図4に示すように、選択領域に含まれる4個の画素を上から順にPa、Pb、Pc、Pdといい、各画素の画素値をそれぞれVa、Vb、Vc、Vdという。画素値Va、Vb、Vc、Vdは、0、25、50、75、および、100のうちのいずれかである。   The pixel value determination unit 13 performs determination based on the pixel values of the four pixels selected by the pixel group selection unit 12. Hereinafter, as shown in FIG. 4, the four pixels included in the selected region are referred to as Pa, Pb, Pc, and Pd in order from the top, and the pixel values of each pixel are referred to as Va, Vb, Vc, and Vd, respectively. Pixel values Va, Vb, Vc, and Vd are any one of 0, 25, 50, 75, and 100.

画素値判定部13は、Va≠0またはVd≠0の場合には「補正なし」と判定し、Va=Vd=0の場合には画素値Vb、Vcに基づき図5に示す判定を行う。より詳細には、Va=Vd=0、Vb≦50、かつ、Vc≧50の場合(ただし、Vb=Vc=50の場合を除く)には、画素値判定部13は「第1補正」と判定する。Va=Vd=0、Vb≧50、かつ、Vc≦50の場合(ただし、Vb=Vc=50の場合を除く)には、画素値判定部13は「第2補正」と判定する。Va=Vd=0、かつ、Vb=Vc=50の場合には、画素値判定部13は「第1補正」または「第2補正」と判定する。Va=Vd=0、Vb≦25、かつ、Vc≦25の場合、または、Va=Vd=0、Vb≧75、かつ、Vc≧75の場合には、画素値判定部13は「補正なし」と判定する。   The pixel value determination unit 13 determines “no correction” when Va ≠ 0 or Vd ≠ 0, and performs the determination illustrated in FIG. 5 based on the pixel values Vb and Vc when Va = Vd = 0. More specifically, when Va = Vd = 0, Vb ≦ 50, and Vc ≧ 50 (except when Vb = Vc = 50), the pixel value determination unit 13 determines that “first correction” is used. judge. When Va = Vd = 0, Vb ≧ 50, and Vc ≦ 50 (except when Vb = Vc = 50), the pixel value determination unit 13 determines “second correction”. When Va = Vd = 0 and Vb = Vc = 50, the pixel value determination unit 13 determines “first correction” or “second correction”. When Va = Vd = 0, Vb ≦ 25, and Vc ≦ 25, or when Va = Vd = 0, Vb ≧ 75, and Vc ≧ 75, the pixel value determination unit 13 performs “no correction”. Is determined.

画素値補正部14は、画素値判定部13による判定結果に従い、画像記憶部11に記憶された対象画像X1に含まれる画素値Vb、Vcを最小画素値0または最大画素値100に補正する。画素値判定部13で「第1補正」と判定された場合には、画素値補正部14は、画素値Vbを最小画素値0に、画素値Vcを最大画素値100に補正する第1補正を行う。画素値判定部13で「第2補正」と判定された場合には、画素値補正部14は、画素値Vbを最大画素値100に、画素値Vcを最小画素値0に補正する第2補正を行う。画素値判定部13で「補正なし」と判定された場合には、画素値補正部14は画素値Vb、Vcを補正しない。   The pixel value correction unit 14 corrects the pixel values Vb and Vc included in the target image X1 stored in the image storage unit 11 to the minimum pixel value 0 or the maximum pixel value 100 according to the determination result by the pixel value determination unit 13. When the pixel value determination unit 13 determines “first correction”, the pixel value correction unit 14 corrects the pixel value Vb to the minimum pixel value 0 and the pixel value Vc to the maximum pixel value 100. I do. When the pixel value determination unit 13 determines “second correction”, the pixel value correction unit 14 corrects the pixel value Vb to the maximum pixel value 100 and the pixel value Vc to the minimum pixel value 0. I do. When the pixel value determination unit 13 determines “no correction”, the pixel value correction unit 14 does not correct the pixel values Vb and Vc.

なお、補正の前後で画素値が変化しない場合には、画素値補正部14は、画像記憶部11に記憶された画素値Vb、Vcを更新しなくてもよい。例えば、Va=Vb=Vd=0、かつ、Vc=50の場合には、画素値判定部13は「第1補正」と判定する。この場合、画素値補正部14は、画像記憶部11に記憶された画素値Vcを100に更新すると共に、画像記憶部11に記憶された画素値Vbに同じ値0を上書きしてもよく、画像記憶部11に記憶された画素値Vbを更新しなくてもよい。   When the pixel value does not change before and after the correction, the pixel value correction unit 14 does not have to update the pixel values Vb and Vc stored in the image storage unit 11. For example, when Va = Vb = Vd = 0 and Vc = 50, the pixel value determination unit 13 determines “first correction”. In this case, the pixel value correction unit 14 may update the pixel value Vc stored in the image storage unit 11 to 100 and overwrite the pixel value Vb stored in the image storage unit 11 with the same value 0. The pixel value Vb stored in the image storage unit 11 may not be updated.

図3に示す例では、選択領域R1において、Va=Vd=0、Vb=50、Vc=100である。このため、画素値判定部13は「第1補正」と判定し、画素値補正部14は画素値Vbを0に、画素値Vcを100に補正する。これにより、3行2列目の画素の画素値は50から0に補正される。選択領域R2〜R5について同様の処理が行われ、3行3〜6列目の画素の画素値も50から0に補正される(図3(b))。対象画像X1は、最終的に図3(c)に示すように補正される。   In the example illustrated in FIG. 3, Va = Vd = 0, Vb = 50, and Vc = 100 in the selection region R1. For this reason, the pixel value determination unit 13 determines “first correction”, and the pixel value correction unit 14 corrects the pixel value Vb to 0 and the pixel value Vc to 100. Thereby, the pixel value of the pixel in the third row and the second column is corrected from 50 to 0. Similar processing is performed on the selection regions R2 to R5, and the pixel values of the pixels in the third row to the sixth column are also corrected from 50 to 0 (FIG. 3B). The target image X1 is finally corrected as shown in FIG.

ここで、画素値判定部13による判定について説明する。条件Va≠0またはVd≠0は、垂直方向の線の幅が2画素以上の場合に成立する。この場合、画素値Vb、Vcを補正しなくても、中間調の画素によるかすれは目立たない。条件Va=Vd=0、Vb≦50、かつ、Vc≧50(ただし、Vb=Vc=50の場合を除く)は、垂直方向の線の幅が2画素未満で、画素Pbは白に近く、画素Pcは黒に近い場合に成立する。この場合、中間調をなくすために、画素値補正部14は、画素値Vbを0に、画素値Vcを100に(画素Pbを白く、画素Pcを黒く)補正する第1補正を行う。条件Va=Vd=0、Vb≧50、かつ、Vc≦50(ただし、Vb=Vc=50の場合を除く)は、垂直方向の線の幅が2画素未満で、画素Pbは黒に近く、画素Pcは白に近い場合に成立する。この場合、中間調をなくすために、画素値補正部14は、画素値Vbを100に、画素値Vcを0に(画素Pbを黒く、画素Pcを白く)補正する第2補正を行う。条件Va=Vd=0、かつ、Vb=Vc=50は、画素値Vb、Vcが両方とも中間画素値に等しい場合に成立する。この場合、中間調をなくすために、画素値補正部14は、第1および第2補正のいずれかを行う。条件Va=Vd=0、Vb≦25、かつ、Vc≦25は、垂直方向の線の幅が2画素未満で、画素Pb、Pcが両方とも白に近い場合に成立する。条件Va=Vd=0、Vb≧75、かつ、Vc≧75は、垂直方向の線の幅が2画素未満で、画素Pb、Pcが両方とも黒に近い場合に成立する。これらの場合、画素値Vb、Vcを補正しなくても、中間調の画素によるかすれは目立たない。   Here, the determination by the pixel value determination unit 13 will be described. The condition Va ≠ 0 or Vd ≠ 0 is satisfied when the line width in the vertical direction is 2 pixels or more. In this case, even if the pixel values Vb and Vc are not corrected, fading due to halftone pixels is not noticeable. Conditions Va = Vd = 0, Vb ≦ 50, and Vc ≧ 50 (except when Vb = Vc = 50), the width of the vertical line is less than 2 pixels, and the pixel Pb is close to white, The pixel Pc is established when it is close to black. In this case, in order to eliminate the halftone, the pixel value correction unit 14 performs a first correction that corrects the pixel value Vb to 0 and the pixel value Vc to 100 (the pixel Pb is white and the pixel Pc is black). Conditions Va = Vd = 0, Vb ≧ 50, and Vc ≦ 50 (except when Vb = Vc = 50), the width of the vertical line is less than 2 pixels, and the pixel Pb is close to black. The pixel Pc is established when it is close to white. In this case, in order to eliminate the halftone, the pixel value correction unit 14 performs a second correction that corrects the pixel value Vb to 100 and the pixel value Vc to 0 (the pixel Pb is black and the pixel Pc is white). The conditions Va = Vd = 0 and Vb = Vc = 50 are satisfied when the pixel values Vb and Vc are both equal to the intermediate pixel value. In this case, in order to eliminate the halftone, the pixel value correction unit 14 performs either the first correction or the second correction. The conditions Va = Vd = 0, Vb ≦ 25, and Vc ≦ 25 are satisfied when the width of the line in the vertical direction is less than 2 pixels and both the pixels Pb and Pc are close to white. The conditions Va = Vd = 0, Vb ≧ 75, and Vc ≧ 75 are satisfied when the width of the line in the vertical direction is less than 2 pixels and both the pixels Pb and Pc are close to black. In these cases, even if the pixel values Vb and Vc are not corrected, fading due to halftone pixels is not noticeable.

このように画像処理装置10は、中間調の画素によるかすれが目立ち、印刷品質が低下しやすい場合(例えば、画素値50を含む場合など)に、画素値Vb、Vcを最小画素値0と最大画素値100に補正する。したがって、水平方向の線がある場合に、線の幅を太くせずに、線の境界付近にある中間調をなくすことができる。よって、水平方向の線を含む文字や水平方向の細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   As described above, the image processing apparatus 10 sets the pixel values Vb and Vc to the minimum pixel value 0 and the maximum when the blur due to halftone pixels is conspicuous and the print quality is likely to deteriorate (for example, when the pixel value 50 is included). The pixel value is corrected to 100. Therefore, when there is a horizontal line, the halftone near the boundary of the line can be eliminated without increasing the line width. Therefore, characters including horizontal lines and horizontal thin lines are sharpened without being thickened, and blurring of characters and thin lines during printing can be improved.

次に、画素値判定部13が高解像度画像X2を参照して判定する点について説明する。上述したように、画像記憶部11は、RIP処理システム20から出力された高解像度画像X2を記憶する。図6に示すように、対象画像X1に含まれる画素は、高解像度画像X2に含まれる(2×2)個の画素に対応する。以下、対象画像X1内の画素に対応する、高解像度画像X2内の(2×2)個の画素を、左上画素、右上画素、左下画素、右下画素という。図6において、画素Pbに対応する(2×2)個の画素のうち、左上画素Sb1と右上画素Sb2は画素Paに隣接し、左下画素Sb3と右下画素Sb4は画素Pcに隣接する。画素Pcに対応する(2×2)個の画素のうち、左上画素Sc1と右上画素Sc2は画素Pbに隣接し、左下画素Sc3と右下画素Sc4は画素Pdに隣接する。   Next, the point that the pixel value determination unit 13 determines with reference to the high resolution image X2 will be described. As described above, the image storage unit 11 stores the high-resolution image X2 output from the RIP processing system 20. As shown in FIG. 6, the pixels included in the target image X1 correspond to (2 × 2) pixels included in the high-resolution image X2. Hereinafter, (2 × 2) pixels in the high-resolution image X2 corresponding to the pixels in the target image X1 are referred to as an upper left pixel, an upper right pixel, a lower left pixel, and a lower right pixel. In FIG. 6, among (2 × 2) pixels corresponding to the pixel Pb, the upper left pixel Sb1 and the upper right pixel Sb2 are adjacent to the pixel Pa, and the lower left pixel Sb3 and the lower right pixel Sb4 are adjacent to the pixel Pc. Of the (2 × 2) pixels corresponding to the pixel Pc, the upper left pixel Sc1 and the upper right pixel Sc2 are adjacent to the pixel Pb, and the lower left pixel Sc3 and the lower right pixel Sc4 are adjacent to the pixel Pd.

上述したように、画素値判定部13は、Va=Vd=0、Vb≦50、かつ、Vc≧50の場合に「第1補正」と判定する。これに加えて画素値判定部13が「第1補正」と判定するためには、画素Pbに対応し、画素Paに隣接する左上画素Sb1と右上画素Sb2の画素値が両方とも0、かつ、画素Pcに対応し、画素Pbに隣接する左上画素Sc1と右上画素Sc2の画素値が両方とも100であることを必要とする(図7に示す第1補正のための追加条件を参照)。   As described above, the pixel value determination unit 13 determines “first correction” when Va = Vd = 0, Vb ≦ 50, and Vc ≧ 50. In addition, in order for the pixel value determination unit 13 to determine “first correction”, both of the pixel values of the upper left pixel Sb1 and the upper right pixel Sb2 corresponding to the pixel Pb and adjacent to the pixel Pa are 0, and The pixel values of the upper left pixel Sc1 and the upper right pixel Sc2 corresponding to the pixel Pc and adjacent to the pixel Pb are both required to be 100 (see the additional condition for the first correction shown in FIG. 7).

左上画素Sb1または右上画素Sb2の画素値が100である場合や、左上画素Sc1または右上画素Sc2の画素値が0である場合には、選択領域付近にある線が水平方向の線ではなく、垂直方向の線である可能性がある。左上画素Sb1と右上画素Sb2の画素値が両方とも0、かつ、左上画素Sc1と右上画素Sc2の画素値が両方とも100である場合に限って、画素値判定部13が「第1補正」と判定することにより、垂直方向の線である場合を除外して画素値Vbを最小画素値0に、画素値Vcを最大画素値100に補正し、印刷品質を向上させることができる。   When the pixel value of the upper left pixel Sb1 or the upper right pixel Sb2 is 100, or when the pixel value of the upper left pixel Sc1 or the upper right pixel Sc2 is 0, the line near the selected region is not a horizontal line but a vertical line. May be a line of direction. Only when the pixel values of the upper left pixel Sb1 and the upper right pixel Sb2 are both 0, and the pixel values of the upper left pixel Sc1 and the upper right pixel Sc2 are both 100, the pixel value determination unit 13 sets “first correction” as “first correction”. By determining, the pixel value Vb is corrected to the minimum pixel value 0 and the pixel value Vc is corrected to the maximum pixel value 100, excluding the case of the line in the vertical direction, and the print quality can be improved.

また、上述したように、画素値判定部13は、Va=Vd=0、Vb≧50、かつ、Vc≦50の場合に「第2補正」と判定する。これに加えて画素値判定部13が「第2補正」と判定するためには、画素Pbに対応し、画素Pcに隣接する左下画素Sb3と右下画素Sb4の画素値が両方とも100、かつ、画素Pcに対応し、画素Pdに隣接する左下画素Sc3と右下画素Sc4の画素値が両方とも0であることを必要とする(図7に示す第2補正のための追加条件を参照)。   As described above, the pixel value determination unit 13 determines “second correction” when Va = Vd = 0, Vb ≧ 50, and Vc ≦ 50. In addition, in order for the pixel value determination unit 13 to determine “second correction”, both the pixel values of the lower left pixel Sb3 and the lower right pixel Sb4 corresponding to the pixel Pb and adjacent to the pixel Pc are 100, and , The pixel values of the lower left pixel Sc3 and the lower right pixel Sc4 corresponding to the pixel Pc and adjacent to the pixel Pd are both 0 (see the additional condition for the second correction shown in FIG. 7). .

左下画素Sb3または右下画素Sb4の画素値が0である場合や、左下画素Sc3または右下画素Sc4の画素値が100である場合には、選択領域付近にある線が水平方向の線ではなく、垂直方向の線である可能性がある。左下画素Sb3と右下画素Sb4の画素値が両方とも100、かつ、左下画素Sc3と右下画素Sc4の画素値が両方とも0である場合に限って、画素値判定部13が「第2補正」と判定することにより、垂直方向の線である場合を除外して画素値Vbを最大画素値100に、画素値Vcを最小画素値0に補正し、印刷品質を向上させることができる。   When the pixel value of the lower left pixel Sb3 or the lower right pixel Sb4 is 0, or when the pixel value of the lower left pixel Sc3 or the lower right pixel Sc4 is 100, the line near the selected region is not a horizontal line. , Could be a vertical line. Only when the pixel values of the lower left pixel Sb3 and the lower right pixel Sb4 are both 100, and the pixel values of the lower left pixel Sc3 and the lower right pixel Sc4 are both 0, the pixel value determination unit 13 performs “second correction”. In other words, the pixel value Vb is corrected to the maximum pixel value 100 and the pixel value Vc is corrected to the minimum pixel value 0 by excluding the case of the line in the vertical direction, so that the print quality can be improved.

このように高解像度画像X2を参照して判定を行うことにより、水平方向の線である場合に限って画素値Vb、Vcを補正し、印刷品質を向上させることができる。   By making the determination with reference to the high-resolution image X2 in this way, it is possible to correct the pixel values Vb and Vc only when the line is in the horizontal direction, and to improve the print quality.

次に、画素値判定部13が判定条件を緩和する点について説明する。ここまでに述べた処理だけでは、細線と細線に直交する線とがT字状に接続されている場合に中間調を補正できないことがある。例えば、図8(a)に示す処理前の画像に、ここまでに述べた判定条件に従い画素Pb、Pcに適用する補正について判定する場合を考える。この場合、選択領域R11、R15などについては、画素値判定部13は「第1補正」と判定し、画素値補正部14は画素値Vbを0に、画素値Vbを100に補正する。これにより、3行2〜4列目および3行8〜10列目の画素値の画素値は、50から0に補正される。一方、選択領域R12〜R14については、画素値判定部13は「補正なし」と判定し、画素値補正部14は画素値Vb、Vcを補正しない。このため、条件緩和しない場合の処理後の画像は、図8(b)に示すようになる。この画像では、3行5〜7列目の画素の画素値は中間画素値50のままである。   Next, the point that the pixel value determination unit 13 relaxes the determination condition will be described. With only the processing described so far, the halftone may not be corrected when the fine line and the line orthogonal to the fine line are connected in a T shape. For example, let us consider a case where a correction to be applied to the pixels Pb and Pc is determined on the unprocessed image shown in FIG. 8A according to the determination conditions described so far. In this case, for the selection regions R11, R15, etc., the pixel value determination unit 13 determines “first correction”, and the pixel value correction unit 14 corrects the pixel value Vb to 0 and the pixel value Vb to 100. As a result, the pixel values of the pixel values of the third row 2 to the fourth column and the third row 8 to the 10th column are corrected from 50 to 0. On the other hand, for the selection regions R12 to R14, the pixel value determination unit 13 determines “no correction”, and the pixel value correction unit 14 does not correct the pixel values Vb and Vc. For this reason, the processed image when the conditions are not relaxed is as shown in FIG. In this image, the pixel value of the pixel in the third row to the fifth column remains the intermediate pixel value 50.

そこで、画素値判定部13は、水平方向に隣接する選択領域の少なくとも一方について補正を行うと判定した場合には、選択領域についての判定条件を緩和する。具体的には、画素値判定部13が「第1補正」と判定するためには、Vd=0であることを必要としない。画素値判定部13が「第2補正」と判定するためには、Va=0であることを必要としない。   Therefore, when the pixel value determination unit 13 determines to correct at least one of the selection areas adjacent in the horizontal direction, the pixel value determination unit 13 relaxes the determination condition for the selection area. Specifically, it is not necessary that Vd = 0 for the pixel value determination unit 13 to determine “first correction”. In order for the pixel value determination unit 13 to determine “second correction”, Va = 0 is not required.

図8(a)に示す処理前の画像に、判定条件を緩和しながら、画素Pb、Pcに適用する補正について判定する場合を考える。この場合、選択領域R11については、画素値判定部13は「第1補正」と判定し、画素値補正部14は画素値Vbを0に、画素値Vcを100に補正する。画素値判定部13は、選択領域R12について判定するときに、左隣の選択領域R11について「第1補正」と判定したことを考慮して上述したように判定条件を緩和し、画素値Vdを無視して「第1補正」と判定する。画素値補正部14は、この判定結果に従い、選択領域R12について、画素値Vbを0に、画素値Vcを100に補正する。選択領域R13、R14についても同様に、画素値判定部13は「第1補正」と判定し、画素値補正部14は画素値Vbを0に、画素値Vcを100に補正する。このため、条件緩和した場合の処理後の画像は、図8(c)に示すようになる。この画像では、3行5〜7列目の画素の画素値は50から100に補正される。   Consider a case in which correction to be applied to the pixels Pb and Pc is determined for the image before processing shown in FIG. In this case, for the selection region R11, the pixel value determination unit 13 determines “first correction”, and the pixel value correction unit 14 corrects the pixel value Vb to 0 and the pixel value Vc to 100. When determining the selection region R12, the pixel value determination unit 13 relaxes the determination condition as described above in consideration of determining that the selection region R11 on the left is the “first correction”, and sets the pixel value Vd. Ignored and determined as “first correction”. In accordance with this determination result, the pixel value correction unit 14 corrects the pixel value Vb to 0 and the pixel value Vc to 100 for the selection region R12. Similarly, for the selection regions R13 and R14, the pixel value determination unit 13 determines “first correction”, and the pixel value correction unit 14 corrects the pixel value Vb to 0 and the pixel value Vc to 100. For this reason, the processed image when the conditions are relaxed is as shown in FIG. In this image, the pixel value of the pixel in the third row to the fifth column is corrected from 50 to 100.

このように画素値判定部13が、水平方向に隣接する選択領域の少なくとも一方について補正を行うと判定した場合には、画素値Vaまたは画素値Vdを無視するように判定条件を緩和することにより、隣接部分について行った補正を継続して行い、複雑な文字や図形の境界付近にある中間調をなくし、印刷品質を向上させることができる。   As described above, when the pixel value determination unit 13 determines to correct at least one of the selection areas adjacent in the horizontal direction, the determination condition is relaxed so as to ignore the pixel value Va or the pixel value Vd. Further, the correction performed on the adjacent portion is continuously performed to eliminate the halftone near the boundary of the complicated character or figure, and the print quality can be improved.

次に、直前と同じ補正と判定する点について説明する。上述したように、Va=Vd=0、かつ、Vb=Vc=50の場合には、画素値判定部13は「第1補正」または「第2補正」と判定する。画素値判定部13は、直前にいずれの補正と判定したかを記憶し、Va=Vd=0、かつ、Vb=Vc=50の場合には、直前と同じ補正と判定する。   Next, the point determined to be the same correction as immediately before will be described. As described above, when Va = Vd = 0 and Vb = Vc = 50, the pixel value determination unit 13 determines “first correction” or “second correction”. The pixel value determination unit 13 stores which correction is determined immediately before, and when Va = Vd = 0 and Vb = Vc = 50, determines that the correction is the same as the previous correction.

例えば、図9(a)に示す処理前の画像を処理する場合を考える。この場合、画素値判定部13は、選択領域R21について「第1補正」と判定する。選択領域R22については、Va=Vd=0、かつ、Vb=Vc=50である。このため、画素値判定部13は、選択領域R22についても、直前と同様に「第1補正」と判定する。選択領域R23、R24についても、これと同様である。このため、図9(b)に示す処理後の画像では、2行5〜7列目の画素の画素値は、2行4列目の画素の画素値と同様に、50から0に補正される。   For example, consider a case where an image before processing shown in FIG. In this case, the pixel value determination unit 13 determines that the selection region R21 is “first correction”. For the selection region R22, Va = Vd = 0 and Vb = Vc = 50. For this reason, the pixel value determination unit 13 also determines “first correction” for the selection region R22 as in the previous case. The same applies to the selection regions R23 and R24. For this reason, in the image after processing shown in FIG. 9B, the pixel value of the pixel in the second row to the seventh column is corrected from 50 to 0 similarly to the pixel value of the pixel in the second row and the fourth column. The

また、図10(a)に示す処理前の画像を処理する場合を考える。この場合、画素値判定部13は、選択領域R31について「第2補正」と判定する。選択領域R32については、Va=Vd=0、かつ、Vb=Vc=50である。このため、画素値判定部13は、選択領域R32についても、直前と同様に「第2補正」と判定する。選択領域R33、R34についても、これと同様である。このため、図10(b)に示す処理後の画像では、3行5〜7列目の画素の画素値は、3行4列目の画素の画素値と同様に、50から0に補正される。   Also, consider the case of processing an image before processing shown in FIG. In this case, the pixel value determination unit 13 determines that the selection region R31 is “second correction”. For the selection region R32, Va = Vd = 0 and Vb = Vc = 50. For this reason, the pixel value determination unit 13 also determines “second correction” for the selection region R32 in the same manner as immediately before. The same applies to the selection regions R33 and R34. For this reason, in the image after processing shown in FIG. 10B, the pixel value of the pixel in the third row to the fifth column is corrected from 50 to 0 similarly to the pixel value of the pixel in the third row and the fourth column. The

また、図11(a)に示す処理前の画像を処理する場合を考える。この場合、画素値判定部13は、選択領域R41について「第1補正」と判定する。画素値判定部13は、選択領域R42について判定するときに、左隣の選択領域R41について補正を行うと判定したことを考慮して判定条件を緩和し、画素値Vdを無視して「第1補正」と判定する。選択領域R43については、Va=Vd=0、かつ、Vb=Vc=50である。このため、画素値判定部13は、選択領域R43についても、直前と同様に「第1補正」と判定する。選択領域R44についても、これと同様である。このため、図11(b)に示す処理後の画像では、3行6〜7列目の画素の画素値は、3行5列目の画素の画素値と同様に、50から0に補正される。   Also, consider the case of processing the image before processing shown in FIG. In this case, the pixel value determination unit 13 determines that the selection region R41 is “first correction”. When determining the selection region R42, the pixel value determination unit 13 relaxes the determination condition in consideration of determining that correction is performed for the selection region R41 on the left side, ignores the pixel value Vd, It is determined as “correction”. For the selection region R43, Va = Vd = 0 and Vb = Vc = 50. For this reason, the pixel value determination unit 13 also determines the selection region R43 as “first correction” in the same manner as immediately before. The same applies to the selection region R44. For this reason, in the image after processing shown in FIG. 11B, the pixel value of the pixel in the third row and the sixth to seventh columns is corrected from 50 to 0 similarly to the pixel value of the pixel in the third row and the fifth column. The

なお、画素値判定部13は、直前に「補正なし」と判定し、Va=Vd=0、かつ、Vb=Vc=50が成立する場合には、第1および第2補正のいずれと判定してもよい。このような場合に画素値判定部13がいずれと判定するかを予め決定しておき、画像処理装置10は決定した結果をパラメータとして記憶していてもよい。   Note that the pixel value determination unit 13 determines “no correction” immediately before, and if Va = Vd = 0 and Vb = Vc = 50 holds, determines whether the correction is the first or second correction. May be. In such a case, the pixel value determination unit 13 may determine in advance, and the image processing apparatus 10 may store the determined result as a parameter.

このようにVa=Vd=0、かつ、Vb=Vc=50の場合には、画素値判定部13が直前と同じ補正と判定し、画素値補正部14が直前と同様に画素値Vb、Vcを補正することにより、滑らかな細線に補正し、印刷品質を向上させることができる。   As described above, when Va = Vd = 0 and Vb = Vc = 50, the pixel value determination unit 13 determines that the correction is the same as that immediately before, and the pixel value correction unit 14 determines the pixel values Vb and Vc as before. By correcting this, it is possible to correct to a smooth fine line and improve the print quality.

以下、本実施形態に係る画像処理方法をフローチャートを参照して説明する。図12は、画像処理装置10の動作を示すフローチャートである。始めに、画像処理装置10には、対象画像X1と高解像度画像X2が入力される(ステップS101)。入力された対象画像X1と高解像度画像X2は、画像記憶部11に記憶される。次に、画素群選択部12は、対象画像X1に対して、最初の選択領域を設定する(ステップS102)。次に、画素値判定部13は、継続フラグをクリアし、直前の補正を補正なしに設定する(ステップS103)。   Hereinafter, the image processing method according to the present embodiment will be described with reference to flowcharts. FIG. 12 is a flowchart showing the operation of the image processing apparatus 10. First, the target image X1 and the high resolution image X2 are input to the image processing apparatus 10 (step S101). The input target image X1 and high resolution image X2 are stored in the image storage unit 11. Next, the pixel group selection unit 12 sets an initial selection region for the target image X1 (step S102). Next, the pixel value determination unit 13 clears the continuation flag and sets the previous correction without correction (step S103).

次に、画素値判定部13は、継続フラグがセットされているか否かを判断する(ステップS104)。画素値判定部13は、継続フラグがクリアされている場合にはステップS105へ進み、継続フラグがセットされている場合にはステップS106へ進む。前者の場合、画素値判定部13は、選択領域に含まれる4個の画素の画素値に基づき判定する(ステップS105)。後者の場合、画素値判定部13は、選択領域に含まれる3個の画素の画素値に基づき判定する(ステップS106)。   Next, the pixel value determination unit 13 determines whether or not the continuation flag is set (step S104). The pixel value determination unit 13 proceeds to step S105 when the continuation flag is cleared, and proceeds to step S106 when the continuation flag is set. In the former case, the pixel value determination unit 13 determines based on the pixel values of the four pixels included in the selection area (step S105). In the latter case, the pixel value determination unit 13 determines based on the pixel values of the three pixels included in the selection area (step S106).

ステップS105では、Va≠0またはVd≠0の場合には、「補正なし」と判定され、Va=Vd=0の場合には、画素値Vb、Vcに基づき図5に示すように判定される。ステップS106では、画素値Vaまたは画素値Vdを無視して、同様の判定が行われる。ステップS105およびS106における判定結果は、「第1補正」、「第2補正」、「第1または第2補正」、および、「補正なし」のいずれかになる。   In step S105, if Va.noteq.0 or Vd.noteq.0, it is determined that there is no correction, and if Va = Vd = 0, it is determined based on the pixel values Vb and Vc as shown in FIG. . In step S106, the same determination is performed ignoring the pixel value Va or the pixel value Vd. The determination result in steps S105 and S106 is one of “first correction”, “second correction”, “first or second correction”, and “no correction”.

ステップS105またはS106で「第1または第2補正」と判定した場合、画素値判定部13は、ステップS107へ進む。この場合、画素値判定部13は、直前の補正において記憶された補正結果に基づき、今回の補正を決定する(ステップS107)。ステップS107では、直前の補正が第1補正の場合には、今回の補正も第1補正に決定され、直前の補正が第2補正の場合には、今回の補正も第2補正に決定され、直前の補正が補正なしの場合には、今回の方法は所定の方法で第1補正または第2補正に決定される。次に、画素値判定部13は、ステップS107での決定に基づいて、今回の補正について第1補正または第2補正と判定する(ステップS108)。   If it is determined in step S105 or S106 that the correction is “first or second correction”, the pixel value determination unit 13 proceeds to step S107. In this case, the pixel value determination unit 13 determines the current correction based on the correction result stored in the previous correction (step S107). In step S107, if the previous correction is the first correction, the current correction is also determined as the first correction, and if the previous correction is the second correction, the current correction is also determined as the second correction. If the previous correction is no correction, the current method is determined to be the first correction or the second correction by a predetermined method. Next, the pixel value determination unit 13 determines that the current correction is the first correction or the second correction based on the determination in step S107 (step S108).

ステップS105、S106またはS108で「第1補正」と判定した場合、画素値判定部13はステップS109へ進む。この場合、画素値判定部13は、高解像度画像X2が条件を満たすか否かを判断する(ステップS109)。ステップS109では、左上画素Sb1と右上画素Sb2の画素値が両方とも0、かつ、左上画素Sc1と右上画素Sc2の画素値が両方とも100であるか否かが判断される。画素値判定部13は、ステップS109でYesと判断した場合にはステップS110へ進む。この場合、画素値補正部14は、画素値Vbを最小画素値0に、画素値Vcを最大画素値100に補正する(ステップS110)。次に、画素値判定部13は、継続フラグをセットし、直前の補正を第1補正に設定し(ステップS111)、ステップS116へ進む。   If it is determined as “first correction” in step S105, S106, or S108, the pixel value determination unit 13 proceeds to step S109. In this case, the pixel value determination unit 13 determines whether or not the high resolution image X2 satisfies the condition (step S109). In step S109, it is determined whether or not the pixel values of the upper left pixel Sb1 and the upper right pixel Sb2 are both 0, and the pixel values of the upper left pixel Sc1 and the upper right pixel Sc2 are both 100. If the pixel value determination unit 13 determines Yes in step S109, the pixel value determination unit 13 proceeds to step S110. In this case, the pixel value correcting unit 14 corrects the pixel value Vb to the minimum pixel value 0 and the pixel value Vc to the maximum pixel value 100 (step S110). Next, the pixel value determination unit 13 sets a continuation flag, sets the previous correction to the first correction (step S111), and proceeds to step S116.

ステップS105、S106またはS108で「第2補正」と判定した場合、画素値判定部13はステップS112へ進む。この場合、画素値判定部13は、高解像度画像X2が条件を満たすか否かを判断する(ステップS112)。ステップS112では、左下画素Sb3と右下画素Sb4の画素値が両方とも100、かつ、左下画素Sc3と右下画素Sc4の画素値が両方とも0であるか否かが判断される。画素値判定部13は、ステップS112でYesと判断した場合にはステップS113へ進む。この場合、画素値補正部14は、画素値Vbを最大画素値100に、画素値Vcを最小画素値0に補正する(ステップS113)。次に、画素値判定部13は、継続フラグをセットし、直前の補正を第2補正に設定し(ステップS114)、ステップS116へ進む。   If it is determined as “second correction” in step S105, S106, or S108, the pixel value determination unit 13 proceeds to step S112. In this case, the pixel value determination unit 13 determines whether or not the high resolution image X2 satisfies the condition (step S112). In step S112, it is determined whether the pixel values of the lower left pixel Sb3 and the lower right pixel Sb4 are both 100, and the pixel values of the lower left pixel Sc3 and the lower right pixel Sc4 are both 0. If the pixel value determination unit 13 determines Yes in step S112, the pixel value determination unit 13 proceeds to step S113. In this case, the pixel value correcting unit 14 corrects the pixel value Vb to the maximum pixel value 100 and the pixel value Vc to the minimum pixel value 0 (step S113). Next, the pixel value determination unit 13 sets a continuation flag, sets the previous correction to the second correction (step S114), and proceeds to step S116.

ステップS105またはS106で「補正なし」と判定した場合、あるいは、ステップS109またはS112でNoと判断した場合、画素値判定部13はステップS115へ進む。この場合、画素値判定部13は、継続フラグをクリアし、直前の補正を補正なしに設定し(ステップS115)、ステップS116へ進む。なお、この場合、画素値補正部14は、画素値Vb、Vcを補正しない。   If it is determined that “no correction” is determined in step S105 or S106, or if it is determined No in step S109 or S112, the pixel value determination unit 13 proceeds to step S115. In this case, the pixel value determination unit 13 clears the continuation flag, sets the previous correction without correction (step S115), and proceeds to step S116. In this case, the pixel value correction unit 14 does not correct the pixel values Vb and Vc.

ステップS116では、画素群選択部12は、すべての選択領域を処理済みか否かを判断する。ステップS116でNoと判断した場合、画素群選択部12は、ステップS117へ進む。この場合、画素群選択部12は、対象画像X1に対して、次の選択領域を設定し(ステップS117)、ステップS104へ進む。ステップS116でYesと判断した場合、画像処理装置10は、対象画像X1に対する処理を終了する。   In step S116, the pixel group selection unit 12 determines whether all the selection areas have been processed. If it is determined No in step S116, the pixel group selection unit 12 proceeds to step S117. In this case, the pixel group selection unit 12 sets the next selection region for the target image X1 (step S117), and proceeds to step S104. When it is determined Yes in step S116, the image processing apparatus 10 ends the process for the target image X1.

以下、画像処理装置10の効果を具体的に説明する。図13は、画像処理装置10による実際の処理例を示す図である。図13(a)に示す処理前の画像は、スーパーサンプリングを行うRIP処理システムから出力された画像である。この画像には、2画素未満の幅を有する線が含まれる。例えば、文字「品」の2画目と3画目に含まれる水平方向の線は、2画素未満の幅を有し、中間調の画素を含む。この画像を印刷機に直接供給した場合、印刷結果は図13(b)に示すようになる。この場合の印刷結果では、文字「品」の2画目と3画目に含まれる水平方向の線はかすれている。   Hereinafter, the effect of the image processing apparatus 10 will be specifically described. FIG. 13 is a diagram illustrating an actual processing example by the image processing apparatus 10. The image before processing shown in FIG. 13A is an image output from the RIP processing system that performs supersampling. This image includes lines having a width of less than two pixels. For example, the horizontal lines included in the second and third strokes of the character “product” have a width of less than 2 pixels and include halftone pixels. When this image is directly supplied to the printing machine, the printing result is as shown in FIG. In the printing result in this case, the horizontal lines included in the second and third strokes of the character “product” are blurred.

図13(c)に示す処理後の画像は、図13(a)に示す処理前の画像に対して画像処理装置10による画像処理方法を実施して得られた画像である。この画像では、中間調は最小画素値0または最大画素値100に補正されている。例えば、文字「品」の2画目と3画目に含まれる水平方向の線は、画素値100の画素で構成されている。この画像を印刷機に供給した場合、印刷結果は図13(d)に示すようになる。この場合の印刷結果では、文字「品」の2画目と3画目に含まれる水平方向の線のかすれは改善されている。このように画像処理装置10によれば、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   The image after processing shown in FIG. 13C is an image obtained by performing the image processing method by the image processing apparatus 10 on the image before processing shown in FIG. In this image, the halftone is corrected to the minimum pixel value 0 or the maximum pixel value 100. For example, the horizontal line included in the second and third strokes of the character “good” is composed of pixels having a pixel value of 100. When this image is supplied to the printing machine, the printing result is as shown in FIG. In the print result in this case, blurring of horizontal lines included in the second and third strokes of the character “good” is improved. As described above, according to the image processing apparatus 10, it is possible to sharpen characters and fine lines without making them thick, and to improve blurring of characters and fine lines during printing.

一般に、対象画像X1に含まれる画素の最小画素値は0以外の値でもよく、最大画素値は100以外の値でもよく、RIP処理システム20は出力画像の3倍以上の解像度でRIP処理を行ってもよい。RIP処理システム20が出力画像のn倍(nは2以上の整数)の解像度でRIP処理を行う場合、高解像度画像X2は水平方向および垂直方向に対象画像X1のn倍の解像度を有する2値または多値データとなり、対象画像X1は高解像度画像X2に対してダウンサンプリング処理を行って得られた多値データとなる。   In general, the minimum pixel value of the pixels included in the target image X1 may be a value other than 0, the maximum pixel value may be a value other than 100, and the RIP processing system 20 performs RIP processing at a resolution three times that of the output image. May be. When the RIP processing system 20 performs RIP processing at a resolution n times that of the output image (n is an integer equal to or greater than 2), the high resolution image X2 is a binary image having a resolution n times that of the target image X1 in the horizontal and vertical directions. Or it becomes multi-value data, and the target image X1 becomes multi-value data obtained by down-sampling the high-resolution image X2.

最小画素値がV1、最大画素値がV2、RIP処理システム20が出力画像のn倍の解像度でRIP処理を行う場合には、画素値判定部13は、第1閾値Th1を{V1+(n−1)×V2}/n、第2閾値Th2を{(n−1)×V1+V2}/nとする。画素値判定部13は、Va=Vd=V1、Vb≦Th1、かつ、Vc≧Th2の場合には第1補正と判定し、Va=Vd=V1、Vb≧Th2、かつ、Vc≦Th1の場合には第2補正と判定し、その他の場合には補正なしと判定する。図5に示す判定結果は、V1=0、V2=100、n=2の場合に相当する。このような第1および第2閾値Th1、Th2を用いて画素Pb、Pcに適用する補正について判定することにより、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   When the minimum pixel value is V1, the maximum pixel value is V2, and the RIP processing system 20 performs RIP processing at a resolution n times that of the output image, the pixel value determination unit 13 sets the first threshold Th1 to {V1 + (n− 1) × V2} / n, and the second threshold Th2 is {(n−1) × V1 + V2} / n. The pixel value determination unit 13 determines the first correction when Va = Vd = V1, Vb ≦ Th1, and Vc ≧ Th2, and when Va = Vd = V1, Vb ≧ Th2, and Vc ≦ Th1 Is determined as the second correction, and in other cases, it is determined that there is no correction. The determination result shown in FIG. 5 corresponds to the case where V1 = 0, V2 = 100, and n = 2. By determining the correction to be applied to the pixels Pb and Pc using the first and second threshold values Th1 and Th2, the characters and fine lines are sharpened without being thickened, and the blurring of characters and fine lines at the time of printing is improved. can do.

以上に示すように、本実施形態に係る画像処理方法は、多値の対象画像X1から第1方向(垂直方向)に連続して並んだ複数の画素Pa、Pb、Pc、Pdを順に選択する画素群選択ステップと、画素群選択ステップで選択された複数の画素の画素値Va、Vb、Vc、Vdに基づき、複数の画素に含まれ、両端以外の連続する2個の対象画素Pb、Pcに適用する補正について判定する画素値判定ステップと、画素値判定ステップによる判定結果に従い、一方の対象画素の画素値を最小画素値0に、他方の対象画素の画素値を最大画素値100に補正する画素値補正ステップとを備えている。本実施形態に係る画像処理装置10は、画素群選択ステップを行う画素群選択部12と、画素値判定ステップを行う画素値判定部13と、画素値補正ステップを行う画素値補正部14とを備えている。このように第1方向に連続して並んだ複数の画素の画素値に基づき判定を行い、判定結果に従い2個の対象画素の画素値を最小画素値と最大画素値に補正することにより、対象画像が第1方向に直交する第2方向に延伸する線を含む場合に、線の幅を太くせずに、線の境界付近にある中間調をなくすことができる。したがって、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   As described above, the image processing method according to the present embodiment sequentially selects a plurality of pixels Pa, Pb, Pc, and Pd that are continuously arranged in the first direction (vertical direction) from the multi-value target image X1. Based on the pixel group selection step and the pixel values Va, Vb, Vc, and Vd of the plurality of pixels selected in the pixel group selection step, two consecutive target pixels Pb and Pc that are included in the plurality of pixels and other than both ends In accordance with the pixel value determination step for determining the correction to be applied to the pixel and the determination result of the pixel value determination step, the pixel value of one target pixel is corrected to the minimum pixel value 0, and the pixel value of the other target pixel is corrected to the maximum pixel value 100 And a pixel value correcting step. The image processing apparatus 10 according to the present embodiment includes a pixel group selection unit 12 that performs a pixel group selection step, a pixel value determination unit 13 that performs a pixel value determination step, and a pixel value correction unit 14 that performs a pixel value correction step. I have. In this way, a determination is made based on the pixel values of a plurality of pixels arranged in succession in the first direction, and the pixel values of the two target pixels are corrected to the minimum pixel value and the maximum pixel value according to the determination result. When the image includes a line extending in the second direction orthogonal to the first direction, it is possible to eliminate the halftone near the line boundary without increasing the line width. Therefore, the characters and fine lines can be clarified without being thickened, and the blurring of characters and fine lines during printing can be improved.

また、画素群選択ステップは、対象画像から第1方向に連続して並んだ第1〜第4画素Pa、Pb、Pc、Pdを選択し、画素値判定ステップは、第1および第4画素の画素値Va、Vdが最小画素値0に等しく、第2画素の画素値Vbが第1閾値50以下、かつ、第3画素の画素値Vcが第2閾値50以上の場合には第1補正と判定し、第1および第4画素の画素値が最小画素値0に等しく、第2画素の画素値Vbが第2閾値50以上、かつ、第3画素の画素値Vcが第1閾値50以下の場合には第2補正と判定し、その他の場合には補正なしと判定する。画素値補正ステップは、第1補正と判定された場合には、第2画素の画素値Vbを最小画素値0に、第3画素の画素値Vcを最大画素値100に補正し、第2補正と判定された場合には、第2画素の画素値Vbを最大画素値100に、第3画素の画素値Vcを最小画素値0に補正する。このように第2方向に延伸する線の幅が2画素未満の場合に、第2および第3画素の画素値を最小画素値と最大画素値に補正することにより、文字や細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   The pixel group selection step selects the first to fourth pixels Pa, Pb, Pc, and Pd that are continuously arranged in the first direction from the target image, and the pixel value determination step includes the first and fourth pixels. When the pixel values Va and Vd are equal to the minimum pixel value 0, the pixel value Vb of the second pixel is equal to or lower than the first threshold value 50, and the pixel value Vc of the third pixel is equal to or higher than the second threshold value 50, the first correction is performed. The pixel value of the first pixel and the fourth pixel are equal to the minimum pixel value 0, the pixel value Vb of the second pixel is equal to or greater than the second threshold value 50, and the pixel value Vc of the third pixel is equal to or less than the first threshold value 50 In this case, it is determined that the second correction is performed, and in other cases, it is determined that there is no correction. The pixel value correcting step corrects the pixel value Vb of the second pixel to the minimum pixel value 0, corrects the pixel value Vc of the third pixel to the maximum pixel value 100, and determines the second correction when it is determined as the first correction. Is determined, the pixel value Vb of the second pixel is corrected to the maximum pixel value 100, and the pixel value Vc of the third pixel is corrected to the minimum pixel value 0. In this way, when the width of the line extending in the second direction is less than two pixels, the pixel values of the second and third pixels are corrected to the minimum pixel value and the maximum pixel value, so that characters and fine lines are not made thick. This makes it possible to improve the blurring of characters and fine lines during printing.

また、対象画像X1は、対象画像よりも高い解像度を有する2値または多値の高解像度画像X2にダウンサンプリング処理を行って得られた画像であり、画素値判定ステップは、画素群選択ステップで選択された複数の画素の画素値に加えて、複数の画素に対応し、高解像度画像X2に含まれる複数の画素(Sb1、Sb2など)の画素値に基づき、対象画素Pb、Pcに適用する補正について判定する。これにより、線が第1方向に直交する方向に延伸する場合に限って補正を行い、印刷品質を向上させることができる。   The target image X1 is an image obtained by performing a downsampling process on a binary or multilevel high resolution image X2 having a higher resolution than the target image, and the pixel value determination step is a pixel group selection step. Apply to the target pixels Pb and Pc based on the pixel values of the plurality of pixels (Sb1, Sb2, etc.) corresponding to the plurality of pixels and included in the high-resolution image X2 in addition to the pixel values of the plurality of selected pixels. Determine for correction. Thereby, it can correct | amend only when a line is extended | stretched in the direction orthogonal to a 1st direction, and can improve printing quality.

また、画素値判定ステップは、画素群選択ステップで選択された複数の画素に対して第1方向に直交する方向(水平方向)に隣接する複数の隣接画素に含まれる対象画素について補正を行うと判定した場合には、複数の画素に含まれる一部の画素の画素値(画素値VaまたはVd)を無視するように判定条件を緩和して、対象画素Pb、Pcに適用する補正について判定する。これにより、隣接部分について行った補正を継続して行い、複雑な文字や図形の境界付近にある中間調をなくし、印刷品質を向上させることができる。   In the pixel value determination step, correction is performed on target pixels included in a plurality of adjacent pixels adjacent to a plurality of pixels selected in the pixel group selection step in a direction (horizontal direction) orthogonal to the first direction. When the determination is made, the determination condition is relaxed so as to ignore the pixel values (pixel values Va or Vd) of some of the pixels included in the plurality of pixels, and the correction to be applied to the target pixels Pb and Pc is determined. . Thereby, the correction performed on the adjacent portion can be continuously performed, the halftone near the boundary of the complicated character or figure can be eliminated, and the print quality can be improved.

また、画素値判定ステップは、対象画素の画素値Vb、Vcが両方とも中間画素値50に等しい場合には、直前と同じ補正と判定する。これにより、滑らかな線に補正し、印刷品質を向上させることができる。   In the pixel value determination step, when both the pixel values Vb and Vc of the target pixel are equal to the intermediate pixel value 50, it is determined as the same correction as immediately before. Thereby, it can correct | amend to a smooth line and can improve printing quality.

本実施形態に係る画像処理装置10については、各種の変形例を構成することができる。まず、画素群選択部12は、対象画像X1から垂直方向に連続して並んだ4個の画素を任意の順序で選択してもよい。画素群選択部12は、選択領域を右から左に順に移動させてもよく、下から上に順に移動させてもよく、左右両端から中央に順に移動させてもよい。また、画素群選択部12は、対象画像X1から水平方向に連続して並んだ4個の画素を順に選択してもよい。この場合、選択領域に含まれる4個の画素を左から順にPa、Pb、Pc、Pdとして、画素値判定部13と画素値補正部14は上記の処理を行う。これにより、垂直方向の線がある場合に、線の幅を太くせずに、線の境界付近にある中間調をなくすことができる。したがって、垂直方向の線を含む文字や垂直方向の細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。また、画素群選択部12は、対象画像X1から垂直方向に連続して並んだ4個の画素を順に選択する処理と、対象画像X1から水平方向に連続して並んだ4個の画素を順に選択する処理の両方を行ってもよい。これにより、垂直方向の線と水平方向の線を含む文字や水平方向の細線や垂直方向の細線を太くせずに鮮明化し、印刷時の文字や細線のかすれを改善することができる。   Various modifications can be configured for the image processing apparatus 10 according to the present embodiment. First, the pixel group selection unit 12 may select four pixels arranged in a row in the vertical direction from the target image X1 in an arbitrary order. The pixel group selection unit 12 may move the selection region in order from right to left, may be moved in order from the bottom to the top, or may be moved in order from the left and right ends to the center. In addition, the pixel group selection unit 12 may sequentially select four pixels arranged in a row in the horizontal direction from the target image X1. In this case, the pixel value determination unit 13 and the pixel value correction unit 14 perform the above-described processing with the four pixels included in the selection region as Pa, Pb, Pc, and Pd in order from the left. Thereby, when there is a line in the vertical direction, the halftone near the boundary of the line can be eliminated without increasing the line width. Therefore, characters including vertical lines and vertical thin lines can be sharpened without being thickened, and blurring of characters and thin lines during printing can be improved. In addition, the pixel group selection unit 12 sequentially selects four pixels arranged in the vertical direction from the target image X1, and sequentially selects four pixels arranged in the horizontal direction from the target image X1. You may perform both the processes to select. As a result, characters including vertical lines and horizontal lines, horizontal thin lines, and vertical thin lines are sharpened without being thickened, and blurring of characters and thin lines during printing can be improved.

また、以上の説明では、画像処理装置10は、印刷品質を向上させるために、高解像度画像X2を参照して判定する処理、判定条件を緩和する処理、および、直前と同じ補正と判定する処理を行うこととしたが、変形例に係る画像処理装置はこれら3つの処理のうち1つまたは2つだけを行ってもよく、これら3つの処理を1つも行わなくてもよい。   In the above description, in order to improve the print quality, the image processing apparatus 10 performs a determination process with reference to the high-resolution image X2, a process for relaxing the determination condition, and a process for determining the same correction as immediately before. However, the image processing apparatus according to the modification may perform only one or two of these three processes, and may not perform any of these three processes.

また、画像処理装置10は、対象画像X1の供給を受けず、高解像度画像X2だけに基づき上記の処理を行ってもよい。この場合、画像処理装置10は、入力された高解像度画像X2に基づき対象画像X1を求め、求めた対象画像X1について上記の処理を行う。また、RIP処理システム20から出力される画像がカラー画像の場合には、画像処理装置10は、カラー画像に含まれる各色の画像に対して上記の処理を行えばよい。   Further, the image processing apparatus 10 may perform the above-described processing based only on the high-resolution image X2 without receiving the supply of the target image X1. In this case, the image processing apparatus 10 obtains the target image X1 based on the input high resolution image X2, and performs the above-described processing on the obtained target image X1. When the image output from the RIP processing system 20 is a color image, the image processing apparatus 10 may perform the above-described processing on each color image included in the color image.

また、以上の説明では、文字や細線の画素値が最大画素値であり、背景の画素値が最小画素値であるとしたが、文字や細線の画素値は中間画素値(最小画素値と最大画素値の間の画素値)であってもよく、背景の画素値も中間画素値であってもよい。この場合、図12に示すフローチャートにおいて、画像処理装置10は、ステップS104の直前で、選択領域に含まれる4個の画素に対応する高解像度画像X2の画素を参照して最小画素値V1と最大画素値V2を都度設定した後に、後続のステップを実行する。そして、判定結果に従い第1補正と判定された場合は、画素値補正部14は、画素値Vbを「0」ではなく、高解像度画像X2の対応する画素群の最小値V1に、画素値Vcを「100」ではなく、高解像度画像X2の対応する画素群の最大値V2に補正する。一方、第2補正と判定された場合は、画素値補正部14は、画素値Vbを「100」ではなく、高解像度画像X2の対応する画素群の最大値V2に、画素値Vcを「0」ではなく、高解像度画像X2の対応する画素群の最小値V1に補正する。これにより、文字や細線の画素値が最大画素値でなく中間画素値である場合や、背景の画素値が最小画素値でなく中間画素値である場合でも、それぞれの中間画素値に合わせて適切に文字や細線のかすれを改善することができる。特に、1枚の画像の中に画素値が異なる複数の文字や細線が含まれている場合でも、適切にかすれを改善することができる。   In the above description, the pixel value of the character or thin line is the maximum pixel value, and the pixel value of the background is the minimum pixel value. However, the pixel value of the character or thin line is the intermediate pixel value (the minimum pixel value and the maximum pixel value). Pixel values between pixel values), and the background pixel values may also be intermediate pixel values. In this case, in the flowchart shown in FIG. 12, the image processing apparatus 10 refers to the pixels of the high-resolution image X2 corresponding to the four pixels included in the selected area immediately before step S104, and sets the minimum pixel value V1 and the maximum value. After the pixel value V2 is set each time, subsequent steps are executed. If the first correction is determined according to the determination result, the pixel value correction unit 14 sets the pixel value Vc to the minimum value V1 of the corresponding pixel group of the high-resolution image X2 instead of “0”. Is corrected to the maximum value V2 of the corresponding pixel group of the high-resolution image X2 instead of “100”. On the other hand, when it is determined as the second correction, the pixel value correcting unit 14 sets the pixel value Vb to “0” instead of “100”, the pixel value Vc to the maximum value V2 of the corresponding pixel group of the high resolution image X2. ”Instead of the minimum value V1 of the corresponding pixel group of the high-resolution image X2. As a result, even when the pixel value of characters or thin lines is not the maximum pixel value but the intermediate pixel value, or when the background pixel value is not the minimum pixel value but the intermediate pixel value, it is appropriate for each intermediate pixel value. The blurring of characters and fine lines can be improved. In particular, even when a plurality of characters and thin lines having different pixel values are included in one image, blurring can be appropriately improved.

また、以上の説明では、画素値判定部13は、Va=Vd=0(V1)、Vb≦Th1、かつ、Vc≧Th2の場合に第1補正と判定したが、これに判定条件としてVb<Vcを追加してもよい。さらに、画素値判定部13は、Va=Vd=0(V1)、Vb≧Th2、かつ、Vc≦Th1の場合に第2補正と判定したが、これに判定条件としてVb>Vcを追加してもよい。これらの判定条件を追加することにより、「第1補正」、「第2補正」のいずれかに判定する場合を増加させ、「第1または第2補正」と判定する場合を削減することができる。例えば、n=4の場合について図5と同様のテーブルを作成するときに、判定条件を追加しなければ、中央部の9個の場合について「第1または第2補正」と判定するが、判定条件を追加すれば、「第1または第2補正」と判定する場合をVb=Vc=25、50、75の3個の場合に削減することができる。   In the above description, the pixel value determination unit 13 determines the first correction when Va = Vd = 0 (V1), Vb ≦ Th1, and Vc ≧ Th2, but Vb < Vc may be added. Further, the pixel value determination unit 13 determines the second correction when Va = Vd = 0 (V1), Vb ≧ Th2, and Vc ≦ Th1, but adds Vb> Vc as a determination condition to this. Also good. By adding these determination conditions, it is possible to increase the number of cases of determination as “first correction” or “second correction” and to reduce the case of determination as “first or second correction”. . For example, when creating a table similar to that in FIG. 5 for the case of n = 4, if the determination condition is not added, it is determined as “first or second correction” for the nine cases in the central portion. If a condition is added, the case of determining “first or second correction” can be reduced to three cases of Vb = Vc = 25, 50, and 75.

10…画像処理装置
11…画像記憶部
12…画素群選択部
13…画素値判定部
14…画素値補正部
20…RIP処理システム
30…印刷機
X1…対象画像
X2…高解像度画像
DESCRIPTION OF SYMBOLS 10 ... Image processing apparatus 11 ... Image memory | storage part 12 ... Pixel group selection part 13 ... Pixel value determination part 14 ... Pixel value correction | amendment part 20 ... RIP processing system 30 ... Printer X1 ... Target image X2 ... High resolution image

Claims (9)

多値の対象画像から第1方向に連続して並んだ複数の画素を順に選択する画素群選択ステップと、
前記画素群選択ステップで選択された複数の画素の画素値に基づき、前記複数の画素に含まれ、両端以外の連続する2個の対象画素に適用する補正について判定する画素値判定ステップと、
前記画素値判定ステップによる判定結果に従い、一方の対象画素の画素値を最小画素値に、他方の対象画素の画素値を最大画素値に補正する画素値補正ステップとを備えた、画像処理方法。
A pixel group selection step for sequentially selecting a plurality of pixels arranged in a row in the first direction from the multi-value target image;
A pixel value determination step for determining a correction to be applied to two consecutive target pixels included in the plurality of pixels other than both ends based on pixel values of the plurality of pixels selected in the pixel group selection step;
An image processing method comprising: a pixel value correcting step of correcting a pixel value of one target pixel to a minimum pixel value and a pixel value of the other target pixel to a maximum pixel value according to a determination result in the pixel value determining step.
前記画素群選択ステップは、前記対象画像から前記第1方向に連続して並んだ第1〜第4画素を選択し、
前記画素値判定ステップは、前記第1および第4画素の画素値が前記最小画素値に等しく、前記第2画素の画素値が第1閾値以下、かつ、前記第3画素の画素値が第2閾値以上の場合には第1補正と判定し、前記第1および第4画素の画素値が前記最小画素値に等しく、前記第2画素の画素値が前記第2閾値以上、かつ、前記第3画素の画素値が前記第1閾値以下の場合には第2補正と判定し、その他の場合には補正なしと判定し、
前記画素値補正ステップは、前記画素値判定ステップで第1補正と判定された場合には、前記第2画素の画素値を前記最小画素値に、前記第3画素の画素値を前記最大画素値に補正し、前記画素値判定ステップで第2補正と判定された場合には、前記第2画素の画素値を前記最大画素値に、前記第3画素の画素値を前記最小画素値に補正することを特徴とする、請求項1に記載の画像処理方法。
The pixel group selection step selects first to fourth pixels arranged continuously in the first direction from the target image,
In the pixel value determining step, the pixel values of the first and fourth pixels are equal to the minimum pixel value, the pixel value of the second pixel is equal to or less than a first threshold value, and the pixel value of the third pixel is a second value. If the threshold value is greater than or equal to the threshold value, the first correction is determined, the pixel values of the first and fourth pixels are equal to the minimum pixel value, the pixel value of the second pixel is greater than or equal to the second threshold value, and the third If the pixel value of the pixel is less than or equal to the first threshold, it is determined as the second correction, otherwise it is determined as no correction,
In the pixel value correcting step, when the pixel value determining step determines that the first correction is made, the pixel value of the second pixel is set to the minimum pixel value, and the pixel value of the third pixel is set to the maximum pixel value. If the second correction is determined in the pixel value determination step, the pixel value of the second pixel is corrected to the maximum pixel value, and the pixel value of the third pixel is corrected to the minimum pixel value. The image processing method according to claim 1, wherein:
前記対象画像は、水平方向および垂直方向に前記対象画像のn倍(nは2以上の整数)の解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記最小画素値をV1、前記最大画素値をV2としたとき、前記第1閾値は{V1+(n−1)×V2}/n、前記第2閾値は{(n−1)×V1+V2}/nであることを特徴とする、請求項2に記載の画像処理方法。
The target image is an image obtained by performing a downsampling process on a high-resolution image having a resolution n times (n is an integer of 2 or more) the target image in the horizontal direction and the vertical direction,
When the minimum pixel value is V1 and the maximum pixel value is V2, the first threshold value is {V1 + (n−1) × V2} / n, and the second threshold value is {(n−1) × V1 + V2} / The image processing method according to claim 2, wherein n is n.
前記nは2であることを特徴とする、請求項3に記載の画像処理方法。   The image processing method according to claim 3, wherein n is 2. 5. 前記対象画像は、前記対象画像よりも高い解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記画素値判定ステップは、前記画素群選択ステップで選択された複数の画素の画素値に加えて、前記複数の画素に対応し、前記高解像度画像に含まれる複数の画素の画素値に基づき、前記対象画素に適用する補正について判定することを特徴とする、請求項1または2に記載の画像処理方法。
The target image is an image obtained by performing a downsampling process on a high-resolution image having a higher resolution than the target image,
The pixel value determination step corresponds to the plurality of pixels in addition to the pixel values of the plurality of pixels selected in the pixel group selection step, and is based on the pixel values of the plurality of pixels included in the high-resolution image, The image processing method according to claim 1, wherein a correction to be applied to the target pixel is determined.
前記画素値判定ステップは、前記画素群選択ステップで選択された複数の画素に対して前記第1方向に直交する方向に隣接する複数の隣接画素に含まれる対象画素について補正を行うと判定した場合には、前記複数の画素に含まれる一部の画素の画素値を無視するように判定条件を緩和して、前記対象画素に適用する補正について判定することを特徴とする、請求項1または2に記載の画像処理方法。   The pixel value determination step determines that correction is performed on target pixels included in a plurality of adjacent pixels adjacent to the plurality of pixels selected in the pixel group selection step in a direction orthogonal to the first direction. The method according to claim 1, wherein a determination condition is relaxed so as to ignore pixel values of some of the pixels included in the plurality of pixels, and the correction to be applied to the target pixel is determined. An image processing method described in 1. 前記画素値判定ステップは、前記対象画素の画素値が両方とも中間画素値に等しい場合には、直前と同じ補正と判定することを特徴とする、請求項1または2に記載の画像処理方法。   3. The image processing method according to claim 1, wherein the pixel value determination step determines that the correction is the same as the previous correction when both of the pixel values of the target pixel are equal to the intermediate pixel value. 前記対象画像は、前記対象画像よりも高い解像度を有する高解像度画像にダウンサンプリング処理を行って得られた画像であり、
前記画素値補正ステップは、前記最小画素値に補正すべき対象画素の画素値を前記高解像度画像の対応する画素群の最小値に、前記最大画素値に補正すべき対象画素の画素値を前記高解像度画像の対応する画素群の最大値に補正することを特徴とする、請求項1または2に記載の画像処理方法。
The target image is an image obtained by performing a downsampling process on a high-resolution image having a higher resolution than the target image,
In the pixel value correcting step, the pixel value of the target pixel to be corrected to the minimum pixel value is set to the minimum value of the corresponding pixel group of the high resolution image, and the pixel value of the target pixel to be corrected to the maximum pixel value is set to the maximum pixel value. The image processing method according to claim 1, wherein the correction is made to the maximum value of the corresponding pixel group of the high-resolution image.
多値の対象画像から第1方向に連続して並んだ複数の画素を順に選択する画素群選択部と、
前記画素群選択部で選択された複数の画素の画素値に基づき、前記複数の画素に含まれ、両端以外の連続する2個の対象画素に適用する補正について判定する画素値判定部と、
前記画素値判定部による判定結果に従い、一方の対象画素の画素値を最小画素値に、他方の対象画素の画素値を最大画素値に補正する画素値補正部とを備えた、画像処理装置。
A pixel group selector that sequentially selects a plurality of pixels arranged in a row in the first direction from the multi-value target image;
A pixel value determination unit that determines correction to be applied to two consecutive target pixels that are included in the plurality of pixels and other than both ends, based on pixel values of the plurality of pixels selected by the pixel group selection unit;
An image processing apparatus comprising: a pixel value correcting unit that corrects a pixel value of one target pixel to a minimum pixel value and a pixel value of the other target pixel to a maximum pixel value according to a determination result by the pixel value determination unit.
JP2015148645A 2015-07-28 2015-07-28 Image processing method and image processing apparatus Active JP6576143B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015148645A JP6576143B2 (en) 2015-07-28 2015-07-28 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015148645A JP6576143B2 (en) 2015-07-28 2015-07-28 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2017028657A true JP2017028657A (en) 2017-02-02
JP6576143B2 JP6576143B2 (en) 2019-09-18

Family

ID=57950066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015148645A Active JP6576143B2 (en) 2015-07-28 2015-07-28 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP6576143B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182415A (en) * 2020-09-04 2021-01-05 上海松鼠课堂人工智能科技有限公司 Intelligent learning guiding method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182415A (en) * 2020-09-04 2021-01-05 上海松鼠课堂人工智能科技有限公司 Intelligent learning guiding method and system
CN112182415B (en) * 2020-09-04 2021-08-17 上海松鼠课堂人工智能科技有限公司 Intelligent learning guiding method and system

Also Published As

Publication number Publication date
JP6576143B2 (en) 2019-09-18

Similar Documents

Publication Publication Date Title
JP4935916B2 (en) Image processing program and image processing apparatus
JP5295431B2 (en) Image processing device
JP6781406B2 (en) Image processing equipment and computer programs
JP2016092760A (en) Apparatus and method for image processing
JP2007036560A (en) Image processor, image processing method, and its program
JP2009017396A5 (en)
JP2006352633A (en) Image processing method and its program
JP6576143B2 (en) Image processing method and image processing apparatus
CN104427202A (en) Image variable magnification device and image variable magnification method
JP6318954B2 (en) Image processing apparatus and computer program
JP2007067984A (en) Method and apparatus for correcting density of binary image
JP5790948B2 (en) Image deformation processing apparatus and image deformation processing method
US9754162B2 (en) Image processing method and device for adaptive image enhancement
JP2016086223A (en) Image processing apparatus, image processing method, image processing program, and image forming apparatus
JP2019176406A (en) Image processing apparatus
JP4839872B2 (en) Image forming apparatus, image forming method, and image forming program
JP5878167B2 (en) How to restore raster image edges
JP3669081B2 (en) Image processing device
JP6234234B2 (en) Information processing apparatus, information processing method, and program
JP6651776B2 (en) Image processing apparatus, image processing method, and program
JP2015106318A (en) Image processor and image processing method
JP2005210339A (en) Image processor, print controller, and image processing method and program
JP2018152666A (en) Image formation system, image formation device, image formation method, and program
JP2011120027A (en) Image processor and processing method
JP2001086368A (en) Image processor

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150825

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180626

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190528

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190712

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: 20190806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190820

R150 Certificate of patent or registration of utility model

Ref document number: 6576143

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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