JP2010191931A - Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method - Google Patents

Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method Download PDF

Info

Publication number
JP2010191931A
JP2010191931A JP2009137629A JP2009137629A JP2010191931A JP 2010191931 A JP2010191931 A JP 2010191931A JP 2009137629 A JP2009137629 A JP 2009137629A JP 2009137629 A JP2009137629 A JP 2009137629A JP 2010191931 A JP2010191931 A JP 2010191931A
Authority
JP
Japan
Prior art keywords
pixel
interpolation
target
influence
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009137629A
Other languages
Japanese (ja)
Inventor
Shozo Moriya
正三 森谷
Takahiro Omichi
隆広 大道
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2009137629A priority Critical patent/JP2010191931A/en
Publication of JP2010191931A publication Critical patent/JP2010191931A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus, an image forming apparatus, a computer program, a recording medium, and an image processing method, to achieve a smoothing process with reduced jaggy without causing a blur at a contour portion due to an interpolation process. <P>SOLUTION: A same attribute layer extraction part 2121 extracts the same attribute layer information indicating a pixel region of the same feature amount as a pixel of interest in the periphery of the interpolation target coordinates. A layer information interpolation part 2122 determines an interpolated value of the same attribute layer information in each of the interpolation target coordinates. A layer information filter part 2123 performs low pass filter processing to the interpolation layer information to output the degree of impact. A thin layer extraction part 2124 determines whether the pixel of interest be a thin line or not. A copy origin pixel selection part 2125 selects a copy origin pixel correlated to each of the interpolation target coordinates. A pixel feature amount copying part 2126 copies a pixel value (feature amount) of a selected copy original pixel correlated to each of the interpolation target coordinates. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、カラー多値画像の高解像度化を行うとともに、描画要素の輪郭に対するスムージング処理を行う画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置を実現するためのコンピュータプログラム、該コンピュータプログラムを記録した記録媒体及び画像処理方法に関する。   The present invention relates to an image processing apparatus that performs high-resolution processing of a color multi-value image and performs smoothing processing on the contour of a drawing element, an image forming apparatus including the image processing apparatus, and a computer program for realizing the image processing apparatus The present invention relates to a recording medium on which the computer program is recorded and an image processing method.

画像の解像度を上げるための補間処理には、最近傍補間(ニアレストネイバ補間)、線形補間(バイリニア補間)、非線形補間(バイキュービック、その他)など様々な補間方法がある。最近傍補間は、最も簡単な方法であり、補間対象座標に対して最も近い画素の画素値(特徴量)をそのまま補間対象座標における補間画素の画素値とする補間方法である。図60は原画像の一部を示す説明図であり、図61は従来例としての最近傍補間による処理後の画像の一部を示す説明図である。最近傍補間では、図60に示す原画像に対して、図61に示すように、原画像と同じ形状を保ちながら解像度のみを高くするため、多値化した画像においても補間画素の濃度が変化せず、文字やベクタグラフィックスなどの人工的な画像において重要である輪郭部のコントラストを保つことが可能である半面、斜め線や曲線のジャギー(斜線を表現したときに生じる階段状のギザギザ)が目立つという欠点がある。   There are various interpolation methods such as nearest neighbor interpolation (nearest neighbor interpolation), linear interpolation (bilinear interpolation), and nonlinear interpolation (bicubic, etc.) in order to increase the resolution of an image. Nearest neighbor interpolation is the simplest method, and is an interpolation method in which the pixel value (feature value) of the pixel closest to the interpolation target coordinate is used as it is as the pixel value of the interpolation pixel in the interpolation target coordinate. FIG. 60 is an explanatory diagram showing a part of an original image, and FIG. 61 is an explanatory diagram showing a part of an image after processing by nearest neighbor interpolation as a conventional example. In the nearest neighbor interpolation, as shown in FIG. 61, only the resolution is increased while maintaining the same shape as the original image as shown in FIG. Without contrast, it is possible to maintain the contrast of the outline, which is important in artificial images such as characters and vector graphics, but diagonal lines and curved jaggy (stepped jagged lines appearing when diagonal lines are expressed) There is a disadvantage that stands out.

一方、線形補間や非線形補間では、最近傍補間に比べ斜め線や曲線のジャギーを低減することが可能である。図62は従来例としての線形補間による処理後の画像の一部を示す説明図である。線形補間では、補間画素の濃度が段階的に変化するため、写真などの自然画像の解像度を上げる場合には適しているが、文字やベクタグラフィックスなどの人工的な画像に対しては、描画要素の輪郭がぼけてしまうという欠点がある。   On the other hand, in linear interpolation or nonlinear interpolation, it is possible to reduce jaggy of diagonal lines and curves compared to nearest neighbor interpolation. FIG. 62 is an explanatory diagram showing a part of an image after processing by linear interpolation as a conventional example. Linear interpolation is suitable for increasing the resolution of natural images such as photographs because the density of interpolated pixels changes stepwise, but for artificial images such as characters and vector graphics, drawing is possible. There is a drawback that the outline of the element is blurred.

このような課題を解決する方法として、いくつかの補間方法が提案されている。例えば、補間対象座標周りの指定領域内の画像属性を判定し、判定された画像属性によって最適な補間方法や補間パラメータを選択することにより、補間画像の画質向上を図ることができる画像処理方法が開示されている(特許文献1参照)。   Several interpolation methods have been proposed as methods for solving such problems. For example, there is an image processing method that can improve the image quality of an interpolated image by determining an image attribute in a specified region around the coordinates to be interpolated and selecting an optimal interpolation method or interpolation parameter according to the determined image attribute. It is disclosed (see Patent Document 1).

また、最近傍補間後の画像等、ジャギーのある画像に対して、注目画素と周辺画素の特徴量を相互に比較し、注目画素と背景画素のそれぞれについて特徴量が同じ画素数を求め、その画素数の組み合わせよって注目画素を背景画素の特徴量で置き換えることによりスムージング処理を行う画像処理方法が開示されている(特許文献2参照)。   In addition, for jaggy images such as the image after nearest neighbor interpolation, the feature values of the target pixel and the peripheral pixels are compared with each other, and the number of pixels having the same feature value is obtained for each of the target pixel and the background pixel. An image processing method that performs smoothing processing by replacing a target pixel with a feature amount of a background pixel by combining the number of pixels is disclosed (see Patent Document 2).

また、画素がテキスト領域や文字領域などのいずれに属するかを示す領域情報を元に求めた2値の前景/背景情報を元に、パターンマッチングやエッジ抽出によって求めた輪郭
情報に対してスムージング処理を行い、その結果に基づいて前景/背景領域の代表値を複
写することにより、多値カラー画像に対してエッジのボケを生じることなくスムージングを行う画像処理方法が開示されている(特許文献3参照)。
In addition, smoothing processing is performed on contour information obtained by pattern matching or edge extraction based on binary foreground / background information obtained based on region information indicating whether a pixel belongs to a text region or a character region. An image processing method is disclosed in which smoothing is performed on multi-valued color images without causing blurring of edges by copying representative values of foreground / background regions based on the results (Patent Document 3). reference).

特開2000−339449号公報JP 2000-339449 A 特開2005−192184号公報JP 2005-192184 A 特開2000−125134号公報JP 2000-125134 A

しかしながら、特許文献1の画像処理方法にあっては、周囲の画素情報を参照してより好適な補間方法を選択する方法を示しているが、補間方法自体は従来の手法の組み合わせであり、輪郭部分にボケが生じるという点は改善されていない。   However, the image processing method of Patent Document 1 shows a method of selecting a more suitable interpolation method with reference to surrounding pixel information, but the interpolation method itself is a combination of conventional methods, The point of blurring in the part has not been improved.

また、特許文献2の画像処理方法では、高解像度化後の画像に対して注目画素の周囲画素のみを用いて処理を行うため、局所的なスムージング効果しかなく、ゆるやかな角度の斜め線等に対してはスムージング効果が少ない。図63は従来例としての近傍画素比較による補間後の画像の一部を示す説明図である。図63の例は、図60に示す原画像に対して、特許文献2の画像処理方法を行った場合の例を示す。この場合、高解像度化の比率が高ければ高いほど、ジャギーに対するスムージング効果が少なくなるという欠点がある。   Further, in the image processing method of Patent Document 2, since only the peripheral pixels of the target pixel are processed with respect to the high resolution image, there is only a local smoothing effect, and an oblique line with a gentle angle is formed. On the other hand, there is little smoothing effect. FIG. 63 is an explanatory diagram showing a part of an image after interpolation by comparison of neighboring pixels as a conventional example. The example of FIG. 63 shows an example when the image processing method of Patent Document 2 is performed on the original image shown in FIG. In this case, there is a drawback in that the higher the resolution ratio, the less the smoothing effect against jaggies.

また、特許文献3の画像処理方法では、描画要素の輪郭形状に対してスムージングを行い、描画要素の代表値をそのまま複写することにより、ボケがなく、かつスムーズな輪郭を得ることができるが、輪郭情報としてのタグ情報を必要とするため、TIFF画像のようにTAG情報のない画像に対しては適用することができないという制限がある。また、色の異なる文字同士の重なりなど、同一タグ情報をもつ描画要素間の境界を判別することができないので、そのような境界部分には適用することができない。   Further, in the image processing method of Patent Document 3, smoothness can be obtained with respect to the contour shape of the drawing element, and the representative value of the drawing element can be copied as it is. Since tag information as contour information is required, there is a limitation that it cannot be applied to an image without TAG information such as a TIFF image. In addition, since the boundary between drawing elements having the same tag information such as overlapping of characters of different colors cannot be determined, it cannot be applied to such a boundary portion.

本発明は、斯かる事情に鑑みてなされたものであり、カラー多値画像の高解像度化を行うととともに、輪郭部分に補間処理によるぼけを生じさせることなく、かつジャギーを低減したスムージング処理を行うことができる画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置を実現するためのコンピュータプログラム、該コンピュータプログラムを記録した記録媒体及び画像処理方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and performs high-resolution color multi-valued images, and performs smoothing processing that reduces jaggies without causing blurring due to interpolation processing in the contour portion. An object of the present invention is to provide an image processing apparatus, an image forming apparatus including the image processing apparatus, a computer program for realizing the image processing apparatus, a recording medium storing the computer program, and an image processing method. .

本発明に係る画像処理装置は、入力画像に補間処理を施して出力画像を生成する画像処理装置において、複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出する影響度算出手段と、該影響度算出手段で算出した影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択する選択手段と、該選択手段で選択した注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出する補間画素値算出手段とを備えることを特徴とする。   The image processing apparatus according to the present invention is an image processing apparatus that generates an output image by performing an interpolation process on an input image. The degree of influence of each of a plurality of pixels of interest around a plurality of interpolation target coordinates at the interpolation target coordinates In accordance with the influence degree calculated by the influence degree calculating means, a set of attention pixel groups having the same influence degree is selected from the attention pixels in association with each interpolation target coordinate according to the influence degree calculated by the influence degree calculating means. And a interpolation pixel value calculation unit that calculates a pixel value of the interpolation pixel of the interpolation target coordinate based on the pixel value of the target pixel group selected by the selection unit.

本発明に係る画像処理装置は、注目画素毎に、該注目画素と前記複数の注目画素を含む画素ブロック内の各画素との同属性の有無を判定する同属性判定手段と、該同属性判定手段で判定した判定結果を前記各画素に対応させて割り当てた同属性情報を抽出する抽出手段と、該抽出手段で抽出した同属性情報を所定の補間倍率で補間する同属性情報補間手段とを備え、前記影響度算出手段は、注目画素毎に、前記同属性情報補間手段で補間した補間同属性情報を用いて、補間対象座標の周辺に存在する周辺画素による影響度を算出するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes, for each target pixel, the same attribute determination unit that determines the presence / absence of the same attribute between the target pixel and each pixel in the pixel block including the plurality of target pixels, and the same attribute determination Extracting means for extracting the same attribute information assigned in correspondence with the respective pixels, and same attribute information interpolating means for interpolating the attribute information extracted by the extracting means at a predetermined interpolation magnification. And the influence degree calculating means is configured to calculate the influence degree due to neighboring pixels existing around the coordinates to be interpolated by using the same attribute information interpolated by the same attribute information interpolation means for each target pixel. It is characterized by being.

本発明に係る画像処理装置は、前記同属性判定手段は、注目画素毎に、該注目画素と前記画素ブロック内の各画素との画素値が一致するか否かに応じて同属性の有無を判定するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, the same attribute determination unit determines whether or not the same attribute exists for each target pixel depending on whether or not the pixel values of the target pixel and each pixel in the pixel block match. It is characterized by being comprised so that it may determine.

本発明に係る画像処理装置は、前記同属性判定手段は、注目画素毎に、前記画素ブロック内の各画素の画素値が、前記注目画素の画素値に対して設けられた画素値範囲に含まれるか否かに応じて同属性の有無を判定するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, the attribute determination unit includes, for each target pixel, a pixel value of each pixel in the pixel block included in a pixel value range provided for the pixel value of the target pixel. It is characterized in that it is configured to determine the presence or absence of the same attribute according to whether or not it is.

本発明に係る画像処理装置は、前記同属性判定手段は、注目画素毎に、注目画素の画像属性値によって前記画素値範囲を選択し、前記注目画素の画素値が画素値範囲に含まれるか否かと、前記画像属性値が同一であるか否かとに応じて同属性の有無を判定するように構成してあり、前記補間画素値算出手段は、前記選択手段により選択された注目画素群の画素値から、注目画素群の画像属性値に応じて選択される手順によって補間画素の画素値を算出するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, the attribute determination unit selects, for each target pixel, the pixel value range based on the image attribute value of the target pixel, and whether the pixel value of the target pixel is included in the pixel value range. Whether or not the image attribute value is the same is determined based on whether or not the image attribute value is the same, and the interpolated pixel value calculating unit is configured to determine whether or not the pixel group of interest selected by the selecting unit is selected. The pixel value of the interpolation pixel is calculated from the pixel value according to a procedure selected according to the image attribute value of the target pixel group.

本発明に係る画像処理装置は、前記同属性判定手段は、注目画素毎に、前記画素ブロック内の各画素が前記注目画素又は既に同属性ありと判定された画素を介して前記注目画素に隣接するか否かに応じて同属性の有無を判定するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, the same attribute determination unit is configured to detect, for each target pixel, each pixel in the pixel block adjacent to the target pixel via the target pixel or a pixel that has already been determined to have the same attribute. It is configured to determine the presence or absence of the same attribute according to whether or not to do so.

本発明に係る画像処理装置は、前記選択手段は、前記補間対象座標毎に、前記影響度算出手段で算出した影響度が最も大きい注目画素を選択するように構成してあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the selection unit is configured to select a pixel of interest having the greatest influence calculated by the influence calculation unit for each interpolation target coordinate. .

本発明に係る画像処理装置は、前記影響度算出手段で算出した影響度と第1閾値とを比較する第1比較手段を備え、前記選択手段は、前記補間対象座標での影響度が前記第1閾値より小さい場合、該補間対象座標に最も近い注目画素を選択するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes first comparison means for comparing the influence degree calculated by the influence degree calculation means with a first threshold value, and the selection means has the influence degree at the interpolation target coordinates as the first degree. When the value is smaller than one threshold, the pixel of interest closest to the interpolation target coordinate is selected.

本発明に係る画像処理装置は、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定する細線判定手段と、該細線判定手段で細線に属すると判定した注目画素の前記補間対象座標での影響度と第2閾値とを比較する第2比較手段とを備え、前記選択手段は、前記補間対象座標での影響度が前記第2閾値より大きい場合、該補間対象座標に対応付けて、前記細線に属すると判定した注目画素を選択するように構成してあり、前記補間対象座標での影響度が前記第2閾値より小さい場合、該補間対象座標に対応付けて、影響度が最も大きい注目画素を選択するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes a thin line determination unit that determines whether or not a target pixel belongs to a diagonal line or a thin line that is an isolated point, and a target pixel that is determined to belong to a thin line by the thin line determination unit Second comparison means for comparing the degree of influence of the interpolation target coordinates with a second threshold value, and the selection means, when the degree of influence of the interpolation target coordinates is greater than the second threshold value, The pixel of interest determined to belong to the thin line is selected in association with the coordinate, and when the degree of influence at the interpolation target coordinate is smaller than the second threshold value, the pixel of interest is associated with the interpolation target coordinate. The pixel of interest having the greatest influence is configured to be selected.

本発明に係る画像処理装置は、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定する細線判定手段と、該細線判定手段で細線に属すると判定した注目画素の前記補間対象座標での影響度と第2閾値とを比較する第2比較手段とを備え、前記選択手段は、前記補間対象座標での影響度が前記第2閾値より大きい場合、該補間対象座標に対応付けて、前記細線に属すると判定した注目画素を選択するように構成してあり、前記第1比較手段は、前記補間対象座標での影響度が前記第2閾値より小さい場合、前記影響度算出手段で算出した影響度と前記第1閾値とを比較するように構成してあり、前記補間対象座標での影響度が前記第1閾値より小さい場合、該補間対象座標に最も近い注目画素を選択するようにしてあり、前記補間対象座標での影響度が前記第1閾値以上の場合、前記影響度算出手段で算出した影響度が最も大きい注目画素を選択するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes a thin line determination unit that determines whether or not a target pixel belongs to a diagonal line or a thin line that is an isolated point, and a target pixel that is determined to belong to a thin line by the thin line determination unit Second comparison means for comparing the degree of influence of the interpolation target coordinates with a second threshold value, and the selection means, when the degree of influence of the interpolation target coordinates is greater than the second threshold value, The pixel of interest determined to belong to the thin line is selected in association with the coordinate, and the first comparison unit, when the influence degree at the interpolation target coordinate is smaller than the second threshold, The influence degree calculated by the influence degree calculating means is configured to be compared with the first threshold value. When the influence degree at the interpolation target coordinate is smaller than the first threshold value, the attention closest to the interpolation target coordinate is obtained. The pixel is selected, If impact in serial interpolation target coordinates is equal to or greater than the first threshold value, characterized in that the degree of influence calculated by the influence degree calculation means is arranged to select the highest pixel of interest.

本発明に係る画像処理装置は、前記細線判定手段は、前記同属性判定手段で、注目画素と、該注目画素と縦又は横方向で隣接する画素との同属性がないと判定した場合、細線に属すると判定するように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, when the thin line determination unit determines that the same attribute determination unit does not have the same attribute of the pixel of interest and a pixel adjacent to the pixel of interest in the vertical or horizontal direction, It is constituted so that it may be judged that it belongs to.

本発明に係る画像処理装置は、前記細線判定手段で細線に属すると判定した注目画素と同属性のある画素数に応じて前記第2閾値を変更する変更手段を備えることを特徴とする。   The image processing apparatus according to the present invention includes a changing unit that changes the second threshold according to the number of pixels having the same attribute as the target pixel determined to belong to the thin line by the thin line determining unit.

本発明に係る画像形成装置は、出力画像を形成する画像形成手段と、前述の発明のいずれか1つに係る画像処理装置とを備えることを特徴とする。   An image forming apparatus according to the present invention includes an image forming unit that forms an output image, and an image processing apparatus according to any one of the above-described inventions.

本発明に係るコンピュータプログラムは、コンピュータを、入力画像に補間処理を施して出力画像を生成する手段として機能させるためのコンピュータプログラムにおいて、コンピュータを、複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出する影響度算出手段と、算出した影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択する選択手段と、該選択手段で選択した注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出する補間画素値算出手段として機能させることを特徴とする。   A computer program according to the present invention is a computer program for causing a computer to function as means for generating an output image by performing an interpolation process on an input image. The computer includes a plurality of pixels of interest around a plurality of interpolation target coordinates. A degree of influence calculating means for calculating the degree of influence at each of the interpolation target coordinates, and a set of attentions having the same degree of influence from the target pixel in association with each interpolation target coordinate according to the calculated degree of influence A selection unit that selects a pixel group; and an interpolation pixel value calculation unit that calculates a pixel value of an interpolation pixel at an interpolation target coordinate based on a pixel value of a target pixel group selected by the selection unit. .

本発明に係るコンピュータでの読み取りが可能な記録媒体は、前述の発明に係るコンピュータプログラムを記録してあることを特徴とする。   A recording medium readable by a computer according to the present invention records the computer program according to the above-described invention.

本発明に係る画像処理方法は、入力画像に補間処理を施して出力画像を生成する画像処理装置による画像処理方法おいて、複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出し、算出された影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択し、選択された注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出することを特徴とする。   An image processing method according to the present invention is an image processing method by an image processing apparatus that generates an output image by performing an interpolation process on an input image, and the interpolation target of each of a plurality of pixels of interest around a plurality of interpolation target coordinates The degree of influence at the coordinates is calculated, and in accordance with the calculated degree of influence, a set of target pixel groups having the same degree of influence is selected from the target pixels in association with each interpolation target coordinate and selected. The pixel value of the interpolation pixel of the interpolation target coordinate is calculated based on the pixel value of the target pixel group.

本発明にあっては、複数の補間対象座標の周囲にある複数の注目画素それぞれの補間対象座標での影響度を算出する。例えば、入力画像内の2×2画素格子(注目画素)に着目し、2×2画素格子内の補間画素を求めることにより高解像度化するとする。補間画素数は、入力画像と出力画像との解像度比である補間倍率により決定される。この場合、4つの注目画素それぞれに対して、各補間対象座標での影響度を算出する。影響度は、例えば、注目画素の周辺の参照画素に画素値が同一の画素がどの程度分布しているかに応じて求めることができる。算出した影響度に応じて、各補間対象座標に対応付けて注目画素の中から同じ影響度を持つ一組の注目画素群を選択する。例えば、2×2画素格子内の(n、m)座標を補間対象座標の1つとすると、補間対象座標(n、m)での4つの注目画素の中から同じ影響度を持つ注目画素群を選択する。そして、選択した注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出する。   In the present invention, the degree of influence at the interpolation target coordinates of each of the plurality of target pixels around the plurality of interpolation target coordinates is calculated. For example, it is assumed that the resolution is increased by paying attention to a 2 × 2 pixel grid (target pixel) in the input image and obtaining an interpolation pixel in the 2 × 2 pixel grid. The number of interpolation pixels is determined by the interpolation magnification that is the resolution ratio between the input image and the output image. In this case, the degree of influence at each interpolation target coordinate is calculated for each of the four target pixels. The degree of influence can be obtained, for example, according to how much pixels having the same pixel value are distributed to reference pixels around the target pixel. In accordance with the calculated influence level, a set of target pixel groups having the same influence level is selected from the target pixels in association with each interpolation target coordinate. For example, assuming that the (n, m) coordinate in the 2 × 2 pixel grid is one of the interpolation target coordinates, a target pixel group having the same degree of influence is selected from four target pixels at the interpolation target coordinates (n, m). select. Then, based on the pixel value of the selected target pixel group, the pixel value of the interpolation pixel at the interpolation target coordinates is calculated.

すなわち、補間対象座標の周囲の注目画素と、その注目画素の周辺の参照画素の画素値を用いて、補間対象座標での各注目画素による影響度を算出し、同一影響度を持つ複数の注目画素群から、その影響度に応じて一組の注目画素群(例えば、同一影響度を持つ注目画素群のうち、影響度が最も大きい注目画素群)を選択し、選択した注目画素群の画素値(特徴量)に基づいて補間対象座標の補間画素の画素値を算出する。選択された注目画素群内の各注目画素は、影響度が同じ、すなわち、同属性判定で同一属性に分類された注目画素であり、その画素値(特徴量)に基づいて補間画素の画素値を算出するため、輪郭部分に濃度や色のぼけが生じず、文字やテキストグラフィックスに好適な補間結果を得ることができる。また、補間対象座標の周囲の各注目画素群の影響度に応じて一組の注目画素群を選択するので、描画要素の輪郭形状に対するスムージング処理を行うことができ、また、影響度の算出に使用する情報(例えば、画素値など)は補間処理前の入力画像(原画像)の情報であるため、高解像度化の比率の大小にかかわらず、良好なスムージング結果を得ることができる。そして、ジャギーがなく、かつ濃度ぼけや混色のない高解像度画像を得ることができる。また、描画要素の境界の検出は、注目画素間の画素値(特徴量)の違いによって行うため、輪郭検出のためにTAG情報などの画素の属性情報を必要としない。   That is, using the pixel values of the pixel of interest around the interpolation target coordinate and the reference pixels around the pixel of interest, the degree of influence of each pixel of interest at the interpolation target coordinate is calculated, and multiple attentions having the same degree of influence are calculated. From the pixel group, a set of target pixel groups (for example, a target pixel group having the highest influence degree among the target pixel groups having the same influence degree) is selected according to the degree of influence, and pixels of the selected target pixel group are selected. Based on the value (feature value), the pixel value of the interpolation pixel at the interpolation target coordinate is calculated. Each pixel of interest in the selected pixel group of interest has the same degree of influence, that is, a pixel of interest classified into the same attribute by the same attribute determination, and the pixel value of the interpolation pixel based on the pixel value (feature value) Therefore, no density or color blur occurs in the contour portion, and an interpolation result suitable for characters and text graphics can be obtained. In addition, since a set of target pixel groups is selected according to the degree of influence of each target pixel group around the interpolation target coordinates, smoothing processing can be performed on the contour shape of the drawing element, and the degree of influence can be calculated. Since the information to be used (for example, pixel values) is information of the input image (original image) before the interpolation process, a good smoothing result can be obtained regardless of the size of the high resolution ratio. Further, it is possible to obtain a high-resolution image free from jaggy and free from density blur and color mixing. Further, since the boundary of the drawing element is detected based on the difference in pixel value (feature amount) between the target pixels, pixel attribute information such as TAG information is not required for contour detection.

本発明にあっては、注目画素毎に、その注目画素と複数の注目画素を含む画素ブロック(参照画素)内の各画素との同属性の有無を判定する。例えば、2×2画素格子を注目画素として、2×2画素格子内の補間画素を求める場合、2×2画素格子の周囲の4×4画素ブロックを参照画素として、注目画素毎に注目画素と参照画素との同属性の有無を判定する。同属性の有無は、例えば、画素値(特徴量)が同一であるか否かにより判定することができる。同属性の有無の判定結果を画素ブロック(参照画素)内の各画素に対応させて割り当てた同属性情報を抽出する。例えば、同属性有りの場合は「1」、同属性がない場合は「0」の二値化情報として同属性情報を注目画素毎に抽出することができる。抽出した同属性情報を所定の補間倍率で補間する。この場合、例えば、同属性情報を0、100で多値化することができる。補間した補間同属性情報(例えば、0〜100)を用いて、補間対象座標の周辺に存在する周辺画素による影響度を算出する。例えば、補間した補間同属性情報(例えば、0〜100)に対して所定のフィルタ処理を施して影響度を算出することができる。フィルタ処理は、例えば、ローパスフィルタ特性を有するマトリクス演算を行うことで移動平均法を用いて影響度を算出することができる。これにより、影響度を算出する際に、参照する画素数を多くすることができ、より広い範囲の情報を考慮して、より滑らかな輪郭の画像を得ることができる。   In the present invention, for each target pixel, the presence / absence of the same attribute is determined for each pixel in the pixel block (reference pixel) including the target pixel and the plurality of target pixels. For example, when an interpolation pixel in a 2 × 2 pixel grid is obtained using a 2 × 2 pixel grid as a target pixel, a 4 × 4 pixel block around the 2 × 2 pixel grid is used as a reference pixel, The presence or absence of the same attribute as the reference pixel is determined. The presence / absence of the attribute can be determined based on, for example, whether the pixel values (feature values) are the same. The same attribute information assigned by associating the determination result of the presence or absence of the same attribute with each pixel in the pixel block (reference pixel) is extracted. For example, the same attribute information can be extracted for each pixel of interest as binarized information of “1” when the attribute is present and “0” when the attribute is absent. The extracted attribute information is interpolated at a predetermined interpolation magnification. In this case, for example, the attribute information can be multivalued with 0 and 100. Using the interpolated same attribute information (for example, 0 to 100), the degree of influence by surrounding pixels existing around the interpolation target coordinates is calculated. For example, the degree of influence can be calculated by applying a predetermined filter process to the interpolated same attribute information (for example, 0 to 100). In the filter processing, for example, the influence degree can be calculated using a moving average method by performing a matrix operation having a low-pass filter characteristic. Thereby, when calculating the influence degree, it is possible to increase the number of pixels to be referred to, and it is possible to obtain a smoother contour image in consideration of a wider range of information.

本発明にあっては、同属性の有無の判定を、注目画素毎に、その注目画素と画素ブロック(参照画素)内の各画素との画素値が一致するか否かに応じて行う。なお、画素値の一致は、画素値(特徴量)の一部一致又は全部一致を含む。これにより、特徴量が異なる場合には、同属性がないと判定することができ、似た色の画像領域が隣接する場合でも、それぞれの画像領域を異なる領域として正しく認識し、それぞれの輪郭に対するスムージングを行うことができる。   In the present invention, the presence / absence of the attribute is determined for each target pixel depending on whether or not the pixel value of the target pixel matches each pixel in the pixel block (reference pixel). Note that the matching of pixel values includes partial or complete matching of pixel values (feature quantities). As a result, when the feature amount is different, it can be determined that there is no same attribute, and even when image regions of similar colors are adjacent to each other, each image region is correctly recognized as a different region, and Smoothing can be performed.

本発明にあっては、同属性の有無の判定を、注目画素毎に、画素ブロック(参照画素)内の各画素の画素値が、前記注目画素の画素値に対して設けられた画素値範囲に含まれるか否か(一致するか否か)に応じて行う。これにより、グラデーション背景上に斜め形状、あるいは曲線形状のエッジ形状を有する文字等の同色画素で構成される画像が配置されている入力画像を高解像度変換した場合、斜めエッジ部あるいは曲線エッジ部のジャギー発生が抑制され、エッジ形状の良好な保持が可能となる。   In the present invention, the pixel value range in which the pixel value of each pixel in the pixel block (reference pixel) is provided for the pixel value of the target pixel is determined for each target pixel. Depending on whether it is included (whether or not they match). As a result, when an input image in which an image composed of pixels of the same color such as a character having a diagonal shape or curved edge shape is arranged on a gradation background is converted to high resolution, the diagonal edge portion or curved edge portion The occurrence of jaggies is suppressed, and the edge shape can be favorably retained.

本発明にあっては、同属性の有無の判定を、注目画素毎に、注目画素の画像属性値によって画素値範囲を選択し、注目画素の画素値が画素値範囲に含まれるか否かと、画像属性値が同一であるかどうかとに応じて同属性の有無を判定する。そして、選択された注目画素群の画素値から、注目画素群の画像属性値に応じて選択される手順によって補間画素の画素値を算出する。すなわち、文字領域、ベクタグラフィックス領域、写真等の自然画像領域などの画像属性毎に異なる特徴量範囲を設けておき、各画素の画像属性値に応じて対応する特徴量範囲を選択し、同属性判定を行う。例えば、文字領域については完全な画素値の一致を図り、グラデーションなどが含まれるベクタグラフィックス領域については微妙な色の差を許容する程度の範囲設定を行い、写真などの自然画像領域については範囲設定を最大とし、色による同属性判定を行わず、画像属性値が一致する場合のみ同属性と判定する。   In the present invention, whether or not the attribute is present is determined by selecting a pixel value range based on the image attribute value of the target pixel for each target pixel, and whether or not the pixel value of the target pixel is included in the pixel value range. The presence / absence of the same attribute is determined according to whether the image attribute values are the same. Then, the pixel value of the interpolation pixel is calculated from the pixel value of the selected target pixel group according to the procedure selected according to the image attribute value of the target pixel group. That is, a different feature amount range is provided for each image attribute such as a character region, a vector graphics region, a natural image region such as a photograph, and the corresponding feature amount range is selected according to the image attribute value of each pixel. Perform attribute determination. For example, complete pixel values are matched for character areas, range is set to allow subtle color differences for vector graphics areas that include gradation, etc., and ranges are set for natural image areas such as photographs. The setting is maximized, the same attribute determination by color is not performed, and the same attribute is determined only when the image attribute values match.

そして、画像属性値が文字領域(文字)である注目画素に対応付けられた補間画素には注目画素の特徴量をそのまま複写し、画像属性値が自然画像領域(自然画像)である注目画素に対応付けられた補間画素については、同一属性と判定された複数の注目画素の特徴量から線形補間によって各補間画素の画素値(特徴量)を算出する。これにより、文字については厳密な色の一致を図り、グラデーションが含まれるベクタグラフィックスでは一定の範囲をもって同属性判定を行い、そして、写真のような自然画像の属性を持つ画素については同属性判定の範囲を最大にする(すなわち、すべて同属性と判定する)ことにより、写真領域と文字領域との境界などについても好適なエッジスムージングを行うことができる。すなわち、解像度変換を用いたスムージング処理において、注目画素と注目画素の周辺画素群との同属性判定を行い、判定結果に基づいて補間画素の画素値を決定する際に、選択された同属性レイヤに属する複数の注目画素の画素値から補間画素値を算出することにより、文字やベクタグラフィックスなどの人工的画像と、写真等の自然画像が混在する画像に対して、人工的画像の輪郭形状に対するスムージング処理と、自然画像の濃度に対するスムージング処理とを両立して良好な画像を得ることができる。   Then, the feature amount of the target pixel is copied as it is to the interpolation pixel associated with the target pixel whose image attribute value is the character region (character), and the target pixel whose image attribute value is the natural image region (natural image) is copied. For the associated interpolation pixel, the pixel value (feature amount) of each interpolation pixel is calculated by linear interpolation from the feature amounts of a plurality of target pixels determined to have the same attribute. This ensures exact color matching for characters, vector graphics with gradations have the same attribute determination within a certain range, and pixels with natural image attributes such as photographs are determined to have the same attribute. By maximizing the range of (i.e., determining that all have the same attribute), it is possible to perform suitable edge smoothing on the boundary between the photo area and the character area. That is, in the smoothing process using resolution conversion, when the same attribute is determined for the target pixel and the surrounding pixel group of the target pixel, and the pixel value of the interpolation pixel is determined based on the determination result, the selected same attribute layer By calculating the interpolated pixel value from the pixel values of multiple pixels of interest belonging to, the contour shape of the artificial image for an image that is a mixture of artificial images such as characters and vector graphics and natural images such as photographs Thus, a smooth image can be obtained in combination with a smoothing process for natural image density and a good image can be obtained.

本発明にあっては、同属性の有無の判定を、注目画素毎に、画素ブロック(参照画素)内の各画素が注目画素又は既に同属性ありと判定された画素を介して注目画素に隣接しているか(連続しているか)否かに応じて同属性の有無を判定する。この場合、隣接しているか(連続しているか)否かは、縦横斜めの8方向に対して行うことができる。これにより、背景色上に描画された細線のように、同色の2つの領域に挟まれた細線がある場合に、細線を挟む2つの領域が1つの同属性領域と認識されたときは、その影響度が過大になり、細線が極端に細くなること、あるいは、細線が消滅することがある。連続性を考慮することによって、細線により同色の領域が分けられている場合でも、同色の2つの領域を別々の領域として認識することができ、それぞれの領域による影響度の絶対値が小さくなり、細線が極端に細くなること、あるいは、細線が消滅することを防止することができる。   In the present invention, the presence / absence of the same attribute is determined for each target pixel, with each pixel in the pixel block (reference pixel) adjacent to the target pixel via the target pixel or a pixel that has already been determined to have the same attribute. Whether or not the same attribute is present is determined according to whether or not the same attribute is present (continuous). In this case, whether adjacent (continuous) or not can be performed in eight directions that are vertically and horizontally slanted. As a result, when there is a thin line sandwiched between two areas of the same color, such as a thin line drawn on the background color, when two areas sandwiching the thin line are recognized as one identical attribute area, The influence may be excessive, the fine line may become extremely thin, or the fine line may disappear. By considering continuity, even if the same color area is divided by thin lines, two areas of the same color can be recognized as separate areas, and the absolute value of the influence by each area becomes smaller, It is possible to prevent the fine line from becoming extremely thin or the fine line from disappearing.

本発明にあっては、補間対象座標に対応する注目画素を選択する場合、注目画素のうち影響度が最も大きい注目画素を選択する。これにより、輪郭部分に濃度や色のぼけが生じず、文字やテキストグラフィックスに好適な補間結果を得ることができる。また、描画要素の輪郭形状に対するスムージング処理を行うことができ、ジャギーがない高解像度画像を得ることができる。   In the present invention, when selecting a pixel of interest corresponding to the interpolation target coordinates, the pixel of interest having the greatest influence is selected from the pixels of interest. As a result, the contour and the color are not blurred, and an interpolation result suitable for characters and text graphics can be obtained. In addition, smoothing processing can be performed on the contour shape of the drawing element, and a high-resolution image free from jaggy can be obtained.

本発明にあっては、算出した影響度と第1閾値(例えば、最大の影響度の50%)とを比較し、影響度が第1閾値より小さい場合、補間対象座標に最も近い注目画素を選択する。補間処理は、基本的にエッジを丸めてスムージング処理を行うものであり、直角のエッジ部分も丸められるという特徴がある。特に、背景色上で縦方向の直線と横方向の直線とが交差する場合など、3色以上の背景色が隣接するような直交部分においては、本来直線であるべき部分(エッジ)にゆがみが生じてしまう。影響度を第1閾値と比較し、影響度が少ない補間対象座標に対しては、影響度の最も大きい注目画素が選択されることを抑制して、その補間対象座標の最近傍の注目画素を複写元の注目画素として選択することにより、縦横の直線の交差部など、3色以上の描画要素が直交する部分を検出してスムージング処理を回避することにより、直交部分での直線性や直交性を保つことができる。   In the present invention, the calculated influence degree is compared with a first threshold value (for example, 50% of the maximum influence degree), and when the influence degree is smaller than the first threshold value, the target pixel closest to the interpolation target coordinate is determined. select. The interpolation processing basically performs smoothing processing by rounding edges, and has a feature that right-angled edge portions are also rounded. In particular, in an orthogonal part where three or more background colors are adjacent, such as when a straight line in the vertical direction and a straight line in the horizontal direction intersect on the background color, the part (edge) that should be a straight line is distorted. It will occur. The degree of influence is compared with the first threshold, and for the interpolation target coordinates with a small degree of influence, the pixel of interest closest to the interpolation target coordinate is determined by suppressing the selection of the pixel of interest with the largest degree of influence. By selecting a pixel of interest as a copy source and detecting a portion where drawing elements of three or more colors are orthogonal, such as the intersection of vertical and horizontal straight lines, and avoiding smoothing processing, linearity and orthogonality in the orthogonal portion Can keep.

本発明にあっては、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定し、細線に属すると判定した注目画素の補間対象座標での影響度と第2閾値とを比較する。補間対象座標での影響度が第2閾値より大きい場合、その補間対象座標に対応付けて、細線に属すると判定した注目画素を選択する。そして、補間対象座標での影響度が第2閾値より小さい場合、その補間対象座標に対応付けて、影響度が最も大きい注目画素を選択する。これにより、斜め細線や孤立点を抽出して、その影響度を優先的に考慮することにより、斜め細線や孤立点が消えることを防ぐことができる。   In the present invention, it is determined whether or not the pixel of interest belongs to an oblique line having a width of one pixel or a thin line that is an isolated point, and the influence degree at the interpolation target coordinates of the pixel of interest determined to belong to the thin line and the second Compare with the threshold. If the degree of influence at the interpolation target coordinates is larger than the second threshold value, the target pixel determined to belong to the thin line is selected in association with the interpolation target coordinates. If the degree of influence at the interpolation target coordinates is smaller than the second threshold, the pixel of interest having the highest degree of influence is selected in association with the interpolation target coordinates. Thereby, it is possible to prevent the oblique thin lines and the isolated points from disappearing by extracting the oblique thin lines and the isolated points and preferentially considering the degree of influence thereof.

本発明にあっては、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定し、細線に属すると判定した注目画素の補間対象座標での影響度と第2閾値とを比較する。補間対象座標での影響度が第2閾値より大きい場合、その補間対象座標に対応付けて、細線に属すると判定した注目画素を選択する。そして、補間対象座標での影響度が第2閾値より小さい場合、算出した影響度と第1閾値とを比較する。補間対象座標での影響度が第1閾値より小さい場合、補間対象座標に最も近い注目画素を選択し、補間対象座標での影響度が第1閾値以上の場合、算出した影響度が最も大きい注目画素を選択する。これにより、斜め細線や孤立点の再現性及び直交部分での直線性や直交性を保ちつつ、輪郭形状に対するスムージング処理を行うことができる。   In the present invention, it is determined whether or not the pixel of interest belongs to an oblique line having a width of one pixel or a thin line that is an isolated point, and the influence degree at the interpolation target coordinates of the pixel of interest determined to belong to the thin line and the second Compare with the threshold. If the degree of influence at the interpolation target coordinates is larger than the second threshold value, the target pixel determined to belong to the thin line is selected in association with the interpolation target coordinates. When the influence degree at the interpolation target coordinates is smaller than the second threshold value, the calculated influence degree is compared with the first threshold value. When the influence level at the interpolation target coordinates is smaller than the first threshold value, the pixel of interest closest to the interpolation target coordinates is selected, and when the influence level at the interpolation target coordinates is equal to or greater than the first threshold value, the calculated attention level is the highest. Select a pixel. Thereby, it is possible to perform the smoothing process on the contour shape while maintaining the reproducibility of the oblique thin line and the isolated point and the linearity and orthogonality at the orthogonal portion.

本発明にあっては、注目画素とその注目画素と縦又は横方向で隣接する画素との同属性がないと判定した場合、細線に属すると判定する。例えば、注目画素の画素値(特徴量)と一致し、かつ縦横の4方向に対して隣接する(連続性を有する)画素数が注目画素を含めて1画素である場合(すなわち、注目画素自身だけの場合)には、その注目画素は細線に属すると判定する。これにより、1画素幅の斜め細線や孤立点であっても、線が消えないようにすることができる。   In the present invention, when it is determined that the pixel of interest and the pixel adjacent to the pixel of interest in the vertical or horizontal direction do not have the same attribute, it is determined that the pixel belongs to the thin line. For example, when the number of pixels that match the pixel value (feature value) of the target pixel and that are adjacent to the four vertical and horizontal directions (has continuity) is one pixel including the target pixel (that is, the target pixel itself) Only), it is determined that the target pixel belongs to a thin line. Thereby, even if it is a diagonal thin line of 1 pixel width or an isolated point, a line can be prevented from disappearing.

本発明にあっては、細線に属すると判定した注目画素と同属性のある画素数に応じて第2閾値を変更する。細線が長ければ影響度の絶対値が大きく、細線が短ければ影響度の絶対値が小さくなってしまうため、第2閾値を固定的に使用すると処理後の細線が、長い線の幅は広くなり、短い線の幅は狭くなる。第2閾値を線の長さに応じて変更することにより、線の長さにかかわらず処理後の線幅を一定に保つことができる。   In the present invention, the second threshold value is changed according to the number of pixels having the same attribute as the target pixel determined to belong to the thin line. If the fine line is long, the absolute value of the influence will be large, and if the fine line is short, the absolute value of the influence will be small. Therefore, if the second threshold value is used fixedly, the thin line after processing will have a long line with a wide width. , The width of the short line becomes narrower. By changing the second threshold according to the length of the line, the processed line width can be kept constant regardless of the length of the line.

本発明にあっては、輪郭部分に濃度や色のぼけが生じず、文字やテキストグラフィックスに好適な補間処理結果を得ることができる画像形成装置を提供することができる。   According to the present invention, it is possible to provide an image forming apparatus capable of obtaining an interpolation processing result suitable for characters and text graphics without causing density or color blur in the contour portion.

本発明によれば、輪郭部分に補間処理によるぼけを生じさせることなく、かつジャギーを低減したスムージング処理を行うことができる。   According to the present invention, smoothing processing with reduced jaggies can be performed without causing blur due to interpolation processing in the contour portion.

本発明に係る画像処理装置を備えるプリンタとしての画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus as a printer including an image processing apparatus according to the present invention. 高解像度化処理部の入力画像データである低解像度ラスタデータと出力画像データである高解像度ラスタデータとの位置関係を示す説明図である。It is explanatory drawing which shows the positional relationship of the low resolution raster data which is input image data of a high resolution process part, and the high resolution raster data which are output image data. 入力画像データの一例を示す説明図である。It is explanatory drawing which shows an example of input image data. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 影響度の算出方法を示す説明図である。It is explanatory drawing which shows the calculation method of an influence degree. 入力画像の各画素と補間画素の座標を示す説明図である。It is explanatory drawing which shows the coordinate of each pixel of an input image, and an interpolation pixel. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 影響度の一例を示す説明図である。It is explanatory drawing which shows an example of an influence degree. 高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by high resolution processing. 入力画像データの一例を示す説明図である。It is explanatory drawing which shows an example of input image data. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 影響度の一例を示す説明図である。It is explanatory drawing which shows an example of an influence degree. 高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by high resolution processing. 高解像度化処理によりグラデーション背景画像上の文字画像のエッジ部に発生するジャギー形状画像を示す説明図である。It is explanatory drawing which shows the jaggy shape image which generate | occur | produces in the edge part of the character image on a gradation background image by high resolution processing. 有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information at the time of using an effective determination range. 有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information at the time of using an effective determination range. 有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information at the time of using an effective determination range. 有効判定範囲を用いた場合の影響度の一例を示す説明図である。It is explanatory drawing which shows an example of the influence degree at the time of using an effective determination range. 有効判定範囲を用いた場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the resolution increasing process at the time of using an effective determination range. 入力画像データの一例を示す説明図である。It is explanatory drawing which shows an example of input image data. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 影響度の一例を示す説明図である。It is explanatory drawing which shows an example of an influence degree. 高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by high resolution processing. 画像属性値に応じた有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information at the time of using the effective determination range according to an image attribute value. 画像属性値に応じた有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information at the time of using the effective determination range according to an image attribute value. 画像属性値に応じた有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information at the time of using the effective determination range according to an image attribute value. 画像属性値に応じた有効判定範囲を用いた場合の影響度の一例を示す説明図である。It is explanatory drawing which shows an example of the influence degree at the time of using the effective determination range according to an image attribute value. 画像属性値に応じた有効判定範囲を用いた場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the resolution increasing process at the time of using the effective determination range according to an image attribute value. 画像属性値に応じた補間画素値算出の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel value calculation according to an image attribute value. 画像属性値に応じた補間画素値算出の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the interpolation pixel value calculation according to an image attribute value. 3色の直交部分を有する入力画像の各画素と補間画素の座標を示す説明図である。It is explanatory drawing which shows the coordinate of each pixel of an input image which has an orthogonal part of 3 colors, and an interpolation pixel. 3色の直交部分を有する場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information in the case of having an orthogonal part of three colors. 3色の直交部分を有する場合の影響度の一例を示す説明図である。It is explanatory drawing which shows an example of the influence degree in the case of having an orthogonal part of 3 colors. 3色の直交部分を有する場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the high resolution process in the case of having an orthogonal part of 3 colors. 4色の直交部分を有する入力画像の各画素と補間画素の座標を示す説明図である。It is explanatory drawing which shows the coordinate of each pixel and interpolation pixel of an input image which has an orthogonal part of 4 colors. 4色の直交部分を有する場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information in the case of having an orthogonal part of 4 colors. 4色の直交部分を有する場合の影響度の一例を示す説明図である。It is explanatory drawing which shows an example of the influence degree in the case of having an orthogonal part of 4 colors. 4色の直交部分を有する場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the high resolution process in the case of having an orthogonal part of 4 colors. 細線レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of thin line layer information. 細線レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of thin line layer information. 入力画像の各画素と補間画素の座標を示す説明図である。It is explanatory drawing which shows the coordinate of each pixel of an input image, and an interpolation pixel. 同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information. 影響度の一例を示す説明図である。It is explanatory drawing which shows an example of an influence degree. 細線レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of thin line layer information. 高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by high resolution processing. 細線影響度の閾値テーブルの一例を示す。An example of the threshold table of a thin line influence degree is shown. 文字領域とベクタグラフィックス領域からなる2色の入力画像の各画素と補間画素の座標を示す説明図である。It is explanatory drawing which shows the coordinate of each pixel and interpolation pixel of the input image of 2 colors which consists of a character area and a vector graphics area. タグ情報を使用しない場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the same attribute layer information when not using tag information. タグ情報を使用しない場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the resolution increasing process when not using tag information. タグ情報を使用した場合の同属性レイヤ情報の一例を示す説明図である。It is explanatory drawing which shows an example of the attribute layer information at the time of using tag information. タグ情報を使用しない場合の高解像度化処理による補間画素の一例を示す説明図である。It is explanatory drawing which shows an example of the interpolation pixel by the resolution increasing process when not using tag information. 本発明の高解像度化処理後の画像の一部を示す説明図である。It is explanatory drawing which shows a part of image after the high resolution process of this invention. 本発明の高解像度化処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the high resolution process of this invention. 本発明の高解像度化処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the high resolution process of this invention. 原画像の一部を示す説明図である。It is explanatory drawing which shows a part of original image. 従来例としての最近傍補間による処理後の画像の一部を示す説明図である。It is explanatory drawing which shows a part of image after the process by the nearest neighbor interpolation as a prior art example. 従来例としての線形補間による処理後の画像の一部を示す説明図である。It is explanatory drawing which shows a part of image after the process by the linear interpolation as a prior art example. 従来例としての近傍画素比較による補間後の画像の一部を示す説明図である。It is explanatory drawing which shows a part of image after the interpolation by the neighboring pixel comparison as a prior art example.

以下、本発明を実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置を備えるプリンタ2としての画像形成装置の構成を示すブロック図である。図1に示すように、プリンタ2は、ネットワーク等でコンピュータ1と接続されており、コンピュータ1上で画像編集ソフトなどのアプリケーションソフトウェア11を用いて作成された画像データは、プリンタドライバ12にてページ記述言語に変換され、プリンタ2へ伝送される。   Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram showing a configuration of an image forming apparatus as a printer 2 including an image processing apparatus according to the present invention. As shown in FIG. 1, a printer 2 is connected to a computer 1 via a network or the like, and image data created on the computer 1 using application software 11 such as image editing software is paged by a printer driver 12. It is converted into a description language and transmitted to the printer 2.

画像形成装置としてのプリンタ2は、画像処理装置としての画像処理部21、画像形成手段としての印字エンジン部22などを備えている。コンピュータ1から伝送されたページ記述言語データは、画像処理部21にてエンジン出力用データに変換され、印字エンジン部22で紙媒体などに対して画像形成が行われる。   The printer 2 as an image forming apparatus includes an image processing unit 21 as an image processing apparatus, a print engine unit 22 as an image forming unit, and the like. The page description language data transmitted from the computer 1 is converted into engine output data by the image processing unit 21, and an image is formed on a paper medium or the like by the print engine unit 22.

画像処理部21は、ラスタデータ生成部211、高解像度化処理部212、中間調処理部213などを備えている。ラスタデータ生成部211は、コンピュータ1から伝送されたページ記述言語を解析して、多値の低解像度ラスタデータを生成する。次に、高解像度化処理部212は、低解像度ラスタデータに対して、補間処理及びスムージング処理を施し、多値の高解像度ラスタデータを生成し、中間調処理部213へ出力する。中間調処理部213は、高解像度ラスタデータを、印字エンジン部22への出力形式に合わせたエンジン出力用データに変換する。   The image processing unit 21 includes a raster data generation unit 211, a high resolution processing unit 212, a halftone processing unit 213, and the like. The raster data generation unit 211 analyzes the page description language transmitted from the computer 1 and generates multivalued low-resolution raster data. Next, the high resolution processing unit 212 performs interpolation processing and smoothing processing on the low resolution raster data, generates multi-value high resolution raster data, and outputs it to the halftone processing unit 213. The halftone processing unit 213 converts the high resolution raster data into engine output data that matches the output format to the print engine unit 22.

ラスタデータ生成部211で行われるページ記述言語解析及び低解像度ラスタデータの生成は、複雑な演算処理を伴うため汎用のCPUで所定の処理手順を定めたプログラムコードを実行する構成とするのが一般的であり、ページ記述言語データの複雑さによって処理時間が大きく変動する。更に出力する低解像度ラスタデータの解像度の二乗に比例して処理時間が長くなる傾向があるため、複雑なページ記述言語データから解像度の高いラスタデータを生成する場合には、実用的でない程度の長い処理時間を要することがある。   Since the page description language analysis and low-resolution raster data generation performed by the raster data generation unit 211 involve complicated arithmetic processing, a general-purpose CPU generally executes a program code that defines a predetermined processing procedure. The processing time varies greatly depending on the complexity of the page description language data. Furthermore, the processing time tends to increase in proportion to the square of the resolution of the low-resolution raster data to be output. Therefore, when generating high-resolution raster data from complex page description language data, it is not practical. Processing time may be required.

一方、ラスタデータ生成後の処理は、複雑ではあるが定型的な処理であるため、DSP(Digital Signal Processor)や並列プロセッサの使用、あるいは、ハードウェア化によって所要の短時間内で処理を行うことが可能である。このため、ラスタデータ生成部211では低解像度データを生成して、変動的で解像度に依存する処理時間を短く抑えるとともに、高解像度化処理部212、中間調処理部213ではDSPや並列プロセッサ、あるいはハードウェア化によって処理時間を短くし、画像処理部21全体の処理時間を大幅に短くすることができる。   On the other hand, the processing after raster data generation is a complex but routine process, so the processing must be performed within the required short time by using a DSP (Digital Signal Processor) or parallel processor, or by hardware. Is possible. For this reason, the raster data generation unit 211 generates low-resolution data to reduce the processing time that is variable and depends on the resolution, and the high-resolution processing unit 212 and the halftone processing unit 213 have a DSP, parallel processor, or The processing time can be shortened by hardware, and the processing time of the entire image processing unit 21 can be significantly shortened.

次に、高解像度化処理部212について説明する。高解像度化処理部212は、同属性レイヤ抽出部2121、レイヤ情報補間部2122、レイヤ情報フィルタ部2123、細線レイヤ抽出部2124、複写元画素選択部2125、画素特徴量複写部2126などを備えている。   Next, the resolution enhancement processing unit 212 will be described. The high resolution processing unit 212 includes the same attribute layer extraction unit 2121, a layer information interpolation unit 2122, a layer information filter unit 2123, a fine line layer extraction unit 2124, a copy source pixel selection unit 2125, a pixel feature amount copy unit 2126, and the like. Yes.

同属性レイヤ抽出部2121は、同属性判定手段及び同属性情報を抽出する抽出手段として機能し、入力画像データとしての低解像度ラスタデータから、補間対象座標の周囲の注目画素と画素値(特徴量)が同じ画素領域を示す同属性レイヤ情報(同属性情報)を抽出する。   The attribute layer extraction unit 2121 functions as an attribute determination unit and an extraction unit that extracts the attribute information, and from a low-resolution raster data as input image data, a target pixel and a pixel value (feature amount) around an interpolation target coordinate. ) Extract the same attribute layer information (same attribute information) indicating the same pixel region.

同属性情報補間手段としてのレイヤ情報補間部2122は、一般的な補間処理により、各補間対象座標における同属性レイヤ情報の補間値(補間レイヤ情報)を求める。   A layer information interpolation unit 2122 serving as the same attribute information interpolation unit obtains an interpolation value (interpolation layer information) of the same attribute layer information at each interpolation target coordinate by a general interpolation process.

影響度算出手段としてのレイヤ情報フィルタ部2123は、補間レイヤ情報にローパスフィルタ処理を施し、その結果を各補間対象座標での注目画素による影響度として出力する。   The layer information filter unit 2123 serving as an influence degree calculating unit performs a low-pass filter process on the interpolation layer information, and outputs the result as an influence degree of the pixel of interest at each interpolation target coordinate.

細線判定手段としての細線レイヤ抽出部2124は、注目画素が細線であるかどうかを判定し、その結果を細線レイヤ情報として出力する。また、細線レイヤ抽出部2124は、細線に属すると判定した注目画素と同属性のある画素数に応じて第2閾値を変更する変更手段としての機能を備える。   A thin line layer extraction unit 2124 as a thin line determination unit determines whether or not the target pixel is a thin line, and outputs the result as thin line layer information. Further, the fine line layer extraction unit 2124 has a function as changing means for changing the second threshold according to the number of pixels having the same attribute as the target pixel determined to belong to the fine line.

一組の注目画素群を選択する選択手段及び補間画素値算出手段としての複写元画素選択部2125は、レイヤ情報フィルタ部2123で求めた影響度と細線レイヤ情報から各補間対象座標に対応させた複写元画素を選択して複写元画素情報として出力する。これにより、複写元画素の画素値(特徴量)が、それぞれの補間対象座標における補間画素の画素値として複写される。   The copy source pixel selection unit 2125 serving as a selection unit that selects a set of target pixel groups and an interpolation pixel value calculation unit associates each interpolation target coordinate with the degree of influence obtained by the layer information filter unit 2123 and the thin line layer information. A copy source pixel is selected and output as copy source pixel information. As a result, the pixel value (feature value) of the copy source pixel is copied as the pixel value of the interpolation pixel at each interpolation target coordinate.

また、複写元画素選択部2125は、レイヤ情報フィルタ部2123から出力された影響度と所定の第1閾値とを比較する第1比較手段としての機能、及び影響度と所定の第2閾値とを比較する第2比較手段としての機能を備える。   Further, the copy source pixel selection unit 2125 has a function as a first comparison unit that compares the influence level output from the layer information filter unit 2123 with a predetermined first threshold value, and the influence level and the predetermined second threshold value. It has a function as a second comparison means for comparing.

画素特徴量複写部2126は、複写元画素情報にもとづき、各補間対象座標に対応付けて選択された複写元画素の画素値(特徴量)を複写することにより、高解像度ラスタデータを生成する。   The pixel feature amount copying unit 2126 generates high-resolution raster data by copying the pixel value (feature amount) of the copy source pixel selected in association with each interpolation target coordinate based on the copy source pixel information.

次に、低解像度ラスタデータから高解像度ラスタデータへの高解像度化処理について説明する。図2は高解像度化処理部212の入力画像データである低解像度ラスタデータと出力画像データである高解像度ラスタデータとの位置関係を示す説明図である。図2において、白抜きの丸印は入力画像データとしての低解像度ラスタデータを示し、黒丸印は補間処理後の出力画像データとしての高解像度ラスタデータを示す。本実施の形態では、4×4画素の低解像度ラスタデータに対し、縦方向(垂直方向)にM倍、横方向(水平方向)にN倍の補間を行って、高解像度ラスタデータを出力する場合について説明する。なお、ラスタデータの画素数は、図2の例に限定されるものではない。また、dX、dYは、補間前の画素と補間後の最も近い画素とのずれ量(それぞれ横方向、縦方向)を示し、補間倍率であるM、Nとずれ量dY、dXとにより、高解像度ラスタデータの補間画素の座標が決定される。   Next, high resolution processing from low resolution raster data to high resolution raster data will be described. FIG. 2 is an explanatory diagram showing the positional relationship between the low-resolution raster data that is the input image data and the high-resolution raster data that is the output image data of the high-resolution processing unit 212. In FIG. 2, white circles indicate low resolution raster data as input image data, and black circles indicate high resolution raster data as output image data after interpolation processing. In the present embodiment, low resolution raster data of 4 × 4 pixels is subjected to interpolation of M times in the vertical direction (vertical direction) and N times in the horizontal direction (horizontal direction) to output high resolution raster data. The case will be described. Note that the number of pixels of raster data is not limited to the example of FIG. Further, dX and dY indicate deviation amounts (horizontal direction and vertical direction, respectively) between the pixel before interpolation and the nearest pixel after interpolation, and the interpolation magnifications M and N and deviation amounts dY and dX indicate a high amount. The coordinates of the interpolation pixel of the resolution raster data are determined.

本実施の形態での高解像度化処理は、入力画像データ(低解像度ラスタデータ)内の2×2画素格子に着目し、その2×2画素及びその周囲の4×4画素(参照画素)の画素情報(例えば、画素値)に基づいて、2×2画素格子内の補間対象座標における補間画素の情報(例えば、画素値)を求める処理を基本処理とする。そして、着目する2×2画素格子を横及び縦方向に走査しつつ同様の処理を繰り返すことにより、入力画像全体の補間画像を得るものである。   The high resolution processing in the present embodiment focuses on a 2 × 2 pixel grid in input image data (low resolution raster data), and the 2 × 2 pixels and surrounding 4 × 4 pixels (reference pixels). Based on the pixel information (for example, pixel value), a process for obtaining information (for example, pixel value) of the interpolation pixel at the interpolation target coordinates in the 2 × 2 pixel grid is a basic process. Then, an interpolated image of the entire input image is obtained by repeating the same processing while scanning the focused 2 × 2 pixel grid in the horizontal and vertical directions.

補間倍率M、Nは、入力画像データと出力画像データとの解像度比である。補間倍率M、Nは、非整数値でも処理可能であるが、その場合には着目する2×2画素格子毎にずれ量dY、dXをはじめ各補間画素の相対座標を再計算する必要があるため、処理が複雑になる。そこで、補間倍率M、Nを整数値とすることにより、処理を簡略化することが可能であり、ずれ量dY、dXも定数値とすることができる。図2の例では、M、Nを整数値とし、ずれ量をそれぞれdY=1/2M、dX=1/2N (入力画像の画素間距離=1と仮定)とした場合を示す。   The interpolation magnifications M and N are resolution ratios between the input image data and the output image data. The interpolation magnifications M and N can be processed even with non-integer values, but in that case, it is necessary to recalculate the relative coordinates of each interpolation pixel including the shift amounts dY and dX for each 2 × 2 pixel grid of interest. Therefore, the process becomes complicated. Therefore, the processing can be simplified by setting the interpolation magnifications M and N to integer values, and the shift amounts dY and dX can also be set to constant values. The example of FIG. 2 shows a case where M and N are integer values, and the shift amounts are dY = 1 / 2M and dX = 1 / 2N (assuming that the inter-pixel distance of the input image is 1).

次に、低解像度ラスタデータから同属性情報としての同属性レイヤ情報を抽出する方法について説明する。図3は入力画像データの一例を示す説明図であり、図4及び図5は同属性レイヤ情報の一例を示す説明図である。図3においては、4×4画素の入力画像データ(低解像度ラスタデータ)には、A色画素、B色画素、C色画素の3色の画素が含まれているとする。各画素の特徴量は、例えば、モノクロ(白黒)画像であれば濃度値、カラー画像であればRGBやCMYKなど各色要素の濃度値に相当し、さらに、各画素の属性(文字、ベクタグラフィックス、写真領域など)を示すタグ情報などの追加情報を加えることもできる。本実施の形態では、全色要素の濃度値が一致している画素を特徴量が同じである(画素値が同一である)と判断することができる。なお、特徴量の全部一致のみならず、一部一致を判定することもできる。また、画素の特徴量を便宜上A、B、Cで表わす。   Next, a method for extracting the same attribute layer information as the same attribute information from the low resolution raster data will be described. FIG. 3 is an explanatory diagram showing an example of input image data, and FIGS. 4 and 5 are explanatory diagrams showing an example of the attribute layer information. In FIG. 3, it is assumed that 4 × 4 pixel input image data (low-resolution raster data) includes pixels of three colors, an A color pixel, a B color pixel, and a C color pixel. The feature amount of each pixel corresponds to, for example, a density value for a monochrome (monochrome) image, a density value for each color element such as RGB or CMYK for a color image, and further, an attribute (character, vector graphics) of each pixel. Additional information such as tag information indicating a photo area) can also be added. In the present embodiment, it is possible to determine that the pixels having the same density values of all the color elements have the same feature amount (the pixel values are the same). Note that it is possible to determine not only matching of all feature quantities but also partial matching. In addition, pixel feature amounts are represented by A, B, and C for convenience.

図4(a)、図4(b)、図5(c)、図5(d)は、それぞれ図3の例で示す中央の2×2画素格子内の補間画素(補間データ)を得ることを目的に、入力画像データの4×4画素を参照画素(画素ブロック)として、2×2画素格子の4つの注目画素(1、1)、(1、2)、(2、1)、(2、2)それぞれに対応した4組の同属性レイヤ情報を求める方法を示している。同属性レイヤ情報は、注目画素とその周辺に存在する参照画素とが同属性を有しているか否かを示す情報であり、例えば、同属性があれば「1」を、同属性がなければ「0」を割り当てることにより、二値化データとして表わすことができる。以下、図4(a)の例を用いて同属性レイヤ情報の求め方について具体的に説明する。   4 (a), 4 (b), 5 (c), and 5 (d), respectively, obtain interpolation pixels (interpolation data) in the central 2 × 2 pixel grid shown in the example of FIG. For the purpose of 4 × 4 pixels of the input image data as reference pixels (pixel blocks), the four target pixels (1, 1), (1, 2), (2, 1), ( 2 and 2) shows a method of obtaining four sets of the same attribute layer information corresponding to each. The same attribute layer information is information indicating whether or not the target pixel and reference pixels existing in the vicinity thereof have the same attribute. For example, “1” is present if the same attribute exists, and “1” is present if there is no same attribute. By assigning “0”, it can be expressed as binarized data. Hereinafter, the method for obtaining the attribute layer information will be described in detail with reference to the example of FIG.

図4(a)は、2×2画素格子のうち、画素(1、1)を注目画素として求めた同属性レイヤ情報である。図4(a)において、各画素を示す丸印内に記されている数値は、注目画素(1、1)からの距離を示し、この数値(距離)の小さい画素群から順に特徴量の同一性及び画素の連続性の判定を行う。なお、連続性の判定は、判定対象画素の周囲8画素(縦、横、斜めの8方向)に、注目画素、あるいは、すでに判定済みの同属性画素が存在する(隣接する)場合に連続であると判定する。これらの処理を距離1の画素群から距離5の画素群まで繰り返すことにより、全画素についての判定を行う。なお、図4、図5では、結果として同属性ありと判定された画素を黒丸印、同属性なしと判定された画素を白抜き丸印として記している。   FIG. 4A shows the same attribute layer information obtained by using the pixel (1, 1) as the target pixel in the 2 × 2 pixel grid. In FIG. 4A, the numerical value indicated in a circle indicating each pixel indicates the distance from the target pixel (1, 1), and the feature amount is the same in order from the pixel group having the smaller numerical value (distance). And determination of continuity of pixels. The determination of continuity is continuous when the pixel of interest or the same attribute pixel that has already been determined exists (adjacent) in the eight pixels (vertical, horizontal, and diagonal eight directions) around the determination target pixel. Judge that there is. By repeating these processes from the pixel group at the distance 1 to the pixel group at the distance 5, the determination is made for all the pixels. In FIGS. 4 and 5, pixels that are determined to have the same attribute as a result are indicated by black circles, and pixels that are determined not to have the same attribute are indicated by white circles.

次に、同属性の有無の判定手順について説明する。まず、注目画素(1、1)からの距離が1である画素群に対し、ステップ1として、画素(0、1)は、注目画素(1、1)と異色であり、かつ連続(隣接)しているので、非同属性(同属性なし)と判定する。以下、同様に、画素(1、0)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(1、2)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(2、1)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。   Next, a procedure for determining whether or not the attribute exists is described. First, for a pixel group whose distance from the target pixel (1, 1) is 1, as Step 1, the pixel (0, 1) is different from the target pixel (1, 1) and is continuous (adjacent). Therefore, it is determined that the attribute is not the same (no attribute is the same). Hereinafter, similarly, since the pixel (1, 0) is different in color from the target pixel (1, 1) and is continuous, it is determined to have the same attribute. Since the pixel (1, 2) is different from the target pixel (1, 1) and is continuous, the pixel (1, 2) is determined to have the same attribute. Since the pixel (2, 1) is different from the target pixel (1, 1) and is continuous, the pixel (2, 1) is determined to have the same attribute.

次に、注目画素(1、1)からの距離が2である画素群に対し、ステップ2として、画素(0、0)は、注目画素(1、1)と同色であり、かつ連続(隣接)しているので、同属性(同属性あり)と判定する。同様に、画素(0、2)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(2、0)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(2、2)は、注目画素(1、1)と同色であり、かつ連続しているので、同属性と判定する。   Next, for the pixel group whose distance from the target pixel (1, 1) is 2, as Step 2, the pixel (0, 0) has the same color as the target pixel (1, 1) and is continuous (adjacent). Therefore, it is determined that the attribute is the same (has the same attribute). Similarly, since the pixel (0, 2) is different in color from the target pixel (1, 1) and is continuous, it is determined to have the same attribute. Since the pixel (2, 0) is different in color from the target pixel (1, 1) and is continuous, the pixel (2, 0) is determined to have the same attribute. Since the pixel (2, 2) has the same color as the pixel of interest (1, 1) and is continuous, the pixel (2, 2) is determined to have the same attribute.

次に、注目画素(1、1)からの距離が3である画素群に対し、ステップ3として、画素(1、3)は、注目画素(1、1)と異色であり、かつ同属性画素(2、2)と連続しているので、非同属性と判定する。同様に、画素(3、1)は、注目画素(1、1)と異色であり、かつ同属性画素(2、2)と連続しているので、非同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 3, as Step 3, the pixel (1, 3) is different from the target pixel (1, 1) and has the same attribute. Since it is continuous with (2, 2), it is determined that the attribute is not the same. Similarly, the pixel (3, 1) has a different color from the target pixel (1, 1) and is continuous with the same attribute pixel (2, 2).

次に、注目画素(1、1)からの距離が4である画素群に対し、ステップ4として、画素(0、3)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。画素(2、3)は、注目画素(1、1)と異色であり、かつ同属性画素(2、2)と連続しているので、非同属性と判定する。画素(3、0)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。画素(3、2)は、注目画素(1、1)と異色であり、かつ同属性画素(2、2)と連続しているので、非同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 4, as Step 4, the pixel (0, 3) is different in color from the target pixel (1, 1), and the continuous pixels are Because there is no attribute, it is determined that the attribute is not the same. Since the pixel (2, 3) is different in color from the pixel of interest (1, 1) and is continuous with the same attribute pixel (2, 2), it is determined that the pixel (2, 3) has the same attribute. The pixel (3, 0) is different in color from the target pixel (1, 1) and has no continuous pixel, so it is determined to have the same attribute. Since the pixel (3, 2) is different in color from the target pixel (1, 1) and is continuous with the same attribute pixel (2, 2), the pixel (3, 2) is determined to have the same attribute.

次に、注目画素(1、1)からの距離が5である画素群に対し、ステップ5として、画素(3、3)は、注目画素(1、1)と同色であり、かつ同属性画素(2、2)と連続しているので、同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 5, as Step 5, the pixel (3, 3) is the same color as the target pixel (1, 1) and has the same attribute. Since it is continuous with (2, 2), it is determined that the attribute is the same.

以上で全画素の同属性の判定が完了する。この判定結果による同属性画素を1、非同属性画素を0とした領域情報を、注目画素(1、1)の同属性レイヤ情報として出力する。上述の処理を、注目画素(1、2)、(2、1)、(2、2)についても同様に行うことにより、4つの注目画素に対応する4つの同属性レイヤ情報を得ることができる。   This completes the determination of the same attribute for all pixels. The region information with the same attribute pixel as 1 and the non-same attribute pixel as 0 according to the determination result is output as the same attribute layer information of the pixel of interest (1, 1). The same processing is performed for the target pixel (1, 2), (2, 1), (2, 2) in the same manner, so that four pieces of attribute layer information corresponding to the four target pixels can be obtained. .

上述のようにして得られた同属性レイヤ情報に対し、レイヤ情報補間部2122において多値化及び補間処理を行う。同属性レイヤ情報は、「1」、「0」の二値情報であるので、この情報を多値化することで、影響度を多値で表わすことができる。補間対象座標の位置は、図2に示す高解像度ラスタデータの座標位置に準じる。レイヤ情報補間部2122は、補間対象座標(高解像度ラスタデータの座標)における同属性レイヤの補間値を算出して補間レイヤ情報として出力する。本実施の形態では、多値化データを0、100とし、補間レイヤ情報である補間値も0〜100の範囲内の値として出力する。なお、多値化データは、0、100に限定されるものではなく、補間値の範囲も0〜100に限定されるものではない。   For the same attribute layer information obtained as described above, the layer information interpolation unit 2122 performs multi-value conversion and interpolation processing. Since the attribute layer information is binary information of “1” and “0”, the influence degree can be expressed in multiple values by converting this information into multiple values. The position of the interpolation target coordinates conforms to the coordinate position of the high resolution raster data shown in FIG. The layer information interpolation unit 2122 calculates the interpolation value of the same attribute layer at the interpolation target coordinates (the coordinates of the high resolution raster data), and outputs it as interpolation layer information. In this embodiment, multi-value data is set to 0 and 100, and an interpolation value that is interpolation layer information is also output as a value within a range of 0 to 100. Note that multi-value data is not limited to 0 and 100, and the range of interpolation values is not limited to 0 to 100.

なお、補間レイヤ情報を求めるための補間方法としては、後続の処理のために原画像の画素と補間画素との距離によって出力値に有意差があることが必要であるため、最近傍補間を適用することができない。本実施の形態では、一般的な補間方法のうち、上記条件を満たす最も単純な補間方法として、線形補間を使用するものとするが、その他の非線形補間を用いることもできる。   As the interpolation method for obtaining the interpolation layer information, it is necessary to have a significant difference in output value depending on the distance between the pixel of the original image and the interpolation pixel for subsequent processing. Can not do it. In the present embodiment, linear interpolation is used as the simplest interpolation method that satisfies the above conditions among general interpolation methods, but other nonlinear interpolation can also be used.

図6は影響度の算出方法を示す説明図である。図6において、4×4画素の領域内に示す白抜き丸印は、レイヤ情報フィルタ部2123への入力データである補間レイヤ情報を示し、黒丸印は、レイヤ情報フィルタ部2123からの出力データである影響度を示す。図6に示すように、2×2画素格子の4つの注目画素それぞれに対して、2×2画素格子内の各補間対象座標に対応して影響度が求められる。   FIG. 6 is an explanatory diagram showing a method for calculating the influence degree. In FIG. 6, white circles in the 4 × 4 pixel area indicate interpolation layer information that is input data to the layer information filter unit 2123, and black circles indicate output data from the layer information filter unit 2123. Indicates a certain degree of influence. As shown in FIG. 6, the influence degree is obtained for each of the four target pixels of the 2 × 2 pixel grid corresponding to each interpolation target coordinate in the 2 × 2 pixel grid.

具体的には、図6に示すように、影響度を求める補間対象座標を中心に所定の範囲(図
6の破線で示す範囲)内の入力データに対し、ローパスフィルタ特性を有するマトリクス
演算を行うことによって個々の出力データを得ることができる。本実施の形態では、最も簡単なローパスフィルタの一つである移動平均法を用いることとし、マトリクス演算の係数を全て1/(所定の範囲内の画素の総数)とする。このローパスフィルタの出力値を各補間対象座標での注目画素による影響度として出力する。
Specifically, as shown in FIG. 6, a matrix operation having a low-pass filter characteristic is performed on input data within a predetermined range (a range indicated by a broken line in FIG. 6) centering on the interpolation target coordinates for obtaining the influence degree. Thus, individual output data can be obtained. In the present embodiment, the moving average method, which is one of the simplest low-pass filters, is used, and the matrix calculation coefficients are all 1 / (total number of pixels within a predetermined range). The output value of this low-pass filter is output as the degree of influence by the pixel of interest at each interpolation target coordinate.

なお、精度は低下するが、各注目画素に対して所定ブロック(例えば、各注目画素の周囲3×3画素)内の同じ色に属する画素数を求め、その値に該注目画素から補間対象座標までの距離を乗じることにより、補間対象座標に対する注目画素による影響度を求めるようにしてもよい。   Although accuracy is reduced, the number of pixels belonging to the same color in a predetermined block (for example, 3 × 3 pixels around each target pixel) is obtained for each target pixel, and the interpolation target coordinates are calculated from the target pixel as the value. The degree of influence of the pixel of interest on the interpolation target coordinates may be obtained by multiplying the distance up to.

次に、高解像度化処理の基本処理について説明する。図7は入力画像の各画素と補間画素の座標を示す説明図であり、図8は同属性レイヤ情報の一例を示す説明図であり、図9は影響度の一例を示す説明図であり、図10は高解像度化処理による補間画素の一例を示す説明図である。図7において、白丸印は、入力画像データの各画素の座標を示し、黒点は出力画像データである高解像度化処理後の補間画素の座標を示し、両者の位置の関係を示す。白丸内のA、Bは、それぞれ画素の色(特徴量)を示している。なお、中央の2×2画素格子の各画素が、注目画素(1、1)、(1、2)、(2、1)、(2、2)である。   Next, basic processing for high resolution processing will be described. FIG. 7 is an explanatory diagram showing coordinates of each pixel and interpolation pixel of the input image, FIG. 8 is an explanatory diagram showing an example of the same attribute layer information, and FIG. 9 is an explanatory diagram showing an example of the influence degree, FIG. 10 is an explanatory diagram showing an example of an interpolated pixel obtained by the high resolution processing. In FIG. 7, white circles indicate the coordinates of each pixel of the input image data, and black dots indicate the coordinates of the interpolation pixel after the high resolution processing that is the output image data, and indicate the relationship between the positions. A and B in white circles indicate pixel colors (features), respectively. In addition, each pixel of the center 2 × 2 pixel lattice is the target pixel (1, 1), (1, 2), (2, 1), (2, 2).

図8(a)、図8(b)、図8(c)、図8(d)は、図8中太い丸印で示される注目画素(1、1)、(1、2)、(2、1)、(2、2)に対応する同属性レイヤ情報(1、1)、同属性レイヤ情報(1、2)、同属性レイヤ情報(2、1)、同属性レイヤ情報(2、2)である。丸印内の数値は同属性の有無を表わし、「1」が同属性(同属性あり)、「0」が非同属性(同属性なし)を表わす。   8A, FIG. 8B, FIG. 8C, and FIG. 8D are the target pixels (1, 1), (1, 2), (2) indicated by thick circles in FIG. 1), (2, 2) corresponding attribute layer information (1, 1), attribute layer information (1, 2), attribute layer information (2, 1), attribute layer information (2, 2) ). Numerical values in circles indicate the presence or absence of the same attribute, “1” indicates the same attribute (with the same attribute), and “0” indicates the non-same attribute (without the same attribute).

図9(a)、図9(b)、図9(c)、図9(d)は、注目画素(1、1)、(1、2)、(2、1)、(2、2)による影響度を示す。図9において、補間対象座標を示す丸印内の数値が、各補間対象座標での注目画素による影響度(例えば、0〜100の範囲)を表す。なお、補間対象座標は、2×2画素格子の4つの注目画素で囲まれる領域内で、便宜上、4×4画素の座標(4×4画素の補間画素)であるとする。   9 (a), 9 (b), 9 (c), and 9 (d) show the target pixel (1, 1), (1, 2), (2, 1), (2, 2). Indicates the degree of influence. In FIG. 9, the numerical value in the circle indicating the interpolation target coordinates represents the degree of influence (for example, a range of 0 to 100) by the target pixel at each interpolation target coordinate. The interpolation target coordinates are assumed to be 4 × 4 pixel coordinates (4 × 4 pixel interpolation pixels) for convenience in an area surrounded by four pixels of interest in a 2 × 2 pixel grid.

図10は4×4画素の各補間対象座標での4つの注目画素の影響度を比較し、最も影響度の大きい注目画素を選択した結果を示す。例えば、図9に示すように、左上の補間対象座標での影響度は、注目画素Aについては87であり、注目画素Bについては13であるので、注目画素Aを選択する。同様に、右下の補間対象座標での影響度は、注目画素Aについては41であり、注目画素Bについては59であるので、注目画素Bを選択する。他の補間対象座標についても同様である。   FIG. 10 shows the result of selecting the pixel of interest having the greatest influence by comparing the degrees of influence of the four pixels of interest at the 4 × 4 pixel interpolation target coordinates. For example, as shown in FIG. 9, since the influence degree in the upper left interpolation target coordinates is 87 for the target pixel A and 13 for the target pixel B, the target pixel A is selected. Similarly, the degree of influence at the lower right interpolation target coordinate is 41 for the target pixel A and 59 for the target pixel B, and therefore the target pixel B is selected. The same applies to other interpolation target coordinates.

図10に示す影響度最大画素を複写元画素とし、画素特徴量複写部2126において複写元画素(選択した注目画素)から補間対象座標に選択した注目画素の特徴量を複写することにより、出力の高解像度ラスタデータを得ることができる。なお、本実施の形態では、参照画素として、入力画像データのうち、4×4画素を参照する構成であるが、画素ブロックとしての参照画素は、これに限定されるものではなく、参照画素の範囲をさらに広くすることにより、出力画像の輪郭をよりスムーズにすることが可能である。そして、目的に応じて参照範囲を指定することにより、任意の滑らかさのスムージング結果を得ることができる。   The pixel having the maximum influence level shown in FIG. 10 is set as a copy source pixel, and the pixel feature value copying unit 2126 copies the feature value of the target pixel selected from the copy source pixel (selected target pixel) to the interpolation target coordinates. High resolution raster data can be obtained. In the present embodiment, 4 × 4 pixels of the input image data are referred to as the reference pixels, but the reference pixels as the pixel blocks are not limited to this, and the reference pixels By further widening the range, it is possible to make the contour of the output image smoother. A smoothing result having an arbitrary smoothness can be obtained by designating a reference range according to the purpose.

上述の図2〜図10を用いた説明においては、全色要素の濃度値が一致している画素を特徴量が同じである(画素値が同一である)と判断したが、これに限定されるものではなく、特徴量に所定の範囲を設けることにより、該範囲内であれば一致していると判断するように構成することもできる。すなわち、注目画素毎に、参照画素(画素ブロック)内の各画素の画素値が、注目画素の画素値に対して設けられた画素値範囲(特徴量の範囲)に含まれるか否か(一致するか否か)に応じて同属性の有無を判定することができる。以下、この点について説明する。   In the description using FIGS. 2 to 10 described above, it is determined that the pixels having the same density value of all the color elements have the same feature amount (the pixel values are the same). However, the present invention is not limited to this. Instead of providing a predetermined range for the feature amount, it can be determined that the feature amount is matched within the range. That is, for each target pixel, whether or not the pixel value of each pixel in the reference pixel (pixel block) is included in the pixel value range (feature amount range) provided for the pixel value of the target pixel (match) The presence or absence of the same attribute can be determined according to whether or not to do so. Hereinafter, this point will be described.

図11は入力画像データの一例を示す説明図であり、図12及び図13は同属性レイヤ情報の一例を示す説明図であり、図14は同属性レイヤ情報の一例を示す説明図であり、図15は影響度の一例を示す説明図であり、図16は高解像度化処理による補間画素の一例を示す説明図である。   11 is an explanatory diagram illustrating an example of input image data, FIGS. 12 and 13 are explanatory diagrams illustrating an example of the same attribute layer information, and FIG. 14 is an explanatory diagram illustrating an example of the same attribute layer information. FIG. 15 is an explanatory diagram illustrating an example of the degree of influence, and FIG. 16 is an explanatory diagram illustrating an example of an interpolation pixel obtained by the high resolution processing.

図11に示すように、入力画像データの各画素の特徴量がRGB値である4×4入力画像を一例として、以下説明する。この例では、R、G、およびBは各々0〜255の値をとるものとし、各座標のRGB値は以下の通りとする。(1)座標が(2、1)、(3、2)の画素は、(R、G、B)=(0、255、0)とする。(2)座標が(1、0)、(2、0)、(3、1)の画素は、(R、G、B)=(12、255、12)とする。(3)座標が(0、0)、(3、0)の画素は、(R、G、B)=(24、255、24)とする。(4)そして、その他の座標の画素は、(R、G、B)=(0、0、0)とする。以降、便宜上、上記(1)〜(4)の各特徴量を、各々、A、A′、A″、及びBと表記する。   As shown in FIG. 11, a 4 × 4 input image in which the feature amount of each pixel of the input image data is an RGB value will be described as an example. In this example, R, G, and B each take a value of 0 to 255, and the RGB value of each coordinate is as follows. (1) Pixels whose coordinates are (2, 1) and (3, 2) are (R, G, B) = (0, 255, 0). (2) The pixels whose coordinates are (1, 0), (2, 0), (3, 1) are (R, G, B) = (12, 255, 12). (3) Pixels with coordinates (0, 0) and (3, 0) are (R, G, B) = (24, 255, 24). (4) The pixels of other coordinates are (R, G, B) = (0, 0, 0). Hereinafter, for convenience, the feature quantities (1) to (4) will be referred to as A, A ′, A ″, and B, respectively.

すなわち、図11に示す入力画像は、画素値が徐々に変化するようなグラデーション(連続階調)下地上に文字のような黒色単一データが配置されている例となる。   That is, the input image shown in FIG. 11 is an example in which black single data such as characters are arranged on a gradation (continuous tone) background in which pixel values gradually change.

図11に示す入力画像に対して、上述したように、特徴量の全部一致を条件として同属性レイヤを判定する場合には、各注目画素(1、1)、(1、2)、(2、1)、(2、2)に対する同属性レイヤ情報は、図12、図13及び図14のようになる。なお、図12及び図13の表記については、図4及び図5と同様、入力画素を示す各丸印内の文字は上記の各注目画素からの距離を示しており、黒丸印は上記の各注目画素に対して同属性ありと判定された画素、白丸印は同属性なしと判定された画素を示している。また、図14の表記については、図8と同様に、入力画素を示す各白丸印内の文字は上記の各注目画素に対する同属性の有無(「1」:同属性、「0」:非同属性)を示している。また、出力画素(補間画素)は黒丸印で表記されている。   For the input image shown in FIG. 11, as described above, when the same attribute layer is determined on the condition that all feature quantities match, the target pixels (1, 1), (1, 2), (2 The same attribute layer information for 1), (2, 2) is as shown in FIGS. 12 and 13, as in FIGS. 4 and 5, the characters in each circle indicating an input pixel indicate the distance from each pixel of interest, and the black circle indicates each of the above-described pixels. A pixel that is determined to have the same attribute with respect to the target pixel, and a white circle indicates a pixel that is determined not to have the same attribute. In the notation of FIG. 14, as in FIG. 8, the characters in the white circles indicating the input pixels have the same attribute for each pixel of interest (“1”: same attribute, “0”: non-identical) Attribute). Output pixels (interpolation pixels) are indicated by black circles.

また、上記の各注目画素で構成される2×2格子内の各補間画素(出力画素)の各注目画素による影響度は、図15のようになる。なお、図15の表記については、図9と同様、補間画素の構成を4×4画素構成とし、各注目画素による影響度を0〜100の範囲内で表記したものである。さらに、図15(a)〜(d)の各結果より、最も影響度の大きい注目画素値を選択して得られる出力画像(補間画素分布)を図16に示す。   Further, the degree of influence of each pixel of interest on each interpolation pixel (output pixel) in the 2 × 2 grid composed of each pixel of interest is as shown in FIG. 15, as in FIG. 9, the interpolation pixel configuration is a 4 × 4 pixel configuration, and the degree of influence of each pixel of interest is expressed within a range of 0 to 100. Further, FIG. 16 shows an output image (interpolated pixel distribution) obtained by selecting the pixel value of interest having the greatest influence from the results of FIGS. 15 (a) to 15 (d).

結果として、特徴量の全部一致を条件として同属性レイヤを判定する場合には、図11に示す注目画素(2、1)の周囲画素については、(2、1)と同じ特徴量Aである画素(3、2)を含め、画素(2、1)に非常に近い特徴量を有する画素が合計6画素(特徴量Aの1画素(3、2)、特徴量A′の3画素(1、0)、(2、0)、(3、1)、特徴量A″の2画素(0、0)、(3、0))存在しているにも拘わらず、同属性として判定されるのが画素(3、2)の1画素のみであるため、特徴量がBである2×2格子の他の3個の注目画素の補間画素への影響度に対して、特徴量がAである注目画素(2、1)の補間画素への影響度が小さくなり、全ての補間画素の特徴量がBとなってしまっている。   As a result, when the same attribute layer is determined on the condition that all feature quantities match, the surrounding pixels of the target pixel (2, 1) shown in FIG. 11 have the same feature quantity A as (2, 1). Including the pixel (3, 2), there are a total of 6 pixels (1 pixel (3, 2) of the feature amount A and 3 pixels (1) of the feature amount A 'having the feature amount very close to the pixel (2, 1). , 0), (2, 0), (3, 1), and two pixels (0, 0), (3, 0) of feature amount A ″), the same attribute is determined. Since there is only one pixel (3, 2), the feature amount is A with respect to the degree of influence of the other three pixels of interest on the interpolation pixel of the 2 × 2 grid whose feature amount is B. The degree of influence of a certain pixel of interest (2, 1) on the interpolation pixel is reduced, and the feature amount of all the interpolation pixels is B.

このように、特徴量の全部一致を以て同属性レイヤと判定する同属性レイヤ抽出処理の場合、図11に示す例のように、画素値が徐々に変化するグラデーション背景上に同色画素で構成される画像(例えば、文字画像など)が配置されており、かつ高解像度ラスタデータが生成される近傍の2×2格子の画素構成が2色のみの場合(後述する様な3〜4色の背景色が隣接する様な画素分布となっていない場合)、その箇所における解像度変換後の高解像度ラスタデータの特徴量が同色画素の特徴量に偏向する傾向が高い。   As described above, in the case of the same attribute layer extraction process in which it is determined that the same attribute layer is obtained by matching all the feature amounts, the same color pixel is formed on the gradation background in which the pixel value gradually changes as in the example illustrated in FIG. When an image (for example, a character image) is arranged and the pixel configuration of a 2 × 2 grid in the vicinity where high-resolution raster data is generated is only two colors (3 to 4 background colors as described later) If the pixel distribution is not adjacent to each other), the feature amount of the high-resolution raster data after the resolution conversion at that location tends to be deflected to the feature amount of the same color pixel.

図17は高解像度化処理によりグラデーション背景画像上の文字画像のエッジ部に発生するジャギー形状画像を示す説明図である。上述のように、グラデーション背景上に斜め形状、あるいは曲線形状のエッジ形状を有する文字が配置されている入力画像を上記方法によって高解像度変換した場合、本来斜め形状あるいは曲線形状が保持されなければならない個所に対して、図16に示すように、同色画像側が強調される矩形状の画像が出力される傾向が高くなる。このため、図17に示すように、解像度変換後の文字の斜めエッジ箇所および曲線エッジ箇所にジャギーが発生しやすくなる場合がある。   FIG. 17 is an explanatory view showing a jaggy shape image generated at the edge portion of the character image on the gradation background image by the high resolution processing. As described above, when an input image in which characters having an oblique shape or a curved edge shape are arranged on a gradation background is subjected to high resolution conversion by the above method, the original oblique shape or curved shape must be retained. As shown in FIG. 16, the rectangular image in which the same color image side is emphasized is more likely to be output at the location. For this reason, as shown in FIG. 17, there are cases where jaggy is likely to occur at the oblique edge portion and the curved edge portion of the character after resolution conversion.

そこで、注目画素の特徴量に対して「同属性」と判定する特徴量に所定の範囲を設け、その範囲内に該当する周囲画素を全て同属性画素して抽出することで、上述のジャギーの発生を抑制することができる。以下、この点について説明する。   Therefore, by providing a predetermined range for the feature amount determined to be “same attribute” with respect to the feature amount of the target pixel, and extracting all surrounding pixels corresponding to the feature amount as the same attribute pixel, Occurrence can be suppressed. Hereinafter, this point will be described.

図11における各注目画素(1、1)、(1、2)、(2、1)、(2、2)の特徴量すなわちRGB値を(RCT、GCT、BCT)とする。このRGB値に対して、特徴量の範囲を設定するための上限閾値及び下限閾値を、それぞれR値に対してはRUP、RDNとし、G値に対してはGUP、GDNとし、B値に対してはBUP、BDNとする。そして、式(1)〜式(3)全てに該当するRGB値(RX、GX、BX)を有する周囲画素を全て注目画素に対
する同属性画素と判定して、以降の処理を実施する。式(1)〜式(3)で表わされる範囲は、RGB値それぞれに対する有効判定範囲である。また、各上限閾値、下限閾値は適宜の値を設定することができる。
The feature amount, that is, the RGB value of each pixel of interest (1, 1), (1, 2), (2, 1), (2, 2) in FIG. 11 is defined as (R CT , G CT , B CT ). For this RGB value, the upper and lower thresholds for setting the feature value range are R UP and R DN for the R value, G UP and G DN for the G value, respectively. For B value, B UP and B DN are used. Then, all the surrounding pixels having RGB values (R X , G X , B X ) corresponding to all of the expressions (1) to (3) are determined as the same attribute pixels with respect to the target pixel, and the subsequent processing is performed. . The range represented by Expression (1) to Expression (3) is an effective determination range for each of the RGB values. Also, appropriate values can be set for the upper and lower thresholds.

Figure 2010191931
Figure 2010191931

例えば、Rup=RDN=32、Gup=GDN=16、Bup=BDN=32とした場合、図11の注目画素(2、1)の特徴量A(R、G、B)=(0、255、0)に対して「同属性」と判定される特徴量範囲(RX、GX、BX)は、0≦RX≦32、239≦GX≦255、0≦BX≦32となる。 For example, when R up = R DN = 32, G up = G DN = 16, and B up = B DN = 32, the feature amount A (R, G, B) of the target pixel (2, 1) in FIG. = (0, 255, 0) The feature amount range (R X , G X , B X ) determined as “same attribute” is 0 ≦ R X ≦ 32, 239 ≦ G X ≦ 255, 0 ≦ B X ≦ 32.

また、同様に、Rup=RDN=32、Gup=GDN=16、Bup=BDN=32とした場合、図11の注目画素(1、1)、(1、2)、(2、2)の特徴量B(R、G、B)=(0、0、0)に対して「同属性」と判定される特徴量範囲(RX、GX、BX)は、0≦RX≦32、0≦GX≦16、0≦BX≦32となる。 Similarly, when R up = R DN = 32, G up = G DN = 16, and B up = B DN = 32, the target pixel (1, 1), (1, 2), ( The feature amount range (R X , G X , B X ) determined as “same attribute” for the feature amount B (R, G, B) = (0, 0, 0) of 2 and 2) is 0 a ≦ R X ≦ 32,0 ≦ G X ≦ 16,0 ≦ B X ≦ 32.

図18及び図19は有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図であり、図20は有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図であり、図21は有効判定範囲を用いた場合の影響度の一例を示す説明図であり、図22は有効判定範囲を用いた場合の高解像度化処理による補間画素の一例を示す説明図である。   18 and 19 are explanatory diagrams showing an example of the same attribute layer information when the valid determination range is used, and FIG. 20 is an explanatory diagram showing an example of the same attribute layer information when the valid determination range is used. FIG. 21 is an explanatory diagram illustrating an example of the degree of influence when the effective determination range is used, and FIG. 22 is an explanatory diagram illustrating an example of the interpolation pixel by the resolution enhancement process when the effective determination range is used.

図18〜図20は、上述の数値例を用いた同属性画素判定方法を図11に示す入力画素に適用した場合の各注目画素(1、1)、(1、2)、(2、1)、(2、2)に対する同属性レイヤ情報を示す。なお、図18及び図19の各表記は、図12及び図13の各表記と同一であり、図20の各表記は、図14の各表記と同一である。   18 to 20 show respective target pixels (1, 1), (1, 2), (2, 1) when the same attribute pixel determination method using the above numerical example is applied to the input pixel shown in FIG. ), (2, 2) indicates the same attribute layer information. The notations in FIGS. 18 and 19 are the same as the notations in FIGS. 12 and 13, and the notations in FIG. 20 are the same as the notations in FIG.

図18〜図20に示すように、注目画素に対して同属性と判定する画素の特徴量に範囲を持たせることにより、特徴量の全部一致を以て同属性画素と判定する場合(図12〜図14に示す場合)では注目画素(2、1)の同属性と判定されなかった5つの画素(特徴量A′(1、0)、(2、0)、(3、1)の3つの画素、特徴量A″(0、0)、(3、0)の2つの画素)が、注目画素(2、1)の同属性画素と判定される。これにより、2×2格子内の各補間画素(出力画素)の各注目画素による影響度及び出力画像(補間画素分布)は、それぞれ図21及び図22のようになる。   As shown in FIGS. 18 to 20, when a feature amount of a pixel determined to have the same attribute with respect to the target pixel is given a range, it is determined that the pixel has the same attribute when all the feature amounts match (FIGS. 12 to 20). 14), the five pixels (features A ′ (1, 0), (2, 0), (3, 1)) that were not determined to have the same attribute as the target pixel (2, 1). , Feature quantity A ″ (0, 0), (3, 0)) is determined as the same attribute pixel of the target pixel (2, 1). Thereby, each interpolation in the 2 × 2 grid The influence degree and output image (interpolated pixel distribution) of each pixel of interest of the pixel (output pixel) are as shown in FIGS. 21 and 22, respectively.

すなわち、特徴量がBである注目画素(1、1)、(1、2)、(2、2)に対する注目画素(2、1)(特徴量A)の影響度が相対的に大きくなり、結果として図16、すなわち特徴量の全部一致を以て同属性画素と判定する場合に比べて、注目画素(2、1)の近傍に位置する3個の補間画素の特徴量がAとなり(図22参照)、高解像度変換後の同色画素で構成される画像の斜めエッジ箇所および曲線エッジ箇所のジャギー発生が抑制される。   That is, the influence degree of the target pixel (2, 1) (feature amount A) on the target pixel (1, 1), (1, 2), (2, 2) whose feature amount is B is relatively large, As a result, compared to FIG. 16, that is, compared to the case where it is determined that the same attribute pixel is obtained by matching all the feature amounts, the feature amounts of the three interpolation pixels located near the target pixel (2, 1) are A (see FIG. 22). ), The occurrence of jaggy at the oblique edge portion and the curved edge portion of the image composed of the same color pixels after the high resolution conversion is suppressed.

なお、同属性画素と判定する範囲を決定する各パラメータRup、RDN、Gup、GDN、Bup及びBDNは、変更可能なパラメータとして図1に示す同属性レイヤ抽出部2121に入力する構成とする。また、その設定及び入力方法はユーザにより、画像形成装置の操作パネルより入力してもよく、あるいは、図1に示すラスタデータ生成部211で得られたラスタ画像の画像情報を解析するブロックを設け、その結果から各パラメータを算出し、入力する方法でもよい。 The parameters R up , R DN , G up , G DN , B up, and B DN that determine the range to be determined as the same attribute pixel are input to the same attribute layer extraction unit 2121 shown in FIG. 1 as changeable parameters. The configuration is as follows. The setting and input method may be input by the user from the operation panel of the image forming apparatus, or a block for analyzing the image information of the raster image obtained by the raster data generation unit 211 shown in FIG. 1 is provided. A method of calculating and inputting each parameter from the result may be used.

上述の図11〜図22を用いた説明においては、同属性の判定を行う際に、特徴量に所定の範囲(有効判定範囲)を設けることにより、特徴量がその範囲内であれば一致していると判断するように構成し、全領域において共通の特徴量の範囲を用いたが、この特徴量の範囲をあらかじめ画素毎に付与された画像属性によって切り替えてもよい。なお、画像属性は、例えば、画像属性値により区別することができる。   In the description using FIG. 11 to FIG. 22 described above, when the same attribute is determined, a predetermined range (effective determination range) is provided for the feature amount, so that the feature amount is consistent within the range. The feature amount range common to all the regions is used, but the feature amount range may be switched according to an image attribute previously assigned to each pixel. Note that image attributes can be distinguished by, for example, image attribute values.

すなわち、文字領域、ベクタグラフィックス領域、写真等の自然画像領域などの画像属性毎に異なる特徴量範囲を設けておき、各画素の画像属性値に応じて対応する特徴量範囲を選択し、同属性判定を行う。例えば、文字領域については完全な画素値の一致を図り、グラデーションなどが含まれるベクタグラフィックス領域については微妙な色の差を許容する程度の範囲設定を行い、写真などの自然画像領域については範囲設定を最大とし、色による同属性判定を行わず、画像属性値が一致する場合のみ同属性と判定する。以下、この点について説明する。   That is, a different feature amount range is provided for each image attribute such as a character region, a vector graphics region, a natural image region such as a photograph, and the corresponding feature amount range is selected according to the image attribute value of each pixel. Perform attribute determination. For example, complete pixel values are matched for character areas, range is set to allow subtle color differences for vector graphics areas that include gradation, etc., and ranges are set for natural image areas such as photographs. The setting is maximized, the same attribute determination by color is not performed, and the same attribute is determined only when the image attribute values match. Hereinafter, this point will be described.

以下の説明では、特徴量の全部一致をもって同属性レイヤと判定する場合についてジャギーが発生しやすくなることを説明し、次に、画素毎に予め付与されている画像属性値に応じた有効判定範囲を用いて同属性レイヤを判定することにより、写真領域と文字領域との境界などについても好適なエッジスムージングを行うことができることを説明する。   In the following description, it will be explained that jaggies are likely to occur when the same attribute layer is determined when all feature quantities match, and then, an effective determination range according to an image attribute value given in advance for each pixel. It will be described that by using this to determine the same attribute layer, suitable edge smoothing can be performed for the boundary between the photo area and the character area.

まず、特徴量の全部一致をもって同属性レイヤと判定する場合について説明する。図23は入力画像データの一例を示す説明図であり、図24及び図25は同属性レイヤ情報の一例を示す説明図であり、図26は同属性レイヤ情報の一例を示す説明図であり、図27は影響度の一例を示す説明図であり、図28は高解像度化処理による補間画素の一例を示す説明図である。   First, a case will be described in which it is determined that the same attribute layer is obtained when all of the feature amounts match. FIG. 23 is an explanatory diagram illustrating an example of input image data, FIGS. 24 and 25 are explanatory diagrams illustrating an example of the same attribute layer information, and FIG. 26 is an explanatory diagram illustrating an example of the same attribute layer information. FIG. 27 is an explanatory diagram illustrating an example of the degree of influence, and FIG. 28 is an explanatory diagram illustrating an example of an interpolated pixel obtained by the high resolution processing.

図23に示すように、入力画像データの各画素の特徴量としてRGB値、及び画像属性値Tが与えられている4×4入力画像を一例として、以下説明する。この例では、R、G、及びBは、各々0〜255の値をとるものとし、画像属性値Tは、0(文字)、1(自然画像)の値をとるものとする。各座標のRGBT値は、図23に示すとおりであり、座標が(0、0)、(1、0)、(2、0)、(2、1)、(3、0)、(3、1)、(3、2)、(3、3)の画素の画像属性値Tは、0(文字)であり、すべて同一のRGB値を持つ。以降、便宜上、上記各画素の特徴量をAと表記する。また、上記各画素を除く他の座標の画素の画像属性値Tは、1(自然画像)であり、RGB値は全画素で異なる値を持つ。以降、便宜上、これらの他の座標の画素の特徴量を座標に対応付けてB01〜B23と表記する。 As shown in FIG. 23, a 4 × 4 input image in which an RGB value and an image attribute value T are given as the feature amount of each pixel of the input image data will be described below as an example. In this example, R, G, and B each have a value of 0 to 255, and the image attribute value T has a value of 0 (character) and 1 (natural image). The RGBT values of each coordinate are as shown in FIG. 23, and the coordinates are (0, 0), (1, 0), (2, 0), (2, 1), (3, 0), (3, The image attribute values T of the pixels 1), (3, 2), and (3, 3) are 0 (characters) and all have the same RGB value. Hereinafter, for the sake of convenience, the feature amount of each pixel is denoted as A. In addition, the image attribute value T of pixels other than the above-described pixels is 1 (natural image), and the RGB values have different values for all pixels. Hereinafter, for the sake of convenience, the feature quantities of the pixels at these other coordinates are referred to as B 01 to B 23 in association with the coordinates.

すなわち、図23に示す入力画像は、画素値が座標毎にランダムに変化する写真などの自然画像の下地上に単色の文字が配置されている場合を示すものであり、写真等の自然画像に文字やベクタグラフィックスなどの人工的画像が混在する画像の一例となる。   That is, the input image shown in FIG. 23 shows a case where monochromatic characters are arranged on the lower surface of a natural image such as a photograph whose pixel values change randomly for each coordinate. This is an example of an image in which artificial images such as characters and vector graphics are mixed.

図23に示す入力画像に対して、特徴量の全部一致を条件として同属性レイヤを判定する場合には、各注目画素(1、1)、(1、2)、(2、1)、(2、2)に対する同属性レイヤ情報は、図24、図25及び図26のようになる。なお、図24及び図25の表記については、図4及び図5と同様、入力画素を示す各丸印内の文字は上記の各注目画素からの距離を示しており、黒丸印は上記の各注目画素に対して同属性ありと判定された画素、白丸印は同属性なしと判定された画素を示している。また、図26の表記については、図8と同様に、入力画素を示す各白丸印内の文字は上記の各注目画素に対する同属性の有無(「1」:同属性、「0」:非同属性)を示している。また、出力画素(補間画素)は黒丸印で表記されている。   When the same attribute layer is determined for the input image shown in FIG. 23 on the condition that all feature quantities match, the target pixels (1, 1), (1, 2), (2, 1), ( The same attribute layer information for 2 and 2) is as shown in FIGS. 24 and 25, as in FIG. 4 and FIG. 5, the characters in each circle indicating the input pixel indicate the distance from each pixel of interest, and the black circle indicates each of the above. A pixel that is determined to have the same attribute with respect to the target pixel, and a white circle indicates a pixel that is determined not to have the same attribute. In the notation of FIG. 26, as in FIG. 8, the characters in the white circles indicating the input pixels have the same attribute for each pixel of interest (“1”: same attribute, “0”: non-identical). Attribute). Output pixels (interpolation pixels) are indicated by black circles.

また、上記の各注目画素で構成される2×2格子内の各補間画素(出力画素)の各注目画素による影響度は、図27のようになる。なお、図27の表記については、図9と同様、補間画素の構成を4×4画素構成とし、各注目画素による影響度を0〜100の範囲内で表記したものである。さらに、図27(a)〜(d)の各結果より、最も影響度の大きい注目画素値を選択して得られる出力画像(補間画素分布)を図28に示す。   Further, the degree of influence of each pixel of interest on each interpolation pixel (output pixel) in the 2 × 2 grid composed of each pixel of interest is as shown in FIG. 27, as in FIG. 9, the interpolation pixel configuration is a 4 × 4 pixel configuration, and the degree of influence of each pixel of interest is expressed within a range of 0 to 100. Furthermore, FIG. 28 shows an output image (interpolated pixel distribution) obtained by selecting the pixel value of interest having the greatest influence from the results of FIGS. 27 (a) to 27 (d).

結果として、特徴量の全部一致を条件として同属性レイヤを判定する場合には、図23に示す注目画素(1、1)、(1、2)、(2、2)の周囲画素については、自然画像領域として同一の描画オブジェクトに含まれると考えられる特徴量B01〜B23の画素が8画素あるにもかかわらず画素値がすべて異なるため、同属性と判定される画素数は(1、1)、(1、2)、(2、2)ともに1画素となる。また、注目画素(2、1)の周辺画素については、同じ特徴量Aである画素が8画素となる。結果として、ほとんどの補間画素において、注目画素(1、1)、(1、2)、(2、2)による影響度は、注目画素(2,1)による影響度より小さくなるため補間画素の特徴量はAとなり、唯一、注目画素(1、2)の最近傍の1画素のみが特徴量B12となる。 As a result, when the same attribute layer is determined on the condition that all feature quantities match, the surrounding pixels of the target pixel (1, 1), (1, 2), (2, 2) shown in FIG. Since there are 8 pixels of the feature amounts B 01 to B 23 that are considered to be included in the same drawing object as a natural image area, the pixel values are all different, so the number of pixels determined to have the same attribute is (1, 1), (1,2), (2,2) are one pixel. Further, regarding the peripheral pixels of the target pixel (2, 1), the pixels having the same feature amount A are 8 pixels. As a result, in most of the interpolation pixels, the degree of influence of the target pixel (1, 1), (1, 2), (2, 2) is smaller than the degree of influence of the target pixel (2, 1). feature quantity becomes a, only, only one pixel nearest the pixel of interest (1,2) is the feature amount B 12.

このように、特徴量の全部一致を以て同属性レイヤと判定する同属性レイヤ抽出処理の場合、図23に示す例のように、画素値が座標毎にランダムに変化する写真などの自然画像上に同色画素で構成される画像(例えば、文字画像など)が配置されており、その箇所における解像度変換後の高解像度ラスタデータの特徴量が同色画素の特徴量に偏向する傾向が高く、図17で示したグラデーション背景画像上の文字画像のエッジ部に発生するジャギー形状画像の場合と同様に、解像度変換後の文字の斜めエッジ箇所および曲線エッジ箇所にジャギーが発生しやすくなる場合がある。   As described above, in the case of the same attribute layer extraction process in which it is determined that the same attribute layer is obtained by matching all the feature amounts, a natural value such as a photograph whose pixel value changes randomly for each coordinate as in the example shown in FIG. An image composed of pixels of the same color (for example, a character image) is arranged, and the feature amount of the high-resolution raster data after resolution conversion at that portion tends to be deflected to the feature amount of the pixel of the same color. As in the case of the jaggy shape image generated at the edge portion of the character image on the gradation background image shown, jaggy is likely to occur at the oblique edge portion and the curved edge portion of the character after resolution conversion.

次に、画素毎に予め付与されている画像属性値に応じた有効判定範囲を用いて同属性レイヤを判定する場合について説明する。この場合には、注目画素の特徴量に対して「同属性」と判定する特徴量の範囲を、画素毎に付与されている画像属性値Tによって切り替え、範囲内に該当し、かつ画像属性値Tが一致する周囲画素を全て同属性画素して抽出することで上述のジャギーの発生を抑制することができる。以下、この点について説明する。   Next, a case where the attribute layer is determined using an effective determination range corresponding to an image attribute value given in advance for each pixel will be described. In this case, the range of the feature amount determined to be “same attribute” with respect to the feature amount of the target pixel is switched by the image attribute value T assigned to each pixel, the image attribute value falls within the range. By extracting all the surrounding pixels having the same T as the same attribute pixels, the above-described jaggy can be suppressed. Hereinafter, this point will be described.

図23の例において、注目画素の画像属性値Tが0(文字)の場合は、RGBの画素値の比較を厳密な一致によって同属性として判定するものとし、画像属性値Tが1(自然画像)の場合は、画素値の比較の範囲を最大幅(0〜255)として実質的には色による判定は行わず、画像属性値の一致のみによって同属性と判定するものとする。   In the example of FIG. 23, when the image attribute value T of the target pixel is 0 (character), the comparison of RGB pixel values is determined as the same attribute by strict matching, and the image attribute value T is 1 (natural image). In the case of), the pixel value comparison range is set to the maximum width (0 to 255), and the determination based on the color is not substantially performed, and the same attribute is determined only by the matching of the image attribute values.

図29及び図30は画像属性値に応じた有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図であり、図31は画像属性値に応じた有効判定範囲を用いた場合の同属性レイヤ情報の一例を示す説明図であり、図32は画像属性値に応じた有効判定範囲を用いた場合の影響度の一例を示す説明図であり、図33は画像属性値に応じた有効判定範囲を用いた場合の高解像度化処理による補間画素の一例を示す説明図である。   29 and 30 are explanatory diagrams showing an example of the same attribute layer information when an effective determination range according to an image attribute value is used, and FIG. 31 shows a case where an effective determination range according to an image attribute value is used. FIG. 32 is an explanatory diagram showing an example of the attribute layer information, FIG. 32 is an explanatory diagram showing an example of the degree of influence when an effective determination range according to the image attribute value is used, and FIG. 33 is a diagram according to the image attribute value It is explanatory drawing which shows an example of the interpolation pixel by the resolution increasing process at the time of using an effective determination range.

図29〜図31は、上述の数値例を用いた同属性画素判定方法を、図23に示す入力画素に適用した場合の各注目画素(1、1)、(1、2)、(2、1)、(2、2)に対する同属性レイヤ情報を示す。なお、図29及び図30の各表記は、図12及び図13の各表記と同一であり、図31の各表記は、図14の各表記と同一である。   29 to 31 show the respective pixel of interest (1, 1), (1, 2), (2,...) When the same attribute pixel determination method using the above numerical example is applied to the input pixel shown in FIG. The same attribute layer information for 1), (2, 2) is shown. Each notation in FIGS. 29 and 30 is the same as each notation in FIGS. 12 and 13, and each notation in FIG. 31 is the same as each notation in FIG. 14.

図29〜図31に示すように、画像属性値Tが1(自然画像)である注目画素(1、1)、(1、2)、(2、2)は、同属性と判定する画素の特徴量が最大範囲であり、画像属性値Tの一致のみによって同属性画素と判定するため、図24〜図26の例では同一属性と判定されなかった特徴量B02〜B23の全画素が同一属性と判定され、その画素数は8となる。 As shown in FIGS. 29 to 31, the target pixels (1, 1), (1, 2), (2, 2) whose image attribute value T is 1 (natural image) are pixels that are determined to have the same attribute. Since the feature amount is in the maximum range and is determined to be the same attribute pixel only by matching the image attribute value T, all the pixels of the feature amounts B 02 to B 23 that have not been determined to have the same attribute in the examples of FIGS. The same attribute is determined, and the number of pixels is 8.

一方、画像属性値Tが0(文字)である注目画素(2、1)については、特徴量の厳密な一致をもって同属性と判定するため、図24〜図26の例と同様に、特徴量Aの全画素が同一属性と判定され、その画素数は8となる。結果として、注目画素(2、1)による影響度が、(1、1)、(1、2)、(2、2)による影響度より大きくなる補間画素は、注目画素(2、1)の近傍の3画素のみとなり、残りの画素は(1、1)、(1、2)、(2、2)による影響度が大きくなる。   On the other hand, for the target pixel (2, 1) having an image attribute value T of 0 (character), the feature amount is determined with the exact match of the feature amount, so that the feature amount is the same as in the examples of FIGS. All the pixels of A are determined to have the same attribute, and the number of pixels is 8. As a result, the interpolated pixel in which the influence degree of the target pixel (2, 1) is larger than the influence degree of (1, 1), (1, 2), (2, 2) is the pixel of interest (2, 1). There are only three neighboring pixels, and the remaining pixels have a greater influence due to (1, 1), (1, 2), (2, 2).

その結果により、補間画素に与えられる特徴量は図33に示すようになる。すなわち、注目画素(2、1)の近傍の3画素は、注目画素(2、1)による影響度が大きいため、その特徴量Aが与えられている。その他の補間画素については、同属性である注目画素(1、1)、(1、2)、(2、2)による影響度が等しく、かつ最大であるが、各注目画素の特徴量B11、B12、B22は、それぞれ個別の値を持つため、これらの特徴量に基づいた特徴量を補間画素毎に算出する。ここでは画素群の特徴量を代表する記号bで示している。 As a result, the feature amount given to the interpolation pixel is as shown in FIG. That is, the three pixels in the vicinity of the target pixel (2, 1) are given the feature amount A because the degree of influence by the target pixel (2, 1) is large. For the other interpolated pixels, the degree of influence by the target pixel (1, 1), (1, 2), (2, 2) having the same attribute is equal and maximum, but the feature amount B 11 of each target pixel. , B 12 , and B 22 each have an individual value, and therefore feature values based on these feature values are calculated for each interpolation pixel. Here, a symbol b representing the feature amount of the pixel group is shown.

ここで、特徴量Aの画素群と特徴量bの画素群による境界は、特徴量B12から特徴量B23の自然画像領域を同一の領域とした場合の境界であり、オブジェクト輪郭のスムージング結果として本来得るべきジャギーの発生が抑制された境界となっている。 Here, the boundary between the pixel group of the feature amount A and the pixel group of the feature amount b is a boundary when the natural image regions from the feature amount B 12 to the feature amount B 23 are the same region, and the smoothing result of the object contour As a boundary, the occurrence of jaggies that should be obtained is suppressed.

図34は画像属性値に応じた補間画素値算出の一例を示す説明図である。図34は各補間画素の特徴量の詳細を示しており、対応する注目画素の画像属性値Tにより、補間画素の特徴量の算出方法を切り替えている例を示している。本例では、画像属性値Tが0(文字)である注目画素に対応付けられた補間画素には注目画素の特徴量をそのまま複写し、画像属性値Tが1(自然画像)である注目画素に対応付けられた補間画素については、同一属性と判定された複数の注目画素の特徴量から線形補間によって各補間画素の特徴量を求めている。   FIG. 34 is an explanatory diagram showing an example of calculating an interpolated pixel value according to an image attribute value. FIG. 34 shows the details of the feature amount of each interpolation pixel, and shows an example in which the calculation method of the feature amount of the interpolation pixel is switched according to the image attribute value T of the corresponding target pixel. In this example, the feature amount of the target pixel is copied as it is to the interpolation pixel associated with the target pixel whose image attribute value T is 0 (character), and the target pixel whose image attribute value T is 1 (natural image). For the interpolation pixel associated with, the feature amount of each interpolation pixel is obtained by linear interpolation from the feature amounts of a plurality of target pixels determined to have the same attribute.

すなわち、補間画素<2、0>、<3、0>、<3、1>は影響度比較の結果として注目画素(2、1)に対応付けられておりその画像属性値Tが0(文字)であることから、特徴量Aをそのまま複写している。その他の補間画素は同一属性の注目画素(1、1)、(1、2)、(2、2)に対応付けられており、その画像属性値Tが1(自然画像)であることから、注目画素(1、1)、(1、2)、(2、2)の特徴量に基づいた線形補間により求められた特徴量としてb00〜b33が与えられている。なお、線形補間としては補間画素の周囲4画素に基づいて補間値の算出を行うのが通常であるが、本実施例では、対応付けられた同一属性の注目画素のみに基づいて補間値の算出を行うため、周囲4画素のうち、同一属性として対応付けられなかった画素については、仮の画素値を与えて算出している。   That is, the interpolation pixel <2, 0>, <3, 0>, <3, 1> is associated with the target pixel (2, 1) as a result of the influence comparison, and the image attribute value T is 0 (character ), The feature amount A is copied as it is. The other interpolation pixels are associated with the target pixel (1, 1), (1, 2), (2, 2) having the same attribute, and the image attribute value T is 1 (natural image). B00 to b33 are given as feature amounts obtained by linear interpolation based on the feature amounts of the target pixel (1, 1), (1, 2), (2, 2). As linear interpolation, it is normal to calculate an interpolation value based on four surrounding pixels, but in this embodiment, an interpolation value is calculated based only on the corresponding pixel of interest having the same attribute. Therefore, the pixels that are not associated with the same attribute among the surrounding four pixels are calculated by giving a temporary pixel value.

図35は画像属性値に応じた補間画素値算出の具体例を示す説明図である。図35に示すように、本例では、図34で特徴量Aとなっていた画素(2、1)を白画素(特徴量W)で置き換えている。これにより、4つの注目画素の特徴量B11、B12、W、B22に基づく線形補間によって各補間画素の画素値を算出している。これにより、補間画素のうち、自然画像領域内での画素間の色の変化を自然画像に適したなめらかな変化とすることができる。 FIG. 35 is an explanatory diagram showing a specific example of interpolation pixel value calculation according to the image attribute value. As shown in FIG. 35, in this example, the pixel (2, 1) that was the feature amount A in FIG. 34 is replaced with a white pixel (feature amount W). As a result, the pixel value of each interpolation pixel is calculated by linear interpolation based on the feature amounts B 11 , B 12 , W, and B 22 of the four target pixels. As a result, among the interpolated pixels, the color change between the pixels in the natural image region can be made a smooth change suitable for the natural image.

以上に示した方法により、文字やベクタグラフィックスなどの人工的描画オブジェクトと、写真などの自然画像オブジェクトが混在する画像において、オブジェクト間の輪郭スムージングを行うとともに、各オブジェクト内での色の変化は各オブジェクトに適した状態で補間画像を得ることができる。すなわち、例えば、文字については厳密な色の一致を図り、グラデーションが含まれるベクタグラフィックスでは一定の範囲をもって同属性判定を行い、そして、写真のような自然画像の属性を持つ画素については同属性判定の範囲を最大にする(すなわち、すべて同属性と判定する)ことにより、写真領域と文字領域との境界などについても好適なエッジスムージングを行うことができる。   By the method described above, contour smoothing between objects is performed on images where artificial drawing objects such as characters and vector graphics and natural image objects such as photographs are mixed, and the color change in each object is An interpolated image can be obtained in a state suitable for each object. That is, for example, exact color matching is performed for characters, the same attribute is determined for a certain range in vector graphics that include gradation, and the same attribute is used for pixels with natural image attributes such as photographs. By maximizing the determination range (that is, determining that all have the same attribute), it is possible to perform suitable edge smoothing on the boundary between the photo area and the character area.

上述のとおり、解像度変換を用いたスムージング処理において、注目画素と注目画素の周辺画素群との同属性判定を行い、判定結果に基づいて補間画素の画素値を決定する際に、選択された同属性レイヤに属する複数の注目画素の画素値から補間画素値を算出することにより、文字やベクタグラフィックスなどの人工的画像と、写真等の自然画像が混在する画像に対して、人工的画像の輪郭形状に対するスムージング処理と、自然画像の濃度に対するスムージング処理とを両立して良好な画像を得ることができる。   As described above, in the smoothing process using resolution conversion, the same attribute determination is performed on the target pixel and the surrounding pixel group of the target pixel, and the pixel value of the interpolation pixel is determined based on the determination result. By calculating the interpolated pixel value from the pixel values of multiple pixels of interest belonging to the attribute layer, an artificial image such as a character or vector graphics and a natural image such as a photograph are mixed. It is possible to obtain a good image by performing both the smoothing process for the contour shape and the smoothing process for the density of the natural image.

なお、本実施例では、補間画素の算出方法の例として、注目画素値の複写、及び同属性の注目画素値にもとづく線形補間を用いたが、その他の方法として同属性の注目画素値による平均や非線形補間など、その他一般的な補間方法を適用してもよい。また、補間画素の算出時に参照する画素としては、注目画素だけでなく、同属性と判定された周辺画素を含めてもよい。   In this embodiment, as an example of the interpolation pixel calculation method, copying of the target pixel value and linear interpolation based on the target pixel value of the same attribute are used. Alternatively, other general interpolation methods such as nonlinear interpolation may be applied. Further, the pixels referred to when calculating the interpolation pixel may include not only the target pixel but also surrounding pixels determined to have the same attribute.

また、本実施例では各画素の画像属性値があらかじめ付与されるものとしたが、別途領域判定部を設けて画像属性値の判定を行うようにしてもよい。これにより、スキャナやデジタルカメラから入力された画像についても、画像属性値を得て文字領域と写真等の自然画像領域を分離して処理することにより、所望の結果を得ることが可能となる。   In this embodiment, the image attribute value of each pixel is assigned in advance. However, a separate region determination unit may be provided to determine the image attribute value. As a result, even for an image input from a scanner or a digital camera, it is possible to obtain a desired result by obtaining an image attribute value and processing a character area and a natural image area such as a photograph separately.

次に、背景色上で縦方向の直線と横方向の直線とが交差する場合など、3色以上の背景色が隣接するような直交部分での直線性や直交性を保つための処理について説明する。図36は3色の直交部分を有する入力画像の各画素と補間画素の座標を示す説明図であり、図37は3色の直交部分を有する場合の同属性レイヤ情報の一例を示す説明図であり、図38は3色の直交部分を有する場合の影響度の一例を示す説明図であり、図39は3色の直交部分を有する場合の高解像度化処理による補間画素の一例を示す説明図である。図36において、白丸印は、入力画像データの各画素の座標を示し、黒点は出力画像データである高解像度化処理後の補間画素の座標を示し、両者の位置の関係を示す。白丸内のA、B、Cは、それぞれ画素の色(特徴量)を示している。図36の例では、色A、B、Cで表わされる領域が縦方向の直線と横方向の直線とで分離されている様子を示す。なお、中央の2×2画素格子の各画素が、注目画素(1、1)、(1、2)、(2、1)、(2、2)である。   Next, processing for maintaining linearity and orthogonality in orthogonal portions where three or more background colors are adjacent, such as when a vertical line and a horizontal line intersect on the background color, will be described. To do. FIG. 36 is an explanatory diagram illustrating coordinates of each pixel and interpolation pixel of an input image having three color orthogonal portions, and FIG. 37 is an explanatory diagram illustrating an example of the same attribute layer information in the case of having three color orthogonal portions. FIG. 38 is an explanatory diagram showing an example of the degree of influence in the case of having three color orthogonal portions, and FIG. 39 is an explanatory diagram showing an example of an interpolation pixel by high resolution processing in the case of having three color orthogonal portions. It is. In FIG. 36, white circles indicate the coordinates of each pixel of the input image data, and black dots indicate the coordinates of the interpolation pixel after the resolution enhancement processing that is the output image data, and indicate the relationship between the positions. A, B, and C in white circles indicate the color (feature amount) of each pixel. The example of FIG. 36 shows a state where the regions represented by colors A, B, and C are separated by a vertical straight line and a horizontal straight line. In addition, each pixel of the center 2 × 2 pixel lattice is the target pixel (1, 1), (1, 2), (2, 1), (2, 2).

図37(a)、図37(b)、図37(c)、図37(d)は、図37中太い丸印で示される注目画素(1、1)、(1、2)、(2、1)、(2、2)に対応する同属性レイヤ情報(1、1)、同属性レイヤ情報(1、2)、同属性レイヤ情報(2、1)、同属性レイヤ情報(2、2)である。丸印内の数値は同属性の有無を表わし、「1」が同属性(同属性あり)、「0」が非同属性(同属性なし)を表わす。   37 (a), 37 (b), 37 (c), and 37 (d) are pixels of interest (1, 1), (1, 2), (2) indicated by thick circles in FIG. 1), (2, 2) corresponding attribute layer information (1, 1), attribute layer information (1, 2), attribute layer information (2, 1), attribute layer information (2, 2) ). Numerical values in circles indicate the presence or absence of the same attribute, “1” indicates the same attribute (with the same attribute), and “0” indicates the non-same attribute (without the same attribute).

図38(a)、図38(b)、図38(c)、図38(d)は、注目画素(1、1)、(1、2)、(2、1)、(2、2)の影響度を示す。図38において、補間対象座標を示す丸印内の数値が、各補間対象座標での影響度(例えば、0〜100の範囲)を表す。なお、補間対象座標は、2×2画素格子の4つの注目画素で囲まれる領域内で、便宜上、4×4画素の座標(4×4画素の補間画素)であるとする。   38 (a), 38 (b), 38 (c), and 38 (d) show the target pixel (1, 1), (1, 2), (2, 1), (2, 2). Indicates the degree of influence. In FIG. 38, numerical values in circles indicating interpolation target coordinates represent the degree of influence (for example, a range of 0 to 100) at each interpolation target coordinate. The interpolation target coordinates are assumed to be 4 × 4 pixel coordinates (4 × 4 pixel interpolation pixels) for convenience in an area surrounded by four pixels of interest in a 2 × 2 pixel grid.

補間処理は、基本的にエッジを丸めてスムージング処理を行うものであり、直角のエッジ部分も丸められるという特徴がある。特に、図36で示すような、背景色上で縦方向の直線と横方向の直線とが交差する場合など、3色以上の背景色が隣接するような直交部分においては、本来直線であるべき部分(エッジ)にゆがみが生じてしまう。   The interpolation processing basically performs smoothing processing by rounding edges, and has a feature that right-angled edge portions are also rounded. In particular, as shown in FIG. 36, in the orthogonal portion where three or more background colors are adjacent, such as when a vertical straight line intersects a horizontal straight line on the background color, it should be a straight line. The part (edge) is distorted.

そこで、図39(a)に示すように、各補間対象座標で4つの注目画素による影響度を比較する際に、影響度を第1閾値(例えば、0〜100の値で補間した場合、上限値100の50%値)と比較し、最大影響度が50%値よりも少ない補間対象座標に対しては、影響度の最も大きい注目画素が選択されることを抑制して、その補間対象座標の最近傍の注目画素を複写元の注目画素として選択する。図39(a)の例では丸印内に×が記載された補間対象座標の補間画素の画素値を、その補間対象座標に最も近い注目画素の画素値を複写する。これにより、縦横の直線の交差部など、3色以上の描画要素が直交する部分を検出してスムージング処理を回避することにより、直交部分での直線性や直交性を保つことができる。   Therefore, as shown in FIG. 39 (a), when comparing the degree of influence of the four target pixels at each interpolation target coordinate, when the degree of influence is interpolated with a first threshold value (for example, a value of 0 to 100), the upper limit 50% value of value 100), and for interpolation target coordinates whose maximum influence is less than 50% value, it is possible to suppress the selection of the target pixel having the greatest influence and to select the interpolation target coordinates. The nearest pixel of interest is selected as the pixel of interest for copying. In the example of FIG. 39A, the pixel value of the interpolation pixel of the interpolation target coordinate indicated by “X” in a circle is copied, and the pixel value of the target pixel closest to the interpolation target coordinate is copied. Thereby, the linearity and orthogonality in the orthogonal part can be maintained by detecting a part where drawing elements of three or more colors are orthogonal to each other, such as an intersection of vertical and horizontal straight lines, and avoiding the smoothing process.

一方、図39(c)では、各補間対象座標での最近傍画素(画素A、B、C)を示しており、図39(a)の丸印内に×が記載された補間対象座標での画素を図39(c)の最近傍画素で置き換えることにより、図39(b)に示す最終選択画素を得ることができる。この最終選択画素を複写元画素として画素特徴量を複写することにより、直交部分の直線性を保った高解像度ラスタデータを得ることができる。   On the other hand, FIG. 39C shows the nearest pixels (pixels A, B, and C) at each interpolation target coordinate, and the interpolation target coordinates indicated by “X” in a circle in FIG. 39A. The last selected pixel shown in FIG. 39B can be obtained by replacing this pixel with the nearest pixel in FIG. By copying the pixel feature amount using the final selected pixel as a copy source pixel, high-resolution raster data that maintains the linearity of the orthogonal portion can be obtained.

なお、仮に、上述のように影響度を閾値と比較して補間対象座標の最近傍の注目画素を選択するような処理を行わない場合には、図39(b)に示す最終選択画素において、4×4の補間画素のうち、下3行の補間画素の画素値は、すべてCとなる。上述のように影響度を閾値と比較して補間対象座標の最近傍の注目画素を選択するような処理を行うことにより、画素A、B、Cの3色で区切られた直交部分が画素Cにより覆われることを抑制して、エッジが丸められることを一層防止することができる。   Note that if the process of selecting the target pixel closest to the interpolation target coordinates by comparing the degree of influence with the threshold value as described above is not performed, in the final selected pixel shown in FIG. Among the 4 × 4 interpolation pixels, the pixel values of the interpolation pixels in the lower three rows are all C. As described above, the influence is compared with the threshold value and the processing for selecting the pixel of interest closest to the interpolation target coordinates is performed, so that the orthogonal portion divided by the three colors of pixels A, B, and C becomes the pixel C. It is possible to further prevent the edges from being rounded.

すなわち、図36に示すように3色(A色、B色、C色)が直交する部分では、4×4の入力画素のうち、直角領域であるA色、B色がそれぞれ4画素ずつ、直線領域のC色が8画素となる。図36の例では、A色、B色の2色は、垂直方向(縦方向)の中心線を軸として左右対称となっているため、それぞれの影響度も左右対称となり、スムージング処理後の境界も垂直方向の中心線に一致する。3色の直交性を保つためには、A色の領域及びB色の領域とC色の領域との境界を水平方向(横方向)の中心線に一致させる必要があるが、A色の領域及びB色の領域はそれぞれC色の領域よりも画素数が少ないため、影響度を比較するとC色の領域の影響度が大きく、境界線は中心線より上方に偏った形になってしまう。   That is, as shown in FIG. 36, in the portion where the three colors (A color, B color, and C color) are orthogonal, among the 4 × 4 input pixels, each of the A color and B color that is a right angle region is 4 pixels, The C color in the straight line area is 8 pixels. In the example of FIG. 36, the two colors A and B are symmetric with respect to the center line in the vertical direction (longitudinal direction), so that the influences thereof are also symmetric and the boundary after smoothing processing is performed. Also coincides with the vertical centerline. In order to maintain the orthogonality of the three colors, the boundary between the A color region and the B color region and the C color region needs to coincide with the horizontal (horizontal) center line. Each of the B and B color areas has a smaller number of pixels than the C color area. Therefore, when the degree of influence is compared, the degree of influence of the C color area is large and the boundary line is biased upward from the center line.

一方、C色の領域のみに注目すると、C色の画素数が入力画素全体の50%に相当するため、影響度50%となる境界線が、水平方向の中心線に一致する。そこで、最大影響度が50%より大きい領域では、影響度に応じてC色を選択し、影響度が50%以下の領域では、影響度によらず、最近傍画素であるA色、B色を選択することにより、直交性を保った画像を生成することができる。   On the other hand, if attention is paid only to the C color region, the number of C color pixels corresponds to 50% of the entire input pixels, and therefore the boundary line having an influence degree of 50% coincides with the center line in the horizontal direction. Therefore, in the region where the maximum influence degree is greater than 50%, the C color is selected according to the influence degree, and in the region where the influence degree is 50% or less, the A and B colors which are the nearest pixels regardless of the influence degree. By selecting, an image maintaining orthogonality can be generated.

次に、4色の背景色が隣接するような直交部分での直線性や直交性を保つための処理について説明する。図40は4色の直交部分を有する入力画像の各画素と補間画素の座標を示す説明図であり、図41は4色の直交部分を有する場合の同属性レイヤ情報の一例を示す説明図であり、図42は4色の直交部分を有する場合の影響度の一例を示す説明図であり、図43は4色の直交部分を有する場合の高解像度化処理による補間画素の一例を示す説明図である。図40において、白丸印は、入力画像データの各画素の座標を示し、黒点は出力画像データである高解像度化処理後の補間画素の座標を示し、両者の位置の関係を示す。白丸内のA、B、C、Dは、それぞれ画素の色(特徴量)を示している。図40の例では、色A、B、C、Dで表わされる領域が縦方向の直線と横方向の直線とで分離されている様子を示す。なお、中央の2×2画素格子の各画素が、注目画素(1、1)、(1、2)、(2、1)、(2、2)である。   Next, a process for maintaining linearity and orthogonality in orthogonal portions where four background colors are adjacent to each other will be described. FIG. 40 is an explanatory diagram showing coordinates of each pixel and interpolation pixel of an input image having four color orthogonal portions, and FIG. 41 is an explanatory diagram showing an example of the same attribute layer information in the case of having four color orthogonal portions. FIG. 42 is an explanatory diagram illustrating an example of the degree of influence in the case of having four color orthogonal portions, and FIG. 43 is an explanatory diagram illustrating an example of an interpolated pixel by high resolution processing in the case of having four color orthogonal portions. It is. In FIG. 40, white circles indicate the coordinates of each pixel of the input image data, and black dots indicate the coordinates of the interpolation pixel after the resolution enhancement processing that is the output image data, and indicate the relationship between the positions. A, B, C, and D in white circles indicate the color (feature amount) of each pixel. In the example of FIG. 40, a state where the regions represented by colors A, B, C, and D are separated by a straight line in the vertical direction and a straight line in the horizontal direction is shown. In addition, each pixel of the center 2 × 2 pixel lattice is the target pixel (1, 1), (1, 2), (2, 1), (2, 2).

図40〜図43に示すように、4色が直交する部分では、A色、B色、C色、D色の画素ともに4画素ずつとなり、最大影響度が50%に達する補間対象座標がないため、すべての補間対象座標において、最近傍画素を選択して補間を行い、直交性を保った画像を生成する。   As shown in FIGS. 40 to 43, in the portion where the four colors are orthogonal, there are four pixels for each of the A, B, C, and D colors, and there is no interpolation target coordinate that has a maximum influence level of 50%. For this reason, in all the interpolation target coordinates, the nearest pixel is selected and interpolated to generate an image maintaining orthogonality.

次に、細線レイヤ情報を抽出する方法について説明する。1画素幅の斜め細線や孤立点に属する注目画素は、影響度の値が背景画像の画素の影響度に比べて非常に小さな値となるため、補間処理を行った場合に、細い線が一層細くなり、あるいは、細い線が消滅するときがある。これらを防止するため、まず、注目画素が斜め細線や孤立点などの細線に属するか否かを判定する。   Next, a method for extracting thin line layer information will be described. A pixel of interest belonging to an oblique thin line with a width of 1 pixel or an isolated point has a very small influence value compared to the influence degree of the pixels of the background image. There are times when thinning or thin lines disappear. In order to prevent these, first, it is determined whether or not the pixel of interest belongs to a thin line such as an oblique thin line or an isolated point.

図44及び図45は細線レイヤ情報の一例を示す説明図である。細線レイヤ情報は、注目画素が細線に属するか否かを示す情報である。図44及び図45に例示する細線レイヤ情報を求める場合、入力画像データは、図3に示すものであるとする。すなわち、4×4画素の入力画像データ(低解像度ラスタデータ)には、A色画素、B色画素、C色画素の3色の画素が含まれているとする。各画素の特徴量は、例えば、モノクロ(白黒)画像であれば濃度値、カラー画像であればRGBやCMYKなど各色要素の濃度値に相当し、さらに、各画素の属性(文字、ベクタグラフィックス、写真領域など)を示すタグ情報などの追加情報を加えることもできる。本実施の形態では、全色要素の濃度値が一致している画素を特徴量が同じである(画素値が同一である)と判断するものとする。   44 and 45 are explanatory diagrams showing an example of the fine line layer information. The fine line layer information is information indicating whether or not the target pixel belongs to the fine line. When obtaining the fine line layer information illustrated in FIGS. 44 and 45, it is assumed that the input image data is as shown in FIG. That is, it is assumed that 4 × 4 pixel input image data (low-resolution raster data) includes pixels of three colors, an A color pixel, a B color pixel, and a C color pixel. The feature amount of each pixel corresponds to, for example, a density value for a monochrome (monochrome) image, a density value for each color element such as RGB or CMYK for a color image, and further, an attribute (character, vector graphics) of each pixel. Additional information such as tag information indicating a photo area) can also be added. In this embodiment, it is assumed that pixels having the same density value for all color elements have the same feature amount (the pixel values are the same).

図44(a)、図44(b)、図45(c)、図45(d)は、それぞれ図3の例で示す2×2画素格子の4つの注目画素(1、1)、(1、2)、(2、1)、(2、2)それぞれに対応した4組の細線レイヤ情報を求める方法を示している。図19及び図20において、各画素を示す丸印内に記されている数値は、注目画素からの距離を示し、この数値(距離)の小さい画素群から順に特徴量の同一性及び画素の連続性の判定を行う。連続性の判定は、判定対象画素の上下左右4画素(縦、横の4方向、斜め方向は除外)に、注目画素、あるいは、すでに判定済みの同属性画素が存在する(隣接する)場合に連続であると判定する。これらの処理を距離1の画素群から距離5の画素群まで繰り返すことにより、全画素についての判定を行う。なお、図44、図45では、結果として同属性ありと判定された画素を黒丸印、同属性なしと判定された画素を白抜き丸印として記している。また、図4及び図5での同属性の有無の判定と異なる点は、連続性を判定する際の参照画素として上下左右の4画素のみを用いる点である。   44 (a), 44 (b), 45 (c), and 45 (d) are respectively four pixels of interest (1, 1), (1) of the 2 × 2 pixel grid shown in the example of FIG. 2), (2, 1), and (2, 2), a method for obtaining four sets of fine line layer information corresponding to each. In FIG. 19 and FIG. 20, a numerical value indicated in a circle indicating each pixel indicates a distance from the pixel of interest, and the identity of the feature amount and the continuity of the pixels in order from the pixel group having the smaller numerical value (distance). Perform sex determination. The determination of continuity is performed when the pixel of interest or the already-determined pixel of the same attribute exists (adjacent) in the upper, lower, left, and right four pixels (excluding vertical and horizontal directions and diagonal directions) of the determination target pixel. Determined to be continuous. By repeating these processes from the pixel group at the distance 1 to the pixel group at the distance 5, the determination is made for all the pixels. In FIG. 44 and FIG. 45, pixels that are determined to have the same attribute as a result are indicated by black circles, and pixels that are determined not to have the same attribute are indicated by white circles. Further, the difference from the determination of the presence or absence of the same attribute in FIGS. 4 and 5 is that only four pixels on the top, bottom, left, and right are used as reference pixels when determining continuity.

次に、細線レイヤ情報を求めるための同属性の有無の判定手順について説明する。注目画素(1、1)からの距離が1である画素群に対し、ステップ1として、画素(0、1)は、注目画素(1、1)と異色であり、かつ連続(隣接)しているので、非同属性(同属性なし)と判定する。以下、同様に、画素(1、0)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(1、2)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。画素(2、1)は、注目画素(1、1)と異色であり、かつ連続しているので、非同属性と判定する。   Next, a procedure for determining the presence / absence of the same attribute for obtaining the thin line layer information will be described. For the pixel group whose distance from the target pixel (1, 1) is 1, as Step 1, the pixel (0, 1) is different from the target pixel (1, 1) and is continuous (adjacent). Therefore, it is determined that the attribute is not the same (no attribute is the same). Hereinafter, similarly, since the pixel (1, 0) is different in color from the target pixel (1, 1) and is continuous, it is determined to have the same attribute. Since the pixel (1, 2) is different from the target pixel (1, 1) and is continuous, the pixel (1, 2) is determined to have the same attribute. Since the pixel (2, 1) is different from the target pixel (1, 1) and is continuous, the pixel (2, 1) is determined to have the same attribute.

次に、注目画素(1、1)からの距離が2である画素群に対し、ステップ2として、画素(0、0)は、注目画素(1、1)と同色であり、かつ連続画素がないので非同属性と判定する。画素(0、2)は、注目画素(1、1)と異色であり、かつ連続画素がないので非同属性と判定する。画素(2、0)は、注目画素(1、1)と異色であり、かつ連続画素がないので非同属性と判定する。画素(2、2)は、注目画素(1、1)と同色であり、かつ連続画素がないので非同属性と判定する。   Next, for the pixel group whose distance from the target pixel (1, 1) is 2, as Step 2, the pixel (0, 0) has the same color as the target pixel (1, 1), and the continuous pixels are Because there is no attribute, it is determined that the attribute is not the same. The pixel (0, 2) has a different color from the target pixel (1, 1) and has no continuous pixel, and thus is determined to have the same attribute. The pixel (2, 0) is different in color from the target pixel (1, 1) and has no continuous pixel, and thus is determined to have the same attribute. The pixel (2, 2) has the same color as the pixel of interest (1, 1) and has no continuous pixel, so it is determined to have the same attribute.

次に、注目画素(1、1)からの距離が3である画素群に対し、ステップ3として、画素(1、3)は、注目画素(1、1)と異色であり、かつ連続画素がないので非同属性と判定する。画素(3、1)は、注目画素(1、1)と異色であり、かつ連続画素がないので非同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 3, as Step 3, the pixel (1, 3) is different in color from the target pixel (1, 1), and the continuous pixels are Because there is no attribute, it is determined that the attribute is not the same. The pixel (3, 1) is different in color from the target pixel (1, 1) and has no continuous pixel, so it is determined to have the same attribute.

次に、注目画素(1、1)からの距離が4である画素群に対し、ステップ4として、画素(0、3)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。画素(2、3)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。画素(3、0)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。画素(3、2)は、注目画素(1、1)と異色であり、かつ連続画素がないので、非同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 4, as Step 4, the pixel (0, 3) is different in color from the target pixel (1, 1), and the continuous pixels are Because there is no attribute, it is determined that the attribute is not the same. The pixel (2, 3) is different in color from the target pixel (1, 1) and has no continuous pixel, and therefore is determined to have the same attribute. The pixel (3, 0) is different in color from the target pixel (1, 1) and has no continuous pixel, so it is determined to have the same attribute. The pixel (3, 2) has a different color from the target pixel (1, 1) and has no continuous pixel, and thus is determined to have the same attribute.

次に、注目画素(1、1)からの距離が5である画素群に対し、ステップ5として、画素(3、3)は、注目画素(1、1)と同色であり、かつ連続画素がないので、非同属性と判定する。   Next, with respect to the pixel group whose distance from the target pixel (1, 1) is 5, as Step 5, the pixel (3, 3) is the same color as the target pixel (1, 1), and the continuous pixel is Because there is no attribute, it is determined that the attribute is not the same.

以上で全画素の同属性の判定が完了する。この判定結果により、同属性(同属性あり)と判定された画素数に注目画素自身を加えた画素数を計数し、計数した同属性画素数が1の場合(注目画素のみ)は、注目画素が孤立しており、細線(細線レイヤ)に属すると判定し、同属性画素数が2以上の場合は、注目画素は細線に属さないと判定する。上述の処理を、注目画素(1、2)、(2、1)、(2、2)についても同様に行うことにより、4つの注目画素に対応する4つの細線レイヤ情報を得ることができる。   This completes the determination of the same attribute for all pixels. Based on this determination result, the number of pixels obtained by adding the target pixel itself to the number of pixels determined to have the same attribute (with the same attribute) is counted, and when the counted number of the same attribute pixel is 1 (only the target pixel), the target pixel Are isolated and belong to a fine line (thin line layer). If the number of pixels with the same attribute is 2 or more, it is determined that the target pixel does not belong to the fine line. By performing the above-mentioned processing similarly for the target pixels (1, 2), (2, 1), (2, 2), it is possible to obtain four thin line layer information corresponding to the four target pixels.

図44及び図45の例では、注目画素(1、1)、(2、2)は、同属性画素がともに1であるため、細線に属すると判定され、注目画素(1、2)、(2、1)は、同属性画素が2以上であるため、細線には属さないと判定される。   44 and 45, the pixel of interest (1, 1), (2, 2) is determined to belong to a thin line because both of the same attribute pixels are 1, and the pixels of interest (1, 2), ( 2 and 1) are determined not to belong to the thin line because the same attribute pixel is 2 or more.

次に、図7乃至図10に示す高解像度化処理の基本処理に細線レイヤ情報の抽出処理を加えた処理について説明する。図46は入力画像の各画素と補間画素の座標を示す説明図であり、図47は同属性レイヤ情報の一例を示す説明図であり、図48は影響度の一例を示す説明図であり、図49は細線レイヤ情報の一例を示す説明図であり、図50は高解像度化処理による補間画素の一例を示す説明図である。図46において、白丸印は、入力画像データの各画素の座標を示し、黒点は出力画像データである高解像度化処理後の補間画素の座標を示し、両者の位置の関係を示す。白丸内のA、Bは、それぞれ画素の色(特徴量)を示している。なお、中央の2×2画素格子の各画素が、注目画素(1、1)、(1、2)、(2、1)、(2、2)である。   Next, a process in which a thin line layer information extraction process is added to the basic process of the resolution enhancement process shown in FIGS. 7 to 10 will be described. 46 is an explanatory diagram showing coordinates of each pixel and interpolation pixel of the input image, FIG. 47 is an explanatory diagram showing an example of the same attribute layer information, FIG. 48 is an explanatory diagram showing an example of the degree of influence, FIG. 49 is an explanatory diagram showing an example of the fine line layer information, and FIG. 50 is an explanatory diagram showing an example of the interpolated pixel by the high resolution processing. In FIG. 46, white circles indicate the coordinates of each pixel of the input image data, and black dots indicate the coordinates of the interpolation pixel after the high resolution processing that is the output image data, and indicate the relationship between the positions. A and B in white circles indicate pixel colors (features), respectively. In addition, each pixel of the center 2 × 2 pixel lattice is the target pixel (1, 1), (1, 2), (2, 1), (2, 2).

図49に示すように、注目画素(1、1)、(1、2)、(2、1)については、同属性画素数(カウント)が14であり、2以上となっている。しかし、注目画素(2、2)については、同属性画素数(カウント)が1となっており、注目画素(2、2)が細線(細線レイヤ)に属することを示している。   As shown in FIG. 49, regarding the target pixel (1, 1), (1, 2), (2, 1), the number of pixels with the same attribute (count) is 14, which is 2 or more. However, for the target pixel (2, 2), the number of pixels with the same attribute (count) is 1, indicating that the target pixel (2, 2) belongs to a thin line (thin line layer).

この情報に基づき、注目画素(2、2)による影響度が第2閾値以上である場合は、細線に属すると判定した注目画素(2、2)を優先的に複写元画素として選択する。図48(d)に示す注目画素(2、2)による影響度において、第2閾値を、例えば、24とすると、4×4画素の補間対象座標のうち、右下の補間対象座標での影響度が25であり、閾値(22)より大きいので、右下の補間対象座標の補間画素として注目画素(2、2)の画素値(B)を複写する。図50(c)は、注目画素(2、2)による影響度が第2閾値以上の画素を選択した例であり、丸印内にBが記載されている画素が第2閾値以上の優先選択画素であり、丸印内に×が記載されている画素が、影響度が第2閾値未満の画素であり通常選択画素である。この通常選択画素部分については、図50(a)で示されている基本処理にて選択された画素が適用され、最終的に図50(b)で示される最終選択画素が得られる。   Based on this information, when the influence level of the target pixel (2, 2) is equal to or greater than the second threshold, the target pixel (2, 2) determined to belong to the thin line is preferentially selected as the copy source pixel. In the influence degree by the pixel of interest (2, 2) shown in FIG. 48D, if the second threshold is 24, for example, the influence at the lower right interpolation target coordinate among the interpolation target coordinates of 4 × 4 pixels. Since the degree is 25 and larger than the threshold (22), the pixel value (B) of the target pixel (2, 2) is copied as the interpolation pixel of the lower right interpolation target coordinate. FIG. 50C is an example in which a pixel having an influence degree of the pixel of interest (2, 2) having a second threshold value or more is selected, and a pixel in which B is indicated in a circle is a priority selection having the second threshold value or more. Pixels that are indicated by “x” in a circle are pixels that have an influence degree less than the second threshold and are normally selected pixels. For this normally selected pixel portion, the pixel selected by the basic processing shown in FIG. 50A is applied, and finally the final selected pixel shown in FIG. 50B is obtained.

なお、細線レイヤの注目画素の影響度の絶対値は細線の長さ(画素数)によって大きく異なるため、閾値を固定値にした場合、細線が長いときには線幅が広くなり、また、細線が短いときには線幅が狭くなった出力画像を得ることになる。出力画像の線幅をできるだけ一定に保つため、細線の長さによって閾値を調整することが望ましい。   Note that the absolute value of the degree of influence of the pixel of interest in the fine line layer varies greatly depending on the length (number of pixels) of the fine line. Therefore, when the threshold is set to a fixed value, the line width increases when the fine line is long, and the fine line is short. Sometimes an output image with a reduced line width is obtained. In order to keep the line width of the output image as constant as possible, it is desirable to adjust the threshold according to the length of the thin line.

具体的には、あらかじめ用意された複数の第2閾値を設定した細線影響度の閾値テーブルから、対象の注目画素の同属性レイヤのカウント値(すなわち、同属性のある画素数)によって適切な第2閾値を選択する。   Specifically, from the threshold table of the fine line influence level in which a plurality of second threshold values prepared in advance are set, an appropriate first value is determined depending on the count value of the same attribute layer of the target pixel of interest (that is, the number of pixels having the same attribute). 2 Select a threshold.

図51は細線影響度の閾値テーブルの一例を示す。適切な線幅を再現する閾値は、補間倍率や画像形成装置(例えば、プリンタ)の特性によって異なるため、例えば、実験的に適切な値を調べて設定する必要がある。図51の例では、補間倍率が2×2の場合、4×4の場合について例示しているが、補間倍率はこれに限定されるものではない。同属性レイヤのカウント数、すなわち、細線長が長くなるにつれて、1カウントの違いが細線の幅に及ぼす影響が少なくなる傾向があるため、本実施の形態では、カウント数が3以上の場合には、同一の閾値を用いている。   FIG. 51 shows an example of a threshold table of the fine line influence degree. Since the threshold value for reproducing an appropriate line width varies depending on the interpolation magnification and the characteristics of the image forming apparatus (for example, a printer), for example, it is necessary to experimentally determine and set an appropriate value. In the example of FIG. 51, the case where the interpolation magnification is 2 × 2 and 4 × 4 are illustrated, but the interpolation magnification is not limited to this. As the count number of the same attribute layer, that is, the thin line length increases, the influence of the difference of one count on the width of the thin line tends to decrease. Therefore, in this embodiment, when the count number is 3 or more The same threshold is used.

図47(d)の例では、補間倍率が4×4、注目画素(2、2)の同属性レイヤのカウント値が2であるため、第2閾値として24を選択している。   In the example of FIG. 47D, since the interpolation magnification is 4 × 4 and the count value of the same attribute layer of the target pixel (2, 2) is 2, 24 is selected as the second threshold value.

仮に、上述のような細線レイヤ処理を施さない場合には、図50(a)に示すような補間画素が得られ、図46で示す入力画像の2×2画素格子の1つの注目画素(2、2)の特徴(画素値B)が消滅していることが分かる。細線レイヤ処理を施すことにより、細い線が一層細くなることや、細い線が消滅することを抑制することができる。   If the thin line layer processing as described above is not performed, an interpolation pixel as shown in FIG. 50A is obtained, and one target pixel (2 in the 2 × 2 pixel grid of the input image shown in FIG. 46) is obtained. It can be seen that the feature 2) (pixel value B) has disappeared. By performing the thin line layer processing, it is possible to suppress the thin line from becoming thinner and the thin line from disappearing.

次に、各画素の特徴量を判定する場合に、色情報に加えて画素の領域属性を示すタグ情報を用いる場合について説明する。タグ情報としては、例えば、写真領域、文字領域、ベクタグラフィックス領域などの基本属性情報や、それらをさらに詳細に分類したもの、あるいは2値または中間調による分類など、様々な属性情報を用いることができる。本実施の形態では、文字領域とベクタグラフィックス領域の2つの属性を例に挙げて説明する。   Next, a description will be given of a case where tag information indicating a pixel region attribute is used in addition to color information when determining the feature amount of each pixel. As tag information, for example, various attribute information such as basic attribute information such as a photo area, a character area, a vector graphics area, or a more detailed classification thereof, or a binary or halftone classification is used. Can do. In the present embodiment, two attributes of a character area and a vector graphics area will be described as an example.

図52は文字領域とベクタグラフィックス領域からなる2色の入力画像の各画素と補間画素の座標を示す説明図である。図52において、白丸印は、入力画像データの各画素の座標を示し、黒点は出力画像データである高解像度化処理後の補間画素の座標を示し、両者の位置の関係を示す。白丸内のAはA色で文字領域の画素を示し、BはB(b)色で文字領域の画素を示し、bはB(b)色でベクタグラフィックス領域の画素であることを示す。また、中央の2×2画素格子の各画素が、注目画素(1、1)、(1、2)、(2、1)、(2、2)である。   FIG. 52 is an explanatory diagram showing the coordinates of each pixel and interpolation pixel of a two-color input image composed of a character area and a vector graphics area. In FIG. 52, white circles indicate the coordinates of each pixel of the input image data, and black dots indicate the coordinates of the interpolation pixel after the resolution enhancement processing that is the output image data, and indicate the relationship between the positions. A in a white circle indicates a pixel in the character area in A color, B indicates a pixel in the character area in B (b) color, and b indicates a pixel in the vector graphics area in B (b) color. In addition, each pixel of the central 2 × 2 pixel grid is the target pixel (1, 1), (1, 2), (2, 1), (2, 2).

図53はタグ情報を使用しない場合の同属性レイヤ情報の一例を示す説明図であり、色情報のみで同属性レイヤ情報を抽出したものである。図54はタグ情報を使用しない場合の高解像度化処理による補間画素の一例を示す説明図である。図54に示すように、入力画像のB、bの各画素が、同属性があるものとして扱われている。   FIG. 53 is an explanatory diagram showing an example of the same attribute layer information when tag information is not used, in which the same attribute layer information is extracted using only color information. FIG. 54 is an explanatory diagram showing an example of an interpolated pixel obtained by high resolution processing when tag information is not used. As shown in FIG. 54, each pixel B and b of the input image is treated as having the same attribute.

また、図55はタグ情報を使用した場合の同属性レイヤ情報の一例を示す説明図であり、文字領域とベクタグラフィックス領域とが別属性であるとして、同属性レイヤ情報を抽出したものである。図56はタグ情報を使用しない場合の高解像度化処理による補間画素の一例を示す説明図である。図56に示すように、B及びbの画素が非同属性であるといて扱われている。   FIG. 55 is an explanatory diagram showing an example of the same attribute layer information when tag information is used. The attribute layer information is extracted assuming that the character area and the vector graphics area are different attributes. . FIG. 56 is an explanatory diagram showing an example of an interpolation pixel by resolution enhancement processing when tag information is not used. As shown in FIG. 56, the B and b pixels are treated as having the same attribute.

すなわち、図54のように、タグ情報を考慮しない場合には、Bとbの画素が同じ属性のものであるとして扱われ、A色の領域の角の部分が丸まってしまう。一方、図56のように、タグ情報を考慮する場合には、本来あるべきとおりの直交性が確保された画像を得ることができる。   That is, as shown in FIG. 54, when tag information is not considered, the pixels of B and b are treated as having the same attribute, and the corner portion of the A color region is rounded. On the other hand, as shown in FIG. 56, when tag information is taken into consideration, it is possible to obtain an image in which orthogonality is ensured as it should be.

図57は本発明の高解像度化処理後の画像の一部を示す説明図である。図57は、図60に示す原画像に対して本発明の高解像度化処理を施したものである。図57に示すように、本発明によれば、従来の例(例えば、図61、図62、図63など)に比べて、輪郭部分に濃度や色のぼけが生じさせることなく、かつジャギーを低減した高解像度画像を得ることができる。   FIG. 57 is an explanatory diagram showing a part of an image after the high resolution processing of the present invention. FIG. 57 shows the original image shown in FIG. 60 which has been subjected to the high resolution processing of the present invention. As shown in FIG. 57, according to the present invention, compared to the conventional example (for example, FIG. 61, FIG. 62, FIG. 63, etc.), there is no occurrence of density or color blur in the contour portion, and jaggies are reduced. A reduced high resolution image can be obtained.

図58及び図59は本発明の高解像度化処理の処理手順を示すフローチャートである。高解像度化処理部212(以下、「処理部212」という。)は、低解像度ラスタデータを取得して、初期補間対象座標を設定し(S11)、設定した補間対象座標の画素の周囲2×2画素を注目画素に選定する(S12)。   58 and 59 are flowcharts showing the processing procedure of the high resolution processing of the present invention. The high resolution processing unit 212 (hereinafter referred to as “processing unit 212”) acquires low resolution raster data, sets initial interpolation target coordinates (S11), and 2 × around the pixel of the set interpolation target coordinates. Two pixels are selected as the target pixel (S12).

処理部212は、注目画素を含む周囲4×4画素(参照画素)を入力データとして抽出し(S13)、参照画素を参照して、1つの注目画素に対する同属性レイヤ情報(8方向連続)を算出する(S14)。処理部212は、同属性レイヤの画素数をカウントし(S15)、算出した同属性レイヤ情報に対して多値化処理、補間処理を施すことにより、補間レイヤ情報を算出する(S16)。   The processing unit 212 extracts surrounding 4 × 4 pixels (reference pixels) including the target pixel as input data (S13), and refers to the reference pixel to obtain the same attribute layer information (continuous in eight directions) for one target pixel. Calculate (S14). The processing unit 212 counts the number of pixels in the same attribute layer (S15), and performs interpolation processing on the calculated same attribute layer information to calculate interpolation layer information (S16).

処理部212は、補間レイヤ情報に所定のフィルタ処理を施すことにより、補間対象座標での注目画素による影響度を算出する(S17)。処理部212は、細線レイヤ(4方向連続)を算出し(S18)、細線レイヤの画素数をカウントする(S19)。なお、細線レイヤの算出は、必ずしも必須の処理ではないが、この処理を行うことで、上述したように、より一層良好な画質の高解像度画像を得ることができる。   The processing unit 212 calculates the degree of influence of the pixel of interest at the interpolation target coordinates by performing a predetermined filter process on the interpolation layer information (S17). The processing unit 212 calculates a fine line layer (continuous in four directions) (S18), and counts the number of pixels in the fine line layer (S19). The calculation of the thin line layer is not necessarily an essential process, but by performing this process, a high-resolution image with even better image quality can be obtained as described above.

処理部212は、2×2の注目画素のすべての処理を終了したか否かを判定し(S20)、すべて終了していない場合には、ステップS14以降の処理を行い、注目画素毎に同様の処理を繰り返す。すべて終了した場合(S20でYES)、処理部212は、細線レイヤカウント値が1である注目画素があるか否かを判定する(S21)。   The processing unit 212 determines whether or not all the processing of the 2 × 2 target pixel has been completed (S20). If not all processing has been completed, the processing from step S14 is performed, and the same processing is performed for each target pixel. Repeat the process. When all the processes are completed (YES in S20), the processing unit 212 determines whether there is a target pixel having a fine line layer count value of 1 (S21).

細線レイヤカウント値が1である注目画素がない場合(S21でNO)、処理部212は、影響度が最大となる注目画素を選択し(S22)、最大影響度が50%未満であるか否かを判定し(S23)、50%未満でない場合(S23でNO)、最大影響度の注目画素をコピー(複写)元画素として選択する(S24)。   When there is no target pixel having a thin line layer count value of 1 (NO in S21), the processing unit 212 selects a target pixel having the maximum influence (S22), and whether or not the maximum influence is less than 50%. If it is not less than 50% (NO in S23), the target pixel having the maximum influence is selected as a copy source pixel (S24).

細線レイヤカウント値が1である注目画素がある場合(S21でYES)、処理部212は、該注目画素の同属性レイヤカウント値により閾値を選択し(S25)、該注目画素の影響度が閾値以上であるか否かを判定する(S26)。影響度が閾値以上でない場合(S26でNO)、処理部212は、ステップS22の処理を行い、影響度が閾値以上である場合(S26でYES)、該注目画素をコピー(複写)元画素として選択する(S27)。最大影響度が50%未満である場合(S23でYES)、処理部212は、補間対象座標の最近傍の注目画素をコピー(複写)元画素として選択する(S28)。   When there is a target pixel whose thin line layer count value is 1 (YES in S21), the processing unit 212 selects a threshold value based on the same attribute layer count value of the target pixel (S25), and the influence degree of the target pixel is the threshold value It is determined whether or not this is the case (S26). If the degree of influence is not equal to or greater than the threshold (NO in S26), the processing unit 212 performs the process of step S22. If the degree of influence is equal to or greater than the threshold (YES in S26), the target pixel is used as a copy (copy) source pixel. Select (S27). When the maximum influence degree is less than 50% (YES in S23), the processing unit 212 selects the target pixel closest to the interpolation target coordinate as a copy source pixel (S28).

処理部212は、選択された注目画素の特徴量を補間対象座標にコピーし(S29)、M×Nの補間対象座標のすべての処理を終了したか否かを判定する(S30)。補間対象座標のすべての処理を終了していない場合(S30でNO)、処理部212は、ステップS21以降の処理を続ける。   The processing unit 212 copies the feature amount of the selected target pixel to the interpolation target coordinates (S29), and determines whether all the processes of the M × N interpolation target coordinates are finished (S30). If all the processing of the interpolation target coordinates has not been completed (NO in S30), the processing unit 212 continues the processing from step S21.

補間対象座標のすべての処理を終了した場合(S30でYES)、処理部212は、画像領域(入力画像全体)のすべての処理を終了したか否かを判定し(S31)、画像領域(入力画像全体)すべての処理を終了していない場合(S31でNO)、ステップS11以降の処理を続け、画像領域(入力画像全体)すべての処理を終了した場合(S31でYES)、処理を終了する。   When all the processes for the interpolation target coordinates are completed (YES in S30), the processing unit 212 determines whether all the processes for the image area (entire input image) are completed (S31), and the image area (input) Entire image) If all processes have not been completed (NO in S31), the process from step S11 is continued, and if all processes in the image area (entire input image) have been completed (YES in S31), the process is terminated. .

以上説明したように、本発明によれば、補間対象座標の周囲の影響度が同じである注目画素群の画素値(特徴量)に基づいて補間画素の画素値を算出するため、輪郭部分に濃度や色のぼけが生じず、文字やテキストグラフィックスに好適な補間結果を得ることができる。また、補間対象座標の周囲の各注目画素群の影響度に応じて一組の注目画素群を選択するので、描画要素の輪郭形状に対するスムージング処理を行うことができ、また、影響度の算出に使用する情報(例えば、画素値など)は補間処理前の入力画像(原画像)の情報であるため、高解像度化の比率の大小にかかわらず、良好なスムージング結果を得ることができる。そして、ジャギーがなく、かつ濃度ぼけや混色のない高解像度画像を得ることができる。また、描画要素の境界の検出は、注目画素間の画素値(特徴量)の違いによって行うため、輪郭検出のためにTAG情報などの画素の属性情報を必要としない。   As described above, according to the present invention, the pixel value of the interpolation pixel is calculated based on the pixel value (feature value) of the target pixel group having the same influence degree around the interpolation target coordinates. Density and color blur do not occur, and an interpolation result suitable for characters and text graphics can be obtained. In addition, since a set of target pixel groups is selected according to the degree of influence of each target pixel group around the interpolation target coordinates, smoothing processing can be performed on the contour shape of the drawing element, and the degree of influence can be calculated. Since the information to be used (for example, pixel values) is information of the input image (original image) before the interpolation process, a good smoothing result can be obtained regardless of the size of the high resolution ratio. Further, it is possible to obtain a high-resolution image free from jaggy and free from density blur and color mixing. Further, since the boundary of the drawing element is detected based on the difference in pixel value (feature amount) between the target pixels, pixel attribute information such as TAG information is not required for contour detection.

また、本発明によれば、グラデーション背景上に斜め形状、あるいは曲線形状のエッジ形状を有する文字等の同色画素で構成される画像が配置されている入力画像を高解像度変換した場合、斜めエッジ部あるいは曲線エッジ部のジャギー発生が抑制され、エッジ形状の良好な保持が可能となる。   In addition, according to the present invention, when an input image in which an image composed of pixels of the same color such as a character having a diagonal shape or a curved edge shape is arranged on a gradation background is subjected to high resolution conversion, the diagonal edge portion Or generation | occurrence | production of the jaggy of a curve edge part is suppressed and the favorable holding | maintenance of an edge shape is attained.

また、本発明によれば、解像度変換を用いたスムージング処理において、注目画素と注目画素の周辺画素群との同属性判定を行い、判定結果に基づいて補間画素の画素値を決定する際に、選択された同属性レイヤに属する複数の注目画素の画素値から補間画素値を算出することにより、文字やベクタグラフィックスなどの人工的画像と、写真等の自然画像が混在する画像に対して、人工的画像の輪郭形状に対するスムージング処理と、自然画像の濃度に対するスムージング処理とを両立して良好な画像を得ることができる。   Further, according to the present invention, in the smoothing process using resolution conversion, when performing the same attribute determination of the pixel of interest and the surrounding pixel group of the pixel of interest, and determining the pixel value of the interpolation pixel based on the determination result, By calculating interpolated pixel values from the pixel values of a plurality of target pixels belonging to the selected same attribute layer, for images that contain natural images such as characters and artificial images such as characters and vector graphics, A good image can be obtained by performing both the smoothing process for the contour shape of the artificial image and the smoothing process for the density of the natural image.

また、本発明によれば、注目画素毎に補間対象座標での影響度を算出する際に、参照する画素数(参照画素の数)を多くすることができ、より広い範囲の情報を考慮して、より滑らかな輪郭の画像を得ることができる。また、注目画素とその周辺の参照画素との同属性の有無を判定する場合に、画素の特徴量の一部一致又は全部一致を判定することにより、特徴量が異なる場合には、同属性がないと判定することができ、似た色の画像領域が隣接する場合であっても、それぞれの画像領域を異なる領域として正しく認識し、それぞれの輪郭に対するスムージングを行うことができる。   Further, according to the present invention, when calculating the degree of influence at the coordinates to be interpolated for each target pixel, the number of pixels to be referred to (the number of reference pixels) can be increased, and a wider range of information is taken into consideration. Thus, an image with a smoother contour can be obtained. Further, when determining the presence or absence of the same attribute of the pixel of interest and its surrounding reference pixels, if the feature amount differs by determining whether the feature amount of the pixel partially matches or completely matches, the attribute is Even when similar color image areas are adjacent to each other, each image area can be correctly recognized as a different area, and smoothing can be performed on each outline.

また、本発明によれば、縦横斜めの8方向に対して、参照画素が注目画素又は既に同属性ありと判定された画素を介して注目画素に連続しているか否かに応じて同属性の有無を判定することにより、背景色上に描画された細線のように、同色の2つの領域に挟まれた細線がある場合であっても、同色の2つの領域を別々の領域として認識することができ、それぞれの領域による影響度の絶対値が小さくなり、細線が極端に細くなること、あるいは、細線が消滅することを防止することができる。   Further, according to the present invention, the reference pixel has the same attribute according to whether or not the reference pixel is continuous with the target pixel through the target pixel or a pixel that has already been determined to have the same attribute in eight vertical and horizontal diagonal directions. Recognizing two areas of the same color as separate areas even if there is a thin line between two areas of the same color, such as a thin line drawn on the background color, by determining the presence or absence Thus, the absolute value of the degree of influence of each region can be reduced, and the thin line can be prevented from becoming extremely thin or the thin line from disappearing.

また、本発明によれば、補間対象座標に対応する注目画素を選択する場合、注目画素のうち影響度が最も大きい注目画素を選択することにより、輪郭部分に濃度や色のぼけが生じず、文字やテキストグラフィックスに好適な補間結果を得ることができる。また、描画要素の輪郭形状に対するスムージング処理を行うことができ、ジャギーがない高解像度画像を得ることができる。   Further, according to the present invention, when selecting a pixel of interest corresponding to the interpolation target coordinates, by selecting the pixel of interest having the greatest degree of influence among the pixels of interest, there is no density or color blur in the contour portion, Interpolation results suitable for characters and text graphics can be obtained. In addition, smoothing processing can be performed on the contour shape of the drawing element, and a high-resolution image free from jaggy can be obtained.

また、本発明によれば、影響度を第1閾値と比較して、影響度が第1閾値より小さい場合、補間対象座標に最も近い注目画素を選択することにより、影響度が少ない補間対象座標に対しては、影響度の最も大きい注目画素が選択されることを抑制して、その補間対象座標の最近傍の注目画素を複写元の注目画素として選択することにより、縦横の直線の交差部など、3色以上の描画要素が直交する部分を検出してスムージング処理を回避することにより、直交部分での直線性や直交性を保つことができる。   Further, according to the present invention, when the degree of influence is compared with the first threshold value and the degree of influence is smaller than the first threshold value, the interpolation target coordinates having a small degree of influence are selected by selecting the target pixel closest to the interpolation target coordinates. In contrast, by suppressing the selection of the pixel of interest having the greatest degree of influence and selecting the pixel of interest closest to the coordinates to be interpolated as the pixel of interest of the copy source, the intersection of the vertical and horizontal straight lines For example, by detecting a portion where drawing elements of three or more colors are orthogonal to each other and avoiding the smoothing process, linearity and orthogonality at the orthogonal portion can be maintained.

また、本発明によれば、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定し、細線に属すると判定した注目画素の補間対象座標での影響度と第2閾値とを比較して、対象座標での影響度が第2閾値より大きい場合、その補間対象座標に対応付けて、細線に属すると判定した注目画素を選択する。そして、補間対象座標での影響度が第2閾値より小さい場合、その補間対象座標に対応付けて、影響度が最も大きい注目画素を選択する。これにより、斜め細線や孤立点を抽出して、その影響度を優先的に考慮することにより、斜め細線や孤立点が消えることを防ぐことができる。   In addition, according to the present invention, it is determined whether or not the target pixel belongs to a diagonal line having a width of one pixel or a thin line that is an isolated point. If the degree of influence at the target coordinates is larger than the second threshold value by comparing with the two threshold values, the target pixel determined to belong to the thin line is selected in association with the interpolation target coordinates. If the degree of influence at the interpolation target coordinates is smaller than the second threshold, the pixel of interest having the highest degree of influence is selected in association with the interpolation target coordinates. Thereby, it is possible to prevent the oblique thin lines and the isolated points from disappearing by extracting the oblique thin lines and the isolated points and preferentially considering the degree of influence thereof.

また、本発明によれば、細線に属すると判定した注目画素と同属性のある画素数に応じて第2閾値を変更することにより、細線の長さにかかわらず処理後の線幅を一定に保つことができる。   Further, according to the present invention, by changing the second threshold according to the number of pixels having the same attribute as the target pixel determined to belong to the thin line, the line width after processing is made constant regardless of the length of the thin line. Can keep.

上述の実施の形態では、注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定し、細線に属すると判定した注目画素の補間対象座標での影響度と第2閾値とを比較して、補間対象座標での影響度が第2閾値より小さい場合、その補間対象座標に対応付けて、影響度が最も大きい注目画素を選択するようにしているが、下記のようにしてもよい。すなわち、補間対象座標での影響度が第2閾値より小さい場合、各補間対象座標で4つの注目画素による影響度を第1閾値と比較し、最大影響度が50%値よりも少ない補間対象座標に対しては、その補間対象座標の最近傍の注目画素を複写元の注目画素として選択し、上記影響度が第1閾値以上のとき影響度の最も大きい注目画素を選択する構成とすることもできる。このような処理を施すことにより、斜め細線や孤立点の再現性および直交部分での直線性や直交性を保ちつつ、輪郭形状に対するスムージング処理を行うことができる。   In the above-described embodiment, it is determined whether or not the target pixel belongs to a diagonal line of one pixel width or a thin line that is an isolated point, and the degree of influence on the interpolation target coordinates of the target pixel determined to belong to the thin line and the second When the influence level at the interpolation target coordinates is smaller than the second threshold value by comparing with the threshold value, the pixel of interest having the greatest influence level is selected in association with the interpolation target coordinates. It may be. That is, when the influence degree in the interpolation target coordinates is smaller than the second threshold value, the influence degree of the four target pixels in each interpolation target coordinate is compared with the first threshold value, and the interpolation target coordinates having a maximum influence degree of less than 50%. For this, it is also possible to select the pixel of interest closest to the coordinates to be interpolated as the pixel of interest of the copy source, and select the pixel of interest having the greatest influence when the influence is greater than or equal to the first threshold. it can. By performing such a process, it is possible to perform a smoothing process on the contour shape while maintaining the reproducibility of oblique thin lines and isolated points and the linearity and orthogonality at the orthogonal part.

上述の実施の形態において、画像形成装置は、プリンタ単体に限定されるものではなく、プリンタ機能の他に、コピー機能及びファックス機能を有するデジタル複合機であってもよい。   In the above-described embodiment, the image forming apparatus is not limited to a single printer, but may be a digital multi-function peripheral having a copy function and a fax function in addition to a printer function.

本発明はコンピュータに実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体に、上記した高解像度化を行う画像処理手順を記録する構成としても実現することができる。この結果、高解像度化処理を行うプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。   The present invention can also be realized as a configuration in which the above-described image processing procedure for increasing the resolution is recorded on a computer-readable recording medium in which a program to be executed by a computer is recorded. As a result, a recording medium on which program codes (execution format program, intermediate code program, source program) for performing high resolution processing are recorded can be provided in a portable manner.

なお、本実施の形態では、この記録媒体としては、マイクロコンピュータで処理が行われるために図示していないメモリ、例えば、ROMのようなもの自身がプログラムメディアであってもよく、あるいは、不図示の外部記憶装置としてプログラム読み取り装置を設けておき、そこに記録媒体を挿入して読み取ることができるプログラムメディアであってもよい。   In the present embodiment, the recording medium may be a memory (not shown) such as a ROM itself, which is processed by a microcomputer, or may be a program medium. As the external storage device, a program reading device may be provided, and a program medium that can be read by inserting a recording medium therein may be used.

いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であってもよく、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program may be configured to be accessed and executed by the microprocessor, or in any case, the program code is read and the read program code is displayed on the microcomputer. The program may be downloaded to an unprogrammed program storage area and executed. It is assumed that this download program is stored in the main device in advance.

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM、MO、MD、DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であってもよい。   Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, a CD-ROM, MO, MD, DVD, or the like. Semiconductors such as optical discs, IC cards (including memory cards) / optical cards, etc., or mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that carries a fixed program code including a memory.

また、本実施の形態においては、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであってもよい。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。上記記録媒体は、コンピュータシステムに備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。   In the present embodiment, since the system configuration is capable of connecting to a communication network including the Internet, the medium may be a medium that dynamically carries the program code so as to download the program code from the communication network. When the program is downloaded from the communication network in this way, the download program may be stored in the main device in advance or installed from another recording medium. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission. The image processing method described above is executed by reading the recording medium by a program reading device provided in a computer system.

2 プリンタ
21 画像処理部
211 ラスタデータ生成部
212 高解像度化処理部
2121 同属性レイヤ抽出部
2122 レイヤ情報補間部
2123 レイヤ情報フィルタ部
2124 細線レイヤ抽出部
2125 複写元画素選択部
2126 画素特徴量複写部
213 中間調処理部
22 印字エンジン部
2 Printer 21 Image Processing Unit 211 Raster Data Generation Unit 212 High Resolution Processing Unit 2121 Same Attribute Layer Extraction Unit 2122 Layer Information Interpolation Unit 2123 Layer Information Filter Unit 2124 Fine Line Layer Extraction Unit 2125 Copy Source Pixel Selection Unit 2126 Pixel Feature Amount Copying Unit 213 Halftone processing unit 22 Printing engine unit

Claims (16)

入力画像に補間処理を施して出力画像を生成する画像処理装置において、
複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出する影響度算出手段と、
該影響度算出手段で算出した影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択する選択手段と、
該選択手段で選択した注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出する補間画素値算出手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that generates an output image by performing an interpolation process on an input image,
An influence degree calculating means for calculating an influence degree in the interpolation target coordinates of each of a plurality of target pixels around the plurality of interpolation target coordinates;
Selection means for selecting a set of target pixel groups having the same influence level from the target pixels in association with each interpolation target coordinate according to the influence level calculated by the influence level calculation means;
An image processing apparatus comprising: an interpolation pixel value calculating unit that calculates a pixel value of an interpolation pixel at an interpolation target coordinate based on a pixel value of a target pixel group selected by the selection unit.
注目画素毎に、該注目画素と前記複数の注目画素を含む画素ブロック内の各画素との同属性の有無を判定する同属性判定手段と、
該同属性判定手段で判定した判定結果を前記各画素に対応させて割り当てた同属性情報を抽出する抽出手段と、
該抽出手段で抽出した同属性情報を所定の補間倍率で補間する同属性情報補間手段と
を備え、
前記影響度算出手段は、
注目画素毎に、前記同属性情報補間手段で補間した補間同属性情報を用いて、補間対象座標の周辺に存在する周辺画素による影響度を算出するように構成してあることを特徴とする請求項1に記載の画像処理装置。
For each target pixel, the same attribute determination unit that determines the presence or absence of the same attribute of each pixel in the pixel block including the target pixel and the plurality of target pixels;
Extraction means for extracting the same attribute information assigned in association with each pixel based on the determination result determined by the same attribute determination means;
Same attribute information interpolation means for interpolating the same attribute information extracted by the extraction means at a predetermined interpolation magnification,
The influence calculating means is
The configuration is such that, for each pixel of interest, the degree of influence by surrounding pixels existing around the interpolation target coordinates is calculated using the same interpolation attribute information interpolated by the same attribute information interpolation means. Item 8. The image processing apparatus according to Item 1.
前記同属性判定手段は、
注目画素毎に、該注目画素と前記画素ブロック内の各画素との画素値が一致するか否かに応じて同属性の有無を判定するように構成してあることを特徴とする請求項2に記載の画像処理装置。
The attribute determination means includes
3. The configuration according to claim 2, wherein for each target pixel, the presence or absence of the same attribute is determined according to whether or not the pixel values of the target pixel and each pixel in the pixel block match. An image processing apparatus according to 1.
前記同属性判定手段は、
注目画素毎に、前記画素ブロック内の各画素の画素値が、前記注目画素の画素値に対して設けられた画素値範囲に含まれるか否かに応じて同属性の有無を判定するように構成してあることを特徴とする請求項2に記載の画像処理装置。
The attribute determination means includes
The presence or absence of the same attribute is determined for each target pixel depending on whether or not the pixel value of each pixel in the pixel block is included in a pixel value range provided for the pixel value of the target pixel. The image processing apparatus according to claim 2, wherein the image processing apparatus is configured.
前記同属性判定手段は、
注目画素毎に、注目画素の画像属性値によって前記画素値範囲を選択し、前記注目画素の画素値が画素値範囲に含まれるか否かと、前記画像属性値が同一であるか否かとに応じて同属性の有無を判定するように構成してあり、
前記補間画素値算出手段は、
前記選択手段により選択された注目画素群の画素値から、注目画素群の画像属性値に応じて選択される手順によって補間画素の画素値を算出するように構成してあることを特徴とする請求項4に記載の画像処理装置。
The attribute determination means includes
For each pixel of interest, the pixel value range is selected according to the image attribute value of the pixel of interest, and depending on whether the pixel value of the pixel of interest is included in the pixel value range and whether the image attribute value is the same Is configured to determine the presence or absence of the same attribute,
The interpolation pixel value calculation means includes
The pixel value of the interpolated pixel is calculated from a pixel value of the target pixel group selected by the selection unit according to a procedure selected according to an image attribute value of the target pixel group. Item 5. The image processing apparatus according to Item 4.
前記同属性判定手段は、
注目画素毎に、前記画素ブロック内の各画素が前記注目画素又は既に同属性ありと判定された画素を介して前記注目画素に隣接するか否かに応じて同属性の有無を判定するように構成してあることを特徴とする請求項3に記載の画像処理装置。
The attribute determination means includes
For each pixel of interest, whether each pixel in the pixel block is adjacent to the pixel of interest through the pixel of interest or a pixel that has already been determined to have the same attribute is determined. The image processing apparatus according to claim 3, wherein the image processing apparatus is configured.
前記選択手段は、
前記補間対象座標毎に、前記影響度算出手段で算出した影響度が最も大きい注目画素を選択するように構成してあることを特徴とする請求項2から請求項6までのいずれか1項に記載の画像処理装置。
The selection means includes
7. The configuration according to claim 2, wherein the pixel of interest having the greatest influence degree calculated by the influence degree calculating unit is selected for each interpolation target coordinate. 8. The image processing apparatus described.
前記影響度算出手段で算出した影響度と第1閾値とを比較する第1比較手段を備え、
前記選択手段は、
前記補間対象座標での影響度が前記第1閾値より小さい場合、該補間対象座標に最も近い注目画素を選択するように構成してあることを特徴とする請求項2から請求項7までのいずれか1項に記載の画像処理装置。
A first comparing means for comparing the influence degree calculated by the influence degree calculating means with a first threshold;
The selection means includes
8. The configuration according to claim 2, wherein when the degree of influence at the interpolation target coordinates is smaller than the first threshold value, the pixel of interest closest to the interpolation target coordinates is selected. The image processing apparatus according to claim 1.
注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定する細線判定手段と、
該細線判定手段で細線に属すると判定した注目画素の前記補間対象座標での影響度と第2閾値とを比較する第2比較手段と
を備え、
前記選択手段は、
前記補間対象座標での影響度が前記第2閾値より大きい場合、該補間対象座標に対応付けて、前記細線に属すると判定した注目画素を選択するように構成してあり、
前記補間対象座標での影響度が前記第2閾値より小さい場合、該補間対象座標に対応付けて、影響度が最も大きい注目画素を選択するように構成してあることを特徴とする請求項2から請求項8までのいずれか1項に記載の画像処理装置。
Fine line determination means for determining whether or not the pixel of interest belongs to a diagonal line or a thin line that is an isolated point;
A second comparing means for comparing the degree of influence of the target pixel determined to belong to the thin line by the thin line determining means at the interpolation target coordinates and a second threshold value;
The selection means includes
When the degree of influence at the interpolation target coordinates is larger than the second threshold, the pixel of interest determined to belong to the thin line is selected in association with the interpolation target coordinates,
The configuration is such that, when the degree of influence at the interpolation target coordinates is smaller than the second threshold value, the pixel of interest having the highest degree of influence is selected in association with the interpolation target coordinates. The image processing apparatus according to claim 1.
注目画素が1画素幅の斜め線又は孤立点である細線に属するか否かを判定する細線判定手段と、
該細線判定手段で細線に属すると判定した注目画素の前記補間対象座標での影響度と第2閾値とを比較する第2比較手段と
を備え、
前記選択手段は、
前記補間対象座標での影響度が前記第2閾値より大きい場合、該補間対象座標に対応付けて、前記細線に属すると判定した注目画素を選択するように構成してあり、
前記第1比較手段は、
前記補間対象座標での影響度が前記第2閾値より小さい場合、前記影響度算出手段で算出した影響度と前記第1閾値とを比較するように構成してあり、
前記補間対象座標での影響度が前記第1閾値より小さい場合、該補間対象座標に最も近い注目画素を選択するようにしてあり、
前記補間対象座標での影響度が前記第1閾値以上の場合、前記影響度算出手段で算出した影響度が最も大きい注目画素を選択するように構成してあることを特徴とする請求項8に記載の画像処理装置。
Fine line determination means for determining whether or not the pixel of interest belongs to a diagonal line or a thin line that is an isolated point;
A second comparing means for comparing the degree of influence of the target pixel determined to belong to the thin line by the thin line determining means at the interpolation target coordinates and a second threshold value;
The selection means includes
When the degree of influence at the interpolation target coordinates is larger than the second threshold, the pixel of interest determined to belong to the thin line is selected in association with the interpolation target coordinates,
The first comparing means includes
When the influence degree at the interpolation target coordinates is smaller than the second threshold value, the influence degree calculated by the influence degree calculation means is configured to be compared with the first threshold value,
When the degree of influence at the interpolation target coordinates is smaller than the first threshold, the pixel of interest closest to the interpolation target coordinates is selected,
9. The configuration according to claim 8, wherein when the degree of influence at the interpolation target coordinates is equal to or greater than the first threshold, the pixel of interest having the largest degree of influence calculated by the influence degree calculating means is selected. The image processing apparatus described.
前記細線判定手段は、
前記同属性判定手段で、注目画素と、該注目画素と縦又は横方向で隣接する画素との同属性がないと判定した場合、細線に属すると判定するように構成してあることを特徴とする請求項9又は請求項10に記載の画像処理装置。
The thin line determination means includes
When the same attribute determining unit determines that the target pixel does not have the same attribute as the pixel adjacent to the target pixel in the vertical or horizontal direction, it is configured to determine that the target pixel belongs to a thin line. The image processing apparatus according to claim 9 or 10.
前記細線判定手段で細線に属すると判定した注目画素と同属性のある画素数に応じて前記第2閾値を変更する変更手段を備えることを特徴とする請求項9から請求項11までのいずれか1項に記載の画像処理装置。   The change means for changing the second threshold value according to the number of pixels having the same attribute as the target pixel determined to belong to the fine line by the fine line determination means. The image processing apparatus according to item 1. 出力画像を形成する画像形成手段と、請求項1から請求項12までのいずれか1項に記載の画像処理装置とを備えることを特徴とする画像形成装置。   An image forming apparatus comprising: an image forming unit that forms an output image; and the image processing apparatus according to any one of claims 1 to 12. コンピュータを、入力画像に補間処理を施して出力画像を生成する手段として機能させるためのコンピュータプログラムにおいて、
コンピュータを、
複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出する影響度算出手段と、
算出した影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択する選択手段と、
該選択手段で選択した注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出する補間画素値算出手段と
して機能させることを特徴とするコンピュータプログラム。
In a computer program for causing a computer to function as means for generating an output image by performing interpolation processing on an input image,
Computer
An influence degree calculating means for calculating an influence degree in the interpolation target coordinates of each of a plurality of target pixels around the plurality of interpolation target coordinates;
In accordance with the calculated influence degree, a selection unit that selects a set of attention pixel groups having the same influence degree from the attention pixels in association with each interpolation target coordinate;
A computer program that functions as an interpolation pixel value calculation unit that calculates a pixel value of an interpolation pixel at an interpolation target coordinate based on a pixel value of a target pixel group selected by the selection unit.
請求項14に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。   15. A computer-readable recording medium on which the computer program according to claim 14 is recorded. 入力画像に補間処理を施して出力画像を生成する画像処理装置による画像処理方法おいて、
複数の補間対象座標の周囲にある複数の注目画素それぞれの前記補間対象座標での影響度を算出し、
算出された影響度に応じて、各補間対象座標に対応付けて前記注目画素の中から同じ影響度を持つ一組の注目画素群を選択し、
選択された注目画素群の画素値に基づいて、補間対象座標の補間画素の画素値を算出することを特徴とする画像処理方法。
In an image processing method by an image processing apparatus that performs an interpolation process on an input image to generate an output image,
Calculating the degree of influence in the interpolation target coordinates of each of the plurality of target pixels around the plurality of interpolation target coordinates;
In accordance with the calculated influence level, a set of target pixel groups having the same influence level is selected from the target pixels in association with each interpolation target coordinate,
An image processing method, comprising: calculating a pixel value of an interpolation pixel at an interpolation target coordinate based on a pixel value of a selected pixel group of interest.
JP2009137629A 2008-10-10 2009-06-08 Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method Pending JP2010191931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009137629A JP2010191931A (en) 2008-10-10 2009-06-08 Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2008264451 2008-10-10
JP2009014571 2009-01-26
JP2009137629A JP2010191931A (en) 2008-10-10 2009-06-08 Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method

Publications (1)

Publication Number Publication Date
JP2010191931A true JP2010191931A (en) 2010-09-02

Family

ID=42817875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009137629A Pending JP2010191931A (en) 2008-10-10 2009-06-08 Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method

Country Status (1)

Country Link
JP (1) JP2010191931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013034181A (en) * 2011-06-29 2013-02-14 Konica Minolta Business Technologies Inc Image processing apparatus and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013034181A (en) * 2011-06-29 2013-02-14 Konica Minolta Business Technologies Inc Image processing apparatus and image processing method

Similar Documents

Publication Publication Date Title
JP4568460B2 (en) Image processing apparatus and recording medium
US7149355B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable record medium storing image processing program
JP6781406B2 (en) Image processing equipment and computer programs
JP4362538B2 (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and recording medium thereof
JP2009232085A (en) Image processing method, image processor, image forming apparatus, program, and storage medium
JP2009278363A (en) Image processor and image processing method
US7885486B2 (en) Image processing system, method for processing image and computer readable medium
JP5042917B2 (en) Image processing apparatus and program
JP2009169925A (en) Image retrieval device and image retrieval method
JP2018139457A (en) Image processing apparatus, control method for image processing and program
JP2006217058A (en) Image processing apparatus, image processing method, program, and recording medium
JP5005732B2 (en) Image forming apparatus and image processing method
JP4502001B2 (en) Image processing apparatus and image processing method
JP4873554B2 (en) Image distribution apparatus and image distribution method
JP2010191931A (en) Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method
JP2005039802A (en) Image processor, method and program for processing image, and storage medium
JP3881119B2 (en) Moire removal device
JP2006237858A (en) Image processing apparatus, image processing method, program for allowing computer to execute the method, and recording medium
RU2520407C1 (en) Method and system of text improvement at digital copying of printed documents
JP3888090B2 (en) Image processing apparatus and image processing method
JP2012174159A (en) Image processing system and method for image processing
JP4517288B2 (en) Image processing apparatus, image processing method, and program thereof
JP4545167B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2005198157A (en) Image processor, image processing method, storage medium having computer readable program recorded thereon and program
JP6841254B2 (en) Image processing equipment and computer programs