JP2009105943A - Image-forming apparatus, linewidth control method, and linewidth control program - Google Patents

Image-forming apparatus, linewidth control method, and linewidth control program Download PDF

Info

Publication number
JP2009105943A
JP2009105943A JP2009003825A JP2009003825A JP2009105943A JP 2009105943 A JP2009105943 A JP 2009105943A JP 2009003825 A JP2009003825 A JP 2009003825A JP 2009003825 A JP2009003825 A JP 2009003825A JP 2009105943 A JP2009105943 A JP 2009105943A
Authority
JP
Japan
Prior art keywords
line width
pixel
processing
edge
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009003825A
Other languages
Japanese (ja)
Other versions
JP4569702B2 (en
Inventor
Kazunobu Noguchi
和宣 野口
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies Inc
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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2009003825A priority Critical patent/JP4569702B2/en
Publication of JP2009105943A publication Critical patent/JP2009105943A/en
Application granted granted Critical
Publication of JP4569702B2 publication Critical patent/JP4569702B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Color Electrophotography (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming apparatus can forming a high-quality image by enhancing reproducibility of a thin line. <P>SOLUTION: The image-forming apparatus detects a line width in a line-width detector 105 by means of attribute data input from an attribute-data input unit 101, and a line color in a color detector 117. An edge is detected in an edge detector 109 by image data input from an image-data input unit 103. These logic products are calculated in a logic-product calculator 107. An individually established coefficient is stored according to the line width in a respective color in a coefficient storage unit 113. A line-width correction coefficient calculator 111 corrects the line width of the edge and a detected pixel, by obtaining a corrective coefficient in accordance with the detected line width and the line color to multiply it to the line width. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は画像形成装置、線幅制御方法、および線幅制御プログラムに関し、特に、細線を高品質で再現できる画像形成装置、線幅制御方法、および線幅制御プログラムに関する。   The present invention relates to an image forming apparatus, a line width control method, and a line width control program, and more particularly, to an image forming apparatus, a line width control method, and a line width control program that can reproduce fine lines with high quality.

ファクシミリ等の画像入力装置で原稿を移動させて画像を読取る際、同じ線幅の細線を読取っても副走査方向(縦細線)よりも走査方向(横細線)の方が出力が高くなる。そのため、副走査方向に対する補正が主走査方向に対する補正よりも弱くされている。その結果、副走査方向に該当する横細線に細線切れなどの画質の劣化が発生していた。   When an image is read by moving an original with an image input device such as a facsimile, the output in the scanning direction (horizontal thin line) is higher than that in the sub-scanning direction (vertical thin line) even if a thin line having the same line width is read. Therefore, the correction in the sub-scanning direction is weaker than the correction in the main scanning direction. As a result, image quality degradation such as thin line breakage occurs in the horizontal thin line corresponding to the sub-scanning direction.

この問題に対処するため、特開平6−30267号公報(以下、特許文献1)では、横細線の細線切れを防ぎ、画質の向上を図る画像読取装置が提案されている。この画像読取装置では、画像入力部での線幅に対する最小出力特性が、縦細線最小出力より横細線最小出力の方が高い場合、画像処理部でのMFT補正で、副走査方向の画素への重み係数を主走査方向の画素の重み係数よりも大きくすることで、横細線読取時の線の欠けを防いでいる。   In order to cope with this problem, Japanese Patent Application Laid-Open No. 6-30267 (hereinafter referred to as Patent Document 1) proposes an image reading apparatus that prevents horizontal fine lines from being cut and improves image quality. In this image reading apparatus, when the minimum output characteristic with respect to the line width in the image input unit is higher in the minimum horizontal thin line output than in the vertical thin line minimum output, the image processing unit performs MFT correction on the pixels in the sub-scanning direction. By making the weighting factor larger than the weighting factor of the pixels in the main scanning direction, line omission is prevented during horizontal thin line reading.

特開平6−30267号公報JP-A-6-30267

しかしながら、このように入力された画像データであっても、MFP(Multi Function Peripheral)などの画像形成装置においてフォントを印刷すると、エンジンの性能によって、ドットが膨張する傾向がある。その結果、細線の再現性が低下するという問題があった。   However, even with the image data input in this way, when a font is printed in an image forming apparatus such as an MFP (Multi Function Peripheral), the dots tend to expand due to the performance of the engine. As a result, there is a problem that the reproducibility of the thin line is lowered.

細線の再現性が低下すると、細線が再現されず、フォントの種類が判別できなくなるという問題がある。また、細線が細線として出力されず、出力画像の品質が低下するという問題もある。また、サイズの小さなフォントは、フォント自身が判別できなくなる場合もあるという問題もある。   When the reproducibility of the thin line is lowered, there is a problem that the thin line is not reproduced and the font type cannot be identified. Further, there is a problem that the fine line is not output as a fine line, and the quality of the output image is lowered. In addition, there is a problem that a small font may not be able to be identified.

本発明はこのような問題に鑑みてなされたものであって、細線の再現性を高めることで、高品質の画像を形成することのできる画像形成装置、線幅制御方法、および線幅制御プログラムを提供することを目的とする。   The present invention has been made in view of such problems, and an image forming apparatus, a line width control method, and a line width control program capable of forming a high-quality image by improving the reproducibility of thin lines. The purpose is to provide.

上記目的を達成するために、本発明のある局面に従うと、画像形成装置は、画像データに対応した属性データより、画像データに含まれる線の線幅を検出する線幅検出手段と、画像データよりエッジ画素を検出するエッジ検出手段と、画像データより線の色を検出する色検出手段と、色ごとに線幅に対応した線幅補正係数を記憶する記憶手段と、エッジ画素について、線幅検出手段で検出された線幅と色検出手段で検出された色とに対応した線幅補正係数を記憶手段から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する補正手段とを備える。   In order to achieve the above object, according to one aspect of the present invention, an image forming apparatus includes a line width detecting unit that detects a line width of a line included in image data from attribute data corresponding to the image data, and image data. Edge detection means for detecting edge pixels, color detection means for detecting line colors from image data, storage means for storing a line width correction coefficient corresponding to the line width for each color, and line widths for edge pixels The line width correction coefficient corresponding to the line width detected by the detection means and the color detected by the color detection means is acquired from the storage means, and the gradation of the edge pixel is corrected using the line width and the line width correction coefficient. And correcting means for correcting the line width.

好ましくは、線幅検出手段は、属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理手段と、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理手段と、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理手段と、第1ダイレーション処理手段における処理結果による第1の線幅と、第2ダイレーション処理手段における処理結果による第2の線幅とを出力する線幅出力手段とを含む。   Preferably, the line width detection means performs erosion processing on the attribute data using a matrix filter of 1 pixel * 1 pixel to n pixels * n pixels, and erosion using the filter of each matrix. For the processing, the first dilation processing means for performing dilation processing using a filter of the same size as the erosion processing, and the erosion processing using the filter of each matrix are 2 times larger than the size used for the erosion processing. Second dilation processing means for performing dilation processing using a filter having a large pixel matrix, a first line width based on the processing result in the first dilation processing means, and a second based on the processing result in the second dilation processing means. Line width output means for outputting the line width.

より好ましくは、エロージョン処理で用いられるフィルタのサイズの最大値nは、任意に設定可能であり、エロージョン処理手段は、線幅がnよりも大きい場合には、エロージョン処理を行なわないようにする。   More preferably, the maximum value n of the size of the filter used in the erosion processing can be arbitrarily set, and the erosion processing means does not perform the erosion processing when the line width is larger than n.

好ましくは、エッジ検出手段は、画像データを1次微分する1次微分演算手段と、画像データを2次微分する2次微分演算手段と、1次微分の結果と2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理手段と、ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理手段と、画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成手段と、エロージョン処理の結果に基づいて、当該画素の画素内での印字パルス出力位置を制御するコードとして、生成手段で生成されたPWM印字位置コードとするか、画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードとするかを選択する選択手段とを含む。   Preferably, the edge detection means includes a primary differentiation operation means for firstly differentiating the image data, a secondary differentiation operation means for secondarily differentiating the image data, and the logic of the result of the primary differentiation and the result of the secondary differentiation. Edge dilation processing means for performing dilation processing on the product, edge erosion processing means for performing erosion processing on the result of the dilation processing, and both pixels adjacent in the main scanning direction for each pixel of the image data Generating means for generating a PWM print position code indicating from which side of both pixels adjacent to the pixel within the pixel the print dot growth starts, and the result of the erosion process Based on the PWM print position code generated by the generation means as the code for controlling the print pulse output position in the pixel of the pixel, The shaped pulse output position and a selection means for selecting whether a central printing position code indicating that the center of the pixel.

好ましくは、記憶手段は、画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、補正手段は、エッジ画素について、線幅検出手段で検出された線幅と色検出手段で検出された色と画像データのモードおよび/または言語とに対応した線幅補正係数を記憶手段から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する。   Preferably, the storage unit stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data, and the correction unit detects the edge pixel by the line width detection unit. A line width correction coefficient corresponding to the line width and color detected by the color detection means and the mode and / or language of the image data is acquired from the storage means, and the edge pixel levels are obtained using the line width and the line width correction coefficient. The line width is corrected by correcting the key.

本発明の他の局面に従うと、線幅制御方法は画像形成装置において形成される画像に含まれる線の幅を制御する方法であって、画像形成装置は、色ごとに線幅に対応した線幅補正係数を記憶する記憶手段を含み、画像形成装置において、画像データと画像データに対応した属性データとを取得する取得ステップと、属性データより、画像データに含まれる線の線幅を検出する線幅検出ステップと、画像データより、線の色を検出する色検出ステップと、画像データよりエッジ画素を検出するエッジ検出ステップと、エッジ画素について線幅検出ステップで検出された線幅と色検出ステップで検出された色とに対応した線幅補正係数を記憶手段から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する補正ステップとを備える。   According to another aspect of the present invention, the line width control method is a method for controlling the width of a line included in an image formed in the image forming apparatus, and the image forming apparatus uses a line corresponding to the line width for each color. The image forming apparatus includes a storage unit that stores a width correction coefficient, and the image forming apparatus acquires an image data and attribute data corresponding to the image data, and detects a line width of the line included in the image data from the attribute data. A line width detecting step, a color detecting step for detecting a line color from the image data, an edge detecting step for detecting an edge pixel from the image data, and a line width and color detection detected for the edge pixel in the line width detecting step. Correction for correcting the line width by acquiring the line width correction coefficient corresponding to the color detected in the step from the storage means, and correcting the gradation of the edge pixel using the line width and the line width correction coefficient And a step.

好ましくは、線幅検出ステップは、属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理ステップと、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理ステップと、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理ステップと、第1ダイレーション処理ステップにおける処理結果による第1の線幅と、第2ダイレーション処理ステップにおける処理結果による第2の線幅とを出力する線幅出力ステップとを含む。   Preferably, in the line width detection step, an erosion processing step of performing erosion processing on the attribute data using a filter of a matrix of 1 pixel * 1 pixel to n pixels * n pixels, and an erosion using a filter of each matrix For the processing, a first dilation processing step for performing dilation processing using a filter of the same size as the erosion processing, and for the erosion processing using the filter of each matrix, the size is 2 A second dilation processing step for performing dilation processing using a filter with a large pixel matrix, a first line width based on the processing result in the first dilation processing step, and a second based on the processing result in the second dilation processing step. Line width output that outputs the line width of And a step.

より好ましくは、エロージョン処理で用いられるフィルタのサイズの最大値nは、任意に設定可能であり、エロージョン処理ステップでは、線幅がnよりも大きい場合には、エロージョン処理を行なわないようにする。   More preferably, the maximum value n of the size of the filter used in the erosion process can be arbitrarily set. In the erosion process step, when the line width is larger than n, the erosion process is not performed.

好ましくは、エッジ検出ステップは、画像データを1次微分する1次微分演算ステップと、画像データを2次微分する2次微分演算ステップと、1次微分の結果と2次微分の結果との論理積を算出することで、画像データの中からエッジ画素を抽出するエッジ抽出ステップと、エッジ画素として抽出された画素について、1次微分の結果と2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理ステップと、ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理ステップと、画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成ステップと、エロージョン処理の結果に基づいて画素がエッジ画素と検出された場合に、当該画素の画素内での印字パルス出力位置を制御するコードとして、生成ステップで生成されたPWM印字位置コードを出力する第1出力ステップと、エロージョン処理の結果に基づいて画素がエッジ画素と検出されなかった場合に、当該画素の画素内での印字パルス出力位置を制御するコードとして、画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードを出力する第2出力ステップとを含む。   Preferably, the edge detecting step includes a first derivative operation step for firstly differentiating the image data, a second derivative operation step for secondarily differentiating the image data, a logic of the result of the first differentiation and the result of the second differentiation. By calculating the product, an edge extraction step of extracting edge pixels from the image data, and a pixel product extracted as the edge pixel is obtained with respect to the logical product of the result of the primary differentiation and the result of the secondary differentiation. An edge dilation processing step for performing an adjustment process, an edge erosion processing step for performing an erosion process on the result of the dilation process, and a gradation between each pixel adjacent to the main scanning direction for each pixel of the image data Based on the difference, a PWM print position code indicating from which side of both pixels adjacent to the pixel the print dot growth starts in the pixel. When the pixel is detected as an edge pixel based on the result of the erosion process and the generation step for generating the output signal, the PWM generated in the generation step is used as a code for controlling the print pulse output position within the pixel of the pixel. When a pixel is not detected as an edge pixel based on the first output step for outputting the print position code and the result of the erosion process, a code for controlling the print pulse output position within the pixel of the pixel is used. And a second output step of outputting a central print position code indicating that the print pulse output position is the center of the pixel.

好ましくは、記憶手段は、画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、補正ステップは、エッジ画素について、線幅検出ステップで検出された線幅と色検出ステップで検出された色と画像データのモードおよび/または言語とに対応した線幅補正係数を記憶手段から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する。   Preferably, the storage unit stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data, and the correction step is detected in the line width detection step for the edge pixel. A line width correction coefficient corresponding to the color detected in the line width and color detection step and the mode and / or language of the image data is acquired from the storage means, and the edge pixel levels are obtained using the line width and the line width correction coefficient. The line width is corrected by correcting the key.

本発明のさらに他の局面に従うと、線幅制御プログラムは画像形成される画像に含まれる線の幅を制御する処理をコンピュータに実行させるプログラムであって、画像形成装置において、画像データと画像データに対応した属性データとを取得する取得ステップと、属性データより、画像データに含まれる線の線幅を検出する線幅検出ステップと、画像データより、線の色を検出する色検出ステップと、画像データよりエッジ画素を検出するエッジ検出ステップと、エッジ画素について線幅検出ステップで検出された線幅と色検出ステップで検出された色とに対応した線幅補正係数を、色ごとに線幅に対応した線幅補正係数を記憶する記憶装置から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する補正ステップとを実行させる。   According to still another aspect of the present invention, the line width control program is a program for causing a computer to execute processing for controlling the width of a line included in an image to be formed, and in the image forming apparatus, image data and image data Acquisition step for acquiring attribute data corresponding to, line width detection step for detecting the line width of the line included in the image data from the attribute data, color detection step for detecting the color of the line from the image data, An edge detection step for detecting edge pixels from image data, and a line width correction coefficient corresponding to the line width detected in the line width detection step and the color detected in the color detection step for the edge pixels for each color. Is obtained from a storage device that stores the line width correction coefficient corresponding to the line width, and the line width is corrected by correcting the gradation of the edge pixel using the line width and the line width correction coefficient. And a step to be executed.

好ましくは、線幅検出ステップは、属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理ステップと、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理ステップと、各マトリクスのフィルタを用いたエロージョン処理に対して、エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理ステップと、第1ダイレーション処理ステップにおける処理結果による第1の線幅と、記第2ダイレーション処理ステップにおける処理結果による第2の線幅とを出力する線幅出力ステップとを含む。   Preferably, in the line width detection step, an erosion processing step of performing erosion processing on the attribute data using a filter of a matrix of 1 pixel * 1 pixel to n pixels * n pixels, and an erosion using a filter of each matrix For the processing, a first dilation processing step for performing dilation processing using a filter of the same size as the erosion processing, and for the erosion processing using the filter of each matrix, the size is 2 A second dilation processing step for performing dilation processing using a filter having a large pixel matrix, a first line width based on the processing result in the first dilation processing step, and a first line width based on the processing result in the second dilation processing step. Line width output that outputs 2 line widths And a step.

より好ましくは、エロージョン処理で用いられるフィルタのサイズの最大値nは、任意に設定可能であり、エロージョン処理ステップでは、線幅がnよりも大きい場合には、エロージョン処理を行なわないようにする。   More preferably, the maximum value n of the size of the filter used in the erosion process can be arbitrarily set. In the erosion process step, when the line width is larger than n, the erosion process is not performed.

好ましくは、エッジ検出ステップは、画像データを1次微分する1次微分演算ステップと、画像データを2次微分する2次微分演算ステップと、1次微分の結果と2次微分の結果との論理積を算出することで、画像データの中からエッジ画素を抽出するエッジ抽出ステップと、エッジ画素として抽出された画素について、1次微分の結果と2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理ステップと、ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理ステップと、画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成ステップと、エロージョン処理の結果に基づいて画素がエッジ画素と検出された場合に、当該画素の画素内での印字パルス出力位置を制御するコードとして、生成ステップで生成されたPWM印字位置コードを出力する第1出力ステップと、エロージョン処理の結果に基づいて画素がエッジ画素と検出されなかった場合に、当該画素の画素内での印字パルス出力位置を制御するコードとして、画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードを出力する第2出力ステップとを含む。   Preferably, the edge detecting step includes a first derivative operation step for firstly differentiating the image data, a second derivative operation step for secondarily differentiating the image data, a logic of the result of the first differentiation and the result of the second differentiation. By calculating the product, an edge extraction step of extracting edge pixels from the image data, and a pixel product extracted as the edge pixel is obtained with respect to the logical product of the result of the primary differentiation and the result of the secondary differentiation. An edge dilation processing step for performing an adjustment process, an edge erosion processing step for performing an erosion process on the result of the dilation process, and a gradation between each pixel adjacent to the main scanning direction for each pixel of the image data Based on the difference, a PWM print position code indicating from which side of both pixels adjacent to the pixel the print dot growth starts in the pixel. When the pixel is detected as an edge pixel based on the result of the erosion process and the generation step for generating the output signal, the PWM generated in the generation step is used as a code for controlling the print pulse output position within the pixel of the pixel. When a pixel is not detected as an edge pixel based on the first output step for outputting the print position code and the result of the erosion process, a code for controlling the print pulse output position within the pixel of the pixel is used. And a second output step of outputting a central print position code indicating that the print pulse output position is the center of the pixel.

好ましくは、記憶装置は、画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、補正ステップは、エッジ画素について、線幅検出ステップで検出された線幅と色検出ステップで検出された色と画像データのモードおよび/または言語とに対応した線幅補正係数を記憶装置から取得し、線幅と線幅補正係数とを用いてエッジ画素の階調を補正することで線幅を補正する。   Preferably, the storage device stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data, and the correction step is detected in the line width detection step for the edge pixel. The line width correction coefficient corresponding to the color detected in the line width and color detection step and the mode and / or language of the image data is acquired from the storage device, and the edge pixel levels are obtained using the line width and the line width correction coefficient. The line width is corrected by correcting the key.

本発明にかかる画像形成装置がこのように構成されることで、画像形成において、画像形成装置のエンジン特性に関わらず線幅を再現することができる。このため、形成された画像におけるフォントの再現性を高めることができる。また、細い罫線の再現性を高めることができる。その結果、高品質の画像を形成することができる。   By configuring the image forming apparatus according to the present invention in this way, the line width can be reproduced in the image formation regardless of the engine characteristics of the image forming apparatus. For this reason, the reproducibility of the font in the formed image can be improved. In addition, the reproducibility of thin ruled lines can be improved. As a result, a high quality image can be formed.

本実施の形態にかかる画像形成装置がMFPである場合の、画像形成装置のハードウェア構成の具体例を示すブロック図である。FIG. 3 is a block diagram illustrating a specific example of a hardware configuration of an image forming apparatus when the image forming apparatus according to the present embodiment is an MFP. 本実施の形態にかかる画像形成装置において、線幅制御処理を行なうための機能構成の具体例を示すブロック図である。4 is a block diagram illustrating a specific example of a functional configuration for performing line width control processing in the image forming apparatus according to the present embodiment. FIG. 図2に示された係数記憶部で記憶される線幅補正係数の具体例を示す図である。FIG. 3 is a diagram illustrating a specific example of a line width correction coefficient stored in a coefficient storage unit illustrated in FIG. 2. 図2に示されたエッジ検出部の詳細な構成の具体例を示すブロック図である。FIG. 3 is a block diagram illustrating a specific example of a detailed configuration of an edge detection unit illustrated in FIG. 2. 図4に示されたPWM印字位置コード生成部でのPWM印字位置コードの生成方法を説明する図である。It is a figure explaining the production | generation method of the PWM printing position code in the PWM printing position code production | generation part shown by FIG. 図4に示されたPWM印字位置コード生成部でのPWM印字位置コードの生成方法を説明する図である。It is a figure explaining the production | generation method of the PWM printing position code in the PWM printing position code production | generation part shown by FIG. 図4に示されたPWM印字位置コード生成部でのPWM印字位置コードの生成方法を説明する図である。It is a figure explaining the production | generation method of the PWM printing position code in the PWM printing position code production | generation part shown by FIG. 図4に示されたPWM印字位置コード生成部でのPWM印字位置コードの生成方法を説明する図である。It is a figure explaining the production | generation method of the PWM printing position code in the PWM printing position code production | generation part shown by FIG. 図2に示された線幅検出部の詳細な構成の具体例を示すブロック図である。FIG. 3 is a block diagram illustrating a specific example of a detailed configuration of a line width detection unit illustrated in FIG. 2. 線幅検出部での第1のダイレーション処理を説明する図である。It is a figure explaining the 1st dilation process in a line | wire width detection part. 線幅検出部での第2のダイレーション処理を説明する図である。It is a figure explaining the 2nd dilation process in a line | wire width detection part. 内線幅を説明する図である。It is a figure explaining an extension line width. 外線幅を説明する図である。It is a figure explaining an outside line width. 本実施の形態にかかる画像形成装置における、線幅制御処理の流れの具体例を示すフローチャートである。5 is a flowchart illustrating a specific example of a flow of line width control processing in the image forming apparatus according to the present embodiment. 図14のステップS103における線幅検出処理を示すフローチャートである。It is a flowchart which shows the line | wire width detection process in FIG.14 S103. 図14のステップS105におけるエッジ検出処理を示すフローチャートである。It is a flowchart which shows the edge detection process in FIG.14 S105. 図14のステップS107におけるPWM位置決定処理を示すフローチャートである。It is a flowchart which shows the PWM position determination process in step S107 of FIG. 第1の変形例にかかる画像形成装置において、線幅制御処理を行なうための機能構成の具体例を示すブロック図である。It is a block diagram which shows the specific example of a function structure for performing line | wire width control processing in the image forming apparatus concerning a 1st modification. 図18に示された係数記憶部で記憶される線幅補正係数の具体例を示す図である。It is a figure which shows the specific example of the line | wire width correction coefficient memorize | stored in the coefficient memory | storage part shown by FIG.

以下に、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品および構成要素には同一の符号を付してある。それらの名称および機能も同じである。   Embodiments of the present invention will be described below with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same.

図1は、本実施の形態にかかる画像形成装置1のハードウェア構成の具体例を示すブロック図である。画像形成装置1としては、コピー機、プリンタ、またはそれらの複合機器であるMFP(Multi Function Peripheral)等が該当する。本実施の形態において画像形成装置1はMFPであるものとし、図1には、MFPである画像形成装置1のハードウェア構成の具体例をブロック図で示す。   FIG. 1 is a block diagram showing a specific example of the hardware configuration of the image forming apparatus 1 according to the present embodiment. The image forming apparatus 1 corresponds to a copier, a printer, or a multifunction peripheral (MFP) that is a composite device thereof. In the present embodiment, it is assumed that image forming apparatus 1 is an MFP, and FIG. 1 is a block diagram showing a specific example of the hardware configuration of image forming apparatus 1 that is an MFP.

図1を参照して、画像形成装置1は、装置全体を制御するCPU(Central Processing Unit)11と、原稿から画像データを読取るイメージリーダ部19と、用紙上に画像を印刷するプリンタ部21と、画像形成装置1をネットワークや電話回線に接続したり、近距離の無線通信を行なったりするための拡張カードであるNIC(Network Interface Card)15と、HD(Hard Disk)やRAM(Random Access Memory)などから構成されて、ジョブやCPU11で実行される線幅制御プログラムなどのプログラムなどを記憶するための記憶部13と、ユーザとのインタフェースである操作パネル17と、消耗品の残量などを検出するセンサ部23とを含んで構成される。   Referring to FIG. 1, an image forming apparatus 1 includes a CPU (Central Processing Unit) 11 that controls the entire apparatus, an image reader unit 19 that reads image data from a document, and a printer unit 21 that prints an image on paper. An NIC (Network Interface Card) 15 that is an expansion card for connecting the image forming apparatus 1 to a network or a telephone line or performing short-distance wireless communication, an HD (Hard Disk), a RAM (Random Access Memory) ) And the like, and a storage unit 13 for storing a job and a program such as a line width control program executed by the CPU 11, an operation panel 17 that is an interface with the user, a remaining amount of consumables, and the like. And a sensor unit 23 to be detected.

画像形成装置1は、画像データと属性データとを含んだ原稿データを取得し、後述の線幅制御処理を実行して画像データを出力する。出力された画像データは、画像形成処理により印字される。   The image forming apparatus 1 acquires document data including image data and attribute data, executes line width control processing described later, and outputs image data. The output image data is printed by an image forming process.

画像形成装置1で取得される原稿データに含まれる画像データは、YMCK(Yellow Magenta Cyan Black)データ、またはRGB(Red Green Blue)データである。属性データは、画像データの各画素について、その画素がテキストかグラフィックかまたはそのいずれでもないかを示す。属性データは、PC(Personal Computer)などの端末で動作する画像作成のアプリケーション側で付加されて画像形成装置1へ送信されてくる場合や、画像形成装置1のイメージリーダ部19で読取られた画像データを図示しない領域判定部などで判定することにより画像形成装置1側で付加される場合などがある。   The image data included in the document data acquired by the image forming apparatus 1 is YMCK (Yellow Magenta Cyan Black) data or RGB (Red Green Blue) data. The attribute data indicates, for each pixel of the image data, whether the pixel is text or graphic or neither. The attribute data is added by an image creation application that operates on a terminal such as a PC (Personal Computer) and transmitted to the image forming apparatus 1, or an image read by the image reader unit 19 of the image forming apparatus 1. In some cases, the data is added on the image forming apparatus 1 side by determining the data using an area determination unit (not shown).

図2は、画像形成装置1において、本実施の形態にかかる線幅制御処理を行なうための機能構成の具体例を示すブロック図である。図2に示される機能構成は、主に、CPU11が記憶部13に記憶されるプログラムを実行することで実現される機能であるが、一部がハードウェアによって構成されてもよい。   FIG. 2 is a block diagram illustrating a specific example of a functional configuration for performing the line width control processing according to the present embodiment in the image forming apparatus 1. The function configuration shown in FIG. 2 is a function realized mainly by the CPU 11 executing a program stored in the storage unit 13, but a part thereof may be configured by hardware.

図2を参照して、画像形成装置1において線幅制御処理を行なうための機能は、原稿データのうちの属性データを入力する属性データ入力部101、原稿データのうちの画像データを入力する画像データ入力部103、属性データより線幅を検出する線幅検出部105、画像データよりエッジを検出するエッジ検出部109、これらの検出結果の論理積を算出する論理積算出部107、線幅を補正するための係数を記憶する係数記憶部113、線幅を補正するための演算を行なう線幅補正係数乗算部111、および線幅の補正された画像データを出力する画像データ出力部115を含んで構成される。   Referring to FIG. 2, functions for performing line width control processing in image forming apparatus 1 are attribute data input unit 101 for inputting attribute data of document data, and an image for inputting image data of document data. A data input unit 103; a line width detection unit 105 that detects line width from attribute data; an edge detection unit 109 that detects edges from image data; a logical product calculation unit 107 that calculates a logical product of these detection results; A coefficient storage unit 113 that stores a coefficient for correction, a line width correction coefficient multiplication unit 111 that performs an operation for correcting the line width, and an image data output unit 115 that outputs the image data with the corrected line width are included. Consists of.

線幅検出部105は、後述する線幅処理を行なって、検出された線幅を示す線幅信号を論理積算出部107に入力する。エッジ検出部109もまた、後述するエッジ検出処理を行なって、検出されたエッジを示すエッジ検出信号を論理積算出部107に入力する。論理積算出部107は、これら信号の論理積を算出し、エッジ線幅を算出する。算出されたエッジ線幅を示すエッジ線幅信号は線幅補正係数乗算部111に入力される。   The line width detection unit 105 performs line width processing described later, and inputs a line width signal indicating the detected line width to the logical product calculation unit 107. The edge detection unit 109 also performs edge detection processing to be described later, and inputs an edge detection signal indicating the detected edge to the logical product calculation unit 107. The logical product calculation unit 107 calculates the logical product of these signals and calculates the edge line width. An edge line width signal indicating the calculated edge line width is input to the line width correction coefficient multiplier 111.

また、エッジ検出部109は、後述するエッジ検出処理を行なって、後述するPWM(Pulse Width Modulation)位置を示すPWM位置制御信号を線幅補正係数乗算部111に入力する。   Further, the edge detection unit 109 performs edge detection processing described later, and inputs a PWM position control signal indicating a PWM (Pulse Width Modulation) position described later to the line width correction coefficient multiplication unit 111.

係数記憶部113は、主に記憶部13の所定領域によって形成され、線幅補正係数乗算部111で用いられる線幅補正係数を記憶する。線幅補正係数は、1dotからndotの各々の線幅に対して個別に設定された係数であって、画像形成時に理想的な線幅となるように線幅を補正するための係数である。   The coefficient storage unit 113 is formed mainly by a predetermined area of the storage unit 13 and stores a line width correction coefficient used in the line width correction coefficient multiplication unit 111. The line width correction coefficient is a coefficient individually set for each line width from 1 dot to ndot, and is a coefficient for correcting the line width so as to be an ideal line width at the time of image formation.

図3は、係数記憶部113で記憶される線幅補正係数の具体例を示す図である。図3に示されるように、係数記憶部113には、線幅に対応付けて線幅補正係数が記憶される。なお、図3に示された係数の具体的な数値は1つの具体例であり、本発明はこの数値に限定されない。線幅補正係数は、上述のように画像形成装置のエンジンの性能に関連する係数であるため、エンジンの性能に対応して決定される。または、実験等によって得られる。そのため、線幅補正係数は、予め係数記憶部113に記憶されていることが好ましい。または、線幅補正係数は、管理者等のユーザによって変更または作成されるものであってもよい。線幅補正係数を変更または作成する際には、そのための画面が操作パネル17に表示され、具体的な数値の入力を受付けることが好ましい。または、予めエンジンの性能に応じて、設定可能な範囲が示されており、その中から選択を受付けることが好ましい。または、設定可能な範囲外の数値が入力された場合には、その数値を受入れないように構成されていることも好ましい。   FIG. 3 is a diagram illustrating a specific example of the line width correction coefficient stored in the coefficient storage unit 113. As illustrated in FIG. 3, the coefficient storage unit 113 stores a line width correction coefficient in association with the line width. The specific numerical value of the coefficient shown in FIG. 3 is one specific example, and the present invention is not limited to this numerical value. Since the line width correction coefficient is a coefficient related to the performance of the engine of the image forming apparatus as described above, it is determined in accordance with the performance of the engine. Or it is obtained by experiment etc. Therefore, it is preferable that the line width correction coefficient is stored in the coefficient storage unit 113 in advance. Alternatively, the line width correction coefficient may be changed or created by a user such as an administrator. When changing or creating the line width correction coefficient, it is preferable that a screen for that is displayed on the operation panel 17 to accept input of specific numerical values. Alternatively, a settable range is shown in advance according to the performance of the engine, and it is preferable to accept a selection from the range. Alternatively, it is also preferable that when a numerical value outside the settable range is input, the numerical value is not accepted.

線幅補正係数乗算部111は、論理積算出部107から入力されたエッジ線幅信号に基づいて、線幅に対応した線幅補正係数を係数記憶部113から読出し、線幅に係数を乗算して線幅を補正する処理を行なう。演算結果は画像データ出力部115に入力される。画像データ出力部115は、線幅の補正された画像データを出力する。   The line width correction coefficient multiplication unit 111 reads the line width correction coefficient corresponding to the line width from the coefficient storage unit 113 based on the edge line width signal input from the logical product calculation unit 107, and multiplies the line width by the coefficient. To correct the line width. The calculation result is input to the image data output unit 115. The image data output unit 115 outputs the image data with the corrected line width.

図4は、エッジ検出部109の詳細な構成の具体例を示すブロック図である。図4を参照して、エッジ検出部109には、入力された画像データに対して1次微分フィルタを用いて1次微分する演算を行なう1次微分フィルタ演算部201、入力された画像データに対して2次微分フィルタを用いて2次微分する演算を行なう2次微分フィルタ演算部203、それらの演算結果に基づいてエッジである画素を抽出するエッジ抽出部205、エッジである画素に対してダイレーション処理を実施するエッジダイレーション部207、その処理結果に対してエロージョン処理を実施するエッジエロージョン部209、各画素についてPWM印字位置コードを生成するPWM印字位置コード生成部211、印字位置コードを選択的に入力するためのセレクタ部213、PWM印字位置コードとエロージョン処理結果とに基づいてエッジ信号を出力するエッジ信号出力部215、およびPWM印字位置コードに基づいてPWM印字制御信号を出力するPWM印字制御信号出力部217が含まれる。   FIG. 4 is a block diagram illustrating a specific example of a detailed configuration of the edge detection unit 109. Referring to FIG. 4, the edge detection unit 109 includes a first-order differential filter operation unit 201 that performs first-order differentiation on the input image data using a first-order differential filter. On the other hand, a secondary differential filter calculation unit 203 that performs a second-order differentiation operation using a second-order differential filter, an edge extraction unit 205 that extracts a pixel that is an edge based on the calculation result, and a pixel that is an edge Edge dilation unit 207 that performs dilation processing, edge erosion unit 209 that performs erosion processing on the processing result, PWM print position code generation unit 211 that generates a PWM print position code for each pixel, and print position code Selector unit 213 for selective input, based on PWM print position code and erosion processing result Edge signal output unit 215 outputs an edge signal, and on the basis of the PWM printing position code includes PWM printing control signal output unit 217 outputs a PWM printing control signal.

エッジ抽出部205は、1次微分フィルタ演算部201で画像データを1次微分フィルタを通して得られた演算結果と、2次微分フィルタ演算部203で画像データを2次微分フィルタを通して得られた演算結果との論理積を算出して、画像データからエッジを抽出する。抽出されたエッジは、エッジダイレーション部207に入力される。エッジ抽出部205でのエッジの抽出方法は、本発明において特定の方法に限定されず、一般的な方法が採用され得る。   The edge extraction unit 205 is a calculation result obtained by the first-order differential filter calculation unit 201 obtained from the image data through the first-order differential filter, and a calculation result obtained by the second-order differential filter calculation unit 203 obtained from the image data through the second-order differential filter. And an edge is extracted from the image data. The extracted edge is input to the edge dilation unit 207. The edge extraction method in the edge extraction unit 205 is not limited to a specific method in the present invention, and a general method can be adopted.

エッジダイレーション部207は、エッジ抽出部205から入力された各エッジに対してダイレーション処理を実施し、処理結果をエッジエロージョン部209に入力する。エッジエロージョン部209は、各ダイレーション処理結果に対してエロージョン処理を実施し、処理結果をエッジ信号出力部215に入力する。エッジダイレーション部207でのダイレーション処理、およびエッジエロージョン部209でのエロージョン処理は、オープニング処理と呼ばれる一般的な処理であり、これらの具体的な処理方法は、本発明において特定の方法には限定されない。   The edge dilation unit 207 performs dilation processing on each edge input from the edge extraction unit 205 and inputs the processing result to the edge erosion unit 209. The edge erosion unit 209 performs erosion processing on each dilation processing result, and inputs the processing result to the edge signal output unit 215. The dilation process in the edge dilation unit 207 and the erosion process in the edge erosion unit 209 are general processes called opening processes. These specific processing methods are not limited to specific methods in the present invention. It is not limited.

エッジ信号出力部215は、エッジエロージョン部209での処理結果に基づいて、エッジである画素を示すエッジ検出信号を論理積算出部107およびセレクタ部213に入力する。   The edge signal output unit 215 inputs an edge detection signal indicating a pixel that is an edge to the logical product calculation unit 107 and the selector unit 213 based on the processing result in the edge erosion unit 209.

PWM印字位置コード生成部211は、画像データの各画素について、PWMの成長位置を決定するPWM印字位置コードを生成する。ここで、PWM印字位置コードとは、対象画素の階調が最大値よりも小さい場合に、1画素のうちのどの位置にドット印字するためのパルス出力するかを表わす、2ビットのデータを指す。つまり、PWM印字位置コード生成部211は、各画素についてどの位置にドット印字するか、言い換えれば、1つの画素のうちのどの位置からどの方向にドット印字部分を伸ばすかを決定する。ここでは、「1つの画素のうちのどの位置からどの方向にドット印字部分を伸ばすか」を「成長位置(PWM位置とも称される)」と表わし、その位置にドットを印字させるための印字パルスを出力する。   The PWM print position code generation unit 211 generates a PWM print position code for determining a PWM growth position for each pixel of the image data. Here, the PWM print position code refers to 2-bit data indicating a pulse output for dot printing in one pixel when the gradation of the target pixel is smaller than the maximum value. . That is, the PWM print position code generation unit 211 determines at which position dot printing is performed for each pixel, in other words, from which position of one pixel to which direction the dot print portion is extended. Here, “from which position of one pixel to which direction the dot print portion is extended” is expressed as “growth position (also referred to as PWM position)”, and a print pulse for printing a dot at that position. Is output.

具体的に、図5に示されるように、画素が主走査方向に連続している場合を例に、PWM印字位置コード生成部211でのPWM印字位置コードの生成方法を説明する。図5において、着目する画素の階調値をD1Dとし、主走査方向である矢印A方向に、着目する画素の直前に隣接する画素の階調値をD0D、直後に隣接する画素の階調値をD2Dとする。また、この例では、原稿画像に含まれる罫線が、淡色(たとえば白色)の地に濃色(たとえば黒色)の罫線であるものとする。   Specifically, as shown in FIG. 5, a method for generating a PWM print position code in the PWM print position code generation unit 211 will be described by taking as an example a case where pixels are continuous in the main scanning direction. In FIG. 5, the gradation value of the pixel of interest is D1D, the gradation value of the pixel immediately adjacent to the pixel of interest in the direction of arrow A, which is the main scanning direction, is D0D, and the gradation value of the pixel immediately adjacent to it. Is D2D. In this example, it is assumed that the ruled lines included in the document image are dark (for example, white) ruled lines on a light-colored (for example, white) ground.

PWM印字位置コード生成部211は、着目する画素を挟んだ、主走査方向に隣接する3画素について、各階調値D0D,D1D,D2Dの大小関係を判断する。これら階調値の大小関係が以下の場合(A)〜(E)、以下のように成長位置が決定される:
(A)D0D<D1D≦D2D:D1DをD2D側から成長、
(B)D0D≦D1D<D2D:D1DをD2D側から成長、
(C)D0D>D1D≧D2D:D1DをD0D側から成長、
(D)D0D≧D1D>D2D:D1DをD0D側から成長、
(E)D0D>D1D<D2D:D1DをD0D,D2D両側から均等に成長。
The PWM print position code generation unit 211 determines the magnitude relationship between the gradation values D0D, D1D, and D2D for three pixels adjacent in the main scanning direction across the pixel of interest. When the magnitude relationship of these gradation values is as follows (A) to (E), the growth position is determined as follows:
(A) D0D <D1D ≦ D2D: D1D is grown from the D2D side,
(B) D0D ≦ D1D <D2D: D1D is grown from the D2D side,
(C) D0D> D1D ≧ D2D: D1D is grown from the D0D side,
(D) D0D ≧ D1D> D2D: D1D is grown from the D0D side,
(E) D0D> D1D <D2D: D1D is grown evenly from both sides of D0D and D2D.

言い換えると、PWM印字位置コード生成部211は、着目する画素よりも右に隣接する画素の方が濃度が濃い場合には(上記場合(A),(B))、図6に示されるように、右側からドット印字部分を伸ばすように成長位置を決定する。着目する画素よりも左に隣接する画素の方が濃度が薄い場合には(上記場合(C),(D))、図7に示されるように、左側からドット印字部分を伸ばすように成長位置を決定する。着目する画素が、隣接するいずれの画素よりも濃度が薄い場合には(上記場合(E))、図8に示されるように、左右両側から均等にドット印字部分を伸ばすように成長位置を決定する。そして、各画素について、決定された成長位置を示すPWM印字位置コードが生成され、セレクタ部213に入力される。   In other words, the PWM print position code generation unit 211, as shown in FIG. 6, when the pixel adjacent to the right is darker than the pixel of interest (in the above cases (A) and (B)). The growth position is determined so as to extend the dot printing portion from the right side. When the density of the pixel adjacent to the left is lighter than the pixel of interest (in the above-described cases (C) and (D)), as shown in FIG. 7, the growth position extends the dot printing portion from the left side. To decide. When the pixel of interest is lighter than any adjacent pixel (in the above case (E)), as shown in FIG. 8, the growth position is determined so as to uniformly extend the dot print portion from both the left and right sides. To do. For each pixel, a PWM print position code indicating the determined growth position is generated and input to the selector unit 213.

セレクタ部213は、エッジ信号出力部215から入力されたエッジ信号と、PWM印字位置コード生成部211から入力されたPWM印字位置コードとに基づいて、エッジとして検出された画素についてはPWM印字位置コードに基づいて、決定された位置にドット印字させるための制御信号であるPWM印字制御信号を線幅補正係数乗算部111に入力する。エッジとして検出されていない画素については、予め記憶されている印字位置コードに基づいて、ドット印字部分を当該画素の中央の位置とするための制御信号であるPWM印字制御信号を線幅補正係数乗算部111に入力する。なお、上記予め記憶されている印字位置コードを、ここでは中央印字位置コードと称する。   The selector unit 213 uses the PWM print position code for pixels detected as edges based on the edge signal input from the edge signal output unit 215 and the PWM print position code input from the PWM print position code generation unit 211. Based on the above, a PWM print control signal, which is a control signal for dot printing at the determined position, is input to the line width correction coefficient multiplier 111. For pixels that are not detected as edges, a PWM print control signal, which is a control signal for setting the dot print portion to the center position of the pixel, is multiplied by a line width correction coefficient based on a print position code stored in advance. Input to the unit 111. The print position code stored in advance is referred to as a central print position code here.

図9は、線幅検出部105の詳細な構成の具体例を示すブロック図である。図9を参照して、線幅検出部105には、入力された、画像データの各画素についての属性データのうちから、線幅を補正する処理の対象となる属性データを選択する線幅補正対象属性選択部301、処理対象の属性データに対してエロージョン処理を行なうエロージョン処理部303、その処理結果に対して第1のダイレーション処理を行なう第1ダイレーション処理部305、第1のダイレーション処理結果に基づいて後述の内線幅を検出して出力する内線幅出力部307、エロージョン処理結果に対して第2のダイレーション処理を行なう第2ダイレーション処理部309、および第2のダイレーション処理結果に基づいて後述の外線幅を検出して出力する外線幅出力部311が含まれる。   FIG. 9 is a block diagram illustrating a specific example of a detailed configuration of the line width detection unit 105. Referring to FIG. 9, line width correction unit 105 selects line width correction for selecting attribute data to be subjected to line width correction processing from among the input attribute data for each pixel of image data. Target attribute selection unit 301, erosion processing unit 303 that performs erosion processing on the attribute data to be processed, first dilation processing unit 305 that performs first dilation processing on the processing result, and first dilation An internal line width output unit 307 that detects and outputs an internal line width to be described later based on the processing result, a second dilation processing unit 309 that performs a second dilation process on the erosion processing result, and a second dilation process An outer line width output unit 311 that detects and outputs an outer line width described later based on the result is included.

線幅補正対象属性選択部301は、入力された属性データを解析し、各画素について、その画素がテキストかグラフィックかまたはそのいずれでもないか判断する。その結果、テキストであると判断された画素および罫線(グラフィック)であると判断された画素についての属性データを、線幅を補正する処理の対象とする属性データとして選択し、エロージョン処理部303に入力する。エロージョン処理部303は、入力された処理対象の、各画素に対応した各属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いて、エロージョン処理を行なう。エロージョン処理結果は、さらに、第1ダイレーション処理部305および第2ダイレーション処理部309において、各々、第1のダイレーション処理および第2のダイレーション処理が施される。なお、エロージョン処理部303でのエロージョン処理、および第1ダイレーション処理部305,第2ダイレーション処理部309でのダイレーション処理は、クロージング処理と呼ばれる一般的な処理であり、これらの具体的な処理方法は、本発明において特定の方法には限定されない。   The line width correction target attribute selection unit 301 analyzes the input attribute data and determines, for each pixel, whether the pixel is text, graphic, or any of them. As a result, the attribute data for the pixels determined to be text and the pixels determined to be ruled lines (graphics) are selected as the attribute data to be processed for correcting the line width, and are sent to the erosion processing unit 303. input. The erosion processing unit 303 performs erosion processing on the input attribute data corresponding to each pixel, using a matrix filter of 1 pixel * 1 pixel to n pixels * n pixels. The erosion processing result is further subjected to first dilation processing and second dilation processing in the first dilation processing unit 305 and the second dilation processing unit 309, respectively. Note that the erosion processing in the erosion processing unit 303 and the dilation processing in the first dilation processing unit 305 and the second dilation processing unit 309 are general processing called closing processing. The processing method is not limited to a specific method in the present invention.

図10および図11は、第1のダイレーション処理および第2のダイレーション処理を説明する図である。   10 and 11 are diagrams for explaining the first dilation process and the second dilation process.

図10を参照して、第1ダイレーション処理部305は、第1のダイレーション処理として、エロージョン処理部303での処理結果に対して、エロージョン処理部303で用いたフィルタと同サイズのフィルタを用いてダイレーション処理を実行する。第1のダイレーション処理の結果は内線幅出力部307に入力され、内線幅出力部307より、その処理結果に基づいて後述する内線幅を示す内線幅信号が論理積算出部107に入力される。   Referring to FIG. 10, the first dilation processing unit 305 applies a filter of the same size as the filter used in the erosion processing unit 303 to the processing result in the erosion processing unit 303 as the first dilation processing. To perform dilation processing. The result of the first dilation process is input to the extension line width output unit 307, and an extension line width signal indicating an extension line width, which will be described later, is input to the logical product calculation unit 107 from the extension line width output unit 307 based on the processing result. .

図11を参照して、第2ダイレーション処理部309は、第2のダイレーション処理として、エロージョン処理部303での処理結果に対して、エロージョン処理部303で用いたフィルタよりも2画素大きいサイズのフィルタを用いてダイレーション処理を実行する。第2のダイレーション処理の結果は外線幅出力部311に入力され、外線幅出力部311より、その処理結果に基づいて後述する外線幅を示す外線幅信号が論理積算出部107に入力される。   Referring to FIG. 11, the second dilation processing unit 309 has a size two pixels larger than the filter used in the erosion processing unit 303 with respect to the processing result in the erosion processing unit 303 as the second dilation processing. Dilation processing is executed using the above filter. The result of the second dilation process is input to the outer line width output unit 311, and an outer line width signal indicating an outer line width, which will be described later, is input to the logical product calculation unit 107 from the outer line width output unit 311 based on the processing result. .

図12および図13は、内線幅および外線幅を説明する図である。
エロージョン処理部303での処理結果に対して、第1ダイレーション処理部305で、エロージョン処理部303で用いたフィルタと同サイズのフィルタを用いた第1のダイレーション処理が実行されることで、フィルタサイズ以下の細線が排除され、図12においてE部分に示される、1画素分の画素をエッジ画素として両端にもつ、黒線BLが検出される。そして、1画素の幅に相当する幅DAの、両端のエッジ画素を含んだ黒線の幅LAが検出される。ここでは、両端の2つのエッジ画素の幅(DA×2)を含んだ黒線の幅LAを内線幅と称する。
12 and 13 are diagrams for explaining the inner line width and the outer line width.
The first dilation processing using the filter of the same size as the filter used in the erosion processing unit 303 is executed in the first dilation processing unit 305 on the processing result in the erosion processing unit 303, Fine lines equal to or smaller than the filter size are eliminated, and a black line BL having a pixel of one pixel as an edge pixel at both ends, which is shown in E portion in FIG. 12, is detected. Then, the width LA of the black line including the edge pixels at both ends of the width DA corresponding to the width of one pixel is detected. Here, the width LA of the black line including the width (DA × 2) of the two edge pixels at both ends is referred to as an internal line width.

エロージョン処理部303での処理結果に対して、第2ダイレーション処理部309で、エロージョン処理部303で用いたフィルタよりも2画素大きいサイズのフィルタを用いた第2のダイレーション処理が実行されることで、図13においてBL部分に示された黒地に対して、E部分に示され、1画素分の画素をエッジ画素として両端にもつ、白く抜かれた線WH(以下、白線)が検出される。そして、1画素の幅に相当する幅DB(=DA)の、両端のエッジ画素を含んだ白線の幅LB、つまり、実際の白線幅よりも両側各1画素分大きい線幅が検出される。ここでは、両端の2つのエッジ画素の幅(DB×2)を含んだ白線の幅LBを外線幅と称する。   The second dilation processing unit 309 executes the second dilation processing using a filter having a size two pixels larger than the filter used in the erosion processing unit 303 with respect to the processing result in the erosion processing unit 303. Thus, with respect to the black background shown in the BL portion in FIG. 13, a white line WH (hereinafter, white line) shown in the E portion and having one pixel as an edge pixel at both ends is detected. . Then, the width LB of the white line including the edge pixels at both ends of the width DB (= DA) corresponding to the width of one pixel, that is, a line width larger by one pixel on both sides than the actual white line width is detected. Here, the width LB of the white line including the width (DB × 2) of the two edge pixels at both ends is referred to as the outer line width.

なお、第1ダイレーション処理部305および第2ダイレーション処理部309で用いるフィルタのサイズの最大値nは、本発明において特定の数値に限定されず、任意の数値に設定され得る。具体的な数値としては6〜8程度が好ましく、より好ましくは7が挙げられる。線幅がフィルタサイズよりも大きい場合には、第1ダイレーション処理部305および第2ダイレーション処理部309において、その旨を示すエラー信号を出力するなどして、フィルタサイズ以上の線幅に対して上記処理がなされないように構成されることが好ましい。   Note that the maximum value n of the filter sizes used in the first dilation processing unit 305 and the second dilation processing unit 309 is not limited to a specific numerical value in the present invention, and may be set to an arbitrary numerical value. As a specific numerical value, about 6-8 is preferable, More preferably, 7 is mentioned. When the line width is larger than the filter size, the first dilation processing unit 305 and the second dilation processing unit 309 output an error signal indicating the fact, and the line width larger than the filter size is detected. It is preferable that the above processing is not performed.

論理積算出部107は、内線幅出力部307から入力された内線幅信号とエッジ信号出力部215から入力されたエッジ信号との論理積、または外線幅出力部311から入力された外線幅信号とエッジ信号出力部215から入力されたエッジ信号との論理積を算出し、補正対象となるエッジの線幅が算出される。   The logical product calculation unit 107 calculates the logical product of the internal line width signal input from the internal line width output unit 307 and the edge signal input from the edge signal output unit 215, or the external line width signal input from the external line width output unit 311 A logical product with the edge signal input from the edge signal output unit 215 is calculated, and the line width of the edge to be corrected is calculated.

図14は、本実施の形態にかかる画像形成装置1における、線幅制御処理の流れの具体例を示すフローチャートである。図14のフローチャートに示される処理は、画像形成装置1のCPU11が記憶部13に記憶されている線幅制御プログラムを含むプログラムを読出して実行し、図2に示される各部を制御することによって実現される。   FIG. 14 is a flowchart showing a specific example of the flow of line width control processing in the image forming apparatus 1 according to the present embodiment. The processing shown in the flowchart of FIG. 14 is realized by the CPU 11 of the image forming apparatus 1 reading and executing a program including the line width control program stored in the storage unit 13 and controlling each unit shown in FIG. Is done.

図14を参照して、始めに、CPU11は、イメージリーダ部19でスキャンして得られた原稿データ、またはNIC15が他の装置から送信されたデータを受信することで得られた原稿データを取得する(ステップS101)。   Referring to FIG. 14, first, CPU 11 obtains document data obtained by scanning with image reader unit 19, or document data obtained by receiving data transmitted by NIC 15 from another device. (Step S101).

原稿データのうち、属性データが属性データ入力部101より入力されて、線幅検出部105において線幅が検出され(ステップS103)、線幅信号が出力される。   Among the document data, attribute data is input from the attribute data input unit 101, the line width detection unit 105 detects the line width (step S103), and a line width signal is output.

また、原稿データのうち、画像データが画像データ入力部103より入力されて、エッジ検出部109においてエッジ検出される(ステップS105)。また、エッジ検出部109において、前述のPWM位置が決定され(ステップS107)、PWM印字制御信号出力部217より、決定されたPWM位置に基づいたPWM印字制御信号が出力される。   Of the original data, image data is input from the image data input unit 103, and the edge detection unit 109 performs edge detection (step S105). The edge detection unit 109 determines the aforementioned PWM position (step S107), and the PWM print control signal output unit 217 outputs a PWM print control signal based on the determined PWM position.

論理積算出部107では、上記ステップS105で検出された線幅に基づいて出力された線幅信号と、上記ステップS107で決定されたPWM位置に基づいて出力されたPWM印字制御信号との論理積が算出されることで(ステップS109)、エッジの線幅が算出される。   The logical product calculation unit 107 performs a logical product of the line width signal output based on the line width detected in step S105 and the PWM print control signal output based on the PWM position determined in step S107. (Step S109), the edge line width is calculated.

線幅補正係数乗算部111では、ステップS109で算出されたエッジの線幅に基づいて、係数記憶部113に記憶されている線幅補正係数の中から、上記線幅に対応した係数を取得して(ステップS111)、上記線幅に対して乗算することで補正後の線幅を算出する(ステップS113)。   The line width correction coefficient multiplication unit 111 acquires a coefficient corresponding to the line width from the line width correction coefficients stored in the coefficient storage unit 113 based on the line width of the edge calculated in step S109. (Step S111), the corrected line width is calculated by multiplying the line width (Step S113).

CPU11では画像形成処理が実行されて、当該画素の階調がステップS113で算出された補正後の線幅に基づいた新たな階調に置換され、PWM印字制御信号に基づいて、当該画素の成長位置が決定された画像データに基づく、画像形成が行なわれる。画像形成された画像データは、プリンタ部21またはNIC15を介して他の装置に対して出力される(ステップS115)。   The CPU 11 executes an image forming process, the gradation of the pixel is replaced with a new gradation based on the corrected line width calculated in step S113, and the growth of the pixel is performed based on the PWM print control signal. Image formation is performed based on the image data whose position has been determined. The formed image data is output to another device via the printer unit 21 or the NIC 15 (step S115).

さらに、図15は、上記ステップS103における線幅検出処理を示すフローチャートである。   FIG. 15 is a flowchart showing the line width detection process in step S103.

図15を参照して、始めに、線幅補正対象属性選択部301において、原稿データに含まれる属性データのうち、テキストであると判断された画素および罫線(グラフィック)であると判断された画素についての属性データを、線幅を補正する処理の対象とする属性データとして選択する(ステップS201)。   Referring to FIG. 15, first, the pixel determined to be text and the pixel determined to be a ruled line (graphic) among the attribute data included in the document data in the line width correction target attribute selection unit 301. Is selected as attribute data to be processed for correcting the line width (step S201).

ステップS201で選択された属性データに対して、エロージョン処理部303において1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理が行なわれ(ステップS203)、さらにその結果に対して、第1ダイレーション処理部305において上記フィルタと同サイズのフィルタを用いて第1ダイレーション処理が行なわれる(ステップS205)。ステップS205での第1ダイレーション処理の結果に基づいて、内線幅出力部307より先述の内線幅が算出されて、内線幅を示す内線幅信号が出力される(ステップS207)。   The erosion processing unit 303 performs erosion processing on the attribute data selected in step S201 using a matrix filter of 1 pixel * 1 pixel to n pixels * n pixels (step S203). Then, the first dilation processing unit 305 performs the first dilation processing using a filter having the same size as the filter (step S205). Based on the result of the first dilation process in step S205, the extension width output unit 307 calculates the aforementioned extension width and outputs an extension width signal indicating the extension width (step S207).

また、上記ステップS203でのエロージョン処理の結果に対して、第2ダイレーション処理部309において上記ステップS203で用いられたフィルタよりも2画素大きいサイズのフィルタを用いて第2ダイレーション処理が行なわれる(ステップS209)。ステップS209での第2ダイレーション処理の結果に基づいて、外線幅出力部311より先述の外線幅が算出されて、外線幅を示す外線幅信号が出力される(ステップS211)。   In addition, the second dilation process is performed on the result of the erosion process in step S203 using a filter having a size two pixels larger than the filter used in step S203 in the second dilation processing unit 309. (Step S209). Based on the result of the second dilation process in step S209, the above-described external line width is calculated from the external line width output unit 311 and an external line width signal indicating the external line width is output (step S211).

なお、上記ステップS205〜S207の処理と、ステップS209〜S211の処理とは独立した処理であるため、処理順は上記処理順に限定されずに逆の順であってもよい。   In addition, since the process of said step S205-S207 and the process of step S209-S211 are independent processes, a process order is not limited to the said process order, A reverse order may be sufficient.

上記ステップS205〜S207の処理と、ステップS209〜S211の処理とは、ステップS201で選択された各属性データに対して実行され、ステップS201で選択されたすべての属性データに対して処理が終了すると(ステップS213でYES)、処理がステップS105に移行する。   The processes in steps S205 to S207 and the processes in steps S209 to S211 are executed for each attribute data selected in step S201, and the process is completed for all the attribute data selected in step S201. (YES in step S213), the process proceeds to step S105.

図16は、上記ステップS105におけるエッジ検出処理を示すフローチャートである。   FIG. 16 is a flowchart showing the edge detection process in step S105.

図16を参照して、始めに、1次微分フィルタ演算部201において原稿データに含まれる画像データに対して1次微分フィルタを用いた演算が実行され(ステップS301)、2次微分フィルタ演算部203において画像データに対して2次微分フィルタを用いた演算が実行される(ステップS303)。ステップS301の処理とステップS303の処理とは独立した処理であるので、処理順は上記処理順に限定されずに逆の順であってもよい。   Referring to FIG. 16, first, a primary differential filter calculation unit 201 performs a calculation using a primary differential filter on image data included in document data (step S301), and a secondary differential filter calculation unit. In 203, an operation using a secondary differential filter is performed on the image data (step S303). Since the process of step S301 and the process of step S303 are independent processes, the process order is not limited to the process order described above, and may be reversed.

次に、エッジ抽出部205において、上記ステップS301での処理結果および上記ステップS303での処理結果よりエッジである画素が抽出される(ステップS305)。ステップS305で抽出されたエッジである画素に対して、エッジダイレーション部207においてダイレーション処理が実行され(ステップS307)、さらにその結果に対してエッジエロージョン部209においてエロージョン処理が実行される(ステップS309)。   Next, the edge extraction unit 205 extracts pixels that are edges from the processing result in step S301 and the processing result in step S303 (step S305). Dilation processing is executed in the edge dilation unit 207 for the pixel that is the edge extracted in step S305 (step S307), and further, erosion processing is executed in the edge erosion unit 209 for the result (step S307). S309).

ステップS307のダイレーション処理とステップS309のエロージョン処理とは、ステップS305でエッジと抽出された各画素に対して実行され、ステップS305でエッジと抽出されたすべての画素に対して処理が終了すると(ステップS311でYES)、エッジ信号出力部215においてエッジである画素を示すエッジ検出信号が出力され(ステップS313)、処理がステップS107に移行する。   The dilation process in step S307 and the erosion process in step S309 are executed for each pixel extracted as an edge in step S305, and the process is completed for all the pixels extracted as an edge in step S305 ( In step S311, YES, the edge signal output unit 215 outputs an edge detection signal indicating a pixel that is an edge (step S313), and the process proceeds to step S107.

図17は、上記ステップS107におけるPWM位置決定処理を示すフローチャートである。   FIG. 17 is a flowchart showing the PWM position determination process in step S107.

図17を参照して、始めに、PWM印字位置コード生成部211において、原稿データに含まれる画像データの各画素について、先述のPWM印字位置コードが生成される(ステップS401)。   With reference to FIG. 17, first, the PWM print position code generation unit 211 generates the aforementioned PWM print position code for each pixel of the image data included in the document data (step S401).

次に、セレクタ部213において、上記ステップS313でエッジ信号出力部215より出力されたエッジ信号に基づいて、ステップS401でPWM印字位置コードが生成された画素がエッジと抽出された画素であるか否かが判断される(ステップS403)。その結果、エッジと抽出された画素であると判断された画素については(ステップS403でYES)、PWM印字制御信号出力部217より、ステップS401で生成されたPWM印字位置コードに基づいたPWM印字制御信号が出力される(ステップS405)。そでない場合には(ステップS403でNO)、PWM印字制御信号出力部217より、先述の中央印字位置コードに基づいたPWM印字制御信号が出力される(ステップS407)。   Next, in the selector unit 213, based on the edge signal output from the edge signal output unit 215 in step S313, whether the pixel for which the PWM print position code is generated in step S401 is a pixel extracted as an edge or not. Is determined (step S403). As a result, for a pixel determined to be an edge and extracted pixel (YES in step S403), the PWM printing control signal output unit 217 performs PWM printing control based on the PWM printing position code generated in step S401. A signal is output (step S405). If not (NO in step S403), the PWM print control signal output unit 217 outputs a PWM print control signal based on the above-described central print position code (step S407).

上記ステップS401〜S407の処理は、ステップS101で取得された原稿データに含まれる画像データのすべての画素に対して実行され、すべての画素に対して処理が終了すると(ステップS409でYES)、処理がステップS109に移行する。   The processing in steps S401 to S407 is executed for all the pixels of the image data included in the document data acquired in step S101. When the processing is completed for all the pixels (YES in step S409), the processing is performed. Goes to step S109.

なお、本具体例では、上記ステップS401で画像データに含まれるすべての画素についてPWM印字位置コードが生成されるものとしているが、予め上記ステップS403の判断を行なってエッジ画素であると判断された画素についてのみPWM印字位置コードが生成されるようにしてもよい。つまり、本処理の処理順は上記の順に限定されず、ステップS401の前にステップS403が実行されて、その判断結果に応じてステップS401のPWM印字位置コードの生成処理が実行されるようにしてもよい。   In this specific example, the PWM print position code is generated for all the pixels included in the image data in step S401. However, it is determined in advance in step S403 that the pixel is an edge pixel. The PWM print position code may be generated only for the pixel. In other words, the processing order of this process is not limited to the above order, and step S403 is executed before step S401, and the PWM print position code generation process of step S401 is executed according to the determination result. Also good.

本実施の形態にかかる画像形成装置1において上記処理が実行されることで、文字や罫線のエッジ部分が、所定の太さである場合に、線幅補正係数を用いて階調を置換して、線幅を細くすることができる。このため、画像形成装置1のエンジン特性に起因した、文字や罫線のエッジ部分が太くなる現象が抑制され、細線の再現性が高められる。その結果、画像形成装置1では、高品質の画像を形成することができる。   When the above processing is executed in the image forming apparatus 1 according to the present embodiment, when the edge portion of the character or ruled line has a predetermined thickness, the gradation is replaced using the line width correction coefficient. The line width can be reduced. For this reason, the phenomenon that the edge portions of characters and ruled lines become thick due to the engine characteristics of the image forming apparatus 1 is suppressed, and the reproducibility of the thin lines is enhanced. As a result, the image forming apparatus 1 can form a high-quality image.

[変形例1]
第1の変形例にかかる画像形成装置1は、図18に示されるように、図2に示された機能構成に加えて、画像データから色を検出する色検出部117をさらに含んで構成される。色検出部117は、画像データの画素ごとに、色を検出し、検出された色を示す色検出信号を線幅補正係数乗算部111に入力する。色検出部117において画像データから色を検出する方法については、本発明において特定の方法には限定されず、いかなる方法も採用され得る。
[Modification 1]
As shown in FIG. 18, the image forming apparatus 1 according to the first modification is configured to further include a color detection unit 117 that detects a color from image data in addition to the functional configuration shown in FIG. 2. The The color detection unit 117 detects a color for each pixel of the image data, and inputs a color detection signal indicating the detected color to the line width correction coefficient multiplication unit 111. The method for detecting the color from the image data in the color detection unit 117 is not limited to a specific method in the present invention, and any method can be adopted.

第1の変形例にかかる画像形成装置1の係数記憶部113には、図19に示されるように、1dotからndotの各々の線幅に対して色別に設定された線幅補正係数が記憶されている。なお、図19に示される係数の具体的な数値もまた1つの具体例であり、本発明はこの数値に限定されない。   In the coefficient storage unit 113 of the image forming apparatus 1 according to the first modification, as shown in FIG. 19, the line width correction coefficient set for each color is stored for each line width from 1 dot to ndot. ing. In addition, the specific numerical value of the coefficient shown in FIG. 19 is also one specific example, and the present invention is not limited to this numerical value.

第1の変形例にかかる画像形成装置1では、上記ステップS105でエッジ検出部109において画像データからエッジを検出すると共に、色検出部117において画像データから画素ごとに色を検出する。そして、上記ステップS111において、線幅補正係数乗算部111で、ステップS109で算出されたエッジの線幅および上記ステップS105で検出されたそのエッジの色に基づいて、対応する線幅補正係数を取得する。   In the image forming apparatus 1 according to the first modified example, the edge detection unit 109 detects an edge from the image data in step S105, and the color detection unit 117 detects a color for each pixel from the image data. In step S111, the line width correction coefficient multiplication unit 111 acquires a corresponding line width correction coefficient based on the line width of the edge calculated in step S109 and the color of the edge detected in step S105. To do.

エンジン特定の1つとして、色によって、ドットの膨張の仕方(エッジの太り方)が異なる場合がある。そのように、色によって異なる場合であっても、第1の変形例にかかる画像形成装置1がこのように色別に設定された線幅補正係数を用いて色ごとに線幅を補正することで、画像形成装置1のエンジン特性に起因した、文字や罫線のエッジ部分が太くなる現象が抑制され、細線の再現性が高められる。その結果、画像形成装置1では、高品質の画像を形成することができる。   As one of the engine specifics, there are cases where the manner of dot expansion (edge thickening) differs depending on the color. As described above, even in the case of different colors, the image forming apparatus 1 according to the first modification corrects the line width for each color using the line width correction coefficient set for each color in this way. The phenomenon that the edge portions of characters and ruled lines become thick due to the engine characteristics of the image forming apparatus 1 is suppressed, and the reproducibility of fine lines is improved. As a result, the image forming apparatus 1 can form a high-quality image.

[変形例2]
第2の変形例においては、画像形成装置1は、原稿データと共に当該原稿のモードや言語情報なども取得する。
[Modification 2]
In the second modification, the image forming apparatus 1 acquires the original mode and language information together with the original data.

モードとは、当該原稿データが文書データであるのか、WEBデータであるのか、CAD(Computer Aided Design)であるのか、など、原稿データの種類を規定する情報である。モードは、当該原稿データを作成しているアプリケーションから印字指示がなされた際に、自動的に原稿データと共に画像形成装置1に対して送信されてもよい。また、ユーザが操作パネル17より印字指示を行なう際に入力することによって、原稿データと共に画像形成装置1に入力されてもよい。また、モードは、原稿データとは別のデータであってもよいし、原稿データに含まれてもよい。または、原稿データに含まれる属性データの一部であってもよい。   The mode is information that defines the type of document data, such as whether the document data is document data, WEB data, or CAD (Computer Aided Design). The mode may be automatically transmitted to the image forming apparatus 1 together with the document data when a print instruction is issued from an application that creates the document data. Further, it may be inputted to the image forming apparatus 1 together with the document data by inputting when the user gives a print instruction from the operation panel 17. The mode may be data different from the document data or may be included in the document data. Alternatively, it may be a part of attribute data included in the document data.

言語情報とは、当該原稿データの言語を表わす情報である。言語情報も上記モードと同様にして画像形成装置1で取得され得る。また、言語情報は原稿データとは別のデータであってもよいし、原稿データに含まれてもよい。または、原稿データに含まれる属性データの一部であってもよい。   The language information is information representing the language of the document data. Language information can also be acquired by the image forming apparatus 1 in the same manner as in the above mode. The language information may be data different from the document data or may be included in the document data. Alternatively, it may be a part of attribute data included in the document data.

上述の原稿のモードや言語情報などは、当該原稿データを作成(または変更・修正等)したアプリケーションにおいて印刷の指示を行なって原稿データを画像形成装置1に送信する際に、画像形成装置1に印刷の指示を行なうためのプログラム(コントローラ)によって生成されて、当該プログラムの実行にしたがって、原稿データと共に画像形成装置1に送信される。そして、これらの情報は、線幅補正係数乗算部111に入力される。   The above-described document mode, language information, and the like are transmitted to the image forming apparatus 1 when an application that creates (or changes or modifies) the document data is instructed to print and the document data is transmitted to the image forming apparatus 1. It is generated by a program (controller) for instructing printing, and is transmitted to the image forming apparatus 1 together with document data in accordance with execution of the program. These pieces of information are input to the line width correction coefficient multiplication unit 111.

第2の変形例にかかる画像形成装置1の係数記憶部113には、図19に示されたように、1dotからndotの各々の線幅に対して原稿のモード別や言語別に設定された線幅補正係数が記憶されている。上記ステップS111で線幅補正係数乗算部111は、ステップS109で算出されたエッジの線幅および入力された原稿のモードや言語情報に基づいて、対応する線幅補正係数を取得する。   In the coefficient storage unit 113 of the image forming apparatus 1 according to the second modification, as shown in FIG. 19, lines set for each document mode and each language for each line width from 1 dot to ndot. A width correction coefficient is stored. In step S111, the line width correction coefficient multiplication unit 111 acquires a corresponding line width correction coefficient based on the line width of the edge calculated in step S109 and the input document mode and language information.

エンジン特定の1つとして、原稿のモードや言語情報によって、ドットの膨張の仕方(エッジの太り方)が異なる場合がある。そのように、原稿のモードや言語情報によって異なる場合であっても、第1の変形例にかかる画像形成装置1がこのように原稿のモードや言語情報別に設定された線幅補正係数を用いて線幅を補正することで、画像形成装置1のエンジン特性に起因した、文字や罫線のエッジ部分が太くなる現象が抑制され、細線の再現性が高められる。その結果、画像形成装置1では、高品質の画像を形成することができる。   As one specific engine, the dot expansion method (edge thickening) may differ depending on the document mode and language information. As described above, even when the document mode and language information differ, the image forming apparatus 1 according to the first modification uses the line width correction coefficient set for each document mode and language information as described above. By correcting the line width, the phenomenon that the edge portions of characters and ruled lines become thick due to the engine characteristics of the image forming apparatus 1 is suppressed, and the reproducibility of thin lines is enhanced. As a result, the image forming apparatus 1 can form a high-quality image.

さらに、上述の本実施の形態にかかる線幅制御をコンピュータに実行させるプログラムを提供することもできる。このようなプログラムは、コンピュータに付属するフレキシブルディスク、CD−ROM(Compact Disk-Read Only Memory)、ROM(Read Only Memory)、RAM(Random Access Memory)およびメモリカードなどのコンピュータ読取り可能な記録媒体にて記録させて、プログラム製品として提供することもできる。あるいは、コンピュータに内蔵するハードディスクなどの記録媒体にて記録させて、プログラムを提供することもできる。また、ネットワークを介したダウンロードによって、プログラムを提供することもできる。   Furthermore, it is possible to provide a program that causes a computer to execute the line width control according to the above-described embodiment. Such a program is stored in a computer-readable recording medium such as a flexible disk attached to the computer, a CD-ROM (Compact Disk-Read Only Memory), a ROM (Read Only Memory), a RAM (Random Access Memory), and a memory card. And can be provided as a program product. Alternatively, the program can be provided by being recorded on a recording medium such as a hard disk built in the computer. A program can also be provided by downloading via a network.

なお、本発明にかかるプログラムは、コンピュータのオペレーティングシステム(OS)の一部として提供されるプログラムモジュールのうち、必要なモジュールを所定の配列で所定のタイミングで呼出して処理を実行させるものであってもよい。その場合、プログラム自体には上記モジュールが含まれずOSと協働して処理が実行される。このようなモジュールを含まないプログラムも、本発明にかかるプログラムに含まれ得る。   The program according to the present invention is a program module that is provided as a part of a computer operating system (OS) and calls necessary modules in a predetermined arrangement at a predetermined timing to execute processing. Also good. In that case, the program itself does not include the module, and the process is executed in cooperation with the OS. A program that does not include such a module can also be included in the program according to the present invention.

また、本発明にかかるプログラムは他のプログラムの一部に組込まれて提供されるものであってもよい。その場合にも、プログラム自体には上記他のプログラムに含まれるモジュールが含まれず、他のプログラムと協働して処理が実行される。このような他のプログラムに組込まれたプログラムも、本発明にかかるプログラムに含まれ得る。   The program according to the present invention may be provided by being incorporated in a part of another program. Even in this case, the program itself does not include the module included in the other program, and the process is executed in cooperation with the other program. Such a program incorporated in another program can also be included in the program according to the present invention.

提供されるプログラム製品は、ハードディスクなどのプログラム格納部にインストールされて実行される。なお、プログラム製品は、プログラム自体と、プログラムが記録された記録媒体とを含む。   The provided program product is installed in a program storage unit such as a hard disk and executed. The program product includes the program itself and a recording medium on which the program is recorded.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 画像形成装置、11 CPU、13 記憶部、15 NIC、17 操作パネル、19 イメージリーダ部、21 プリンタ部、23 センサ部、101 属性データ入力部、103 画像データ入力部、105 線幅検出部、109 エッジ検出部、107 論理積算出部、113 係数記憶部、111 線幅補正係数乗算部、115 画像データ出力部、117 色検出部、201 1次微分フィルタ演算部、203 2次微分フィルタ演算部、205 エッジ抽出部、207 エッジダイレーション部、209 エッジエロージョン部、211 PWM印字位置コード生成部、213 セレクタ部、215 エッジ信号出力部、217 PWM印字制御信号出力部、301 線幅補正対象属性選択部、303 エロージョン処理部、305 第1ダイレーション処理部、307 内線幅出力部、309 第2ダイレーション処理部、311 外線幅出力部。   DESCRIPTION OF SYMBOLS 1 Image forming apparatus, 11 CPU, 13 Memory | storage part, 15 NIC, 17 Operation panel, 19 Image reader part, 21 Printer part, 23 Sensor part, 101 Attribute data input part, 103 Image data input part, 105 Line width detection part, 109 edge detection unit 107 logical product calculation unit 113 coefficient storage unit 111 line width correction coefficient multiplication unit 115 image data output unit 117 color detection unit 201 primary differential filter calculation unit 203 secondary differential filter calculation unit , 205 edge extraction unit, 207 edge dilation unit, 209 edge erosion unit, 211 PWM print position code generation unit, 213 selector unit, 215 edge signal output unit, 217 PWM print control signal output unit, 301 line width correction target attribute selection , 303 Erosion processing unit, 305 First direct Application processing unit, 307 inner line width output unit, 309 second dilation processing unit, 311 outer line width output unit.

Claims (15)

画像データに対応した属性データより、前記画像データに含まれる線の線幅を検出する線幅検出手段と、
前記画像データよりエッジ画素を検出するエッジ検出手段と、
前記画像データより前記線の色を検出する色検出手段と、
色ごとに線幅に対応した線幅補正係数を記憶する記憶手段と、
前記エッジ画素について、前記線幅検出手段で検出された線幅と前記色検出手段で検出された色とに対応した線幅補正係数を前記記憶手段から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する補正手段とを備える、画像形成装置。
From the attribute data corresponding to the image data, line width detection means for detecting the line width of the line included in the image data,
Edge detection means for detecting edge pixels from the image data;
Color detecting means for detecting the color of the line from the image data;
Storage means for storing a line width correction coefficient corresponding to the line width for each color;
For the edge pixel, a line width correction coefficient corresponding to the line width detected by the line width detection unit and the color detected by the color detection unit is acquired from the storage unit, and the line width and the line width correction are acquired. An image forming apparatus comprising: a correction unit that corrects the line width by correcting a gradation of the edge pixel using a coefficient.
前記線幅検出手段は、
前記属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理手段と、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理手段と、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理手段と、
前記第1ダイレーション処理手段における処理結果による第1の線幅と、前記第2ダイレーション処理手段における処理結果による第2の線幅とを出力する線幅出力手段とを含む、請求項1に記載の画像形成装置。
The line width detecting means is
Erosion processing means for performing erosion processing on the attribute data using a filter of a matrix of 1 pixel * 1 pixel to n pixels * n pixels;
A first dilation processing means for performing dilation processing using a filter of the same size as the erosion processing, with respect to the erosion processing using the filter of each matrix;
A second dilation processing means for performing dilation processing using a matrix filter larger by two pixels than the size used for the erosion processing, with respect to the erosion processing using the filter of each matrix;
The line width output means for outputting the first line width based on the processing result in the first dilation processing means and the second line width based on the processing result in the second dilation processing means. The image forming apparatus described.
前記エロージョン処理で用いられる前記フィルタのサイズの最大値nは、任意に設定可能であり、
前記エロージョン処理手段は、前記線幅がnよりも大きい場合には、前記エロージョン処理を行なわないようにする、請求項2に記載の画像形成装置。
The maximum value n of the size of the filter used in the erosion process can be arbitrarily set,
The image forming apparatus according to claim 2, wherein the erosion processing unit does not perform the erosion processing when the line width is larger than n.
前記エッジ検出手段は、
前記画像データを1次微分する1次微分演算手段と、
前記画像データを2次微分する2次微分演算手段と、
前記1次微分の結果と前記2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理手段と、
前記ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理手段と、
前記画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する前記両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成手段と、
前記エロージョン処理の結果に基づいて、前記画素の画素内での印字パルス出力位置を制御するコードとして、前記生成手段で生成された前記PWM印字位置コードとするか、前記画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードとするかを選択する選択手段とを含む、請求項1〜3のいずれかに記載の画像形成装置。
The edge detection means includes
Primary differential operation means for performing primary differentiation of the image data;
Secondary differential operation means for performing secondary differentiation of the image data;
Edge dilation processing means for performing dilation processing on a logical product of the result of the first derivative and the result of the second derivative;
Edge erosion processing means for performing erosion processing on the result of the dilation processing;
For each pixel of the image data, based on the gradation difference between both pixels adjacent in the main scanning direction, from which side of the pixels adjacent to the pixel the printing dot growth starts in the pixel Generating means for generating a PWM printing position code indicating
Based on the result of the erosion process, the PWM print position code generated by the generating means is used as a code for controlling the print pulse output position of the pixel within the pixel, or the print pulse output position of the pixel is set as the code. 4. The image forming apparatus according to claim 1, further comprising a selection unit that selects whether a center print position code indicating that the center of the pixel is set.
前記記憶手段は、前記画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、
前記補正手段は、前記エッジ画素について、前記線幅検出手段で検出された線幅と前記色検出手段で検出された色と前記画像データのモードおよび/または言語とに対応した線幅補正係数を前記記憶手段から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する、請求項1〜4のいずれかに記載の画像形成装置。
The storage means stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data,
The correction means sets a line width correction coefficient corresponding to the line width detected by the line width detection means, the color detected by the color detection means, and the mode and / or language of the image data for the edge pixel. 5. The image according to claim 1, wherein the image is acquired from the storage unit, and the line width is corrected by correcting a gradation of the edge pixel using the line width and the line width correction coefficient. Forming equipment.
画像形成装置において形成される画像に含まれる線の幅を制御する方法であって、
前記画像形成装置は、色ごとに線幅に対応した線幅補正係数を記憶する記憶手段を含み、
前記画像形成装置において、画像データと前記画像データに対応した属性データとを取得する取得ステップと、
前記属性データより、前記画像データに含まれる線の線幅を検出する線幅検出ステップと、
前記画像データより、前記線の色を検出する色検出ステップと、
前記画像データよりエッジ画素を検出するエッジ検出ステップと、
前記エッジ画素について前記線幅検出ステップで検出された線幅と前記色検出ステップで検出された色とに対応した線幅補正係数を前記記憶手段から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する補正ステップとを備える、線幅制御方法。
A method for controlling the width of a line included in an image formed in an image forming apparatus,
The image forming apparatus includes a storage unit that stores a line width correction coefficient corresponding to the line width for each color,
In the image forming apparatus, an acquisition step of acquiring image data and attribute data corresponding to the image data;
From the attribute data, a line width detection step of detecting a line width of a line included in the image data;
A color detection step of detecting the color of the line from the image data;
An edge detection step of detecting edge pixels from the image data;
A line width correction coefficient corresponding to the line width detected in the line width detection step and the color detected in the color detection step for the edge pixel is acquired from the storage unit, and the line width and the line width correction coefficient are acquired. And a correction step of correcting the line width by correcting the gray level of the edge pixel.
前記線幅検出ステップは、
前記属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理ステップと、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理ステップと、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理ステップと、
前記第1ダイレーション処理ステップにおける処理結果による第1の線幅と、前記第2ダイレーション処理ステップにおける処理結果による第2の線幅とを出力する線幅出力ステップとを含む、請求項6に記載の線幅制御方法。
The line width detecting step includes
An erosion processing step of performing erosion processing on the attribute data using a filter of a matrix of 1 pixel * 1 pixel to n pixels * n pixels;
A first dilation processing step for performing dilation processing using a filter of the same size as the erosion processing, with respect to the erosion processing using the filter of each matrix;
A second dilation processing step of performing dilation processing using a filter of a matrix that is two pixels larger than the size used for the erosion processing, with respect to the erosion processing using the filter of each matrix;
The line width output step which outputs the 1st line width by the process result in the said 1st dilation process step, and the 2nd line width by the process result in the said 2nd dilation process step is included in Claim 6. The line width control method described.
前記エロージョン処理で用いられる前記フィルタのサイズの最大値nは、任意に設定可能であり、
前記エロージョン処理ステップでは、前記線幅がnよりも大きい場合には、前記エロージョン処理を行なわないようにする、請求項7に記載の線幅制御方法。
The maximum value n of the size of the filter used in the erosion process can be arbitrarily set,
The line width control method according to claim 7, wherein in the erosion processing step, the erosion processing is not performed when the line width is larger than n.
前記エッジ検出ステップは、
前記画像データを1次微分する1次微分演算ステップと、
前記画像データを2次微分する2次微分演算ステップと、
前記1次微分の結果と前記2次微分の結果との論理積を算出することで、前記画像データの中からエッジ画素を抽出するエッジ抽出ステップと、
前記エッジ画素として抽出された画素について、前記1次微分の結果と前記2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理ステップと、
前記ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理ステップと、
前記画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する前記両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成ステップと、
前記エロージョン処理の結果に基づいて前記画素がエッジ画素と検出された場合に、前記画素の画素内での印字パルス出力位置を制御するコードとして、前記生成ステップで生成された前記PWM印字位置コードを出力する第1出力ステップと、
前記エロージョン処理の結果に基づいて前記画素がエッジ画素と検出されなかった場合に、前記画素の画素内での印字パルス出力位置を制御するコードとして、前記画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードを出力する第2出力ステップとを含む、請求項6〜8のいずれかに記載の線幅制御方法。
The edge detection step includes
A first-order differential calculation step for first-order differentiation of the image data;
A second order differential operation step for secondarily differentiating the image data;
An edge extraction step of extracting edge pixels from the image data by calculating a logical product of the result of the first derivative and the result of the second derivative;
An edge dilation processing step for performing dilation processing on a logical product of the result of the primary differentiation and the result of the secondary differentiation for the pixel extracted as the edge pixel;
An edge erosion processing step for performing erosion processing on the result of the dilation processing;
For each pixel of the image data, based on the gradation difference between both pixels adjacent in the main scanning direction, from which side of the pixels adjacent to the pixel the printing dot growth starts in the pixel Generating step of generating a PWM printing position code indicating:
When the pixel is detected as an edge pixel based on the result of the erosion process, the PWM print position code generated in the generation step is used as a code for controlling the print pulse output position in the pixel of the pixel. A first output step for outputting;
When the pixel is not detected as an edge pixel based on the result of the erosion process, the print pulse output position of the pixel is set as the code for controlling the print pulse output position in the pixel of the pixel. A line width control method according to claim 6, further comprising: a second output step of outputting a central print position code indicating that
前記記憶手段は、前記画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、
前記補正ステップは、前記エッジ画素について、前記線幅検出ステップで検出された線幅と前記色検出ステップで検出された色と前記画像データのモードおよび/または言語とに対応した線幅補正係数を前記記憶手段から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する、請求項6〜9のいずれかに記載の線幅制御方法。
The storage means stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data,
In the correction step, for the edge pixel, a line width correction coefficient corresponding to the line width detected in the line width detection step, the color detected in the color detection step, and the mode and / or language of the image data. The line according to claim 6, wherein the line width is acquired by correcting the line width by correcting the gradation of the edge pixel using the line width and the line width correction coefficient. Width control method.
画像形成される画像に含まれる線の幅を制御する処理をコンピュータに実行させるプログラムであって、
前記画像形成装置において、画像データと前記画像データに対応した属性データとを取得する取得ステップと、
前記属性データより、前記画像データに含まれる線の線幅を検出する線幅検出ステップと、
前記画像データより、前記線の色を検出する色検出ステップと、
前記画像データよりエッジ画素を検出するエッジ検出ステップと、
前記エッジ画素について前記線幅検出ステップで検出された線幅と前記色検出ステップで検出された色とに対応した線幅補正係数を、色ごとに線幅に対応した線幅補正係数を記憶する記憶装置から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する補正ステップとを実行させる、線幅制御プログラム。
A program for causing a computer to execute processing for controlling the width of a line included in an image to be formed,
In the image forming apparatus, an acquisition step of acquiring image data and attribute data corresponding to the image data;
From the attribute data, a line width detection step of detecting a line width of a line included in the image data;
A color detection step of detecting the color of the line from the image data;
An edge detection step of detecting edge pixels from the image data;
For the edge pixel, the line width correction coefficient corresponding to the line width detected in the line width detection step and the color detected in the color detection step is stored, and the line width correction coefficient corresponding to the line width is stored for each color. A line width control program, which is obtained from a storage device, and executes a correction step of correcting the line width by correcting a gradation of the edge pixel using the line width and the line width correction coefficient.
前記線幅検出ステップは、
前記属性データに対して、1画素*1画素〜n画素*n画素のマトリクスのフィルタを用いてエロージョン処理を行なうエロージョン処理ステップと、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理と同じサイズのフィルタを用いてダイレーション処理を行なう第1ダイレーション処理ステップと、
前記各マトリクスのフィルタを用いたエロージョン処理に対して、前記エロージョン処理に用いたサイズよりも2画素大きいマトリクスのフィルタを用いてダイレーション処理を行なう第2ダイレーション処理ステップと、
前記第1ダイレーション処理ステップにおける処理結果による第1の線幅と、前記第2ダイレーション処理ステップにおける処理結果による第2の線幅とを出力する線幅出力ステップとを含む、請求項11に記載の線幅制御プログラム。
The line width detecting step includes
An erosion processing step of performing erosion processing on the attribute data using a filter of a matrix of 1 pixel * 1 pixel to n pixels * n pixels;
A first dilation processing step for performing dilation processing using a filter of the same size as the erosion processing, with respect to the erosion processing using the filter of each matrix;
A second dilation processing step of performing dilation processing using a filter of a matrix that is two pixels larger than the size used for the erosion processing, with respect to the erosion processing using the filter of each matrix;
The line width output step which outputs the 1st line width by the processing result in the 1st dilation processing step, and the 2nd line width by the processing result in the 2nd dilation processing step is included. The line width control program described.
前記エロージョン処理で用いられる前記フィルタのサイズの最大値nは、任意に設定可能であり、
前記エロージョン処理ステップでは、前記線幅がnよりも大きい場合には、前記エロージョン処理を行なわないようにする、請求項12に記載の線幅制御プログラム。
The maximum value n of the size of the filter used in the erosion process can be arbitrarily set,
13. The line width control program according to claim 12, wherein in the erosion processing step, the erosion processing is not performed when the line width is larger than n.
前記エッジ検出ステップは、
前記画像データを1次微分する1次微分演算ステップと、
前記画像データを2次微分する2次微分演算ステップと、
前記1次微分の結果と前記2次微分の結果との論理積を算出することで、前記画像データの中からエッジ画素を抽出するエッジ抽出ステップと、
前記エッジ画素として抽出された画素について、前記1次微分の結果と前記2次微分の結果との論理積に対してダイレーション処理を行なうエッジダイレーション処理ステップと、
前記ダイレーション処理の結果に対してエロージョン処理を行なうエッジエロージョン処理ステップと、
前記画像データの各画素について、主走査方向に隣接する両画素との間の階調差に基づき、当該画素内で当該画素に隣接する前記両画素のいずれ側から印字ドットの成長を開始するかを示すPWM印字位置コードを生成する生成ステップと、
前記エロージョン処理の結果に基づいて前記画素がエッジ画素と検出された場合に、前記画素の画素内での印字パルス出力位置を制御するコードとして、前記生成ステップで生成された前記PWM印字位置コードを出力する第1出力ステップと、
前記エロージョン処理の結果に基づいて前記画素がエッジ画素と検出されなかった場合に、前記画素の画素内での印字パルス出力位置を制御するコードとして、前記画素の印字パルス出力位置を当該画素の中央とすることを示す中央印字位置コードを出力する第2出力ステップとを含む、請求項11〜13のいずれかに記載の線幅制御プログラム。
The edge detection step includes
A first-order differential calculation step for first-order differentiation of the image data;
A second order differential operation step for secondarily differentiating the image data;
An edge extraction step of extracting edge pixels from the image data by calculating a logical product of the result of the first derivative and the result of the second derivative;
An edge dilation processing step for performing dilation processing on a logical product of the result of the primary differentiation and the result of the secondary differentiation for the pixel extracted as the edge pixel;
An edge erosion processing step for performing erosion processing on the result of the dilation processing;
For each pixel of the image data, based on the gradation difference between both pixels adjacent in the main scanning direction, from which side of the pixels adjacent to the pixel the printing dot growth starts in the pixel Generating step of generating a PWM printing position code indicating:
When the pixel is detected as an edge pixel based on the result of the erosion process, the PWM print position code generated in the generation step is used as a code for controlling the print pulse output position in the pixel of the pixel. A first output step for outputting;
When the pixel is not detected as an edge pixel based on the result of the erosion process, the print pulse output position of the pixel is set as the code for controlling the print pulse output position in the pixel of the pixel. The line width control program according to claim 11, further comprising: a second output step of outputting a central print position code indicating that
前記記憶装置は、前記画像データのモードおよび/または言語ごとに、色ごとに線幅に対応した線幅補正係数を記憶し、
前記補正ステップは、前記エッジ画素について、前記線幅検出ステップで検出された線幅と前記色検出ステップで検出された色と前記画像データのモードおよび/または言語とに対応した線幅補正係数を前記記憶装置から取得し、前記線幅と前記線幅補正係数とを用いて前記エッジ画素の階調を補正することで前記線幅を補正する、請求項11〜14のいずれかに記載の線幅制御プログラム。
The storage device stores a line width correction coefficient corresponding to the line width for each color for each mode and / or language of the image data,
In the correction step, for the edge pixel, a line width correction coefficient corresponding to the line width detected in the line width detection step, the color detected in the color detection step, and the mode and / or language of the image data. The line according to claim 11, wherein the line width is acquired by correcting the line width by correcting the gray level of the edge pixel using the line width and the line width correction coefficient obtained from the storage device. Width control program.
JP2009003825A 2009-01-09 2009-01-09 Image forming apparatus, line width control method, and line width control program Expired - Fee Related JP4569702B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009003825A JP4569702B2 (en) 2009-01-09 2009-01-09 Image forming apparatus, line width control method, and line width control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009003825A JP4569702B2 (en) 2009-01-09 2009-01-09 Image forming apparatus, line width control method, and line width control program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2006321871A Division JP4270266B2 (en) 2006-11-29 2006-11-29 Image forming apparatus, line width control method, and line width control program

Publications (2)

Publication Number Publication Date
JP2009105943A true JP2009105943A (en) 2009-05-14
JP4569702B2 JP4569702B2 (en) 2010-10-27

Family

ID=40707130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009003825A Expired - Fee Related JP4569702B2 (en) 2009-01-09 2009-01-09 Image forming apparatus, line width control method, and line width control program

Country Status (1)

Country Link
JP (1) JP4569702B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013011740A (en) * 2011-06-29 2013-01-17 Canon Inc Image processing apparatus, and manufacturing method of the same
US9883076B2 (en) 2015-11-26 2018-01-30 Canon Kabushiki Kaisha Image formation with gradation value of boundary pixels corrected using cumulative sum of grataion values of pixels in significant image portion
CN113222924A (en) * 2021-04-30 2021-08-06 西安电子科技大学 Hyperspectral image anomaly detection system based on FPGA
US11323590B2 (en) 2017-06-07 2022-05-03 Canon Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04775B2 (en) * 1984-09-21 1992-01-08 Shiro Kubota
JP2001340210A (en) * 2000-06-06 2001-12-11 Kajiwara Junko Side plate of curtain box and fitting method therefor
JP2007321472A (en) * 2006-06-01 2007-12-13 Daiken Trade & Ind Co Ltd Decorative sheet and its manufacturing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3868441B2 (en) * 1995-09-20 2007-01-17 株式会社リコー Color image forming apparatus and color image forming method
JP2000036912A (en) * 1998-07-17 2000-02-02 Toshiba Corp Image processing method
JP2006180380A (en) * 2004-12-24 2006-07-06 Fuji Xerox Co Ltd Line boundary correction apparatus, image processor, and line boundary correction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04775B2 (en) * 1984-09-21 1992-01-08 Shiro Kubota
JP2001340210A (en) * 2000-06-06 2001-12-11 Kajiwara Junko Side plate of curtain box and fitting method therefor
JP2007321472A (en) * 2006-06-01 2007-12-13 Daiken Trade & Ind Co Ltd Decorative sheet and its manufacturing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013011740A (en) * 2011-06-29 2013-01-17 Canon Inc Image processing apparatus, and manufacturing method of the same
US9883076B2 (en) 2015-11-26 2018-01-30 Canon Kabushiki Kaisha Image formation with gradation value of boundary pixels corrected using cumulative sum of grataion values of pixels in significant image portion
US11323590B2 (en) 2017-06-07 2022-05-03 Canon Kabushiki Kaisha Image processing apparatus, image forming apparatus, image processing method, and storage medium
CN113222924A (en) * 2021-04-30 2021-08-06 西安电子科技大学 Hyperspectral image anomaly detection system based on FPGA
CN113222924B (en) * 2021-04-30 2023-08-18 西安电子科技大学 Hyperspectral image anomaly detection system based on FPGA

Also Published As

Publication number Publication date
JP4569702B2 (en) 2010-10-27

Similar Documents

Publication Publication Date Title
JP4890974B2 (en) Image processing apparatus and image processing method
US8416460B2 (en) Image processing apparatus and control method of image forming apparatus with exclusive or relative control over the trapping and edge smoothing processing
JP4270266B2 (en) Image forming apparatus, line width control method, and line width control program
US8159694B2 (en) Image processor and image processing method processing an image that includes a semi-transparent object or an image with periodically varying density
JP4872860B2 (en) Image processing apparatus and image processing method
KR101810285B1 (en) Image processing apparatus, image processing method, and computer program
JP4285127B2 (en) Color reduction processing apparatus and color reduction processing method
US20150092244A1 (en) Image processing device setting binary value without using dither matrix when prescribed condition is satisfied
JP2008199080A (en) Image processor, and image processing method
JP5671978B2 (en) Image processing method, image processing apparatus, image processing program, and recording medium
JP4569702B2 (en) Image forming apparatus, line width control method, and line width control program
JP5499981B2 (en) Image processing device
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
JP2007088741A (en) Image processing apparatus and image processing method
JP6736299B2 (en) Printing device, printing method, and program
JP6489763B2 (en) Image processing apparatus, image processing method, and program
JP6929825B2 (en) Image forming apparatus and control method of the image forming apparatus, and a program
JP4492090B2 (en) Image forming apparatus and image forming method
JP2006210981A (en) Image processor, image processing system, method and program, and medium recording image processing program
US10671897B2 (en) Image processing apparatus
US10798267B2 (en) Image processing to set output pixel values subject to edge or thin line correction
US20130148141A1 (en) Image processing apparatus, image processing method, and storage medium
JP4375223B2 (en) Image processing apparatus, image processing method, and image processing program
JP6365232B2 (en) Image processing method, image processing program, image processing apparatus, and image forming system
JP2019145933A (en) Image processing apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100413

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100608

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100726

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

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees