Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4182982B2 - Image smoothing method and resolution conversion method - Google Patents
[go: Go Back, main page]

JP4182982B2 - Image smoothing method and resolution conversion method - Google Patents

Image smoothing method and resolution conversion method Download PDF

Info

Publication number
JP4182982B2
JP4182982B2 JP2006008727A JP2006008727A JP4182982B2 JP 4182982 B2 JP4182982 B2 JP 4182982B2 JP 2006008727 A JP2006008727 A JP 2006008727A JP 2006008727 A JP2006008727 A JP 2006008727A JP 4182982 B2 JP4182982 B2 JP 4182982B2
Authority
JP
Japan
Prior art keywords
same color
continuous section
flag
color continuous
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006008727A
Other languages
Japanese (ja)
Other versions
JP2007194715A (en
Inventor
克敏 大黒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2006008727A priority Critical patent/JP4182982B2/en
Publication of JP2007194715A publication Critical patent/JP2007194715A/en
Application granted granted Critical
Publication of JP4182982B2 publication Critical patent/JP4182982B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

本発明は、入力画像を形成するラインの各々から、出力画像を形成する細分化画素からなる細幅ラインを所定数生成する際に、生成元のラインに隣接するラインの色並びを反映させて画像を円滑化する画像円滑化方法に関するものである。   In the present invention, when a predetermined number of narrow lines composed of subdivided pixels forming an output image are generated from each line forming an input image, the color arrangement of lines adjacent to the generation source line is reflected. The present invention relates to an image smoothing method for smoothing an image.

黒白2値画像の解像度を上げるときに、画像を形成するラインを単に複写してライン数を増大させる処理を行うと、黒白境界の段差がそのまま拡大されて大きな段差となってしまい画質が低下する。これに対し、次の特許文献では、3×3のマトリックス・フィルタを元の画像に適用し、スムージングを併せて行うようにしている。   When the resolution of a black-and-white binary image is increased, if the line that forms the image is simply copied to increase the number of lines, the step at the black-and-white boundary is enlarged as it is and becomes a large step, resulting in a reduction in image quality. . On the other hand, in the following patent document, a 3 × 3 matrix filter is applied to the original image to perform smoothing together.

しかしながら、上記マトリックス・フィルタは、黒白境界の段差部の頂点部分にしか作用しないので、特許文献に示される45度程度の角度を持つ境界には有効であっても、主走査方向に対してわずかな角度をなす境界については、段差部に対してのみスムージングがなされるだけで、その境界を滑らかな直線で再現できないという問題があった。   However, since the matrix filter only acts on the apex portion of the step portion of the black-and-white boundary, even if it is effective for the boundary having an angle of about 45 degrees as shown in the patent document, it is slightly different from the main scanning direction. There is a problem that the boundary that forms an angle is smoothed only on the stepped portion, and the boundary cannot be reproduced with a smooth straight line.

この問題に対して既に、本発明者は、入力画像を形成するラインの各々を逐次選択し、選択した注目ラインから、1ラインの高さを有する段の始端、終端、継続を検出するマトリックスを用いたパターンマッチング処理によって、その注目ラインに隣接する前後のラインとの間で段を形成する同色連続区間を抽出する段検出ステップと、その同色連続区間が、長さを異ならせた段を含む細幅ラインの重なりとして再構成されるように、注目ラインから、同色連続区間の位置と長さとに基づいて一部を色反転させた細幅ラインを所定数生成する出力画像生成ステップとで構成される画像円滑化方法を提案している(特願2005−262829号)。
特開平8−16775号公報
Already to this problem, the present inventor sequentially selects each of the lines forming the input image, and detects a matrix for detecting the start, end, and continuation of a stage having a height of one line from the selected target line. A step detecting step for extracting a continuous section of the same color that forms a step with the preceding and succeeding lines adjacent to the target line by the pattern matching process used, and a step in which the continuous section of the same color includes different lengths are included. An output image generation step that generates a predetermined number of narrow lines that are partly color-inverted from the target line based on the position and length of the same color continuous section so as to be reconstructed as overlapping narrow lines. Proposed an image smoothing method (Japanese Patent Application No. 2005-262829).
JP-A-8-16775

その画像円滑化方法は、入力画像のラインから細幅ラインを生成する際に、全ての段を円滑化するものであった。ところが、入力画像中に文字等の単純2値画像と、写真等の疑似中間調2値画像の両方が含まれているとき、そのような円滑化を行えば、前者の画質は向上するものの、後者の画質は劣化してしまうという問題は未解決のまま残っていた。後者における画質の劣化の原因を簡単に説明すると、疑似中間調の2値画像は、誤差拡散法、あるいはディザ法に従って、黒白の画素が配置されているので、一部の画素を黒から白へ、または白から黒へ色修正してしまうと、その色修正した画素は、誤差拡散法やディザ法に従っておらず、原画の明暗を正しく反映していないものになるということである。なお、従来のファクシミリ装置等では、通信データ量等に基づいて、受信した画像が、単純2値画像、疑似中間調2値画像のいずれであるかを判別し、後者であれば、円滑化の機能をオフにして、疑似中間調2値画像の画質劣化を防止していた。この場合には、受信した画像に含まれる文字のガタガタはそのまま残ってしまうことになる。   The image smoothing method is to smooth all the stages when generating narrow lines from the lines of the input image. However, when the input image includes both a simple binary image such as a character and a pseudo halftone binary image such as a photograph, such smoothing improves the former image quality, The latter problem that the image quality deteriorates remained unsolved. The reason for the deterioration of the image quality in the latter will be briefly explained. In the pseudo halftone binary image, black and white pixels are arranged according to the error diffusion method or the dither method, so that some pixels are changed from black to white. If the color is corrected from white to black, the color-corrected pixel does not follow the error diffusion method or the dither method, and does not correctly reflect the contrast of the original image. In a conventional facsimile machine or the like, it is determined whether the received image is a simple binary image or a pseudo halftone binary image based on the amount of communication data. The function was turned off to prevent image quality deterioration of the pseudo halftone binary image. In this case, the rattling of the characters included in the received image remains as it is.

そこで、本発明は、単純2値画像、特に漢字等の文字は比較的長い線分を含むのに対して、写真等の疑似中間調2値画像は、比較的短い線分しか含まないという性質に注目し、結果的には、前者に対しては円滑化が行われ、後者に対しては円滑化が行われないように改良した画像円滑化方法を提案する。   Therefore, the present invention has the property that a simple binary image, particularly characters such as kanji, include relatively long line segments, whereas a pseudo halftone binary image such as a photograph includes only relatively short line segments. As a result, an improved image smoothing method is proposed in which smoothing is performed for the former and smoothing is not performed for the latter.

すなわち、本発明による画像円滑化方法は、入力画像を形成するラインの各々から、出力画像を形成する細幅ラインを所定数生成する際に、生成元のラインに隣接するラインの色並びを反映させることにより画像を円滑化する画像円滑化方法において、入力画像を形成するラインの各々を逐次選択し、選択した注目ラインから、1ラインの高さを有する段の始端、終端、継続を検出するマトリクスを用いたパターンマッチング処理によって、上記注目ラインに隣接する前後のラインとの間で段を形成する同色連続区間を抽出する抽出ステップと、上記同色連続区間が、その始端と終端から算出した長さが所定の基準長より長いときには、長さを異ならせた段を含む上記細幅ラインの重なりによって、所定段数の階段として再構成され、上記所定の基準長より短いときには、その長さと同一にした段を含む上記細幅ラインの重なりによって、単一の段として再構成されるように、上記注目ラインから、上記同色連続区間の始端と終端とに基づいて上記所定数の細幅ラインを生成する生成ステップとで構成される。その所定の基準長は、3〜8画素程度の長さが望ましいが、複数回試行できるように、変更可能にしておいてもよい。   That is, the image smoothing method according to the present invention reflects the color arrangement of lines adjacent to the generation source line when a predetermined number of narrow lines forming the output image are generated from each line forming the input image. In the image smoothing method for smoothing an image, each line forming an input image is sequentially selected, and the start end, end, and continuation of a stage having a height of one line are detected from the selected target line. An extraction step of extracting a continuous section of the same color that forms a step with the preceding and following lines adjacent to the target line by a pattern matching process using a matrix, and a length calculated from the start and end of the same color continuous section Is longer than a predetermined reference length, it is reconstructed as a predetermined number of steps by overlapping the narrow lines including the steps having different lengths. When the reference length is shorter than the reference length, the narrow line including the same length as that of the narrow line is reconstructed as a single step, and the start line and the end of the same color continuous section are reconfigured from the target line. And a generating step for generating the predetermined number of narrow lines based on the above. The predetermined reference length is preferably about 3 to 8 pixels, but may be changed so that it can be tried a plurality of times.

この画像円滑化方法によれば、同色連続区間が所定の基準長より長いときには、長さを異ならせた段を含む上記細幅ラインの重なりによって、所定段数の階段として再構成し、所定の基準長より短いときには、その長さと同一単一の段として再構成するので、結果的に、比較的長い線分を含む単純2値画像の部分に対しては円滑化が行われ、比較的短い線分しか含まない疑似中間調2値画像に対しては、円滑化が行われない。このため、疑似中間調2値画像の画質を劣化させずに、単純2値画像の画質を向上させることができる。更に、その基準長を可変にしておけば、その長さを変えることにより、そのときの入力画像における単純2値画像と疑似中間調2値画像に含まれる線分の代表的な長さに対応させることもできる。   According to this image smoothing method, when the same color continuous section is longer than a predetermined reference length, it is reconstructed as a predetermined number of steps by overlapping the narrow lines including the steps having different lengths. When it is shorter than the length, it is reconstructed as a single step having the same length, and as a result, smoothing is performed on the portion of the simple binary image including a relatively long line segment, and the relatively short line Smoothing is not performed on a pseudo-halftone binary image that contains only minutes. For this reason, the image quality of a simple binary image can be improved without degrading the image quality of a pseudo halftone binary image. Furthermore, if the reference length is made variable, by changing the length, it corresponds to the typical length of the line segment included in the simple binary image and pseudo halftone binary image in the input image at that time. It can also be made.

以下、本発明による画像円滑化方法を図に従って説明する。   The image smoothing method according to the present invention will be described below with reference to the drawings.

本発明の画像円滑化方法により円滑化される画像は、副走査方向に連続して並列配置された複数の主走査方向のラインを形成する画素の集合体として規定されるものである。   An image smoothed by the image smoothing method of the present invention is defined as an aggregate of pixels that form a plurality of lines in the main scanning direction that are continuously arranged in parallel in the sub-scanning direction.

ここに、その画素を副走査方向に複数分割して細分化した大きさを有する細分化画素を定義し、更に、主走査方向に連続する細分化画素列として、細幅ラインを定義したときには、本発明の画像円滑化方法は、入力画像を形成するラインの各々から、出力画像を形成する細幅ラインを所定数生成する際に、生成元のラインに隣接するラインの色並びも反映させることにより画像を円滑化するものということができる。   Here, when defining a subdivision pixel having a size obtained by dividing the pixel into a plurality of sub-scanning directions, and further defining a narrow line as a subdivision pixel row continuous in the main scanning direction, According to the image smoothing method of the present invention, when a predetermined number of narrow lines forming the output image are generated from each of the lines forming the input image, the color arrangement of the lines adjacent to the generation source line is also reflected. Thus, it can be said that the image is smoothed.

そして、本発明の画像円滑化方法は、入力画像の主走査方向の各ラインを注目ラインLnとして、この注目ラインLnを中心線として所定の広がりを有するエリアをシフト移動させながら、1ラインの高さを有する段の始端、終端、継続を検出する比較用マトリックスを用いたパターンマッチング処理を逐次実行することで、その注目ラインLnから、その注目ラインLnに隣接するラインの少なくとも2画素との間で段を形成する同色連続区間Sを抽出する検出ステップと、検出した同色連続区間Sが、その始端と終端から長さ算出して所定の基準長TLより長いときには、長さを異ならせた段を含む細幅ラインLSnの重なりによって、所定段数の階段として再構成され、所定の基準長TLより短いときには、同色連続区間Sの長さと同一にした段を含む細幅ラインLSnの重なりによって、単一の段として再構成されるように、注目ラインLnから、同色連続区間Sの始端と終端とに基づいて所定数の細幅ラインLSnを生成する生成ステップとで構成される。ここで、基準長TLは、3〜8画素程度の長さが望ましいが、複数回試行できるように、変更可能にしておいてもよい。   In the image smoothing method of the present invention, each line in the main scanning direction of the input image is set as the attention line Ln, and an area having a predetermined spread is shifted around the attention line Ln as a center line. By sequentially executing a pattern matching process using a comparison matrix that detects the start, end, and continuation of a stage having a length, the line between the target line Ln and at least two pixels of the line adjacent to the target line Ln A detection step for extracting the same color continuous section S forming a step in the step, and when the detected same color continuous section S is longer than a predetermined reference length TL by calculating the length from the start end and the end thereof, the steps having different lengths Are reconstructed as a predetermined number of steps and are shorter than a predetermined reference length TL, the same as the length of the same color continuous section S. A predetermined number of narrow lines LSn are generated from the target line Ln based on the start and end of the same color continuous section S so as to be reconfigured as a single stage by overlapping the narrow lines LSn including the steps. And a generation step to generate. Here, the reference length TL is preferably about 3 to 8 pixels, but may be changed so that it can be tried a plurality of times.

更に、円滑化のために色修正させるべき細分化画素の色比率を設定する設定ステップを含め、生成ステップでは、検出した同色連続区間Sが、その始端と終端から算出した長さが所定の基準長TLより長いときには、この同色連続区間Sが、長さを異ならせた段を含む細幅ラインLSnの重なりによって、設定された色比率に応じた段数の階段として再構成されるように、注目ラインの一部を色修正させた細幅ラインと、注目ラインと同一の色並びを有する細幅ラインとを生成するようにしてもよい。   Further, in the generation step, including a setting step for setting the color ratio of the subdivided pixels to be color-corrected for smoothing, the length calculated from the start and end of the detected same-color continuous section S is a predetermined reference When it is longer than the length TL, the same color continuous section S is reconfigured as a step having a number of steps corresponding to the set color ratio by overlapping narrow lines LSn including steps having different lengths. You may make it produce | generate the narrow line which carried out the color correction of a part of line, and the narrow line which has the same color arrangement as the attention line.

このようにすれば、例えば、画像が黒白の2色画像であるとき、黒が白よりも高い色比率を設定しておくと、段の境界として上下に隣接する黒、白の同色連続区間に関して、黒側ではより多い段数の階段として再構成され、黒から白へ色変換された細分化画素の方が、白から黒へ色変換されたものよりも多数になる。従って、黒の斜線と、白の斜線とで太さを変えるように円滑化することが可能になり、画像の用途やユーザの好みにより適合する画像が得られる。   In this way, for example, when the image is a two-color image of black and white, if black is set to a higher color ratio than white, the same color continuous section of black and white adjacent to each other as the step boundary will be described. On the black side, the number of subdivided pixels, which are reconfigured as a larger number of steps and converted from black to white, is larger than those converted from white to black. Accordingly, it is possible to make smoothing by changing the thickness between the black diagonal line and the white diagonal line, and an image suitable for the purpose of the image and the user's preference can be obtained.

図1は、本発明の効果が顕著に発揮される黒白2色の入力画像の一例で、写真画像に誤差拡散法を適用して2値化した疑似中間調2値画像と、文字の単純2値化画像とが含まれている。この例の画素並びの傾向に注目すると、疑似中間調2値画像には、明瞭な黒白の境界はなく、そのため、段の長さは、長くとも3画素程度になっている。これに対して、単純2値画像における段の長さは、長い部分では10画素程度ある(特に、実線で囲んだ部分に注目されたい)。つまり、単純2値画像は比較的長い段を含むのに対して、疑似中間調2値画像は、比較的短い段しか含まないという性質が、ここに裏付けられている。特に、単純2値画像が漢字であるときには、文字自身が水平、垂直な線分を多く含み、それを僅かに傾いた状態でスキャンすれば、水平な線分から長い段(同色連続区間S)が発生するのは当然である。   FIG. 1 is an example of a black and white input image in which the effect of the present invention is remarkably exhibited. A pseudo halftone binary image obtained by binarizing a photographic image by applying an error diffusion method and a simple character 2 And a digitized image. When attention is paid to the tendency of the pixel arrangement in this example, the pseudo-halftone binary image does not have a clear black-and-white boundary. Therefore, the length of the step is about 3 pixels at the longest. On the other hand, the length of a step in a simple binary image is about 10 pixels in a long portion (particularly, pay attention to a portion surrounded by a solid line). That is, the fact that a simple binary image includes relatively long steps, whereas a pseudo halftone binary image includes only relatively short steps, is supported here. In particular, when a simple binary image is a Chinese character, if the character itself contains many horizontal and vertical line segments, and is scanned in a slightly inclined state, a long step (same color continuous section S) from the horizontal line segment is obtained. Naturally it occurs.

次いで、本発明による画像円滑化方法を構成する各ステップの作用を説明する。
図2、図3はそれぞれ、単純2値画像、疑似中間調2値画像の領域に対する作用を説明する図面である。なお、ここでは、入力画像の1本のラインから、2本の細幅ラインを生成するものとし、更に、円滑化を行うための基準長TLは5画素としている。
Next, the operation of each step constituting the image smoothing method according to the present invention will be described.
FIG. 2 and FIG. 3 are diagrams for explaining the operation of the simple binary image and the pseudo halftone binary image, respectively. Here, it is assumed that two narrow lines are generated from one line of the input image, and the reference length TL for smoothing is 5 pixels.

設定ステップでは、画像の用途やユーザの好みに応じて、黒、白のいずれが高い色比率を設定してもよい。   In the setting step, a high color ratio of black or white may be set according to the use of the image or the user's preference.

検出ステップでは、注目ラインLnに沿って、この注目ラインLnを中心線として5×5画素の広がりを有するエリアを主走査方向にシフト移動させながら、後述するパターンマッチングによって、注目ラインLnに隣接する前後のラインLn−1、Ln+1との間で段を形成する同色連続区間Sを抽出する。このとき、シフト移動の回数を計数するなどにより、段の始端等を、注目ラインLn上の画素位置として把握することが可能である。なお、ここで抽出される同色連続区間Sの情報は、段の始端位置P0、終端位置P1、段の生じる側(左右)と向き(上下)、色等を含んでいる。   In the detection step, an area having an area of 5 × 5 pixels with the target line Ln as a center line is shifted along the target line Ln in the main scanning direction, and adjacent to the target line Ln by pattern matching described later. The same color continuous section S that forms a step between the preceding and following lines Ln−1 and Ln + 1 is extracted. At this time, for example, by counting the number of shift movements, it is possible to grasp the start end of the stage as the pixel position on the target line Ln. The information of the same color continuous section S extracted here includes the start position P0, the end position P1, the side (left and right) and the direction (up and down) of the step, the color, and the like.

上記パターンマッチングで用いられるマトリックスは、このマトリックスの中心を通るラインの途中で画素の色が替わることで形成された1ラインの段差を有する段について、その始端とその周辺、終端とその周辺、または、継続部分の画素とその周辺の特徴的な色の配列を検出する黒白パターンとして構成され、この例では、5×5画素のエリアを形成する25画素に対応した黒白パターンになっている。そのようなマトリックスによって、少なくとも1ラインの段を生じさせている画素の連続部分を同色連続区間Sとして抽出することができる。   The matrix used in the pattern matching is a stage having a step of one line formed by changing the color of a pixel in the middle of a line passing through the center of the matrix, its start end and its periphery, end and its periphery, or In this example, the pattern is a black-and-white pattern corresponding to 25 pixels forming an area of 5 × 5 pixels. With such a matrix, it is possible to extract a continuous portion of pixels that generate at least one line step as a same color continuous section S.

しかし、同色連続区間Sを抽出するには、マトリックスと対照されるエリアを形成する25画素の一部について色を識別できればよいので、各マトリックスは、25画素分の対照用パターンと、検出に不必要な画素についての対照を常に一致とみなすためのマスク用パターンとの対として構成してもよい。エリアを形成する画素の一部について識別できればよいことは、図において黒の段の始端を検出しているマトリックスがエリア中の8画素の色を実効的に判別するもので、また、その終端を検出しているマトリックスがエリア中の5画素の色を実効的に判別するものあることから容易に理解される。   However, in order to extract the same color continuous section S, it is sufficient that the color can be identified for a part of 25 pixels forming an area contrasted with the matrix. Therefore, each matrix has a contrast pattern for 25 pixels and a detection pattern. You may comprise as a pair with the pattern for a mask for always considering the contrast about a required pixel as a coincidence. It is only necessary to be able to identify some of the pixels forming the area because the matrix that detects the beginning of the black stage in the figure effectively determines the color of the 8 pixels in the area, It can be easily understood from the fact that the detected matrix effectively discriminates the colors of the five pixels in the area.

また黒白のそれぞれに対して、段の始端、終端、または継続を検出するマトリックスのグループを別々に準備する場合、その両者の対応したマトリックス同士では、対照用のパターンの各画素が互いに色反転した関係になるようにしてもよい。あるいは、パターンマッチングにおいて、エリアの中心画素に対して、その周囲の24画素の色が同一か否かを判別する構成にすれば、黒白のそれぞれに対して、マトリックスを共通化することが可能である。なお、マトリックスの大きさは5×5画素には限られず、適宜変更が可能である。   In addition, when separately preparing groups of matrices for detecting the start, end, or continuation of a stage for each of black and white, the pixels of the control pattern are color-inverted with each other in the corresponding matrices. It may be related. Alternatively, in the pattern matching, it is possible to make the matrix common to each of black and white by determining whether the colors of the surrounding 24 pixels are the same with respect to the central pixel of the area. is there. Note that the size of the matrix is not limited to 5 × 5 pixels, and can be changed as appropriate.

次いで段の生じる側と向きについて説明すると、同色連続区間Sは、左側で上向きの段を形成する場合と、右側で上向きの段を形成する場合と、左側で下向きの段を形成する場合と、右側で下向きの段を形成する場合とがある。   Next, the side where the step occurs and the direction will be described. The same color continuous section S includes a case where an upward step is formed on the left side, a case where an upward step is formed on the right side, and a case where a downward step is formed on the left side. In some cases, a downward step is formed on the right side.

また、入力画像において連続した段によって形成される斜線の幅が1画素のときには、同色連続区間Sは、左側で上向きの段を形成すると同時に、右側で下向きの段を形成する場合もあり、右側で上向きの段を形成すると同時に、左側で下向きの段を形成すること場合もある。   Also, when the width of the diagonal line formed by successive steps in the input image is 1 pixel, the same color continuous section S may form an upward step on the left side and a downward step on the right side. In some cases, an upward step is formed at the same time, and a downward step is formed on the left side.

また、同色連続区間Sが、左側で上向きの段を形成すると同時に、右側で上向きの差を形成する場合や、左側で下向きの段を形成すると同時に、右側で下向きの段を形成する場合もある。しかし、実施例では、これら2つの場合には、円滑化処理を行わない。   In addition, the same color continuous section S may form an upward step on the left side and an upward difference on the right side, or may form a downward step on the left side and a downward step on the right side. . However, in the embodiment, the smoothing process is not performed in these two cases.

次に、生成ステップでは、細幅ラインLSn#xを生成する前に、同色連続区間Sの位置と長さとに基づいて、細幅ラインLSn#xで色並びを修正させるべき色修正区間を算出して、その始端と終端とをフラグメモリに登録する。すなわち、色修正区間は、段の始端位置P0、終端位置P1、立ち上がる側と方向、色に基づき、設定された色比率とラインカウントxとを考慮して算出され、ラインカウントxの値に対応した始端、終端がフラグメモリに登録される。   Next, in the generation step, before generating the narrow line LSn # x, based on the position and length of the same-color continuous section S, a color correction section for correcting the color arrangement in the narrow line LSn # x is calculated. Then, the start and end points are registered in the flag memory. That is, the color correction section is calculated in consideration of the set color ratio and the line count x based on the start position P0, end position P1, rising side and direction, and color of the stage, and corresponds to the value of the line count x. The start and end points are registered in the flag memory.

この色修正区間の登録の際に、算出されている同色連続区間Sの長さと、基準長TLとの比較を行い、同色連続区間Sが基準長TLよりも長いときには、色修正区間を登録する一方、同色連続区間Sが基準長TLよりも短いときには、登録しないようにして、本発明の思想を実現してもよい。   When the color correction section is registered, the calculated length of the same color continuous section S is compared with the reference length TL. When the same color continuous section S is longer than the reference length TL, the color correction section is registered. On the other hand, when the same color continuous section S is shorter than the reference length TL, the idea of the present invention may be realized without registration.

このあと、注目ラインLnの画素の色並びを細分化画素の色並びとして継承させて、細幅ラインLSn#xを生成するが、その際、フラグメモリに登録された色修正区間では、細分化画素を色修正させることで、画像を円滑化する。なお、ラインカウントxの最大値mに制限はなく、それに応じて、入力画像は副走査方向に高解像度化される。   Thereafter, the narrow line LSn # x is generated by inheriting the color arrangement of the pixel of the target line Ln as the color arrangement of the subdivided pixel. At this time, the subdivision is performed in the color correction section registered in the flag memory. The image is smoothed by correcting the color of the pixels. The maximum value m of the line count x is not limited, and the input image is increased in resolution in the sub-scanning direction accordingly.

色修正区間を登録するフラグは、一般的には、次のようになる。
すなわち、注目ラインLnに対応させて、細幅ラインLSn#0〜LSn#mを生成するためには、同色連続区間Sとして、左側または右側で上向きの白の段が抽出されている場合に対応し、細幅ラインLSn#0〜LSn#mの細分化画素を白から黒に色修正する色修正区間を登録するためのフラグWU[0]〜フラグWU[m]と、左側または右側で上向きの黒の段が抽出されている場合に対応し、細幅ラインLSn#0〜LSn#mの細分化画素を黒から白に色修正する色修正区間を登録するためのフラグBU[0]〜フラグBU[m]と、左側または右側で下向きの白の段が抽出されている場合に対応し、細幅ラインLSn#0〜LSn#mの細分化画素を白から黒に色修正する色修正区間を登録するためのフラグWL[0]〜フラグWL[m]と、左側または右側で下向きの黒の段が抽出されている場合に対応し、細幅ラインLSn#0〜LSn#mの細分化画素を白から黒に色修正する色修正区間を登録するためのフラグBL[0]〜フラグBL[m]とを用意しておけば充分である。
A flag for registering a color correction section is generally as follows.
That is, in order to generate the narrow lines LSn # 0 to LSn # m corresponding to the target line Ln, it corresponds to the case where an upward white step is extracted on the left side or the right side as the same color continuous section S. The flag WU [0] to the flag WU [m] for registering a color correction section for correcting the color of the subdivided pixels of the narrow lines LSn # 0 to LSn # m from white to black and upward on the left side or the right side Corresponding to the case where the black stage is extracted, flags BU [0] to register a color correction section for correcting the color of the subdivided pixels of the narrow lines LSn # 0 to LSn # m from black to white. Corresponding to the case where the flag BU [m] and the downward white step on the left side or the right side are extracted, color correction for correcting the color of the subdivided pixels of the narrow lines LSn # 0 to LSn # m from white to black Flag WL [0] to flag for registering the section Corresponding to the case where WL [m] and a downward black stage on the left or right side are extracted, a color correction section for correcting the color of the subdivided pixels of the narrow lines LSn # 0 to LSn # m from white to black It is sufficient to prepare the flag BL [0] to the flag BL [m] for registering.

ここで、色修正区間を登録するフラグ(フラグメモリに登録されるのは色修正区間の始端と終端である)と、それに登録される色修正区間の算出を、図2の例について、具体的に説明する。図3の例では、同色連続区間Sの長さが4画素で、基準長TLの5画素より短いので、色修正区間は登録する必要がない。   Here, the flag for registering the color correction section (the start and end of the color correction section are registered in the flag memory) and the calculation of the color correction section registered in the flag correction section are concretely described with respect to the example of FIG. Explained. In the example of FIG. 3, since the length of the same color continuous section S is 4 pixels and is shorter than 5 pixels of the reference length TL, it is not necessary to register the color correction section.

Figure 0004182982
Figure 0004182982

表1は、黒が白よりも高い色比率が設定されたとき、参照するフラグの例を示すものである。   Table 1 shows an example of a flag to be referred to when a black color ratio higher than white is set.

この場合、同色連続区間Sとして、左側で上向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/2の点である終端とをフラグBU[0]としてフラグメモリに登録し、左側ではなく右側で上向きの黒の段が抽出されたときには、同色連続区間Sの1/2の点である始端と、同色連続区間Sの終端とをフラグBU[0]としてフラグメモリに登録する。また、同色連続区間Sとして、左側で下向きの黒の段が抽出されたときには、同色連続区間Sの1/2の点である始端と、同色連続区間Sの終端とを、フラグBL[1]としてフラグメモリに登録し、左側ではなく右側で下向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/2の点である終端とをフラグBL[1]としてフラグメモリに登録する。   In this case, when an upward black stage on the left side is extracted as the same color continuous section S, the flag BU [0] indicates the start end of the same color continuous section S and the end that is a half point of the same color continuous section S. Is registered in the flag memory, and when the upward black stage is extracted on the right side instead of the left side, the start point which is a half point of the same color continuous section S and the end point of the same color continuous section S are indicated by the flag BU [0 ] In the flag memory. In addition, when a black step facing downward on the left side is extracted as the same color continuous section S, the flag BL [1] indicates the start end that is a half point of the same color continuous section S and the end of the same color continuous section S. Is registered in the flag memory, and when the downward black stage is extracted not on the left side but on the right side, the flag BL [1 indicates the start end of the same color continuous section S and the end point that is a half point of the same color continuous section S. ] In the flag memory.

その後、細幅ラインLSn#0を生成する際には、フラグBU[0]に色修正区間の始端・終端が登録されていれば、その区間の細分化画素を黒から白に色修正し、細幅ラインLSn#1を生成する際には、BL[1]に色修正区間の始端・終端が登録されていれば、その区間の細分化画素を黒から白に色修正する。   Thereafter, when the narrow line LSn # 0 is generated, if the start / end of the color correction section is registered in the flag BU [0], the subdivision pixels in the section are color-corrected from black to white, When the narrow line LSn # 1 is generated, if the start / end of the color correction section is registered in BL [1], the subdivision pixels in that section are color-corrected from black to white.

Figure 0004182982
Figure 0004182982

表2は、黒が白よりも低い色比率が設定されたとき、参照するフラグの例を示すものである。   Table 2 shows an example of a flag to be referred to when black has a color ratio lower than that of white.

この場合、同色連続区間Sとして、左側で上向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/2の点である終端とをフラグWU[0]としてフラグメモリに登録し、左側ではなく右側で上向きの白の段が抽出されたときには、同色連続区間Sの1/2の点である始端と、同色連続区間Sの終端とをフラグWU[0]としてフラグメモリに登録する。また、同色連続区間Sとして、左側で下向きの白の段が抽出されたときには、同色連続区間Sの1/2の点である始端と、同色連続区間Sの終端とをフラグWL[1]としてフラグメモリに登録し、左側ではなく右側で下向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/2の点である終端とをフラグWL[1]としてフラグメモリに登録する。   In this case, when an upward white step on the left side is extracted as the same color continuous section S, the flag WU [0] indicates the start end of the same color continuous section S and the end that is a half point of the same color continuous section S. Are registered in the flag memory, and when an upward white stage is extracted on the right side instead of the left side, the start point that is a half point of the same color continuous section S and the end point of the same color continuous section S are flag WU [0. ] In the flag memory. Further, when a white step facing downward on the left side is extracted as the same color continuous section S, the start end that is a half point of the same color continuous section S and the end of the same color continuous section S are set as a flag WL [1]. When registered in the flag memory and a downward white stage is extracted on the right side instead of the left side, the flag WL [1] indicates the start end of the same color continuous section S and the end point that is a half point of the same color continuous section S. Is registered in the flag memory.

その後、細幅ラインLSn#0を生成する際には、フラグWU[0]に色修正区間の始端・終端が登録されていれば、その区間の細分化画素を白から黒に色修正し、細幅ラインLSn#1を生成する際には、WL[1]に色修正区間の始端・終端が登録されていれば、その区間の細分化画素を白から黒に色修正する。   Thereafter, when the narrow line LSn # 0 is generated, if the start / end of the color correction section is registered in the flag WU [0], the subdivision pixels in the section are color-corrected from white to black, When the narrow line LSn # 1 is generated, if the start / end of the color correction section is registered in WL [1], the subdivision pixels in that section are color corrected from white to black.

このようにすれば、図2で示した単純2値画像の領域に多い基準長TLより長い同色連続区間Sを円滑化する一方、疑似中間調2値画像に多い基準長TLより短い同色連続区間Sは円滑化しないようにできる。また、色比率の設定により、黒、白の斜線のいずれか一方をより太くすることもできる。   In this way, the same color continuous section S longer than the reference length TL that is large in the region of the simple binary image shown in FIG. 2 is smoothed, while the same color continuous section shorter than the reference length TL that is often included in the pseudo-halftone binary image. S can be prevented from smoothing. Also, depending on the color ratio setting, either one of the black and white diagonal lines can be made thicker.

更に色修正区間を登録するフラグと、それに登録される色修正区間の算出を別の例について、すなわち、入力画像の1本のラインから6本の細幅ラインを生成する例について説明する。ここでも、同色連続区間Sの長さを算出し、その長さが基準長TLより長い場合は、色修正区間を算出してフラグメモリに登録するが、その長さが基準長TLより短い場合には、色修正区間の登録は行わないようにする。なお、色比値率の設定は前例と同様である。   Further, another example of the flag for registering the color correction section and the calculation of the color correction section registered in the flag will be described, that is, an example in which six narrow lines are generated from one line of the input image. Again, when the length of the same color continuous section S is calculated and the length is longer than the reference length TL, the color correction section is calculated and registered in the flag memory, but the length is shorter than the reference length TL. Does not register the color correction section. The setting of the color ratio value rate is the same as the previous example.

Figure 0004182982
Figure 0004182982

表3は、黒が白よりも高い色比率を設定されたとき、参照するフラグの例を示すものである。   Table 3 shows an example of a flag to be referred to when black has a higher color ratio than white.

ここで、同色連続区間Sとして、左側で上向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの4/6の点である終端とをフラグBU[0]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグBU[1]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグBU[2]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグBU[3]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの黒の段が抽出されたときには、同色連続区間Sの2/6の点である始端と、同色連続区間Sの終端とをフラグBU[0]としてフラグメモリに登録し、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグBU[1]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグBU[2]としてフラグメモリに登録し、同色連続区間Sの1/6の点である始端と、同色連続区間Sの終端とをフラグBU[3]としてフラグメモリに登録する。   Here, when an upward black stage on the left side is extracted as the same color continuous section S, the flag BU [0] indicates the start end of the same color continuous section S and the end that is a 4/6 point of the same color continuous section S. Is registered in the flag memory, and the start end of the same color continuous section S and the end that is a 3/6 point of the same color continuous section S are registered in the flag memory as the flag BU [1], and the start end of the same color continuous section S, The end that is a 2/6 point of the same color continuous section S is registered in the flag memory as a flag BU [2], and the start end of the same color continuous section S and the end that is a 1/6 point of the same color continuous section S are obtained. Register in the flag memory as flag BU [3]. Further, when an upward black stage is extracted on the right side instead of the left side, the flag memory stores the start end that is a 2/6 point of the same color continuous section S and the end of the same color continuous section S as the flag BU [0]. Are registered in the flag memory as the flag BU [1], and the end of the same color continuous section S is registered at the flag memory at the 4/6 point of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag BU [2], and the start end which is a 1/6 point of the same color continuous section S and the end of the same color continuous section S are flagged as the flag BU [ 3] is registered in the flag memory.

同色連続区間Sとして、左側で下向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグBL[2]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグBL[3]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの4/6の点である終端とをフラグBL[4]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの5/6の点である終端とをフラグBL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの黒の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグBL[2]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグBL[3]としてフラグメモリに登録し、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグBL[4]としてフラグメモリに登録し、同色連続区間Sの2/6の点である始端と、同色連続区間Sの終端とをフラグBL[5]としてフラグメモリに登録する。   When a downward black stage on the left side is extracted as the same-color continuous section S, the flag memory stores the start end of the same-color continuous section S and the end that is a 2/6 point of the same-color continuous section S as a flag BL [2]. Are registered in the flag memory as a flag BL [3], and the start end of the same color continuous section S and the end of the same color continuous section S are registered. The end of S, which is a 4/6 point, is registered in the flag memory as a flag BL [4], and the start end of the same color continuous section S and the end, which is the 5/6 point of the same color continuous section S, are registered in the flag BL [ 5] is registered in the flag memory. Also, when a downward black stage is extracted on the right side instead of the left side, the flag BL [2] is used as the flag memory with the start end that is a 5/6 point of the same color continuous section S and the end of the same color continuous section S as a flag memory. Is registered in the flag memory as a flag BL [3], and the end of the same color continuous section S is registered as a flag BL [3] at the 3/6 point of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag BL [4], and the start end that is a 2/6 point of the same color continuous section S and the end of the same color continuous section S are flag BL [ 5] is registered in the flag memory.

同色連続区間Sとして、左側で上向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグWU[0]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの白の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグWU[0]としてフラグメモリに登録する。   When an upward white step on the left side is extracted as the same color continuous section S, the flag memory stores the start end of the same color continuous section S and the end that is 1/6 of the same color continuous section S as the flag WU [0]. Register with. Further, when an upward white step is extracted on the right side instead of the left side, the flag memory stores the start end that is the 5/6 point of the same color continuous section S and the end of the same color continuous section S as the flag WU [0]. Register with.

同色連続区間Sとして、左側で下向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグWL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの白の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグWL[5]としてフラグメモリに登録する。   When a white step facing downward on the left side is extracted as the same color continuous section S, the flag memory stores the start end of the same color continuous section S and the end that is 1/6 of the same color continuous section S as a flag WL [5]. Register with. Further, when a downward white step is extracted on the right side instead of the left side, the flag memory stores the start end which is the 5/6 point of the same color continuous section S and the end of the same color continuous section S as the flag WL [5]. Register with.

その後、対応するフラグを参照しながら、細幅ラインLSn#xを生成するが、黒の段が抽出された同色連続区間Sは、生成された細幅ラインLSn#0〜LSn#4、または、LSn#1〜LSn#5の重なりによって、5段数の階段として再構成される。   Thereafter, the narrow line LSn # x is generated with reference to the corresponding flag, but the same color continuous section S from which the black stage is extracted is generated by the generated narrow lines LSn # 0 to LSn # 4, or By overlapping LSn # 1 to LSn # 5, it is reconfigured as five steps.

Figure 0004182982
Figure 0004182982

表3は、基準の色比率が設定されたとき、参照するフラグの例を示すものである。   Table 3 shows an example of a flag to be referred to when the standard color ratio is set.

ここで、同色連続区間Sとして、左側で上向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグBU[0]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグBU[1]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの黒の段が抽出されたときには、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグBU[0]としてフラグメモリに登録し、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグBU[1]としてフラグメモリに登録する。   Here, when an upward black stage on the left side is extracted as the same color continuous section S, the flag BU [0] indicates the start end of the same color continuous section S and the end that is a 2/6 point of the same color continuous section S. Are registered in the flag memory, and the start end of the same color continuous section S and the end of the same color continuous section S are registered in the flag memory as a flag BU [1]. Further, when an upward black stage is extracted on the right side instead of the left side, the flag memory stores the start end that is the 4/6 point of the same color continuous section S and the end of the same color continuous section S as the flag BU [0]. And the start end, which is a 5/6 point of the same color continuous section S, and the end of the same color continuous section S are registered in the flag memory as a flag BU [1].

同色連続区間Sとして、左側で下向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグBL[4]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグBL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの黒の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグBL[4]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグBL[5]としてフラグメモリに登録する。   When a downward black stage on the left side is extracted as the same color continuous section S, the flag BL [4] is used as the flag memory with the start end of the same color continuous section S and the end of the same color continuous section S as the 1/6 point. And the start end of the same color continuous section S and the end of 2/6 of the same color continuous section S are registered in the flag memory as a flag BL [5]. Also, when a downward black step is extracted on the right side instead of the left side, the flag BL [4] is used as the flag memory with the start end, which is a 5/6 point of the same color continuous section S, and the end of the same color continuous section S as a flag memory. And the start end, which is a 4/6 point of the same color continuous section S, and the end of the same color continuous section S are registered in the flag memory as a flag BL [5].

同色連続区間Sとして、左側で上向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグWU[0]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグWU[1]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグWU[2]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの白の段が抽出されたときには、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグWU[0]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグWU[1]としてフラグメモリに登録し、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグWU[2]としてフラグメモリに登録する。   When an upward white step on the left side is extracted as the same color continuous section S, the flag memory stores the start end of the same color continuous section S and the end that is a 3/6 point of the same color continuous section S as the flag WU [0]. Are registered in the flag memory as a flag WU [1], and the start end of the same color continuous section S and the end of the same color continuous section S are registered. The end point which is 1/6 of S is registered in the flag memory as flag WU [2]. Further, when an upward white step is extracted on the right side instead of the left side, the flag memory stores the start end, which is a 3/6 point of the same color continuous section S, and the end of the same color continuous section S as a flag WU [0]. Is registered in the flag memory as a flag WU [1], and the end of the same color continuous section S is registered as a flag WU [1] at the 5/6 point of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag WU [2].

同色連続区間Sとして、左側で下向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグWL[3]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグWL[4]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグWL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの白の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグWL[3]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグWL[4]としてフラグメモリに登録し、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグWL[5]としてフラグメモリに登録する。   When a white step facing downward on the left side is extracted as the same color continuous section S, the flag memory uses the start end of the same color continuous section S and the end that is 1/6 of the same color continuous section S as a flag WL [3]. Are registered in the flag memory as a flag WL [4], and the start end of the same color continuous section S and the end of the same color continuous section S are registered. The end point of 3/6 of S is registered in the flag memory as flag WL [5]. Further, when a downward white step is extracted on the right side instead of the left side, the flag memory stores the start end which is the 5/6 point of the same color continuous section S and the end of the same color continuous section S as the flag WL [3]. Is registered in the flag memory as flag WL [4], and the end of the same color continuous section S is registered as a flag WL [4] at the 3/6 point of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag WL [5].

その後、対応するフラグを参照しながら、細幅ラインLSn#xを生成するが、黒の段が抽出された同色連続区間Sは、生成された細幅ラインLSn#0〜LSn#2、または、LSn#3〜LSn#5の重なりによって、3段数の階段として再構成される。   Thereafter, the narrow line LSn # x is generated with reference to the corresponding flag, and the same color continuous section S from which the black stage is extracted is generated by the generated narrow lines LSn # 0 to LSn # 2, or By overlapping LSn # 3 to LSn # 5, it is reconfigured as a three-step staircase.

Figure 0004182982
Figure 0004182982

表5は、基準の色比率が設定されたとき、参照するフラグの例を示すものである。   Table 5 shows an example of a flag to be referred to when the standard color ratio is set.

ここで、同色連続区間Sとして、左側で上向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグBU[0]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの黒の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグBU[0]としてフラグメモリに登録する。   Here, when an upward black stage on the left side is extracted as the same color continuous section S, the flag BU [0] indicates the start end of the same color continuous section S and the end that is a 1/6 point of the same color continuous section S. Is registered in the flag memory. Further, when an upward black stage is extracted on the right side instead of the left side, the flag memory stores the start end which is the 5/6 point of the same color continuous section S and the end of the same color continuous section S as the flag BU [0]. Register with.

同色連続区間Sとして、左側で下向きの黒の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグBL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの黒の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグBL[5]としてフラグメモリに登録する。   When a downward black stage on the left side is extracted as the same-color continuous section S, the flag memory uses the start end of the same-color continuous section S and the end that is 1/6 of the same-color continuous section S as a flag BL [5]. Register with. Also, when a downward black stage is extracted on the right side instead of the left side, the flag BL [5] is set as the flag BL [5] at the start end that is the 5/6 point of the same color continuous section S and the end of the same color continuous section S. Register with.

同色連続区間Sとして、左側で上向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの4/6の点である終端とをフラグWU[0]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグWU[1]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグWU[2]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの1/6の点である終端とをフラグWU[3]としてフラグメモリに登録する。また、左側ではなく、右側で上向きの白の段が抽出されたときには、同色連続区間Sの2/6の点である始端と、同色連続区間Sの終端とをフラグWU[0]としてフラグメモリに登録し、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグWU[1]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグWU[2]としてフラグメモリに登録し、同色連続区間Sの1/6の点である始端と、同色連続区間Sの終端とをフラグWU[3]としてフラグメモリに登録する。   When an upward white step on the left side is extracted as the same color continuous section S, the flag memory stores the start end of the same color continuous section S and the end that is a 4/6 point of the same color continuous section S as the flag WU [0]. Are registered in the flag memory as a flag WU [1], and the start end of the same color continuous section S and the end of the same color continuous section S are registered. The end of 2/6 of S is registered in the flag memory as a flag WU [2], and the start of the same color continuous section S and the end of 1/6 of the same color continuous section S are flag WU [ 3] is registered in the flag memory. Further, when an upward white stage is extracted on the right side instead of the left side, the flag memory stores the start end that is a 2/6 point of the same color continuous section S and the end of the same color continuous section S as a flag WU [0]. Is registered in the flag memory as a flag WU [1], and the end of the same color continuous section S is registered as a flag WU [1] at the point of 4/6 of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag WU [2], and the start end that is a 1/6 point of the same color continuous section S and the end of the same color continuous section S are flag WU [ 3] is registered in the flag memory.

同色連続区間Sとして、左側で下向きの白の段が抽出されたときには、同色連続区間Sの始端と、同色連続区間Sの2/6の点である終端とをフラグWL[2]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの3/6の点である終端とをフラグWL[3]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの4/6の点である終端とをフラグWL[4]としてフラグメモリに登録し、同色連続区間Sの始端と、同色連続区間Sの5/6の点である終端とをフラグWL[5]としてフラグメモリに登録する。また、左側ではなく、右側で下向きの黒の段が抽出されたときには、同色連続区間Sの5/6の点である始端と、同色連続区間Sの終端とをフラグWL[2]としてフラグメモリに登録し、同色連続区間Sの4/6の点である始端と、同色連続区間Sの終端とをフラグWL[3]としてフラグメモリに登録し、同色連続区間Sの3/6の点である始端と、同色連続区間Sの終端とをフラグWL[4]としてフラグメモリに登録し、同色連続区間Sの2/6の点である始端と、同色連続区間Sの終端とをフラグWL[5]としてフラグメモリに登録する。   When a white step facing downward on the left side is extracted as the same color continuous section S, the flag memory uses the start end of the same color continuous section S and the end that is a 2/6 point of the same color continuous section S as a flag WL [2]. Are registered in the flag memory as a flag WL [3], and the start end of the same color continuous section S and the end of the same color continuous section S are registered. The end of S, which is a 4/6 point, is registered in the flag memory as a flag WL [4], and the start end of the same color continuous section S and the end, which is a 5/6 point of the same color continuous section S, are flag WL [ 5] is registered in the flag memory. Also, when a downward black stage is extracted on the right side instead of the left side, the flag memory stores the start end which is the 5/6 point of the same color continuous section S and the end of the same color continuous section S as the flag WL [2]. Is registered in the flag memory as flag WL [3], and the end of the same color continuous section S is registered as a flag WL [3] at the point of 3/6 of the same color continuous section S. A certain start end and the end of the same color continuous section S are registered in the flag memory as a flag WL [4], and the start end that is a 2/6 point of the same color continuous section S and the end of the same color continuous section S are registered in the flag WL [ 5] is registered in the flag memory.

その後、対応するフラグを参照しながら、細幅ラインLSn#xを生成するが、黒の段が抽出された同色連続区間Sは、生成された細幅ラインLSn#0、LSn#1、または、LSn#4、LSn#5の重なりによって、2段数の階段として再構成される。   After that, the narrow line LSn # x is generated with reference to the corresponding flag, but the same color continuous section S from which the black stage is extracted is generated by the generated narrow line LSn # 0, LSn # 1, or By overlapping LSn # 4 and LSn # 5, it is reconfigured as a two-step staircase.

なお、上述した具体的な例は、いずれも例示として説明したものに過ぎず、色修正区間の算出方法は自由に変更できるものなので、出力画像の見栄え等を考慮して決めるべきである。   It should be noted that the specific examples described above are merely examples described, and the calculation method of the color correction section can be freely changed, and should be determined in consideration of the appearance of the output image.

図4は、黒の段が抽出された同色連続区間Sを、6本の細幅ラインによって、細幅ラインLSn#0〜LSn#3、またはLSn#2〜LSn#5の4段の段として再構成する方法を説明する図面であり、各細幅ラインLSn#0〜LSn#5を生成する際に参照されるフラグを示している。   FIG. 4 shows that the same color continuous section S from which black stages are extracted is divided into four stages of narrow lines LSn # 0 to LSn # 3 or LSn # 2 to LSn # 5 by six narrow lines. It is a figure explaining the method to reconfigure | reconstruct, and has shown the flag referred when producing | generating each narrow line LSn # 0-LSn # 5.

次いで、上述した本発明の画像円滑化方法を実行する装置の例を説明する。
図5は、装置の例の概略構成を説明するブロック図である。
Next, an example of an apparatus that executes the above-described image smoothing method of the present invention will be described.
FIG. 5 is a block diagram illustrating a schematic configuration of an example of an apparatus.

この画像円滑化方法装置Mは、入力画像から、1ラインの高さの段を形成する同色連続区間Sを抽出する段検出手段11と、段検出手段11が検出した同色連続区間Sの位置と長さとに基づいて色修正区間を算出し、注目ラインLnから色修正区間を色修正させた細幅ラインLSn#0〜LSn#mを生成する出力画像生成手段12と、円滑化のために色修正させるべき細分化画素の色比率を設定する色比率レジスタ13と、円滑化すべき線分の長さを登録する基準長レジスタ14とで構成される。   This image smoothing method apparatus M extracts the same color continuous section S that forms a step of one line height from the input image, and the position of the same color continuous section S detected by the stage detection means 11. A color correction section is calculated based on the length, and the output image generation means 12 generates narrow lines LSn # 0 to LSn # m obtained by correcting the color correction section from the target line Ln, and the color for smoothing. The color ratio register 13 sets the color ratio of the subdivided pixels to be corrected, and the reference length register 14 registers the length of the line segment to be smoothed.

段検出手段11は、入力画像の画素データを制御クロック毎に受け付けてシフトしていくシフトレジスタ等で構成されるラインメモリ部11aと、ラインメモリ部11aに設定されたエリア抽出部11bで抽出されたエリア内の画素データに対するパターンマッチングを行い、同色連続区間Sを抽出するパターンマッチング部とを備える。   The stage detection unit 11 is extracted by a line memory unit 11a configured by a shift register or the like that receives and shifts pixel data of an input image for each control clock, and an area extraction unit 11b set in the line memory unit 11a. A pattern matching unit that performs pattern matching on the pixel data in the area and extracts the same color continuous section S.

出力画像生成手段12は、段検出手段11が検出した同色連続区間Sの始端と終端とに基づいて色修正区間を算出する色修正区間算出部12aと、この色修正区間算出部12aに対して、細幅ラインLSn#0〜LSn#mの一つを特定するラインカウントxを出力するラインカウンタ部12bと、算出された色修正区間を登録するフラグメモリBU(12c)、フラグメモリWU(12d)、フラグメモリBL(12e)、フラグメモリWL(12f)と、論理ゲートG1、G2と、入力画像の画素を受け付けて、出力画像の細分化画素を出力する色修正部12gとを備える。   The output image generation unit 12 calculates a color correction section based on the start and end of the same color continuous section S detected by the stage detection unit 11, and the color correction section calculation unit 12a. A line counter unit 12b that outputs a line count x that specifies one of the narrow lines LSn # 0 to LSn # m, a flag memory BU (12c) that registers the calculated color correction section, and a flag memory WU (12d) ), A flag memory BL (12e), a flag memory WL (12f), logic gates G1 and G2, and a color correction unit 12g that receives pixels of the input image and outputs segmented pixels of the output image.

本発明の効果が顕著に発揮される黒白2色の入力画像の例。The example of the input image of black and white two colors which the effect of this invention is exhibited notably. 本発明の画像円滑化方法を構成するステップの作用を説明する図面。The figure explaining the effect | action of the step which comprises the image smoothing method of this invention. 本発明の画像円滑化方法を構成するステップの作用を説明する別の図面。Another drawing explaining the effect | action of the step which comprises the image smoothing method of this invention. 同色連続区間を再構成する方法を説明する図面。The figure explaining the method to reconfigure | reconstruct the same color continuous area. 本発明を適用した装置の概略構成を説明するブロック図。The block diagram explaining the schematic structure of the apparatus to which this invention is applied.

符号の説明Explanation of symbols

14 基準長レジスタ
Ln 注目ライン
LSn 細幅ライン
LT 基準長
M 画像円滑化装置
S 同色連続区間
14 Reference length register Ln Attention line LSn Narrow line LT Reference length M Image smoothing device S Same color continuous section

Claims (2)

入力画像を形成するラインの各々から、出力画像を形成する細幅ラインを所定数生成する際に、生成元のラインに隣接するラインの色並びを反映させることにより画像を円滑化する画像円滑化方法において、
入力画像を形成するラインの各々を逐次選択し、選択した注目ラインから、1ラインの高さを有する段の始端、終端、継続を検出するマトリクスを用いたパターンマッチング処理によって、上記注目ラインに隣接する前後のラインとの間で段を形成する同色連続区間を抽出する抽出ステップと、
上記同色連続区間が、その始端と終端から長さ算出して所定の基準長より長いときには、長さを異ならせた段を含む上記細幅ラインの重なりによって、所定段数の階段として再構成され、上記所定の基準長より短いときには、その長さと同一にした段を含む上記細幅ラインの重なりによって、単一の段として再構成されるように、上記注目ラインから、上記同色連続区間の始端と終端とに基づいて上記所定数の細幅ラインを生成する生成ステップとで構成される画像円滑化方法。
Image smoothing that smoothes the image by reflecting the color arrangement of the lines adjacent to the source line when a predetermined number of narrow lines that form the output image are generated from each line that forms the input image In the method
Each line forming the input image is sequentially selected and adjacent to the target line by a pattern matching process using a matrix that detects the start, end, and continuation of a stage having a height of one line from the selected target line. An extraction step of extracting continuous sections of the same color that form a step with the previous and subsequent lines;
When the same color continuous section is longer than a predetermined reference length by calculating the length from its start and end, it is reconfigured as a predetermined number of steps by overlapping the narrow lines including the steps having different lengths, When the length is shorter than the predetermined reference length, from the line of interest, the beginning of the continuous section of the same color is reconfigured as a single stage by overlapping the narrow lines including the stage equal to the length. And a generating step for generating the predetermined number of narrow lines based on the end.
請求項1において、
上記所定の基準長は、変更可能にされていることを特徴とする画像円滑化方法。
In claim 1,
An image smoothing method, wherein the predetermined reference length is changeable.
JP2006008727A 2006-01-17 2006-01-17 Image smoothing method and resolution conversion method Expired - Fee Related JP4182982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006008727A JP4182982B2 (en) 2006-01-17 2006-01-17 Image smoothing method and resolution conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006008727A JP4182982B2 (en) 2006-01-17 2006-01-17 Image smoothing method and resolution conversion method

Publications (2)

Publication Number Publication Date
JP2007194715A JP2007194715A (en) 2007-08-02
JP4182982B2 true JP4182982B2 (en) 2008-11-19

Family

ID=38450091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006008727A Expired - Fee Related JP4182982B2 (en) 2006-01-17 2006-01-17 Image smoothing method and resolution conversion method

Country Status (1)

Country Link
JP (1) JP4182982B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113092079B (en) * 2020-01-09 2023-09-08 舜宇光学(浙江)研究院有限公司 Clarity detection target plate and method, system, electronic equipment and detection platform

Also Published As

Publication number Publication date
JP2007194715A (en) 2007-08-02

Similar Documents

Publication Publication Date Title
US6377711B1 (en) Methods and systems for detecting the edges of objects in raster images using diagonal edge detection
JPH06233120A (en) Blue noise type method for usage in half-tone tile type screener and for masking screener-induced badness of picture
US5721793A (en) Image processing with smooth production of inclined lines and other features
JP4182982B2 (en) Image smoothing method and resolution conversion method
JPH0879516A (en) Image processor
US9036219B2 (en) Image processing device and image processing method for preventing image quality deterioration
JP4501791B2 (en) Image processing method and image processing program
JP4507279B2 (en) Image processing apparatus, image processing method, and program thereof
US8558838B2 (en) Image processing apparatus, image processing method and storage medium storing image processing program
JP4182981B2 (en) Image smoothing method and resolution conversion method
JP2006067031A (en) Image reading device
JP3669081B2 (en) Image processing device
JPH07334672A (en) Picture processor
JP5297347B2 (en) Pixel number conversion method, program for executing the same, and pixel number conversion apparatus
JP3073381B2 (en) Image processing method and apparatus
JP4517288B2 (en) Image processing apparatus, image processing method, and program thereof
JP4081996B2 (en) Image processing apparatus, image processing method, and program
JP2007072989A (en) Image smoothing method and resolution conversion method
US8670157B2 (en) Dot growth system and method
JP3155748B2 (en) Image processing device
JP4517287B2 (en) Image processing apparatus, image processing method, and program thereof
JP3391809B2 (en) Image processing method and apparatus
JP4437621B2 (en) Region detection apparatus and method
JP2009134583A (en) Image forming apparatus, image forming method, computer program, and recording medium
JP2006252108A (en) Image processing device, image processing method, and its program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080804

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

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

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

Free format text: PAYMENT UNTIL: 20110912

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110912

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120912

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130912

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130912

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140912

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees