JP2014143512A - Image processing device and image processing method - Google Patents

Image processing device and image processing method Download PDF

Info

Publication number
JP2014143512A
JP2014143512A JP2013009957A JP2013009957A JP2014143512A JP 2014143512 A JP2014143512 A JP 2014143512A JP 2013009957 A JP2013009957 A JP 2013009957A JP 2013009957 A JP2013009957 A JP 2013009957A JP 2014143512 A JP2014143512 A JP 2014143512A
Authority
JP
Japan
Prior art keywords
filter coefficient
conversion
filter
matrix
unit
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
JP2013009957A
Other languages
Japanese (ja)
Inventor
Takahiro Teramoto
高広 寺本
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 JP2013009957A priority Critical patent/JP2014143512A/en
Publication of JP2014143512A publication Critical patent/JP2014143512A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device which can improve image quality with a single run of filter processing executed based on an optimum filter coefficient which can be calculated with a small amount of computation even if variable magnifications used in magnification processing performed on image data differ in the longitudinal direction and the lateral direction.SOLUTION: An image processing device includes: first and second conversion matrix setting sections 301 and 302 for setting first conversion matrices in accordance with variable magnifications for a longitudinal direction and a lateral direction; a selecting section 303 for selecting a reference filter coefficient set in response to (i) a prescribed image processing condition different from the variable magnifications in the longitudinal and lateral directions or an image processing condition which adds the variable magnifications for the longitudinal and lateral directions to the prescribed image processing condition and (ii) one or more filter coefficient sets which are prestored; coefficient conversion sections 304a and 304b for primarily converting a matrix indicated by the selected reference filter coefficient set by using the first conversion matrix and a second conversion matrix; and a filter processing section 26 for performing filter processing on image data by using the converted filter coefficient set.

Description

本発明は、画像処理装置及び画像処理方法に関し、より詳細には、画像データにフィルタ処理を施すことによって、画像データに基づく出力画像の画質を向上させる画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method, and more particularly, to an image processing apparatus and an image processing method that improve the image quality of an output image based on image data by performing filter processing on the image data.

従来から、原稿を光学的に読み取って画像データを取得するスキャナや、スキャナを備えた複写機及び複合機等の画像形成装置が流通している。これらの装置では、原稿読み取りで得たイメージデータ(画像データ)を出力又は印刷する際に、出力画像の画質を向上させる1つの方法としてフィルタ処理を施す場合がある。また、処理速度を速くするために、原稿読み取り速度(スキャン速度)を速く設定できるような構成を有する装置がある。   2. Description of the Related Art Conventionally, scanners that optically read originals to acquire image data, and image forming apparatuses such as copiers and multifunction peripherals equipped with scanners have been distributed. In these apparatuses, when image data (image data) obtained by reading a document is output or printed, a filter process may be performed as one method for improving the image quality of the output image. In addition, there is an apparatus having a configuration in which a document reading speed (scanning speed) can be set fast in order to increase the processing speed.

スキャン速度を速く設定した場合、原稿の主走査方向(スキャナの走査方向に垂直な方向)における読み取り解像度と、副走査方向(スキャナの走査方向に平行な方向)における読み取り解像度とが異なる場合がある。このような場合、原稿を読み取って得られた画像データを出力する際に、主走査方向に対する変倍処理と副走査方向に対する変倍処理とについて異なる変倍率を用いる必要がある。また、ユーザからの設定によって、画像データの主走査方向及び副走査方向のそれぞれに対して異なる変倍率で変倍処理を行なうことができるような構成を有する装置がある。   When the scanning speed is set high, the reading resolution in the main scanning direction (direction perpendicular to the scanning direction of the scanner) of the document may differ from the reading resolution in the sub-scanning direction (direction parallel to the scanning direction of the scanner). . In such a case, when outputting image data obtained by reading a document, it is necessary to use different scaling factors for the scaling process in the main scanning direction and the scaling process in the sub-scanning direction. In addition, there is an apparatus having a configuration capable of performing a scaling process at different scaling ratios in the main scanning direction and the sub-scanning direction of image data depending on settings from the user.

そして、このように画像データの主走査方向及び副走査方向に対してそれぞれ異なる変倍率での変倍処理を行なう場合には、画像データの主走査方向及び副走査方向における空間周波数特性が異なってしまい、モアレ等の発生により出力画像の画質が低下する虞がある。   When the scaling process is performed at different scaling ratios in the main scanning direction and the sub-scanning direction of the image data, the spatial frequency characteristics of the image data in the main scanning direction and the sub-scanning direction are different. Therefore, the image quality of the output image may be reduced due to the occurrence of moire or the like.

それを避けるためには変倍率毎にフィルタの種類を用意する必要があるが、主走査、副走査の変倍率の組み合わせが非常に多くなり、その分だけフィルタも必要となるため、それらのフィルタを保持するために必要なメモリ容量が増大してしまい、設計及び設計したフィルタの確認や管理に手間がかかる。   In order to avoid this, it is necessary to prepare filter types for each scaling factor. However, the combination of scaling factors for main scanning and sub-scanning is very large, and as many filters are required for that combination. As a result, the memory capacity required to hold the data increases, and it takes time to check and manage the designed filter.

そこで、特許文献1では、主走査方向に対して行なう変倍処理における変倍率及び副走査方向に対して行なう変倍処理における変倍率を考慮してフィルタ処理を施す技術が提案されている。具体的には、特許文献1に記載の装置は、主走査方向に対して指定された倍率(変倍率)に応じ、倍率が高いほど、変倍処理前又は変倍処理後の画像データに対して強いMTF(modulation transfer function)補正(強調フィルタ補正)を行なう。その後、主走査方向に対する倍率とは別途に指定された副走査方向に対する倍率に応じ、倍率が高いほど、主走査方向に対してMTF補正された画像データに対して強いMTF補正を行なう。これにより、変倍処理前又は変倍処理後の画像データに対して適切なMTF補正を行なうようにしている。   In view of this, Japanese Patent Laid-Open No. 2004-228688 proposes a technique for performing filter processing in consideration of a scaling factor in scaling processing performed in the main scanning direction and a scaling factor in scaling processing performed in the sub-scanning direction. Specifically, according to the magnification (magnification) specified in the main scanning direction, the apparatus described in Patent Document 1 applies to the image data before or after the magnification process as the magnification is higher. And strong MTF (modulation transfer function) correction (enhancement filter correction). Thereafter, according to the magnification in the sub-scanning direction specified separately from the magnification in the main scanning direction, the higher the magnification, the stronger MTF correction is performed on the image data that has been MTF corrected in the main scanning direction. Thus, appropriate MTF correction is performed on the image data before or after the scaling process.

また、特許文献2では、画像倍率の変更に応じて、画像の主走査方向及び副走査方向に対する補正レベルを補正するパラメータ、具体的には、空間フィルタ処理に用いるフィルタの特性を切り替える技術が提案されている。これにより、画像倍率の変更に伴う画像の劣化を防止するようにしている。   Patent Document 2 proposes a technique for switching a parameter for correcting a correction level in the main scanning direction and sub-scanning direction of an image, specifically, a characteristic of a filter used for spatial filter processing in accordance with a change in image magnification. Has been. As a result, image deterioration due to a change in image magnification is prevented.

また、特許文献3では、主走査方向及び副走査方向で変倍率が異なる場合に、予め設定された複数のフィルタ係数から、各変倍率に対応するフィルタ係数を選択した上で、それら2つのフィルタ係数を空間周波数成分に変換して合成し、逆変換を行なうことで適切なフィルタ係数を生成する技術が提案されている。即ち、この技術では、定型の変倍率に相当するフィルタ係数のみを予め設定し、それ以外の倍率を使用する場合には空間周波数成分で演算し、その倍率に最適なフィルタを生成している。   Further, in Patent Document 3, when the scaling factor is different between the main scanning direction and the sub-scanning direction, filter coefficients corresponding to each scaling factor are selected from a plurality of preset filter coefficients, and then the two filters are selected. There has been proposed a technique for generating an appropriate filter coefficient by converting coefficients into a spatial frequency component, combining them, and performing inverse conversion. That is, in this technique, only the filter coefficient corresponding to the standard variable magnification is set in advance, and when other magnifications are used, calculation is performed with the spatial frequency component, and a filter optimum for the magnification is generated.

特許第2789560号公報Japanese Patent No. 2789560 特開平2−29072号公報JP-A-2-29072 特開2009−267835号公報JP 2009-267835 A

しかし、特許文献1に開示された技術では、MTF補正を2回行なうので、処理時間が長くなってしまうという問題を有する。また、特許文献2に開示された技術では、主走査方向(縦方向)に対する変倍率及び副走査方向(横方向)に対する変倍率に応じて最適化されたフィルタ係数セットを予めメモリ内に保持しておく必要があり、そのために必要なメモリ容量が増大してしまうという問題を有する。   However, the technique disclosed in Patent Document 1 has a problem that the processing time becomes long because MTF correction is performed twice. In the technique disclosed in Patent Document 2, a filter coefficient set optimized in accordance with a scaling factor in the main scanning direction (vertical direction) and a scaling factor in the sub-scanning direction (horizontal direction) is stored in a memory in advance. Therefore, there is a problem in that the memory capacity required for this purpose increases.

特許文献3で開示されている技術は、以上の課題を解決するためのものであるが、以下に述べるような問題が残る。まず、逆変換で算出される係数は一般に無理数であるため、実際にはフィルタ係数を有理数化するための処理工程が更に必要となる。また、有理数化するにあたっては、全係数を通分した上での分子の合計が分母(以後、除算係数と呼ぶ)とほぼ等しくなるように設定するのが一般であるが、除算係数を定める際の基準となるフィルタ係数が2つあるため、どちらのフィルタ係数の除算係数を選ぶか或いは2つのフィルタ係数の除算係数をどのように合成するかを定める処理も必要となる。更に、実際の装置においては、設定可能な数値がごく限られた整数に限定されるため、空間周波数成分からフィルタ係数に戻す際に発生しうる誤差やバグ等により、最適でないフィルタ係数が生成される可能性もある。   The technique disclosed in Patent Document 3 is for solving the above problems, but the following problems remain. First, since the coefficient calculated by the inverse transformation is generally an irrational number, a processing step for rationalizing the filter coefficient is actually required. For rationalization, the total numerator after dividing all coefficients is generally set to be almost equal to the denominator (hereinafter called the division coefficient). Since there are two filter coefficients serving as the reference, the process of determining which filter coefficient division coefficient is selected or how to synthesize the division coefficients of the two filter coefficients is also required. Furthermore, in an actual device, the settable numerical values are limited to very limited integers, and therefore, non-optimal filter coefficients are generated due to errors or bugs that may occur when returning from spatial frequency components to filter coefficients. There is also a possibility.

本発明は、上述のような実状に鑑みてなされたものであり、その目的は、画像データの縦方向に対して行なう変倍処理の変倍率と横方向に対して行なう変倍処理の変倍率とが異なる場合であっても、少ない演算量で算出可能な最適なフィルタ係数に基づく1回のフィルタ処理によって画質の向上を実現できる画像処理装置及び画像処理方法を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a scaling factor for scaling processing performed in the vertical direction of image data and a scaling factor for scaling processing performed in the horizontal direction. Is to provide an image processing apparatus and an image processing method capable of realizing an improvement in image quality by a single filtering process based on an optimum filter coefficient that can be calculated with a small amount of calculation.

上記の課題を解決するために、本発明の第1の技術手段は、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理装置であって、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1変換行列設定部と、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2変換行列設定部と、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択部と、該選択部で選択された基準フィルタ係数セットが示す行列を、前記第1変換行列設定部及び前記第2変換行列設定部によって設定された第1の変換行列及び第2の変換行列を用いて一次変換する係数変換部と、該係数変換部で一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理部と、を備えることを特徴としたものである。   In order to solve the above-described problem, a first technical means of the present invention is an image processing apparatus that performs a filtering process on image data for forming an image in which a plurality of pixels are two-dimensionally arranged. A first transformation matrix setting unit for setting a first transformation matrix according to a vertical scaling factor when the scaling process is performed on the image data, and a scaling process performed on the image data. A second transformation matrix setting unit for setting a second transformation matrix according to a scaling factor in the horizontal direction, and (i) predetermined image processing conditions different from the scaling factor in the vertical direction and the scaling factor in the horizontal direction, Alternatively, a reference filter based on the image processing condition obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing condition, and (ii) one or more filter coefficient sets stored in advance Selection section for selecting coefficient set and selection by the selection section A coefficient conversion unit that performs primary conversion on the matrix indicated by the reference filter coefficient set using the first conversion matrix and the second conversion matrix set by the first conversion matrix setting unit and the second conversion matrix setting unit And a filter processing unit that performs a filter process on the image data using the filter coefficient set after the primary conversion by the coefficient conversion unit.

本発明の第2の技術手段は、第1の技術手段において、前記係数変換部により一次変換後のフィルタ係数セットのサイズを前記基準フィルタ係数セットのサイズと異ならせることが可能になっており、前記一次変換後のフィルタ係数セットを、前記基準フィルタ係数セットのサイズ及び/又は定められたサイズに合わせるように調整するサイズ調整部を更に備え、前記フィルタ処理部は、前記サイズ調整部で調整後のフィルタ係数セットを用いてフィルタ処理を施すことを特徴としたものである。   According to a second technical means of the present invention, in the first technical means, the size of the filter coefficient set after the primary conversion by the coefficient conversion unit can be different from the size of the reference filter coefficient set. The image processing apparatus further includes a size adjustment unit that adjusts the filter coefficient set after the primary conversion to match the size of the reference filter coefficient set and / or a predetermined size, and the filter processing unit is adjusted by the size adjustment unit The filter processing is performed using the filter coefficient set.

本発明の第3の技術手段は、第1又は第2の技術手段において、前記第1の変換行列は、前記縦方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であり、前記第2の変換行列は、前記横方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であることを特徴としたものである。   According to a third technical means of the present invention, in the first or second technical means, the first transformation matrix is only a rational number generated by a predetermined calculation using one variable based on the scaling factor in the vertical direction. The second transformation matrix is a triangular matrix consisting only of rational numbers generated by a predetermined calculation using one variable based on the scaling factor in the horizontal direction. is there.

本発明の第4の技術手段は、第1〜第3のいずれか1の技術手段において、前記所定の画像処理条件に含まれる条件につき、或いは、前記所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件に含まれる条件につき、それぞれ複数の区分に分け、各区分で、前記第1の変換行列及び前記第2の変換行列及び/又は前記基準フィルタ係数セットを切り替えることを特徴としたものである。   According to a fourth technical means of the present invention, in any one of the first to third technical means, the vertical direction is changed according to the condition included in the predetermined image processing condition or the predetermined image processing condition. The conditions included in the image processing conditions including the magnification and the horizontal scaling factor are each divided into a plurality of sections, and in each section, the first conversion matrix, the second conversion matrix, and / or the reference filter This is characterized by switching coefficient sets.

本発明の第5の技術手段は、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理方法であって、第1変換行列設定部が、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1設定ステップと、第2変換行列設定部が、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2設定ステップと、選択部が、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択ステップと、係数変換部が、前記選択ステップで選択された基準フィルタ係数セットが示す行列を、前記第1設定ステップ及び前記第2設定ステップで設定された前記第1の変換行列及び前記第2の変換行列を用いて一次変換する変換ステップと、フィルタ処理部が、前記変換ステップで一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理ステップと、を有することを特徴としたものである。   According to a fifth technical means of the present invention, there is provided an image processing method for performing filter processing on image data for forming an image in which a plurality of pixels are two-dimensionally arranged, wherein the first transformation matrix setting unit includes the image A first setting step for setting a first transformation matrix in accordance with a scaling factor in the vertical direction when the scaling process is performed on the data, and a second transformation matrix setting unit for scaling the image data A second setting step for setting a second transformation matrix according to a scaling factor in the horizontal direction when the processing is performed; and a selection unit: (i) What are the vertical scaling factor and the horizontal scaling factor? Different predetermined image processing conditions, or image processing conditions obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing conditions, and (ii) one or more filter coefficient sets stored in advance And select a reference filter coefficient set based on A matrix indicated by the reference filter coefficient set selected in the selection step, and the first conversion matrix and the second conversion matrix set in the first setting step and the second setting step. A conversion step for performing a primary conversion using a conversion matrix; and a filter processing unit for performing a filter process on the image data using the filter coefficient set after the primary conversion in the conversion step. It is characterized by.

本発明によれば、画像データの縦方向に対して行なう変倍処理の変倍率と横方向に対して行なう変倍処理の変倍率とが異なる場合であっても、少ない演算量で算出可能な最適なフィルタ係数に基づく1回のフィルタ処理によって画質の向上を実現できる。   According to the present invention, even when the scaling factor of the scaling process performed in the vertical direction of the image data is different from the scaling factor of the scaling process performed in the horizontal direction, the calculation can be performed with a small amount of calculation. Image quality can be improved by a single filtering process based on the optimum filter coefficient.

本発明の一実施形態に係る画像処理装置を備える画像形成装置の一構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of an image forming apparatus including an image processing apparatus according to an embodiment of the present invention. 図1の画像形成装置における空間フィルタ処理部で使用されるフィルタの一般的な構成を示す図である。FIG. 2 is a diagram illustrating a general configuration of a filter used in a spatial filter processing unit in the image forming apparatus of FIG. 1. 図1の画像形成装置におけるフィルタ係数設定部の一構成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of a filter coefficient setting unit in the image forming apparatus of FIG. 1. 図1の画像形成装置におけるフィルタ係数設定部の他の構成例を示すブロック図である。FIG. 10 is a block diagram illustrating another configuration example of the filter coefficient setting unit in the image forming apparatus of FIG. 1. 図4のフィルタ係数設定部におけるサイズ修正部でのフィルタサイズ削減処理の一例を説明するためのフロー図である。FIG. 5 is a flowchart for explaining an example of a filter size reduction process in a size correction unit in the filter coefficient setting unit in FIG. 4. 図4のフィルタ係数設定部における窓関数処理部での窓関数処理に使用するフィルタの一例を示す図である。It is a figure which shows an example of the filter used for the window function process in the window function process part in the filter coefficient setting part of FIG. 図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の一例を説明するための図で、基準フィルタ係数セットの一例を示す図である。FIG. 6 is a diagram for explaining an example of filter coefficient setting processing in a filter coefficient setting unit in the image forming apparatus of FIG. 1 and is a diagram illustrating an example of a reference filter coefficient set. 図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の一例を説明するための図で、変換行列の一例を示す図である。FIG. 6 is a diagram for explaining an example of filter coefficient setting processing in a filter coefficient setting unit in the image forming apparatus of FIG. 1, and is a diagram illustrating an example of a transformation matrix. 図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の一例を説明するための図で、変換行列の他の例を示す図である。FIG. 10 is a diagram for explaining an example of filter coefficient setting processing in a filter coefficient setting unit in the image forming apparatus of FIG. 1, and is a diagram illustrating another example of a transformation matrix. 図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の一例を説明するための図で、変換行列の他の例を示す図である。FIG. 10 is a diagram for explaining an example of filter coefficient setting processing in a filter coefficient setting unit in the image forming apparatus of FIG. 1, and is a diagram illustrating another example of a transformation matrix. 図7の基準フィルタ係数セットを図8Aの変換行列で変換した結果のフィルタ係数セットを示す図である。It is a figure which shows the filter coefficient set of the result of having converted the reference | standard filter coefficient set of FIG. 7 with the conversion matrix of FIG. 8A. 図7の基準フィルタ係数セットを図8Bの変換行列で変換した結果のフィルタ係数セットを示す図である。It is a figure which shows the filter coefficient set of the result of having converted the reference | standard filter coefficient set of FIG. 7 with the conversion matrix of FIG. 8B. 図7の基準フィルタ係数セットを図8Cの変換行列で変換した結果のフィルタ係数セットを示す図である。It is a figure which shows the filter coefficient set of the result of having converted the reference | standard filter coefficient set of FIG. 7 with the conversion matrix of FIG. 8C. 図9A〜図9Cのフィルタ係数セットの主走査方向の周波数特性を示す図である。It is a figure which shows the frequency characteristic of the main scanning direction of the filter coefficient set of FIG. 9A-FIG. 9C. 図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の一例を説明するためのフロー図である。FIG. 7 is a flowchart for explaining an example of filter coefficient setting processing in a filter coefficient setting unit in the image forming apparatus of FIG. 1. 図11に続くフロー図である。FIG. 12 is a flowchart following FIG. 11.

以下、本発明の一実施形態に係る画像処理装置について、その画像処理装置を備えた画像形成装置を例に挙げて説明する。
図1は、本発明の一実施形態に係る画像処理装置を備える画像形成装置の一構成例を示すブロック図である。図1で例示する画像形成装置100は、例えばデジタルカラー複写機であり、カラー画像入力装置1、カラー画像処理装置2(画像処理装置)、画像形成手段としてのカラー画像出力装置3、及び各種操作を行なうための操作パネル4などを備える。カラー画像入力装置1で原稿を読み込むことにより得られたRGB(R:赤、G:緑、B:青)のアナログ信号の画像データは、カラー画像処理装置2へ出力され、カラー画像処理装置2で所定の処理が施され、CMYK(C:シアン、M:マゼンダ、Y:イエロー、K:黒)のデジタルカラー信号としてカラー画像出力装置3へ出力される。
Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described by taking an image forming apparatus including the image processing apparatus as an example.
FIG. 1 is a block diagram illustrating a configuration example of an image forming apparatus including an image processing apparatus according to an embodiment of the present invention. An image forming apparatus 100 illustrated in FIG. 1 is, for example, a digital color copying machine, a color image input apparatus 1, a color image processing apparatus 2 (image processing apparatus), a color image output apparatus 3 as an image forming unit, and various operations. An operation panel 4 for performing the above is provided. Image data of analog signals of RGB (R: red, G: green, B: blue) obtained by reading a document with the color image input device 1 is output to the color image processing device 2, and the color image processing device 2 Then, a predetermined process is performed, and a digital color signal of CMYK (C: cyan, M: magenta, Y: yellow, K: black) is output to the color image output device 3.

カラー画像入力装置1は、例えばCCD(Charged Coupled Device)を備えたスキャナであり、複数の画素が2次元に配置された原稿画像からの反射光像をRGBのアナログ信号として読み取り、読み取ったRGB信号をカラー画像処理装置2へ出力する。また、カラー画像出力装置3は、原稿画像の画像データに基づいて、複数の画素が2次元に配置された画像を記録紙上に出力する電子写真方式又はインクジェット方式などのプリンタである。また、カラー画像出力装置3は、ディスプレイ等の表示装置であってもよい。   The color image input device 1 is a scanner having, for example, a CCD (Charged Coupled Device), reads a reflected light image from a document image in which a plurality of pixels are arranged two-dimensionally as an RGB analog signal, and reads the read RGB signal Is output to the color image processing apparatus 2. The color image output device 3 is a printer such as an electrophotographic system or an inkjet system that outputs an image in which a plurality of pixels are two-dimensionally arranged on a recording sheet based on image data of an original image. The color image output device 3 may be a display device such as a display.

カラー画像処理装置2は、本発明に係る画像処理装置の一例であり、A/D変換部20、シェーディング補正部21、入力階調補正部22、領域分離処理部23、色補正部24、黒生成下色除去部25、空間フィルタ処理部26、変倍部27、出力階調補正部28、階調再現処理部29、フィルタ係数設定部30、及びこれらのハードウェア各部の動作を制御するCPU(Central Processing Unit)又はDSP(Digital Signal Processor)等を備え、ASIC(Application Specific Integrated Circuit)などにより構成される。   The color image processing apparatus 2 is an example of an image processing apparatus according to the present invention, and includes an A / D conversion unit 20, a shading correction unit 21, an input tone correction unit 22, a region separation processing unit 23, a color correction unit 24, and a black color. CPU for controlling the operation of the generated under color removal unit 25, the spatial filter processing unit 26, the scaling unit 27, the output tone correction unit 28, the tone reproduction processing unit 29, the filter coefficient setting unit 30, and these hardware units (Central Processing Unit) or DSP (Digital Signal Processor) or the like, and is configured by an ASIC (Application Specific Integrated Circuit) or the like.

A/D(アナログ/デジタル)変換部20は、カラー画像入力装置1から入力されたRGB信号を、例えば、10ビットのデジタル信号に変換し、変換後のRGB信号をシェーディング補正部21へ出力する。   The A / D (analog / digital) converter 20 converts the RGB signal input from the color image input device 1 into, for example, a 10-bit digital signal, and outputs the converted RGB signal to the shading correction unit 21. .

シェーディング補正部21は、入力されたRGB信号に対して、カラー画像入力装置1の照明系、結像系、撮像系などで生じた各種の歪みを取り除く補正処理を行ない、補正後のRGB信号を入力階調補正部22へ出力する。   The shading correction unit 21 performs a correction process for removing various distortions generated in the illumination system, the imaging system, the imaging system, and the like of the color image input apparatus 1 on the input RGB signal, and the corrected RGB signal is converted into a corrected RGB signal. Output to the input tone correction unit 22.

入力階調補正部22は、シェーディング補正部21にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)に対して、濃度信号などカラー画像処理装置2に採用されている画像処理システムの扱い易い信号に変換すると共に、カラーバランスを整える処理、下地濃度の除去又はコントラストなどの画質調整処理を施し、処理後のRGB信号を領域分離処理部23へ出力する。   The input tone correction unit 22 is an image processing system employed in the color image processing apparatus 2 such as a density signal for the RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 21. In addition, the image signal is converted into an easy-to-handle signal, image quality adjustment processing such as color balance adjustment, background density removal or contrast is performed, and the processed RGB signal is output to the region separation processing unit 23.

領域分離処理部23は、入力されたRGB信号に基づき、入力された画像中の各画素を、例えば文字領域、網点領域、写真領域、その他の領域等の何れに属するかを判定し、各画素を分離する。領域分離処理部23は、分離結果に基づいて、各画素がどの領域に属しているかを示す領域識別信号を、色補正部24、黒生成下色除去部25、空間フィルタ処理部26、及び階調再現処理部29へ出力する。また、領域分離処理部23は、入力されたRGB信号をそのまま後段の色補正部24へ出力する。   Based on the input RGB signal, the region separation processing unit 23 determines whether each pixel in the input image belongs to, for example, a character region, a dot region, a photographic region, or other regions, Separate the pixels. Based on the separation result, the region separation processing unit 23 outputs a region identification signal indicating to which region each pixel belongs to a color correction unit 24, a black generation and under color removal unit 25, a spatial filter processing unit 26, and a floor. Output to the key reproduction processing unit 29. The region separation processing unit 23 outputs the input RGB signal as it is to the subsequent color correction unit 24.

色補正部24は、領域分離処理部23から入力された領域識別信号が示す各領域に応じて、領域分離処理部23から入力されたRGB信号をCMYの色空間に変換し、カラー画像出力装置3の特性に合わせて色補正を行ない、補正後のCMY信号を黒生成下色除去部25へ出力する。具体的には、色補正部24は、色再現の忠実化実現のため、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行なう。   The color correction unit 24 converts the RGB signal input from the region separation processing unit 23 into a CMY color space according to each region indicated by the region identification signal input from the region separation processing unit 23, and outputs a color image output device. The color correction is performed in accordance with the characteristic 3 and the corrected CMY signal is output to the black generation and under color removal unit 25. Specifically, the color correction unit 24 performs a process of removing color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components in order to achieve faithful color reproduction.

黒生成下色除去部25は、領域分離処理部23から入力された領域識別信号が示す各領域に応じて、色補正部24から入力されたCMY信号に基づいて、K(黒)信号を生成する黒生成処理を行なうとともに、入力されたCMY信号からK信号を差し引いて新たなCMY信号を生成する下色除去処理を行ない、生成したCMYK信号を空間フィルタ処理部26へ出力する。   The black generation and under color removal unit 25 generates a K (black) signal based on the CMY signal input from the color correction unit 24 in accordance with each region indicated by the region identification signal input from the region separation processing unit 23. In addition, a black generation process is performed, and under color removal processing is performed to generate a new CMY signal by subtracting the K signal from the input CMY signal, and the generated CMYK signal is output to the spatial filter processing unit 26.

黒生成下色除去部25における黒生成処理の一例を示す。例えば、スケルトンブラックによる黒生成処理といった一般的な処理の場合、スケルトンカーブの入出力特性をy=f(x)とし、入力されるデータをC、M、Yとし、出力されるデータをC′、M′、Y′、K′とし、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成下色除去処理により出力されるデータの夫々は、K′=f{min(C、M、Y)}、C′=C−αK′、M′=M−αK′、Y′=Y−αK′で表される。   An example of black generation processing in the black generation and under color removal unit 25 will be described. For example, in the case of general processing such as black generation processing using skeleton black, the input / output characteristics of the skeleton curve are y = f (x), the input data are C, M, and Y, and the output data is C ′. , M ′, Y ′, and K ′, and the UCR (Under Color Removal) rate is α (0 <α <1), the data output by the black generation and under color removal processing is K ′ = f { min (C, M, Y)}, C ′ = C−αK ′, M ′ = M−αK ′, and Y ′ = Y−αK ′.

本発明に係るカラー画像処理装置2は、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理(フィルタ係数を用いた演算を伴うフィルタ処理)を施す装置であり、そのために空間フィルタ処理部26を備えている。   The color image processing apparatus 2 according to the present invention is an apparatus that performs filter processing (filter processing with computation using filter coefficients) on image data for forming an image in which a plurality of pixels are two-dimensionally arranged. For this purpose, a spatial filter processing unit 26 is provided.

空間フィルタ処理部26は、黒生成下色除去部25によって黒生成処理が施されたCMYK信号に対して、領域分離処理部23から入力された領域識別信号が示す各領域と、フィルタ係数設定部30によって設定されたフィルタ係数セットとに基づくデジタルフィルタ(フィルタ係数セット)による空間フィルタ処理を行ない、処理後の画像データ(CMYK信号)を変倍部27へ出力する。空間フィルタ処理では、注目画素に対し、注目画素と近隣の画素の画素値のそれぞれに対して空間的位置に対応するフィルタ係数を乗算することでフィルタリングを行なう。これにより、画像データの空間周波数特性が補正され、カラー画像出力装置3における出力画像のぼやけや粒状性劣化を防止する。   The spatial filter processing unit 26 includes each region indicated by the region identification signal input from the region separation processing unit 23 and a filter coefficient setting unit for the CMYK signal that has been subjected to black generation processing by the black generation and under color removal unit 25. Spatial filter processing using a digital filter (filter coefficient set) based on the filter coefficient set set by 30 is performed, and the processed image data (CMYK signal) is output to the scaling unit 27. In the spatial filter process, filtering is performed by multiplying the pixel of interest by the filter coefficient corresponding to the spatial position for each of the pixel values of the pixel of interest and neighboring pixels. Thereby, the spatial frequency characteristics of the image data are corrected, and blurring and graininess deterioration of the output image in the color image output device 3 are prevented.

より具体的には、空間フィルタ処理部26は、黒生成処理が施されたCMYK信号に対し、領域識別信号が示す領域毎に、フィルタ係数設定部30によってその領域識別信号(つまりその領域の種類)に対応して設定されたフィルタ係数セットを用いて空間フィルタ処理を行なう。例えば、空間フィルタ処理部26は、領域分離処理部23において文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、鮮鋭強調処理を施し高周波成分を強調する。また、空間フィルタ処理部26は、領域分離処理部23において網点領域に分離された領域を、入力網点成分を除去するためのローパス・フィルタ処理を施す。   More specifically, the spatial filter processing unit 26 performs, for each region indicated by the region identification signal, the region identification signal (that is, the type of the region) by the filter coefficient setting unit 30 for each region indicated by the region identification signal. The spatial filter processing is performed using the filter coefficient set set corresponding to (). For example, the spatial filter processing unit 26 performs sharp enhancement processing on the regions separated into character regions by the region separation processing unit 23 to enhance the reproducibility of black characters or color characters, and emphasizes high frequency components. In addition, the spatial filter processing unit 26 performs a low-pass filter process for removing the input halftone component on the region separated by the halftone dot region in the region separation processing unit 23.

以下、説明の簡略化のため、フィルタ係数設定部30及び空間フィルタ処理部26について、領域の種類が1種類である場合を説明するが、実際には、領域識別信号の種類毎(つまり領域分離処理部23で分離する領域の種類毎)に、基準フィルタ係数セットが存在し、その結果として算出され、空間フィルタ処理部26で使用されるフィルタ係数セットも領域識別信号の種類毎に異なってくる。よって、例えば領域分離処理部23で文字領域と網点領域との2種類に領域を分離するのであれば、基準フィルタ係数セットや使用されるフィルタ係数セットは文字領域用と網点領域用とで2種類存在することになる。   In the following, for simplification of description, the case where the filter coefficient setting unit 30 and the spatial filter processing unit 26 have one type of region will be described. There is a reference filter coefficient set for each type of region separated by the processing unit 23, and the filter coefficient set calculated as a result and used by the spatial filter processing unit 26 is also different for each type of region identification signal. . Therefore, for example, if the region separation processing unit 23 separates the region into two types, that is, a character region and a halftone dot region, the reference filter coefficient set and the filter coefficient set used are for the character region and the halftone dot region. There will be two types.

変倍部27は、操作パネル4を介してユーザが指定した主走査方向及び副走査方向の変倍率に基づいて、空間フィルタ処理部26から入力されたCMYK信号に対して、拡大処理又は縮小処理(変倍処理)を行ない、出力階調補正部28へ出力する。画像データ(CMYK信号)に対して行なう変倍処理は、主走査方向及び副走査方向のそれぞれに対して補間演算により画素データを補間(解像度を高くする場合)又は間引き(解像度を低くする場合)することによって実現される。また、副走査方向に対しては光学的に変倍処理を行ない、主走査方向に対しては補間演算による変倍処理を行なうようにしてもよい。   The scaling unit 27 enlarges or reduces the CMYK signal input from the spatial filter processing unit 26 based on the scaling factors in the main scanning direction and the sub-scanning direction specified by the user via the operation panel 4. (Variation processing) is performed and output to the output tone correction unit 28. The scaling process performed on the image data (CMYK signal) is performed by interpolating pixel data (in the case of increasing the resolution) or thinning out (in the case of decreasing the resolution) in the main scanning direction and the sub-scanning direction. It is realized by doing. Further, the scaling process may be optically performed in the sub-scanning direction, and the scaling process by interpolation may be performed in the main scanning direction.

尚、本実施形態において、変倍率は、画像データを拡大又は縮小して出力する際にユーザによって操作パネル4を介して入力(指定)される変倍率に限ったものではない。例えば、カラー画像入力装置1による読み取り速度を変更(速く又は遅く)して原稿画像を読み取り、等倍の画像データ(画像の倍率が100%)に変換してカラー画像出力装置3へ出力する際に、副走査方向の画像データに対して行なう補間処理における変倍率も含まれる。   In the present embodiment, the scaling factor is not limited to the scaling factor input (designated) by the user via the operation panel 4 when the image data is enlarged or reduced and output. For example, when the original image is read by changing the reading speed by the color image input device 1 (faster or slower), converted to the same size image data (image magnification is 100%), and output to the color image output device 3 In addition, the scaling factor in the interpolation processing performed on the image data in the sub-scanning direction is also included.

例えば、カラー画像入力装置1による標準の読み取り解像度(読込解像度)が600dpi(dot per inch)、つまり600dpi×600dpiであるとすると、カラー画像入力装置1による読み取り速度を例えば2倍に速くした場合、例えば読込解像度が600dpi×300dpiとなり、読み取られる画像データが50%に縮小される。縮小された画像データを、等倍の画像データに変換してカラー画像出力装置3へ出力する場合、変倍部27において、等倍(100%)の画像データへの変換処理(補間処理)が行なわれる。   For example, when the standard reading resolution (reading resolution) by the color image input device 1 is 600 dpi (dot per inch), that is, 600 dpi × 600 dpi, when the reading speed by the color image input device 1 is doubled, for example, For example, the reading resolution is 600 dpi × 300 dpi, and the read image data is reduced to 50%. When the reduced image data is converted into equal-size image data and output to the color image output device 3, the scaling unit 27 performs conversion processing (interpolation processing) into equal-size (100%) image data. Done.

補間処理としては、ニアレストネイバー法、バイリニア法、バイキュービック法などを用いることができる。ニアレストネイバー法は、補間する画素(補間画素)に一番近い既存画素の画素値、又は補間画素に対して所定の位置関係にある既存画素の画素値を補間画素の画素値とする方法である。バイリニア法は、補間画素を囲む4点の既存画素の画素値に、補間画素からの距離に比例した値を重み付けし、得られた値の平均値を補間画素の画素値とする方法である。バイキュービック法は、補間画素を囲む4点の既存画素に、それらを囲む12点の既存画素を加えた合計16点の既存画素の画素値に基づいて算出した値を補間画素の画素値とする方法である。   As the interpolation process, a nearest neighbor method, a bilinear method, a bicubic method, or the like can be used. The nearest neighbor method is a method in which a pixel value of an existing pixel closest to a pixel to be interpolated (interpolated pixel) or a pixel value of an existing pixel having a predetermined positional relationship with respect to the interpolated pixel is used as the pixel value of the interpolated pixel. is there. The bilinear method is a method in which the pixel values of four existing pixels surrounding the interpolation pixel are weighted with values proportional to the distance from the interpolation pixel, and the average value of the obtained values is used as the pixel value of the interpolation pixel. In the bicubic method, a value calculated based on pixel values of a total of 16 existing pixels obtained by adding 12 existing pixels surrounding them to 4 existing pixels surrounding the interpolation pixel is used as the pixel value of the interpolation pixel. Is the method.

出力階調補正部28は、変倍部27から入力されたCMYK信号(濃度信号)に対して、カラー画像出力装置3の特性値である網点面積率に変換する出力階調補正処理を行ない、出力階調補正処理後のCMYK信号を階調再現処理部29へ出力する。   The output tone correction unit 28 performs output tone correction processing for converting the CMYK signal (density signal) input from the scaling unit 27 into a halftone dot area ratio that is a characteristic value of the color image output device 3. The CMYK signal after the output tone correction processing is output to the tone reproduction processing unit 29.

階調再現処理部29は、領域分離処理部23から入力された領域識別信号が示す各領域に基づいて、出力階調補正部28から入力されたCMYK信号に対して所定の処理を行なう。例えば、階調再現処理部29は、文字領域に分離された領域を、特に黒文字又は色文字の再現性を高めるため、カラー画像出力装置3における高周波成分の再現に適した高解像度のスクリーンでの二値化処理又は多値化処理を行なう。   The gradation reproduction processing unit 29 performs predetermined processing on the CMYK signal input from the output gradation correction unit 28 based on each region indicated by the region identification signal input from the region separation processing unit 23. For example, the gradation reproduction processing unit 29 uses a high-resolution screen suitable for reproducing high-frequency components in the color image output device 3 in order to improve the reproducibility of the region separated into character regions, particularly black characters or color characters. Binarization processing or multilevel processing is performed.

また、階調再現処理部29は、領域分離処理部23において網点領域に分離された領域を、最終的に画像を画素に分離して、それぞれの階調を再現できるように階調再現処理(中間調生成)を行なう。更に、階調再現処理部29は、領域分離処理部23において写真領域に分離された領域を、カラー画像出力装置3における階調再現性を重視したスクリーンでの二値化処理又は多値化処理を行なう。   In addition, the gradation reproduction processing unit 29 performs gradation reproduction processing so that the region separated by the halftone dot region in the region separation processing unit 23 can be finally separated into pixels and the respective gradations can be reproduced. (Halftone generation) is performed. Further, the gradation reproduction processing unit 29 binarizes or multi-values the region separated into the photographic region by the region separation processing unit 23 on the screen with an emphasis on gradation reproducibility in the color image output device 3. To do.

フィルタ係数設定部30は、空間フィルタ処理部26で用いるフィルタ係数セットを設定する。フィルタ係数設定部30での設定は、本発明の主たる特徴であり、その詳細については後述する。   The filter coefficient setting unit 30 sets a filter coefficient set used in the spatial filter processing unit 26. The setting in the filter coefficient setting unit 30 is a main feature of the present invention, and details thereof will be described later.

カラー画像処理装置2は、階調再現処理部29で処理された画像データ(CMYK信号)を記憶部(不図示)に一旦記憶し、記憶部に記憶した画像データを画像形成をする所定のタイミングで読み出し、読み出した画像データをカラー画像出力装置3へ出力する。これらの制御は、例えば、CPU又はDSP(共に不図示)により行なわれる。   The color image processing apparatus 2 temporarily stores the image data (CMYK signal) processed by the gradation reproduction processing unit 29 in a storage unit (not shown), and performs a predetermined timing for image formation of the image data stored in the storage unit. The read image data is output to the color image output device 3. These controls are performed by, for example, a CPU or a DSP (both not shown).

操作パネル4は、例えば、液晶ディスプレイなどの表示部と設定ボタンなどにより構成され、操作パネル4より入力された情報に基づいてカラー画像入力装置1、カラー画像処理装置2、カラー画像出力装置3の動作が制御される。   The operation panel 4 includes, for example, a display unit such as a liquid crystal display and setting buttons. The color image input device 1, the color image processing device 2, and the color image output device 3 are based on information input from the operation panel 4. Operation is controlled.

本実施形態に係る画像形成装置100は、カラー画像入力装置1が原稿を読み取って取得した画像データ、若しくは外部から受信した画像データに対して、カラー画像処理装置2の変倍部27にて変倍処理を行なうと共に、この変倍処理に応じたフィルタ係数セットに基づく空間フィルタ処理を空間フィルタ処理部26にて行なうようにしてある。これにより、画像データに対して、主走査方向及び副走査方向に対してそれぞれ異なる変倍率での変倍処理を行なう場合であっても、高画質な原稿の出力を行なうことができる。尚、変倍処理の対象となる画像データは、上述のように外部から受信するなど、カラー画像入力装置1で原稿読み取りされたものに限らない。   In the image forming apparatus 100 according to the present embodiment, the scaling unit 27 of the color image processing apparatus 2 changes the image data acquired by reading the document by the color image input apparatus 1 or the image data received from the outside. In addition to performing the multiplication process, the spatial filter processing unit 26 performs the spatial filter process based on the filter coefficient set corresponding to the scaling process. As a result, even when scaling processing is performed on the image data at different scaling ratios in the main scanning direction and the sub-scanning direction, a high-quality original can be output. Note that the image data to be subjected to the scaling process is not limited to the data read from the original by the color image input device 1 such as received from the outside as described above.

以上の空間フィルタ処理部26及び変倍部27に関する説明では、変倍部27での処理が空間フィルタ処理部26での処理より後であることを前提として説明したが、変倍部27での処理は空間フィルタ処理部26での処理の前に実行するように構成してもよい。尚、図1では、フィルタ処理は空間フィルタ処理部26のみで行われるが、その前若しくは後の適当な箇所に、別のフィルタ処理部を追加することも可能である。   In the description regarding the spatial filter processing unit 26 and the scaling unit 27 described above, it has been described on the assumption that the processing in the scaling unit 27 is after the processing in the spatial filter processing unit 26. The process may be configured to be executed before the process in the spatial filter processing unit 26. In FIG. 1, the filter processing is performed only by the spatial filter processing unit 26, but another filter processing unit can be added at an appropriate position before or after the filter processing.

次に、本発明の主たる特徴として、空間フィルタ処理部26で使用されるフィルタ係数セットの詳細について、並びにフィルタ係数設定部30の詳細な構成及びフィルタ係数設定部30が行なう処理の詳細について説明する。尚、以下の説明において、記号C,M,Kを用いているが、これらの記号は無論、上記CMYK信号における色を表す記号とは異なるものである。   Next, as main features of the present invention, details of the filter coefficient set used in the spatial filter processing unit 26, a detailed configuration of the filter coefficient setting unit 30, and details of processing performed by the filter coefficient setting unit 30 will be described. . In the following description, symbols C, M, and K are used. Of course, these symbols are different from symbols representing colors in the CMYK signal.

まず、図2を参照しながら、空間フィルタ処理部26で使用されるフィルタの一般的な構成について説明する。図2に示すフィルタ50は、その縦、横のサイズが(2Ms+1)×(2Ss+1)のフィルタ係数セットでなり、カラー画像処理装置2に予め記憶されている。尚、フィルタ50や、後述のM及びSやM0及びS0でそのサイズが規定されるフィルタは、縦と横が異なったサイズでも同じサイズであってもよいが、注目画素に対称になるように縦、横のサイズは奇数であることが望ましい。図2のフィルタ50ではそのような例を挙げている。   First, a general configuration of a filter used in the spatial filter processing unit 26 will be described with reference to FIG. The filter 50 shown in FIG. 2 is a filter coefficient set whose vertical and horizontal sizes are (2Ms + 1) × (2Ss + 1), and is stored in the color image processing apparatus 2 in advance. Note that the filter 50 and the filters whose sizes are defined by M and S, which will be described later, and M0 and S0, may be the same size or different sizes in the vertical and horizontal directions. The vertical and horizontal sizes are preferably odd numbers. Such an example is given in the filter 50 of FIG.

フィルタ50において、フィルタ係数a[0,0]〜a[Ms,Ss]の取りうる数値は、共通の分母を持つ有理数又は、各々独立に分子、分母を設定した有理数である。図2の例では、中央に位置するフィルタ係数a[0,0]は注目画素に対するフィルタ係数にあたり、フィルタ係数a[0,0]〜a[Ms,0]、フィルタ係数a[0,0]〜a[0,Ss]は軸(それぞれ縦軸、横軸)にあたる。そして、これらの軸に対し、フィルタ係数を対称に設定しておくことで、図2中の斜線部分の係数については白地部分及び網点部分の係数と別個に設定、記憶しておく必要はなくなる。   In the filter 50, the numerical values that can be taken by the filter coefficients a [0, 0] to a [Ms, Ss] are rational numbers having a common denominator or rational numbers having a numerator and a denominator set independently. In the example of FIG. 2, the filter coefficient a [0, 0] located at the center corresponds to the filter coefficient for the pixel of interest, and the filter coefficients a [0, 0] to a [Ms, 0] and the filter coefficient a [0, 0]. ˜a [0, Ss] corresponds to the axes (vertical axis and horizontal axis, respectively). Then, by setting the filter coefficients symmetrically with respect to these axes, it is not necessary to set and store the hatched portion coefficients in FIG. 2 separately from the white background portion and halftone portion coefficients. .

次に、図3を併せて参照しながらフィルタ係数設定部30の一構成例を説明する。
図3で例示するフィルタ係数設定部30は、第1変換行列設定部301、第2変換行列設定部302、フィルタ係数セット選択部303、及び係数変換部304a,304bを備えている。尚、図3及び後述の図4において、符号にa,bが付く部位はそれぞれ第1変換行列設定部301,第2変換行列設定部302に対応した処理を行なうものとして区別してあり、以降では両者を一括して述べる場合、符号からa,bを省いた記載にすることもある。
Next, a configuration example of the filter coefficient setting unit 30 will be described with reference to FIG.
The filter coefficient setting unit 30 illustrated in FIG. 3 includes a first conversion matrix setting unit 301, a second conversion matrix setting unit 302, a filter coefficient set selection unit 303, and coefficient conversion units 304a and 304b. In FIG. 3 and FIG. 4 to be described later, the parts with a and b are distinguished as performing the processes corresponding to the first transformation matrix setting unit 301 and the second transformation matrix setting unit 302, respectively. When both are described collectively, the description may be made by omitting a and b from the reference numerals.

第1変換行列設定部301は、画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する。第2変換行列設定部302は、画像データに対して変倍処理を施す際の横方向(縦方向と直交する方向)の変倍率に応じて、第2の変換行列を設定する。第1、第2の変換行列の設定は算出により行なうことが望ましいが、対応する方向の変倍率に応じて予め記憶した変換行列の中から読み出すことで設定してもよい。縦方向の変倍率、横方向の変倍率はそれぞれ、主走査方向、副走査方向に対して指定された変倍率であり、以下では主走査方向変倍率、副走査方向変倍率と呼ぶ。   The first conversion matrix setting unit 301 sets the first conversion matrix according to the vertical scaling factor when the scaling process is performed on the image data. The second transformation matrix setting unit 302 sets the second transformation matrix according to the scaling factor in the horizontal direction (direction perpendicular to the vertical direction) when the scaling process is performed on the image data. The first and second conversion matrices are preferably set by calculation, but may be set by reading out from previously stored conversion matrices according to the scaling factors in the corresponding directions. The zoom ratio in the vertical direction and the zoom ratio in the horizontal direction are zoom ratios designated for the main scanning direction and the sub-scanning direction, respectively, and are hereinafter referred to as a main scanning direction scaling ratio and a sub-scanning direction scaling ratio.

フィルタ係数セット選択部303は、(i)画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットとに基づき、基準フィルタ係数セットを選択する選択部である。ここで、画像処理条件とは、(i−1)主走査方向の変倍率及び副走査方向の変倍率とは異なる所定の画像処理条件、或いは(i−2)その所定の画像処理条件に主走査方向の変倍率及び副走査方向の変倍率を加えた画像処理条件を指す。上記所定の画像処理条件としては、例えば平滑化する度合、エッジを強調する度合、原稿種などが挙げられる。画像処理条件は、ユーザによって操作パネル4から指定されるものに限らず、自動的に原稿を読み取った結果に基づき決定されてもよい。無論、どのような画像処理条件でも或るデフォルトの基準フィルタ係数セットを選択するように構成してもよい。   The filter coefficient set selection unit 303 is a selection unit that selects a reference filter coefficient set based on (i) image processing conditions and (ii) one or more filter coefficient sets stored in advance. Here, the image processing condition is either (i-1) a predetermined image processing condition different from the scaling factor in the main scanning direction and the scaling factor in the sub-scanning direction, or (i-2) the main processing condition under the predetermined image processing condition. This refers to image processing conditions including a magnification in the scanning direction and a magnification in the sub-scanning direction. Examples of the predetermined image processing conditions include the degree of smoothing, the degree of edge enhancement, and the document type. The image processing conditions are not limited to those designated from the operation panel 4 by the user, and may be determined based on the result of automatically reading the document. Of course, a certain default reference filter coefficient set may be selected under any image processing conditions.

係数変換部304aは、フィルタ係数セット選択部303で選択された基準フィルタ係数セットが示す行列(基準フィルタ係数セットを並べることで生成される行列)を、第1変換行列設定部301によって設定された第1の変換行列を用いて一次変換する。係数変換部304bは、フィルタ係数セット選択部303で選択された基準フィルタ係数セットが示す行列を、第2変換行列設定部302によって設定された第2の変換行列を用いて一次変換する。実際には、係数変換部304aで一次変換後のフィルタ係数セットに対し、係数変換部304bで第2の変換行列を用いて一次変換して空間フィルタ処理部26に出力するか、或いはその逆の手順で変換を行ない係数変換部304aから空間フィルタ処理部26に出力すればよい。以下では、前者の場合で説明する。   The coefficient conversion unit 304 a is set by the first conversion matrix setting unit 301 as a matrix (matrix generated by arranging the reference filter coefficient sets) indicated by the reference filter coefficient set selected by the filter coefficient set selection unit 303. A linear transformation is performed using the first transformation matrix. The coefficient conversion unit 304b performs primary conversion on the matrix indicated by the reference filter coefficient set selected by the filter coefficient set selection unit 303 using the second conversion matrix set by the second conversion matrix setting unit 302. Actually, the coefficient conversion unit 304a performs primary conversion on the filter coefficient set after the primary conversion using the second conversion matrix and outputs the result to the spatial filter processing unit 26, or vice versa. The conversion may be performed according to the procedure and output from the coefficient conversion unit 304a to the spatial filter processing unit 26. Hereinafter, the former case will be described.

尚、フィルタ係数設定部30は、係数変換部304a、係数変換部304bのうちいずれか一方を省略した構成とすることもできる。更にそのような構成の場合、省略した側(主走査方向又は副走査方向)に対応する変換行列設定部も省略しておき、そのような省略に合うような基準フィルタ係数セットの選択を行なうように構成することもできる。   Note that the filter coefficient setting unit 30 may have a configuration in which one of the coefficient conversion unit 304a and the coefficient conversion unit 304b is omitted. Further, in such a configuration, the conversion matrix setting unit corresponding to the omitted side (main scanning direction or sub-scanning direction) is also omitted, and a reference filter coefficient set that matches such omission is selected. It can also be configured.

このように、カラー画像処理装置2では、係数変換部が、フィルタ係数セット選択部303で選択された基準フィルタ係数セットが示す行列を、第1変換行列設定部301及び/又は第2変換行列設定部302によって設定された第1の変換行列及び/又は第2の変換行列を用いて一次変換する。図2の例で説明すると、選択された(Ms+1)×(Ss+1)の基準フィルタ係数セットに基づき、対称性を利用して(2Ms+1)×(2Ss+1)の基準フィルタ係数セットを作成した後に、それを一次変換するか、若しくは選択された(Ms+1)×(Ss+1)の基準フィルタ係数セットを一次変換し、対称性を利用して(2Ms+1)×(2Ss+1)のフィルタ係数セットを作成する。   As described above, in the color image processing apparatus 2, the coefficient conversion unit sets the matrix indicated by the reference filter coefficient set selected by the filter coefficient set selection unit 303 as the first conversion matrix setting unit 301 and / or the second conversion matrix setting. The linear transformation is performed using the first transformation matrix and / or the second transformation matrix set by the unit 302. Referring to the example of FIG. 2, after creating a (2Ms + 1) × (2Ss + 1) reference filter coefficient set using symmetry based on the selected (Ms + 1) × (Ss + 1) reference filter coefficient set, Is linearly transformed, or the selected (Ms + 1) × (Ss + 1) reference filter coefficient set is linearly transformed, and a (2Ms + 1) × (2Ss + 1) filter coefficient set is created using symmetry.

そして、空間フィルタ処理部26が、係数変換部304a及び/又は係数変換部304bで一次変換された後のフィルタ係数セットを用いて、画像データにフィルタ処理を施す。但し、本発明では、変倍処理に応じたフィルタ係数セットに基づく空間フィルタ処理を空間フィルタ処理部26にて行なうために、少なくとも縦横の変倍率が異なる場合には係数変換部が第1の変換行列と第2の変換行列の双方を用いて一次変換する。   Then, the spatial filter processing unit 26 performs filter processing on the image data using the filter coefficient set after the primary conversion by the coefficient conversion unit 304a and / or the coefficient conversion unit 304b. However, in the present invention, since the spatial filter processing based on the filter coefficient set corresponding to the scaling process is performed by the spatial filter processing unit 26, the coefficient conversion unit performs the first conversion when the vertical and horizontal scaling factors are different. The linear transformation is performed using both the matrix and the second transformation matrix.

本発明に係るカラー画像処理装置2は、このように2方向に対応する2つの変換行列を用いて基準フィルタ係数セットを一次変換し、それによって得られるフィルタ係数セットを用いてフィルタ処理を施す。これにより、主走査方向と副走査方向の変倍率とが異なる場合であっても、画像データの主走査方向及び副走査方向の両方の周波数特性を考慮して最適化されたフィルタ係数セットを生成することができ、画像処理を1回のフィルタ処理で行えることから画像処理時間を短縮できる。   The color image processing apparatus 2 according to the present invention performs primary conversion of the reference filter coefficient set using the two conversion matrices corresponding to the two directions as described above, and performs filter processing using the filter coefficient set obtained thereby. As a result, an optimized filter coefficient set is generated in consideration of the frequency characteristics of both the main scanning direction and the sub-scanning direction of the image data even when the scaling ratios in the main scanning direction and the sub-scanning direction are different. The image processing time can be shortened because the image processing can be performed by a single filtering process.

次に、図4を併せて参照しながらフィルタ係数設定部30の他の構成例を説明する。
ここで説明する構成例は、図3の構成例において、空間フィルタ処理部26で処理可能な行数と列数が決まっている場合(若しくは処理する行数と列数とを制限している場合)に対応させた構成例である。以下に図4の構成例についてその詳細を説明するが、図3の構成例に含まれる部位の詳細についても、基本的にこの説明で援用できる。
Next, another configuration example of the filter coefficient setting unit 30 will be described with reference to FIG.
In the configuration example described here, in the configuration example of FIG. 3, the number of rows and columns that can be processed by the spatial filter processing unit 26 is determined (or the number of rows and columns to be processed is limited). ). The details of the configuration example of FIG. 4 will be described below, but the details of the parts included in the configuration example of FIG. 3 can also be basically used in this description.

実際に変換の対象となるサイズを、図2において(2M+1)×(2S+1)で示している。また、空間フィルタ処理部26において処理可能な行数×列数に使われる係数は図2において網点で示している。つまり、本構成例での空間フィルタ処理部26では、最終的に網点部分(網点で示した箇所)を合わせたM0×S0のサイズのフィルタ係数セットでフィルタ処理が施されることになる。図2においては以上のサイズについてM0≦Ms、M≦Ms、S0≦Ss、S≦Ssを満たすものとする。   The actual size to be converted is indicated by (2M + 1) × (2S + 1) in FIG. Also, the coefficients used for the number of rows x the number of columns that can be processed by the spatial filter processing unit 26 are indicated by halftone dots in FIG. That is, in the spatial filter processing unit 26 in this configuration example, the filter processing is finally performed with a filter coefficient set having a size of M0 × S0 in which the halftone dot portions (locations indicated by the halftone dots) are combined. . In FIG. 2, it is assumed that M0 ≦ Ms, M ≦ Ms, S0 ≦ Ss, and S ≦ Ss for the above sizes.

図4で例示するフィルタ係数設定部30は、図3の構成例に加えて、サイズ修正部305a,305b、フィルタ係数結合部306a,306b、窓関数処理部307、及び除算係数算出部308を備えている。また、図4で例示するフィルタ係数設定部30は、部位301、304a〜306a、部位302、304b〜306bのうちいずれか一方を省略することもできる。   The filter coefficient setting unit 30 illustrated in FIG. 4 includes size correction units 305a and 305b, filter coefficient combination units 306a and 306b, a window function processing unit 307, and a division coefficient calculation unit 308 in addition to the configuration example of FIG. ing. In addition, the filter coefficient setting unit 30 illustrated in FIG. 4 can omit any one of the parts 301 and 304a to 306a and the parts 302 and 304b to 306b.

図4において、サイズ修正部305a,305b、フィルタ係数結合部306a,306b、窓関数処理部307、及び除算係数算出部308は、そのいずれかを省いた構成も可能である。また、サイズ修正部305a,305bとフィルタ係数結合部306a,306b、窓関数処理部307と除算係数算出部308の順序については図4に示す以外も可能であるが、図4に示す順序は最も望ましい順序である。   In FIG. 4, the size correction units 305a and 305b, the filter coefficient combination units 306a and 306b, the window function processing unit 307, and the division coefficient calculation unit 308 can be configured without any of them. The order of the size correction units 305a and 305b, the filter coefficient combination units 306a and 306b, the window function processing unit 307, and the division coefficient calculation unit 308 can be other than that shown in FIG. 4, but the order shown in FIG. This is the desired order.

まず、操作パネル4を介してユーザが指定した変倍率など、カラー画像処理装置2の変倍部27が行なうべき変倍処理の際の変倍率は、フィルタ係数設定部30の第1変換行列設定部301及び第2変換行列設定部302に入力される。尚、本実施形態の画像形成装置100は、主走査方向及び副走査方向のそれぞれに対して異なる変倍率の指定(設定)が可能に構成されており、主走査方向変倍率、副走査方向変倍率のいずれか一方が第1変換行列設定部301に、残りの一方が第2変換行列設定部302に入力される。実際には、ユーザ指定又はデフォルトの主走査方向の読込解像度(第1解像度)及び副走査方向の読込解像度(第2解像度)や、ユーザ指定又はデフォルトの主走査方向、副走査方向の変倍率により、実際の主走査方向変倍率、副走査方向変倍率が決まる。尚、以下、第1変換行列設定部301に主走査方向変倍率、第2変換行列設定部302に副走査方向変倍率を設定するものとして説明する。   First, the scaling factor in the scaling process to be performed by the scaling unit 27 of the color image processing apparatus 2, such as the scaling factor specified by the user via the operation panel 4, is set in the first conversion matrix of the filter coefficient setting unit 30. Input to the unit 301 and the second transformation matrix setting unit 302. Note that the image forming apparatus 100 according to the present embodiment is configured so that different magnifications can be specified (set) for each of the main scanning direction and the sub-scanning direction. One of the magnifications is input to the first transformation matrix setting unit 301, and the other one is input to the second transformation matrix setting unit 302. Actually, it depends on the reading resolution (first resolution) in the main scanning direction and the reading resolution (second resolution) in the sub-scanning direction specified by the user or the default scaling factor in the main scanning direction and sub-scanning direction specified by the user. The actual main scanning direction scaling factor and sub-scanning direction scaling factor are determined. In the following description, it is assumed that the first transformation matrix setting unit 301 sets the main scanning direction scaling factor and the second transformation matrix setting unit 302 sets the sub scanning direction scaling factor.

第1変換行列設定部301、第2変換行列設定部302は、それぞれ入力された主走査方向変倍率に対応した行列M(x′,x)、副走査方向変倍率に対応した行列S(y′,y)を算出し、係数変換部304a、係数変換部304bに出力する。この算出方法については後述する。   The first conversion matrix setting unit 301 and the second conversion matrix setting unit 302 respectively input a matrix M (x ′, x) corresponding to the input main scanning direction scaling factor and a matrix S (y) corresponding to the sub scanning direction scaling factor. ′, Y) is calculated and output to the coefficient conversion unit 304a and the coefficient conversion unit 304b. This calculation method will be described later.

メモリ(記憶部)300には、図2のフィルタ50、つまり(2Ms+1)×(2Ss+1)個のフィルタ係数が、基準フィルタ係数セットの抽出のために予め格納されている。尚、メモリ300は、フィルタ係数設定部30の中に設けられていてもよく、フィルタ係数設定部30の外部のカラー画像処理装置2の中に設けられていてもよく、カラー画像処理装置2の外部の画像形成装置100の中に設けられていてもよい。   In the memory (storage unit) 300, the filter 50 of FIG. 2, that is, (2Ms + 1) × (2Ss + 1) filter coefficients is stored in advance for extraction of a reference filter coefficient set. The memory 300 may be provided in the filter coefficient setting unit 30, may be provided in the color image processing device 2 outside the filter coefficient setting unit 30, or may be provided in the color image processing device 2. It may be provided in the external image forming apparatus 100.

フィルタ係数セット選択部303は、主走査方向変倍率及び副走査方向変倍率とそれ以外の所定の画像処理条件に基づき、メモリ300に格納されているフィルタ係数セットから基準フィルタ係数セットA(x,y)を選択して読み出す。上述したように、フィルタ係数は注目画素を通る主軸(縦軸)及び副軸(横軸)に対称であるため、斜線部分の係数はフィルタ係数セットの係数を使えばよく、敢えてメモリ300に格納する必要がない。フィルタ係数セット選択部303は、メモリ300から読み出した基準フィルタ係数セットA(x,y)を係数変換部304aへ出力する。   The filter coefficient set selection unit 303 selects a reference filter coefficient set A (x, X) from the filter coefficient set stored in the memory 300 based on the main scanning direction scaling ratio, the sub scanning direction scaling ratio, and other predetermined image processing conditions. y) Select and read. As described above, since the filter coefficient is symmetric with respect to the main axis (vertical axis) and the sub-axis (horizontal axis) passing through the pixel of interest, the coefficient in the hatched portion may use the coefficient of the filter coefficient set and is stored in the memory 300. There is no need to do. The filter coefficient set selection unit 303 outputs the reference filter coefficient set A (x, y) read from the memory 300 to the coefficient conversion unit 304a.

係数変換部304aは、第1変換行列設定部301から入力された行列M(x′,x)を用いて基準フィルタ係数セットA(x,y)を一次変換して係数変換部304bに出力する。係数変換部304bは、第2変換行列設定部302から入力された行列S(y′,y)を用いてそれを一次変換し、得られたフィルタ係数セットC(x′,y′)を空間フィルタ処理部26へ出力する。以上の計算は、まとめて式(1)のように表される。
C=M*A*S ・・・(1)
The coefficient conversion unit 304a performs primary conversion on the reference filter coefficient set A (x, y) using the matrix M (x ′, x) input from the first conversion matrix setting unit 301 and outputs the result to the coefficient conversion unit 304b. . The coefficient conversion unit 304b performs primary conversion using the matrix S (y ′, y) input from the second conversion matrix setting unit 302, and the obtained filter coefficient set C (x ′, y ′) is spatially converted. Output to the filter processing unit 26. The above calculations are collectively expressed as in equation (1).
C = M * A * S T (1)

ところで、係数変換部304における一次変換においては行列M(x′,x)のサイズM+1、行列S(y′,y)のサイズS+1はA(x,y)のサイズ(Ms+1)×(Ss+1)と異なってもよい。このとき、行列M(x′,x)によって変換されるA(x,y)の行は0〜M、行列S(y′,y)によって変換されるA(x,y)の列は0〜Sとなり、M+1行以降、S+1列以降は変換の対象とはならない。但し、この処理は行列M(x′,x)、行列S(y′,y)をM+1行以降、S+1列以降を変換しない設定で(Ms+1)×(Ss+1)のサイズにした場合と等価であり、計算式の上ではやはり式(1)で表すことができる。従って、一次変換に関しては以後の記述は行列M(x′,x),S(y′,y)のサイズはそれぞれMs+1,Ss+1として進めることにする。   By the way, in the primary conversion in the coefficient conversion unit 304, the size M + 1 of the matrix M (x ′, x) and the size S + 1 of the matrix S (y ′, y) are the size (Ms + 1) × (Ss + 1) of A (x, y). And may be different. At this time, the rows of A (x, y) converted by the matrix M (x ′, x) are 0 to M, and the columns of A (x, y) converted by the matrix S (y ′, y) are 0. ˜S, and M + 1 rows and after and S + 1 columns and after are not subject to conversion. However, this processing is equivalent to the case where the size of the matrix M (x ′, x) and the matrix S (y ′, y) is set to (Ms + 1) × (Ss + 1) with the setting of not converting M + 1 rows and later and S + 1 columns and later. Yes, it can also be expressed by the formula (1) on the calculation formula. Accordingly, with regard to the primary conversion, the subsequent description will proceed with the sizes of the matrices M (x ′, x) and S (y ′, y) as Ms + 1 and Ss + 1, respectively.

行列M(x′,x),S(y′,y)は、変倍率等の画像処理条件の設定に応じて算出される正方行列である。また、基準フィルタ係数セットA(x,y)もまた、変倍率等の画像処理条件の設定に応じて選択される行列である。いずれの画像処理条件にも上記所定の画像処理条件を含むことができるが、上述したように行列M(x′,x),S(y′,y)は少なくとも主走査方向変倍率及び副走査方向変倍率に応じて算出され、基準フィルタ係数セットA(x,y)は少なくともそれ以外の所定の画像処理条件に応じて選択される。   The matrices M (x ′, x) and S (y ′, y) are square matrices that are calculated according to the setting of image processing conditions such as a scaling factor. The reference filter coefficient set A (x, y) is also a matrix selected in accordance with the setting of image processing conditions such as a scaling factor. Any of the image processing conditions can include the predetermined image processing conditions. As described above, the matrices M (x ′, x) and S (y ′, y) have at least the main scanning direction scaling factor and the sub-scanning. The reference filter coefficient set A (x, y) is selected according to at least other predetermined image processing conditions.

更に、基準フィルタ係数セットA(x,y)、行列M(x′,x),S(y′,y)の選択に用いられる変倍率は、連続的に切り替えることができる変数である。そこで、主走査方向変倍率、副走査方向変倍率に対応する基準フィルタ係数セットA(x,y)、行列M(x′,x),S(y′,y)は、これらの変倍率をそれぞれ複数の区分に分割し、それぞれの区分に対応して選択される。   Furthermore, the scaling factor used for selecting the reference filter coefficient set A (x, y), the matrix M (x ′, x), and S (y ′, y) is a variable that can be switched continuously. Therefore, the reference filter coefficient set A (x, y) and the matrices M (x ′, x) and S (y ′, y) corresponding to the main scanning direction scaling factor and the sub-scanning direction scaling factor have these scaling factors. Each is divided into a plurality of sections, and selected according to each section.

変倍率だけを用いる例に限らず、フィルタ係数設定部30では、上記所定の画像処理条件に含まれる条件につき、或いは、上記所定の画像処理条件に主走査方向の変倍率及び副走査方向の変倍率を加えた画像処理条件に含まれる条件につき、それぞれ複数の区分に分け、各区分で、第1の変換行列及び第2の変換行列及び/又は基準フィルタ係数セットを切り替えることが好ましい。これにより、画像処理条件に含まれる条件毎に細かくフィルタ処理時のフィルタを切り替えることができる。   The filter coefficient setting unit 30 is not limited to the example using only the scaling factor, and the filter coefficient setting unit 30 changes the scaling factor in the main scanning direction and the sub-scanning direction according to the conditions included in the predetermined image processing condition or the predetermined image processing condition. The conditions included in the image processing conditions to which the magnification is added are preferably divided into a plurality of sections, and the first conversion matrix, the second conversion matrix, and / or the reference filter coefficient set are switched in each section. Thereby, the filter at the time of filter processing can be finely switched for every condition included in the image processing condition.

このとき、隣り合う二つの区分における基準フィルタ係数セットA(x,y)、行列M(x′,x),S(y′,y)は、区分の境界上及びそれを挟む計3つの変倍率におけるフィルタ係数セットC(x′,y′)のフィルタ処理における画像への効果の差異が小さくなるよう設定されることが好ましい。つまり、それぞれの区分で生成されたフィルタ係数の空間周波数特性の誤差が小さくなるよう、それぞれの区分におけるA(x,y)や行列M(x′,x),S(y′,y)を設定することが好ましい。尚、境界上における基準フィルタ係数セットA(x,y)、行列M(x′,x),S(y′,y)は、その両側の区分のいずれか1つそのもの、或いはその両側の区分のいずれか1つから算出される。   At this time, the reference filter coefficient set A (x, y), the matrix M (x ′, x), and S (y ′, y) in two adjacent sections are divided into three variables on the boundary of the section and between them. It is preferable that the difference in effect on the image in the filter processing of the filter coefficient set C (x ′, y ′) at the magnification is set to be small. That is, A (x, y), matrix M (x ′, x), and S (y ′, y) in each section are reduced so that the error of the spatial frequency characteristic of the filter coefficient generated in each section is reduced. It is preferable to set. Note that the reference filter coefficient set A (x, y), matrix M (x ′, x), and S (y ′, y) on the boundary are either one of the sections on both sides or the sections on both sides. It is calculated from any one of these.

尚、ここでは、条件毎に上記複数の区分に分けられるため、例えば連続的に値が変化する2つの条件P,Qがあった場合、条件PについてNp個に区分分けされたそれぞれについて条件QについてNq個に区分分けすることで、合計Np×Nq個に区分分けし、各区分について基準フィルタ係数セットA(x,y)及び/又は行列M(x′,x),S(y′,y)を設定すればよい。但し、条件Pと条件Qとでは通常、区分の分け方や境界上での値の設定などが異なることになる。   Here, since each condition is divided into the plurality of sections, for example, when there are two conditions P and Q whose values continuously change, the condition Q is divided into Np sections for the condition P. Is divided into a total of Np × Nq, and the reference filter coefficient set A (x, y) and / or the matrix M (x ′, x), S (y ′, y) may be set. However, the condition P and the condition Q usually differ in how to divide the divisions and set values on the boundaries.

また、本構成例では、基準フィルタ係数セットA(x,y)の行数Ms、列数Ssは、空間フィルタ処理部26において可能な行数M0、列数N0より大きくてもよい。但し、その場合は変換後のフィルタ係数セットC(x′,y′)の行数、列数は基準フィルタ係数セットA(x,y)と同じとなり、そのままでは空間フィルタ処理部26でのフィルタ処理には使えない。   In this configuration example, the number of rows Ms and the number of columns Ss of the reference filter coefficient set A (x, y) may be larger than the number of rows M0 and the number of columns N0 possible in the spatial filter processing unit 26. However, in this case, the number of rows and the number of columns of the converted filter coefficient set C (x ′, y ′) are the same as those of the reference filter coefficient set A (x, y). It cannot be used for processing.

そこで、サイズ修正部305を設け、サイズ修正部305において、行数をM0以下、列数をS0以下に修正する。このときのサイズ修正部305a又は305bでのフィルタサイズ削減処理の一例を図5に示す。フィルタ係数は、注目画素からM行目、S列目から始めて注目画素により近い行、列へ順に削除される。   Therefore, a size correction unit 305 is provided, and the size correction unit 305 corrects the number of rows to M0 or less and the number of columns to S0 or less. An example of the filter size reduction processing in the size correction unit 305a or 305b at this time is shown in FIG. The filter coefficients are deleted in order from the target pixel to the Mth row and the Sth column, starting with the row and column closer to the target pixel.

その際の行方向についての処理は、サイズ修正部305aが以下のように行なう。まず、Ms≧m>Mの行をフィルタ結合部306aに先に出力した後(ステップS10)、残ったM+1行については行数がM0+M−Msとなるまでは無条件に削除される(ステップS11でYESの場合、ステップS12)。行数がM0+M−Msとなった場合は(ステップS11でNOの場合)、注目画素から最も離れた行におけるフィルタ係数の総和が算出され(ステップS13)、閾値より小さい場合はその行の係数が全て0に置き換えられる(ステップS14でYESの場合、ステップS15)。この処理が繰り返され、注目画素から最も離れた行におけるフィルタ係数の総和が閾値を越えなくなる(ステップS14でNOとなる)まで続けられる。尚、この時の閾値はメモリ300に格納されているのから読み込んだものであり、その値はどの行も一定であってもよいし、行毎に設定されてもよい。尚、列方向についての処理も、行方向とは異なる方のサイズ修正部305bにおいて同様に処理する。この処理は、図5において「M行目」を「S列目」に、「Ms」を「Ss」に、「M」を「S」に、「M0」を「S0」に、「306a」を「306b」に、それぞれ置き換えたものであり、説明を省略する。   The processing in the row direction at that time is performed by the size correcting unit 305a as follows. First, after outputting Ms ≧ m> M rows to the filter combination unit 306a (step S10), the remaining M + 1 rows are unconditionally deleted until the number of rows reaches M0 + M−Ms (step S11). If YES, step S12). When the number of rows becomes M0 + M−Ms (NO in step S11), the sum of the filter coefficients in the row farthest from the target pixel is calculated (step S13). All are replaced with 0 (in the case of YES in step S14, step S15). This process is repeated until the sum of the filter coefficients in the row farthest from the target pixel does not exceed the threshold value (NO in step S14). Note that the threshold value at this time is read because it is stored in the memory 300, and the value may be constant for each line or may be set for each line. The processing in the column direction is similarly performed in the size correcting unit 305b that is different from the row direction. In FIG. 5, “Mth row” is changed to “Sth column”, “Ms” is changed to “Ss”, “M” is changed to “S”, “M0” is changed to “S0”, and “306a”. Is replaced with “306b”, and the description is omitted.

このようにして、サイズ修正部305a,305bにより、基準フィルタ係数セットA(x,y)が一次変換されたフィルタ係数セットのサイズが修正される。サイズ修正部305a,305bは、このようにして、一次変換後のフィルタ係数セットを、基準フィルタ係数セットのサイズ又は(予め)定められたサイズ(無論、予め定められた、基準フィルタセットのサイズであってもよい)に合わせるようにサイズの調整を行う。よって、サイズ修正部305a,305bはこのような調整を行うサイズ調整部と言える。尚、図4の処理手順で説明すると、サイズ修正部305aは修正後のフィルタ係数セットをフィルタ係数結合部306aに出力して先に出力したM+1行目以降の係数と結合する。サイズ修正部305bは修正後のフィルタ係数セットをフィルタ係数結合部306bに出力して先に出力したS+1行目以降の係数と結合する。   In this way, the size of the filter coefficient set obtained by linearly transforming the reference filter coefficient set A (x, y) is corrected by the size correction units 305a and 305b. In this way, the size correction units 305a and 305b convert the filter coefficient set after the primary conversion into the size of the reference filter coefficient set or a predetermined size (of course, the predetermined size of the reference filter set). Adjust the size so that it fits. Therefore, the size correction units 305a and 305b can be said to be size adjustment units that perform such adjustment. In the processing procedure of FIG. 4, the size correcting unit 305a outputs the corrected filter coefficient set to the filter coefficient combining unit 306a and combines it with the coefficients from the (M + 1) -th row output previously. The size correcting unit 305b outputs the corrected filter coefficient set to the filter coefficient combining unit 306b and combines it with the coefficients of the (S + 1) th and subsequent lines output previously.

更に、窓関数処理部307では、フィルタ係数結合部306bからの出力を入力し、入力したフィルタ係数セットに対し、窓関数によって算出されるフィルタと同じサイズの行列を要素毎に乗算することも可能である。そのような窓関数処理部307での窓関数処理に使用するフィルタの一例として、図6に行列(フィルタ係数セット)60を示す。行列60は、フィルタ係数結合部306bから例えば5×5個のフィルタ係数セットでなるフィルタが入力された場合に、そのフィルタに対して乗算する、主走査方向及び副走査方向についてハニング窓となるような行列の一例である。   Further, the window function processing unit 307 can input the output from the filter coefficient combining unit 306b and multiply the input filter coefficient set by a matrix having the same size as the filter calculated by the window function for each element. It is. FIG. 6 shows a matrix (filter coefficient set) 60 as an example of a filter used for window function processing in such a window function processing unit 307. The matrix 60 becomes a Hanning window in the main scanning direction and the sub-scanning direction when a filter composed of, for example, 5 × 5 filter coefficient sets is input from the filter coefficient combining unit 306b, and the filter is multiplied. This is an example of a simple matrix.

最後に、除算係数算出部308では、窓関数処理部307からの出力を入力し、入力したフィルタ係数セットについて除算係数の算出を行なう。ここでは、通常はフィルタ係数が変わっても濃度保存が維持されるよう、係数の総和を算出して除算係数とする演算が行われるが、これに限るものではない。   Finally, the division coefficient calculation unit 308 receives the output from the window function processing unit 307 and calculates a division coefficient for the input filter coefficient set. Here, the calculation is generally performed by calculating the sum of the coefficients to obtain the division coefficient so that the density preservation is maintained even if the filter coefficient is changed. However, the present invention is not limited to this.

以上のような一連の演算は、変倍率の変更など画像処理条件が変更されたときに実行される。但し、カラー画像処理装置2の起動時に最初に設定される初期変倍率に対応した変換行列を算出する際は、カラー画像処理装置2の起動時から最初にフィルタ処理を必要とする操作を開始するまでのいずれかの間に実行させることもできる。   The series of operations as described above are executed when the image processing conditions are changed, such as changing the magnification. However, when calculating the conversion matrix corresponding to the initial scaling ratio that is initially set when the color image processing apparatus 2 is started, an operation that requires filter processing first is started from the start of the color image processing apparatus 2. It can also be executed during any of the above.

尚、サイズ修正部305、フィルタ係数結合部306、窓関数処理部307、除算係数算出部308の演算、或いは部位304a〜306a、部位304b〜306bのうちいずれか一方又は両方の演算は、ユーザ操作により省略可能なように構成することが好ましい。また、前回の処理時から変倍率や読込解像度等、変換行列の算出に関わる設定の変更がない場合には、第1変換行列設定部及び/又は第2変換行列設定部による変換を省略するように構成しておくことが好ましい。更に、係数変換部304での処理から除算係数算出部308での処理までで得られたフィルタ係数セットと、フィルタ係数セット選択部303で選択されたフィルタ係数セットのうち、いずれかをユーザの操作により実際のフィルタ処理に用いるフィルタ係数セットとして選択することもできる。   The size correction unit 305, the filter coefficient combination unit 306, the window function processing unit 307, the division coefficient calculation unit 308, or any one or both of the parts 304a to 306a and parts 304b to 306b are operated by the user operation. It is preferable that the configuration can be omitted. Further, when there is no change in the setting related to the calculation of the conversion matrix such as the scaling factor and the reading resolution since the previous processing, the conversion by the first conversion matrix setting unit and / or the second conversion matrix setting unit is omitted. It is preferable to be configured as follows. Further, any one of the filter coefficient set obtained from the process in the coefficient conversion unit 304 to the process in the division coefficient calculation unit 308 and the filter coefficient set selected in the filter coefficient set selection unit 303 is operated by the user. Thus, it can be selected as a filter coefficient set used for actual filter processing.

次に、第1変換行列設定部301及び第2変換行列設定部302における、行列M(x′,x),S(y′,y)の算出の詳細について説明する。尚、行列表示は縦を主走査、横を副走査とする。   Next, details of calculation of the matrices M (x ′, x) and S (y ′, y) in the first transformation matrix setting unit 301 and the second transformation matrix setting unit 302 will be described. In the matrix display, the vertical scanning is the main scanning and the horizontal scanning is the sub-scanning.

フィルタ処理に用いられるフィルタの特性は一般にフーリエ変換によって表される。そのことは、式(2−1)に示すように、一次変換の形で表すことができる。
X1=FM*F*FS ・・・(2−1)
The characteristics of the filter used for the filter processing are generally expressed by Fourier transform. This can be expressed in the form of primary transformation as shown in equation (2-1).
X1 = FM * F * FS T (2-1)

ここで、Fはフィルタ、FM(u,x)はexp(−2πi*u*x/(2*Ms+1))をu行x列の要素とする2Ms+1行2Ms+1列の行列、FS(v,y)はexp(−2πi*v*y/(2*Ss+1))をv行y列の要素とする2Ss+1行2Ss+1列の行列、X1(u,v)は2Ms+1行Ss+1列の行列である。このとき、u及びxのとりうる整数値は−Ms〜+Ms、v及びyのとりうる整数値は−Ss〜+Ssである。尚、行列の右上のTは転置、即ち行と列を入れ替えることを示す。   Here, F is a filter, FM (u, x) is a matrix of 2Ms + 1 rows and 2Ms + 1 columns with exp (-2πi * u * x / (2 * Ms + 1)) as elements of u rows and x columns, and FS (v, y). ) Is a 2Ss + 1 row 2Ss + 1 column matrix with exp (−2πi * v * y / (2 * Ss + 1)) as an element of v rows and y columns, and X1 (u, v) is a matrix of 2Ms + 1 rows Ss + 1 columns. At this time, integer values that u and x can take are -Ms to + Ms, and integer values that v and y can take are -Ss to + Ss. Note that T in the upper right of the matrix indicates transposition, that is, replacement of rows and columns.

更に、画像処理に用いられるフィルタ係数は、図2で示したように一般に注目画素を通る主軸及び副軸に対称である。その場合、フィルタの要素を用いて生成される基準フィルタ係数セットA(x,y)のフーリエ変換X1(u,v)は、式(2−2)に示すようにcos関数のみで表すことができる。
X1=CM*A*CS ・・・(2−2)
Furthermore, as shown in FIG. 2, the filter coefficients used for image processing are generally symmetric with respect to the main axis and the sub-axis passing through the target pixel. In this case, the Fourier transform X1 (u, v) of the reference filter coefficient set A (x, y) generated using the filter elements can be expressed only by the cos function as shown in Expression (2-2). it can.
X1 = CM * A * CS T (2-2)

ここで、CM(u,x)はcos(−2π*u*x/(2*Ms+1))をu行x列の要素とするMs+1行Ms+1列の行列、CS(v,y)は、cos(−2π*v*y/(2*Ss+1))をv行y列の要素とするSs+1行Ss+1列の行列である。このとき、u及びxのとりうる整数値は0〜Ms、v及びyのとりうる整数値は0〜Ssである。また、A(x,y)は、式(2−3)によって算出される。
A=F(0:Ms、0:Ss) ・・・(2−3)
Here, CM (u, x) is a matrix of Ms + 1 rows and Ms + 1 columns with cos (-2π * u * x / (2 * Ms + 1)) as elements of u rows and x columns, and CS (v, y) is cos This is a matrix of Ss + 1 rows and Ss + 1 columns with (−2π * v * y / (2 * Ss + 1)) as elements of v rows and y columns. At this time, integer values that u and x can take are 0 to Ms, and integer values that v and y can take are 0 to Ss. A (x, y) is calculated by the equation (2-3).
A = F (0: Ms, 0: Ss) (2-3)

ここで、F(0:Ms、0:Ss)はフィルタFのu=0〜Ms行及びv=0〜Ss列を取り出したものである。   Here, F (0: Ms, 0: Ss) is obtained by extracting u = 0 to Ms rows and v = 0 to Ss columns of the filter F.

ところで、cos(−2π*u*x/(2*Ms+1))、cos(−2π*v*y/(2*Ss+1))は、それぞれcos(−2π*u/(2*Ms+1))、cos(−2π*v/(2*Ss+1))のチェビシェフ多項式で表すことが可能である。そのため、CM(u,x),CS(v,y)は式(3)のように変換することが可能である。
CM=DM*T、CS=DS*T ・・・(3)
By the way, cos (−2π * u * x / (2 * Ms + 1)) and cos (−2π * v * y / (2 * Ss + 1)) are respectively cos (−2π * u / (2 * Ms + 1)), Cos (−2π * v / (2 * Ss + 1)) Chebyshev polynomial. Therefore, CM (u, x) and CS (v, y) can be converted as shown in Equation (3).
CM = DM * T, CS = DS * T (3)

ここで、T(x1,x)、T(y1,y)は整数のみで構成される三角行列であり、その要素は式(4−1)の通りである。なお、式(4−1)中のmはx1又はy1、nはx又はyを示す。   Here, T (x1, x) and T (y1, y) are triangular matrices composed of only integers, and the elements are as in equation (4-1). In the formula (4-1), m represents x1 or y1, and n represents x or y.

m,n≦M又はSのとき
T(m,n)=K(m,n)*T0(m,n)
T0(0,0)=1、T0(0,1)=0、T0(1,1)=1
T0(m,n)=2*T0(m−1,n−1)−T0(m,n−2) (m≦n)
T0(m,n)=0 (m>n)
それ以外のとき
T0(m,n)=1 (m=n)、T0(m,n)=0 (m≠n)
・・・(4−1)
When m, n ≦ M or S, T (m, n) = K (m, n) * T0 (m, n)
T0 (0,0) = 1, T0 (0,1) = 0, T0 (1,1) = 1
T0 (m, n) = 2 * T0 (m-1, n-1) -T0 (m, n-2) (m≤n)
T0 (m, n) = 0 (m> n)
In other cases, T0 (m, n) = 1 (m = n), T0 (m, n) = 0 (m ≠ n)
... (4-1)

K(m,n)は整数値である。どのような整数を乗ずるかについては特に制約はないが、一般には次の式(4−2)が用いられる。
K(m,n)=1(n=0)、2(others) ・・・(4−2)
K (m, n) is an integer value. There is no particular restriction as to what integer is multiplied, but generally the following equation (4-2) is used.
K (m, n) = 1 (n = 0), 2 (others) (4-2)

また、DM(u,x1)はx1≦Mにおいては[cos(−2π*u/(2*Ms+1))]x1をu行x1列の要素とし、x1>MにおいてはCM(u,x1)をu行x1列の要素とするMs+1行Ms+1列の行列、DS(v,y1)はy1≦Sにおいては[cos(−2π*v/(2*Ss+1))]y1をv行y1列の要素とし、y1>SにおいてはCS(v,y1)をv行y1列の要素とするSs+1行Ss+1列の行列である。 Further, DM (u, x1) in the x1 ≦ M [cos (-2π * u / (2 * Ms + 1))] and x1 is an element of u rows x1 column, x1> in M CM (u, x1) Is a matrix of Ms + 1 rows and Ms + 1 columns with elements of u rows and x1 columns, DS (v, y1) is [cos (−2π * v / (2 * Ss + 1))] for y1 ≦ S, and y1 is of v rows and y1 columns It is a matrix of Ss + 1 rows and Ss + 1 columns with elements of and CS (v, y1) as elements of v rows and y1 columns when y1> S.

式(3)を用いることで、式(2−2)を式(5)の形に表現することができる。
X1=DM*T*A*T*DS ・・・(5)
By using Expression (3), Expression (2-2) can be expressed in the form of Expression (5).
X1 = DM * T * A * T T * DS T (5)

更に、式(3)を式(6)のように表現する。ここで、CMはx2≦Mにおいては[1−cos(−2π*u/(2*Ms+1))]x2をu行x2列の要素とし、x2>MにおいてはCM(u,x2)をu行x2列の要素とするMs+1行Ms+1列の行列EM(u,x2)を用いて表現し、CSはy2≦Sにおいては[1−cos(−2π*v/(2*Ss+1))]y2をv行y2列の要素とし、y2>SにおいてはCS(v,y2)をv行y2列の要素とするSs+1行Ss+1列の行列ES(v,y2)を用いて表現している。
CM=DM*T=EM*P*T、CS=DS*T=ES*P*T ・・・(6)
Furthermore, Expression (3) is expressed as Expression (6). Here, CM is [1-cos (-2π * u / (2 * Ms + 1))] when x2 ≦ M, and x2 is an element of u rows and x2 columns, and CM (u, x2) is u when x2> M. Expressed using a matrix EM (u, x2) of Ms + 1 rows Ms + 1 columns as elements of rows x2 columns, CS is [1-cos (−2π * v / (2 * Ss + 1))] y2 when y2 ≦ S. Is represented by a matrix ES (v, y2) of Ss + 1 row Ss + 1 column, where CS (v, y2) is an element of v row y2 column, where y is an element of v row y2 column.
CM = DM * T = EM * P * T, CS = DS * T = ES * P * T (6)

ここで、P(y2,y1)は整数のみで構成される三角行列であり、その要素は式(7)の通りである。なお、式(7)中のmはx2又はy2、nはx1又はy1を示す。   Here, P (y2, y1) is a triangular matrix composed of only integers, and its elements are as shown in Equation (7). In the formula (7), m represents x2 or y2, and n represents x1 or y1.

m,n≦M又はSのとき
P(0,1)=1
P(m,n)=−P(m−1,n−1)+P(m,n−1) (m≦n)
P(m,n)=0 (m>n)
それ以外のとき
P(m,n)=1 (m=n)、P(m,n)=0 (m≠n)
・・・(7)
When m, n ≦ M or S, P (0,1) = 1
P (m, n) = − P (m−1, n−1) + P (m, n−1) (m ≦ n)
P (m, n) = 0 (m> n)
Otherwise, P (m, n) = 1 (m = n), P (m, n) = 0 (m ≠ n)
... (7)

式(6)を用いることで、式(5)を式(8−1)の形に表現することができる。
X1=EM*P*T*A*T*P*ES ・・・(8−1)
By using Expression (6), Expression (5) can be expressed in the form of Expression (8-1).
X1 = EM * P * T * A * T T * P T * ES T (8-1)

次に、式(2−1)〜式(8−1)に基づいて、周波数特性を主走査方向、副走査方向に拡大・縮小する方法について記述する。
式(8−1)は、EMのx2≦Mでの要素がu=0のときに0、ESのy2≦Sでの要素がv=0のときに0となる多項式の形で表現されている。従って、[1−cos(−2π*u/(2*Ms+1))]、[1−cos(−2π*v/(2*Ss+1))]に各々適当な数値γM、γSを乗ずることにより、周波数特性を主走査方向、副走査方向に拡大、縮小することができる。この時の演算は式(9)のように表現することができる。
X2=EM*RM*P*T*A*T*P*RS*ES ・・・(9)
Next, a method for enlarging / reducing the frequency characteristic in the main scanning direction and the sub-scanning direction will be described based on the equations (2-1) to (8-1).
Expression (8-1) is expressed in the form of a polynomial that is 0 when the element at x2 ≦ M of EM is u = 0, and 0 when the element at y2 ≦ S of ES is v = 0. Yes. Therefore, by multiplying [1-cos (-2π * u / (2 * Ms + 1))] and [1-cos (−2π * v / (2 * Ss + 1))] by appropriate numerical values γM and γS, respectively. The frequency characteristics can be enlarged or reduced in the main scanning direction and the sub-scanning direction. The calculation at this time can be expressed as in Expression (9).
X2 = EM * RM * P * T * A * T T * P T * RS * ES T (9)

ここで、RM、RSは対角成分がγの等比数列で構成される対角行列であり、その対角成分は式(10)の通りに表される。
m≦M又はSのとき
RM(x2,x2)=γMu−1、 RS(y2,y2)=γSv−1
それ以外のとき
RM(x2,x2)=1、RS(y2,y2)=1
・・・(10)
Here, RM and RS are diagonal matrices composed of a geometric sequence with a diagonal component of γ, and the diagonal components are expressed as in Equation (10).
When m ≦ M or S, RM (x2, x2) = γM u−1 , RS (y2, y2) = γS v−1
Otherwise, RM (x2, x2) = 1, RS (y2, y2) = 1
(10)

γM、γSは、解像度や変倍率に応じてLUT(Look Up Table)等の形で設定することができる。これらの要素は通常、読込解像度が大きい程、又はユーザ指定の変倍率が小さい程、大きくなるように設定する。   γM and γS can be set in the form of an LUT (Look Up Table) or the like according to the resolution and the scaling factor. These elements are usually set to increase as the reading resolution increases or as the user-specified scaling factor decreases.

一方、拡大・縮小後のフィルタ係数セットC(x′,y′)のフーリエ変換は、式(8−1)と同様に表現することができる。
X2=EM*P*T*C*T*P*ES ・・・(8−2)
On the other hand, the Fourier transform of the filter coefficient set C (x ′, y ′) after enlargement / reduction can be expressed in the same manner as Expression (8-1).
X2 = EM * P * T * C * T T * P T * ES T (8-2)

式(8−2)及び式(9)より、フィルタ係数の変換を式(11)のように表すことができる。
C=(P*T)−1*RM*P*T*A*T*P*RS*(T*P−1
・・・(11)
From the expressions (8-2) and (9), the conversion of the filter coefficient can be expressed as the expression (11).
C = (P * T) −1 * RM * P * T * A * T T * P T * RS * (T T * P T ) −1
(11)

式(1)と式(11)を比較すると、式(12)が得られる。
M=(P*T)−1*RM*P*T、 S=(P*T)−1*RS*P*T
・・・(12)
When Expression (1) and Expression (11) are compared, Expression (12) is obtained.
M = (P * T) −1 * RM * P * T, S = (P * T) −1 * RS * P * T
(12)

このとき、P,Tが三角行列であり、RM,RSが式(10)のように対角行列であることから、対角行列と三角行列の積であるM,Sは三角行列となる。   At this time, P and T are triangular matrices, and RM and RS are diagonal matrices as shown in Equation (10), so M and S, which are products of diagonal matrices and triangular matrices, are triangular matrices.

また、式(12)は式(13)のように変形して表すことができる。
RM=(P*T)*M*(P*T)−1、 RS=(P*T)*S*(P*T)−1
・・・(13)
Further, the equation (12) can be expressed by being transformed as the equation (13).
RM = (P * T) * M * (P * T) −1 , RS = (P * T) * S * (P * T) −1
... (13)

RM、RSは対角行列であることから、式(13)は、第1、第2の変換行列が整数のみからなる三角行列によって対角化されることをも示す。そのとき対角行列は等比数列で表される。つまり、ここで例示する第1、第2の変換行列M,Sは、整数のみからなる三角行列によって対角化される行列であり、対角化して得られた行列の対角成分が有理数の等比数列で近似できるものである。   Since RM and RS are diagonal matrices, equation (13) also indicates that the first and second transformation matrices are diagonalized by a triangular matrix consisting only of integers. At that time, the diagonal matrix is represented by a geometric sequence. In other words, the first and second transformation matrices M and S exemplified here are matrices that are diagonalized by a triangular matrix consisting only of integers, and the diagonal components of the matrix obtained by diagonalization are rational numbers. It can be approximated by a geometric sequence.

さて、上述の説明における式(4−1)は、チェビシェフ多項式の生成に用いる漸化式である。チェビシェフ多項式は直交多項式と呼ばれる多項式の一種であり、フィルタ設計においてよく用いられる式である。   Now, the equation (4-1) in the above description is a recurrence equation used for generating the Chebyshev polynomial. The Chebyshev polynomial is a kind of polynomial called an orthogonal polynomial, and is an expression often used in filter design.

しかし、本発明においては、チェビシェフ多項式に限らず、他の多項式、特に直交多項式を用いることが可能である。例えばチェビシェフ多項式の代わりにルジャンドル多項式を用いた場合、式(4−1)は式(4−3)の通りになる。ここで、式(4−1)、式(4−3)のうちいずれの多項式を用いる場合においても、Kの1行1列以外の要素も2に限る必要はない。   However, in the present invention, it is possible to use not only the Chebyshev polynomial but also other polynomials, particularly orthogonal polynomials. For example, when a Legendre polynomial is used instead of the Chebyshev polynomial, the equation (4-1) becomes the equation (4-3). Here, in any of the equations (4-1) and (4-3), it is not necessary to limit the number of elements other than 1 row and 1 column of K to 2.

m,n≦M又はSのとき
T(m,n)=K(m,n)*T0(m,n)
T0(0,0)=1、T0(0,1)=0、T0(1,1)=1
T0(m,n+1)=(2−1/n)*T0(m−1,n)−(1−1/n)*T0(m,n−2) (m≦n)
T0(m,n)=0 (m>n)
それ以外のとき
T0(m,n)=1 (m=n)、T0(m,n)=0 (m≠n)
・・・(4−3)
When m, n ≦ M or S, T (m, n) = K (m, n) * T0 (m, n)
T0 (0,0) = 1, T0 (0,1) = 0, T0 (1,1) = 1
T0 (m, n + 1) = (2-1 / n) * T0 (m-1, n)-(1-1 / n) * T0 (m, n-2) (m≤n)
T0 (m, n) = 0 (m> n)
In other cases, T0 (m, n) = 1 (m = n), T0 (m, n) = 0 (m ≠ n)
... (4-3)

また、式(4−1)の代わりに、上記他の多項式を用いるにせよ、Tは三角行列であることに変わりはないため、式(5)〜(12)はそのまま適用でき、従って、第1,第2の変換行列にあたるM,Sはやはり三角行列となる。   Even if the other polynomial is used instead of the equation (4-1), since the T is a triangular matrix, the equations (5) to (12) can be applied as they are. M and S corresponding to the first and second transformation matrices are also triangular matrices.

このように、第1の変換行列は、主走査方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であり、第2の変換行列は、副走査方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であることが好ましい。これにより、フィルタ処理に用いるフィルタの空間周波数特性が所定の変倍率に適したものになる。また、上述のように、三角行列の算出には、直交多項式の係数やチェビシェフ多項式の係数などを用いることができる。   Thus, the first transformation matrix is a triangular matrix consisting of only rational numbers generated by a predetermined calculation using one variable based on the scaling factor in the main scanning direction, and the second transformation matrix is the sub-scanning direction. It is preferable that it is a triangular matrix consisting only of rational numbers generated by a predetermined calculation using one variable based on the scaling factor. As a result, the spatial frequency characteristic of the filter used for the filter processing becomes suitable for a predetermined scaling factor. Further, as described above, the coefficient of the orthogonal polynomial or the coefficient of the Chebyshev polynomial can be used for the calculation of the triangular matrix.

次に、カラー画像処理装置2の動作の一例について、フィルタの変換例を挙げながら説明する。図7〜図10は、図1の画像形成装置におけるフィルタ係数設定部でのフィルタ係数の設定処理の例を説明するための図である。ここで、図7は基準フィルタ係数セットの一例を示す図、図8A〜図8Cは変換行列の例を示す図、図9A〜図9Cはそれぞれ図7の基準フィルタ係数セットを図8A〜図8Cの変換行列で変換した結果のフィルタ係数セットを示す図、図10は図9A〜図9Cのフィルタ係数セットの主走査方向の周波数特性を示す図である。   Next, an example of the operation of the color image processing apparatus 2 will be described with reference to filter conversion examples. 7 to 10 are diagrams for explaining an example of the filter coefficient setting process in the filter coefficient setting unit in the image forming apparatus of FIG. 7 is a diagram illustrating an example of a reference filter coefficient set, FIGS. 8A to 8C are diagrams illustrating examples of transformation matrices, and FIGS. 9A to 9C are diagrams illustrating the reference filter coefficient sets of FIG. FIG. 10 is a diagram showing frequency coefficient in the main scanning direction of the filter coefficient set of FIGS. 9A to 9C.

また、図11及び図12はフィルタ係数設定部30におけるフィルタ係数の設定処理の一例を説明するためのフロー図であり、図11はフィルタの主走査方向の変換処理例を示し、図12は図11の処理に続いて実行されるフィルタの副走査方向の変換処理例を示している。尚、フィルタ係数の設定処理は、フィルタ係数設定部30等の専用のハードウェア回路で構成するだけでなく、CPU、RAM、ROMなどを備えたパーソナルコンピュータに、フィルタ係数の設定処理の手順を定めたコンピュータプログラムをロードすることによりCPU(いずれも不図示)で実行させることにより行なうこともできる。   11 and 12 are flowcharts for explaining an example of the filter coefficient setting process in the filter coefficient setting unit 30, FIG. 11 shows an example of the conversion process in the main scanning direction of the filter, and FIG. 11 shows an example of conversion processing in the sub-scanning direction of the filter executed following the processing of No. 11. The filter coefficient setting process is not only configured by a dedicated hardware circuit such as the filter coefficient setting unit 30 but also a filter coefficient setting process procedure is determined for a personal computer including a CPU, a RAM, a ROM, and the like. It can also be performed by loading a computer program and causing it to be executed by a CPU (both not shown).

画像形成装置100によって原稿を複写する場合、カラー画像入力装置1が原稿を読み取って取得した画像データがカラー画像処理装置2に入力されると共に、ユーザが操作パネル4を介して設定した主走査方向変倍率及び副走査方向変倍率、又はカラー画像入力装置1によるスキャン速度に基づく主走査方向変倍率及び副走査方向変倍率がカラー画像処理装置2に入力される。尚、画像データは原稿をカラー画像入力装置1で読み取ることにより取得してもよく、或いは、パーソナルコンピュータ等の処理装置で作成された電子データを受信することにより取得してもよい。   When a document is copied by the image forming apparatus 100, image data acquired by the color image input apparatus 1 reading the document is input to the color image processing apparatus 2, and the main scanning direction set by the user via the operation panel 4 is used. The magnification ratio and the sub-scanning direction scaling ratio, or the main scanning direction scaling ratio and the sub-scanning direction scaling ratio based on the scanning speed of the color image input apparatus 1 are input to the color image processing apparatus 2. The image data may be acquired by reading a document with the color image input device 1 or may be acquired by receiving electronic data created by a processing device such as a personal computer.

図11及び図12を参照しながらフィルタ係数設定部30は、まずメモリ300に設定された1又は複数のフィルタ係数セットから、主走査方向変倍率及び副走査方向変倍率に応じた基準フィルタ係数セットを選択する(ステップS21)。ここでは、例えば図7の基準フィルタ係数セット70が選択される。   11 and 12, the filter coefficient setting unit 30 first sets a reference filter coefficient set according to the main scanning direction scaling factor and the sub scanning direction scaling factor from one or a plurality of filter coefficient sets set in the memory 300. Is selected (step S21). Here, for example, the reference filter coefficient set 70 of FIG. 7 is selected.

次に、入力された主走査方向変倍率が等倍であるか否かを判断する(ステップS22)。主走査方向変倍率が等倍でないと判断した場合(ステップS22でNOの場合)、フィルタ係数設定部30は、主走査方向変倍率に対応した第1の変換行列(主走査方向変換行列)を算出し(ステップS23)、主走査方向変換行列によって基準フィルタ係数セット70を変換する(ステップS24)。ステップS23では、例えば図8A〜図8Cに示す変換行列81〜83のいずれか1つが算出される。尚、変換行列81〜83はいずれも、全ての要素が有理数である。また、図2のフィルタ50と同様に対称性を利用して変換行列81〜83を示しているが、ステップS24では基準フィルタ係数セット70の右下4×4個の要素(係数)に変換行列81〜83のいずれか1つを掛け、対称になるようにコピーすればよい。   Next, it is determined whether or not the inputted main scanning direction magnification is equal (Step S22). When it is determined that the main scanning direction magnification is not equal (NO in step S22), the filter coefficient setting unit 30 obtains a first conversion matrix (main scanning direction conversion matrix) corresponding to the main scanning direction magnification. The calculation is performed (step S23), and the reference filter coefficient set 70 is converted by the main scanning direction conversion matrix (step S24). In step S23, for example, any one of transformation matrices 81 to 83 shown in FIGS. 8A to 8C is calculated. Note that all of the transformation matrices 81 to 83 are rational numbers. Further, although the transformation matrices 81 to 83 are shown using symmetry as in the filter 50 of FIG. 2, in step S24, the transformation matrix is converted into 4 × 4 elements (coefficients) in the lower right of the reference filter coefficient set 70. Any one of 81 to 83 may be multiplied and copied so as to be symmetrical.

変換されたフィルタ係数セットに対し、空間フィルタ処理部26で使用されるかどうかをユーザ操作に基づき選択する。このユーザ操作は事前に設定登録しておくこともできる。使用することが選択されている場合(ステップS25でYESの場合)は、変換したフィルタ係数セットに対して次のステップが実行される。使用することが選択されていない場合(ステップS25でNOの場合)及び主走査方向変倍率が等倍と判断した場合(ステップS22でYESの場合)は、基準フィルタ係数セット70に対して次のステップが実行される。尚、ステップS25は省略してもよい。   Whether or not the converted filter coefficient set is used in the spatial filter processing unit 26 is selected based on a user operation. This user operation can be set and registered in advance. If use is selected (YES in step S25), the next step is executed on the converted filter coefficient set. When the use is not selected (NO in step S25) and when the main scanning direction magnification is determined to be equal (when YES in step S22), the following is performed for the reference filter coefficient set 70. A step is executed. Note that step S25 may be omitted.

次に、入力された副走査方向変倍率が等倍であるか否かを判断する(ステップS31)。副走査方向変倍率が等倍でないと判断した場合(ステップS31でNOの場合)、フィルタ係数設定部30は、副走査方向変倍率に対応した第2の変換行列(副走査方向変換行列)を算出し(ステップS32)、副走査方向変換行列によって、ステップS24で変換されたフィルタ係数セット又は基準フィルタ係数セット70を変換する(ステップS33)。ステップS32でもステップS23と同様に、例えば図8A〜図8Cに示す変換行列81〜83のいずれか1つが算出される。ここでは、説明の簡略化のため、主走査方向と副走査方向とで変換行列として同じものを使用した例を挙げるが、これに限らない。   Next, it is determined whether or not the input sub-scanning direction variable magnification is equal (step S31). If it is determined that the sub-scanning direction magnification is not equal (NO in step S31), the filter coefficient setting unit 30 obtains a second conversion matrix (sub-scanning direction conversion matrix) corresponding to the sub-scanning direction magnification. The filter coefficient set or reference filter coefficient set 70 converted in step S24 is converted by the sub-scanning direction conversion matrix (step S33). In step S32, as in step S23, for example, any one of transformation matrices 81 to 83 shown in FIGS. 8A to 8C is calculated. Here, for simplification of description, an example in which the same conversion matrix is used in the main scanning direction and the sub-scanning direction will be described, but the present invention is not limited thereto.

そして、主走査方向と副走査方向とで変換行列81〜83のうち同じ変換行列を使用した場合、ステップS33で変換後のフィルタ係数セットは、それぞれ図9A〜図9Cで示すフィルタ係数セット91〜93となる。   When the same conversion matrix is used among the conversion matrices 81 to 83 in the main scanning direction and the sub scanning direction, the filter coefficient sets converted in step S33 are the filter coefficient sets 91 to 91 shown in FIGS. 9A to 9C, respectively. 93.

変換されたフィルタ係数セットに対し、空間フィルタ処理部26で使用されるかどうかをユーザ操作に基づき選択する。このユーザ操作は事前に設定登録しておくこともできる。使用することが選択されている場合(ステップS34でYESの場合)は、変換したフィルタ係数セットを空間フィルタ処理部26へ出力して処理を終了する。使用することが選択されていない場合(ステップS34でNOの場合)及び副走査方向変倍率が等倍と判断した場合(ステップS31でYESの場合)は、図11の処理で出力されたフィルタ係数セットを、そのまま空間フィルタ処理部26へ出力して処理を終了する。   Whether or not the converted filter coefficient set is used in the spatial filter processing unit 26 is selected based on a user operation. This user operation can be set and registered in advance. If use is selected (YES in step S34), the converted filter coefficient set is output to the spatial filter processing unit 26, and the process ends. When the use is not selected (NO in step S34) and when the sub-scanning direction variable magnification is determined to be equal (if YES in step S31), the filter coefficient output in the process of FIG. The set is output to the spatial filter processing unit 26 as it is, and the process ends.

ここで、図7で示す基準フィルタ係数セット70の除算係数は49であり、図9A、図9B、図9Cで示す変換後のフィルタ91,92,93の除算係数はそれぞれ49,45,49となる。実際には、除算係数算出部308においてこれらの除算係数に基づいてフィルタ係数セットが修正された後に、空間フィルタ処理部26に出力される。   Here, the division coefficient of the reference filter coefficient set 70 shown in FIG. 7 is 49, and the division coefficients of the converted filters 91, 92, and 93 shown in FIGS. 9A, 9B, and 9C are 49, 45, and 49, respectively. Become. In practice, the division coefficient calculation unit 308 corrects the filter coefficient set based on these division coefficients, and then outputs them to the spatial filter processing unit 26.

図10では、フィルタ係数セット91〜93の主走査方向の周波数特性を示している。尚、第1の変換行列と第2の変換行列とを同じにすれば、基本的に副走査方向も同様の周波数特性が得られる。変換行列82,83は、三角行列であり、それぞれに対応した周波数特性を破線B,破線Cで示している。単位行列である変換行列81に対応した周波数特性は実線Aで示している。   FIG. 10 shows the frequency characteristics of the filter coefficient sets 91 to 93 in the main scanning direction. If the first conversion matrix and the second conversion matrix are made the same, basically the same frequency characteristics can be obtained in the sub-scanning direction. The conversion matrices 82 and 83 are triangular matrices, and the frequency characteristics corresponding to them are indicated by a broken line B and a broken line C, respectively. A frequency characteristic corresponding to the conversion matrix 81 which is a unit matrix is indicated by a solid line A.

これらを比べると、第1、第2の変換行列として単位行列より三角行列を用いた方が、フィルタ処理に用いるフィルタの空間周波数特性がより大きい変倍率又はより低い解像度に適したものになっていることが分かる。図9A〜図9Cの場合、図10を参照すると破線Cの方が高周波数での強度が大きいため、カラー画像出力装置3における出力画像にぼやけがより少なくなり、変倍率が大きい場合に適している。一方、実線Aは高周波数での強度が小さいため、カラー画像出力装置3における出力画像に縮小の際に高周波数成分が原因で発生するモアレがより生じにくくなり、変倍が小さい場合に適している。   When these are compared, the use of a triangular matrix rather than a unit matrix as the first and second transformation matrices makes the spatial frequency characteristics of the filter used for the filter processing more suitable for larger scaling factors or lower resolutions. I understand that. In the case of FIGS. 9A to 9C, referring to FIG. 10, since the broken line C has a higher intensity at a high frequency, the output image in the color image output device 3 is less blurred and suitable for a case where the magnification is large. Yes. On the other hand, since the solid line A has low intensity at high frequencies, moire caused by high frequency components is less likely to occur when the output image is reduced in the color image output device 3, and is suitable for a case where the magnification is small. Yes.

上述したように本実施形態では、画像データに対して行なう変倍処理の変倍率が主走査方向と副走査方向とで異なる場合であっても、画像データの主走査方向及び副走査方向の両方の周波数特性を考慮して(つまりそれぞれの変倍率を考慮して)最適化された1つのフィルタ係数セットを生成することができる。従って、空間フィルタ処理部26は、フィルタ係数設定部30によって最適化された1つのフィルタ係数セットに基づく出力画像の高画質化を実現するフィルタ処理を行なうことができ、これにより、従来に比べてフィルタ係数セットの数を減らし、演算量及び必要なメモリ容量を削減することができる。   As described above, in the present embodiment, both the main scanning direction and the sub-scanning direction of the image data are obtained even when the scaling factor of the scaling process performed on the image data is different between the main scanning direction and the sub-scanning direction. It is possible to generate one set of filter coefficients that is optimized in consideration of the frequency characteristics (that is, in consideration of the respective scaling factors). Therefore, the spatial filter processing unit 26 can perform a filter process that realizes high image quality of the output image based on one filter coefficient set optimized by the filter coefficient setting unit 30. The number of filter coefficient sets can be reduced, and the amount of calculation and the required memory capacity can be reduced.

また、本発明では、実際にはフーリエ変換、逆フーリエ変換を伴わずにフィルタ係数セットの算出及びそれによる空間フィルタ処理を実行するため、空間周波数成分からフィルタ係数セットに戻す際(フーリエ変換後に逆フーリエ変換する際)に発生する誤差やバグによって、最適でないフィルタ係数が生成されてしまうといった問題点も存在しない。更に、基準フィルタ係数セット及び第1、第2の変換行列において、全ての要素で整数又は有理数のみからなる行列を使用することで、最適なフィルタ係数をより確実に演算により生成することができる。   Further, in the present invention, in actuality, the filter coefficient set is calculated without performing Fourier transform or inverse Fourier transform, and the spatial filter processing based on the filter coefficient set is performed. Therefore, when returning from the spatial frequency component to the filter coefficient set (reverse after Fourier transform). There is no problem that non-optimal filter coefficients are generated due to errors or bugs that occur during Fourier transformation. Furthermore, by using a matrix consisting of only integers or rational numbers for all elements in the reference filter coefficient set and the first and second transformation matrices, the optimum filter coefficients can be generated more reliably by calculation.

また、図1で説明した画像形成装置100は、デジタルカラー複写機に限らず、コピア機能、プリンタ機能、ファクシミリ送受信機能、scan to e−mail機能等を備えるデジタルカラー複合機に適用してもよい。デジタルカラー複合機は更に、例えば、モデムやネットワークカードよりなる通信装置を備えることもできる。この場合、例えばファクシミリの送信を行なうときは、モデムにて、相手先との送信手続きを行ない送信可能な状態が確保されると、所定の形式で圧縮された画像データ(スキャナで読み込まれた画像データ)をメモリから読み出し、圧縮形式の変更など必要な処理を施して、相手先に通信回線を介して順次送信する。   The image forming apparatus 100 described with reference to FIG. 1 is not limited to a digital color copying machine, but may be applied to a digital color multifunction peripheral having a copier function, a printer function, a facsimile transmission / reception function, a scan to e-mail function, and the like. . The digital color multi-function peripheral can further include a communication device such as a modem or a network card. In this case, for example, when transmitting a facsimile, if the modem performs a transmission procedure with the other party and secures the transmission possible state, the image data compressed in a predetermined format (the image read by the scanner) Data) is read from the memory, subjected to necessary processing such as changing the compression format, and sequentially transmitted to the other party via a communication line.

また、ファクシミリを受信する場合、通信手続きを行ないながら相手先から送信されてくる画像データを受信してカラー画像処理装置2へ出力し、カラー画像処理装置2は受信した画像データを、不図示の圧縮/伸張処理部にて伸張処理を施す。伸張された画像データは、必要に応じて、回転処理や解像度変換処理が行なわれ、出力階調補正、階調再現処理が施され、カラー画像出力装置3より出力される。   When receiving a facsimile, the image data transmitted from the other party is received while performing a communication procedure, and is output to the color image processing apparatus 2. The color image processing apparatus 2 receives the received image data (not shown). The compression / decompression processing unit performs decompression processing. The decompressed image data is subjected to rotation processing and resolution conversion processing as necessary, subjected to output tone correction and tone reproduction processing, and is output from the color image output device 3.

また、画像形成装置100を、ネットワークカード、LANケーブル等を介して、ネットワークに接続されたコンピュータ及び他のデジタル複合機等との間でデータ通信を行なうように構成してもよい。また、カラー複合機だけでなく、モノクロの画像を扱う複合機、ファクシミリ通信機能のみを有するファクシミリ通信装置単体においても本発明を適用することができる。   Further, the image forming apparatus 100 may be configured to perform data communication with a computer and other digital multi-function peripherals connected to the network via a network card, a LAN cable, or the like. Further, the present invention can be applied not only to a color multifunction peripheral but also to a multifunction peripheral that handles monochrome images and a facsimile communication apparatus that has only a facsimile communication function.

上述の実施形態において、カラー画像入力装置1としては、例えば、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラ、携帯電話機などが用いられる。尚、カラー画像入力装置1からカラー画像データを取得する代わりに、ネットワークを介して外部記憶装置、サーバ装置などからカラー画像データを取得する構成であってもよい。また、カラー画像出力装置3としては、例えば、有機エレクトロルミネッセンスディスプレイ、液晶ディスプレイなどの画像表示装置、処理結果を記録紙などに出力する電子写真方式又はインクジェット方式のプリンタなどが用いられる。   In the above-described embodiment, as the color image input device 1, for example, a flat bed scanner, a film scanner, a digital camera, a mobile phone, or the like is used. Instead of acquiring color image data from the color image input device 1, a configuration may be used in which color image data is acquired from an external storage device, a server device, or the like via a network. Further, as the color image output device 3, for example, an image display device such as an organic electroluminescence display or a liquid crystal display, an electrophotographic method or an ink jet method printer that outputs processing results to recording paper or the like is used.

本発明は、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。即ち、カラー画像処理装置2は、各機能を実現する制御プログラムの命令を実行するCPU(Central Processing Unit )、本発明のコンピュータプログラムを格納したROM(read only memory)、各種の制御プログラムを展開するRAM(random access memory)、並びに、各種の制御プログラム及び各種データを格納するメモリ等の記憶装置(記録媒体)などで構成することができる。   The present invention may be configured by hardware logic, or may be realized by software using a CPU as follows. That is, the color image processing apparatus 2 develops a CPU (Central Processing Unit) that executes instructions of a control program for realizing each function, a ROM (read only memory) that stores the computer program of the present invention, and various control programs. A random access memory (RAM) and a storage device (recording medium) such as a memory for storing various control programs and various data can be used.

そして、本発明の目的は、上述した機能を実現するソフトウェアであるフィルタ係数の合成処理を行なうプログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータでの読み取り可能な記録媒体をカラー画像処理装置2に供給し、そのコンピュータ(又はCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。この結果、上記のフィルタ係数の合成処理の制御を行なうコンピュータプログラムコードを記録した記録媒体を持ち運び自在に提供することができる。   An object of the present invention is a computer-readable recording in which program code (execution format program, intermediate code program, source program) of a program that performs filter coefficient synthesis processing, which is software that implements the functions described above, is recorded This can also be achieved by supplying the medium to the color image processing apparatus 2 and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU). As a result, it is possible to provide a portable recording medium on which a computer program code for controlling the filter coefficient synthesis process is recorded.

この記録媒体としては、マイクロコンピュータで処理が行なわれるために図示しないメモリ、例えばROMのようなプログラムメディアであってもよく、図示しない外部記憶装置としてのプログラム読取装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。   This recording medium may be a memory (not shown) such as a ROM, because the processing is performed by a microcomputer, and a program reading device as an external storage device (not shown) is provided in the recording medium. It may be a program medium that can be read by inserting.

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

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスク並びにCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、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, and includes a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk and a hard disk, and a CD-ROM / MO / MD / DVD / Disc systems including optical disks such as CD-R, card systems such as IC cards (including memory cards) / optical cards, mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), It may be a medium that carries a fixed computer program including a semiconductor memory such as a flash ROM.

また、カラー画像処理装置2を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介してダウンロードするように流動的にコンピュータプログラムコードを担持する媒体であってもよい。このように通信ネットワークからコンピュータプログラムコードをダウンロードする場合には、そのダウンロード用のコンピュータプログラムは予め本体装置に格納しておくか、或いは別の記録媒体からインストールされるものであってもよい。尚、通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。   Further, the color image processing apparatus 2 may be configured to be connectable to a communication network, and may be a medium that fluidly carries the computer program code so as to download the program code via the communication network. When the computer program code is downloaded from the communication network in this way, the computer program for downloading may be stored in the main device in advance or may be installed from another recording medium. The communication network is not particularly limited, and examples thereof include the Internet, intranet, extranet, LAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication network, and the like. Is available.

また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB(登録商標)、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。尚、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, the transmission medium constituting the communication network is not particularly limited. For example, the transmission medium such as IEEE 1394, USB (registered trademark), power line carrier, cable TV line, telephone line, ADSL line, or the like can be used. It can also be used by radio such as infrared, Bluetooth (registered trademark), 802.11 radio, HDR, mobile phone network, satellite line, terrestrial digital network. 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.

このように、本発明の目的は、複数の画素が2次元に配置された画像を形成するための画像データに対するフィルタ処理を含む画像処理を、コンピュータに実行させるためのプログラムによっても達成することができる。この画像処理は、第1設定ステップ、第2設定ステップ、選択ステップ、変換ステップ、及びフィルタ処理ステップを有する。上記第1設定ステップは、画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定するステップである。上記第2設定ステップは、画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定するステップである。上記選択ステップは、(i)縦方向の変倍率及び横方向の変倍率とは異なる所定の画像処理条件、或いは所定の画像処理条件に縦方向の変倍率及び横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択するステップである。上記変換ステップは、選択ステップで選択された基準フィルタ係数セットが示す行列を、第1設定ステップ及び第2設定ステップで設定された第1の変換行列及び第2の変換行列を用いて一次変換するステップである。上記フィルタ処理ステップは、変換ステップで一次変換された後のフィルタ係数セットを用いて、画像データにフィルタ処理を施すステップである。その他の応用については、画像処理装置について説明した通りであり、その説明を省略する。   As described above, the object of the present invention can also be achieved by a program for causing a computer to execute image processing including filter processing for image data for forming an image in which a plurality of pixels are two-dimensionally arranged. it can. This image processing includes a first setting step, a second setting step, a selection step, a conversion step, and a filter processing step. The first setting step is a step of setting a first conversion matrix in accordance with a scaling factor in the vertical direction when the scaling process is performed on the image data. The second setting step is a step of setting a second conversion matrix in accordance with the horizontal scaling factor when the scaling process is performed on the image data. The selection step includes (i) a predetermined image processing condition different from the vertical scaling factor and the horizontal scaling factor, or an image obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing condition. This is a step of selecting a reference filter coefficient set based on the processing conditions and (ii) one or more filter coefficient sets stored in advance. In the conversion step, the matrix indicated by the reference filter coefficient set selected in the selection step is linearly converted using the first conversion matrix and the second conversion matrix set in the first setting step and the second setting step. It is a step. The filter processing step is a step of performing filter processing on the image data using the filter coefficient set after the primary conversion in the conversion step. Other applications are the same as those described for the image processing apparatus, and a description thereof will be omitted.

また、本発明の目的は、プログラムの処理手順や画像処理装置の処理手順として例示したように、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理方法によっても達成することができる。この画像処理方法は、第1設定ステップ、第2設定ステップ、選択ステップ、変換ステップ、及びフィルタ処理ステップを有する。上記第1設定ステップは、第1変換行列設定部が、画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定するステップである。上記第2設定ステップは、第2変換行列設定部が、画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定するステップである。上記選択ステップは、選択部が、(i)縦方向の変倍率及び横方向の変倍率とは異なる所定の画像処理条件、或いは所定の画像処理条件に縦方向の変倍率及び横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択するステップである。上記変換ステップは、係数変換部が、選択ステップで選択された基準フィルタ係数セットが示す行列を、第1設定ステップ及び第2設定ステップで設定された第1の変換行列及び第2の変換行列を用いて一次変換するステップである。上記フィルタ処理ステップは、フィルタ処理部が、変換ステップで一次変換された後のフィルタ係数セットを用いて、画像データにフィルタ処理を施すステップである。その他の応用については、画像処理装置について説明した通りであり、その説明を省略する。   Another object of the present invention is to perform image processing for filtering image data for forming an image in which a plurality of pixels are arranged two-dimensionally, as exemplified as a processing procedure of a program or a processing procedure of an image processing apparatus. It can also be achieved by the method. This image processing method includes a first setting step, a second setting step, a selection step, a conversion step, and a filter processing step. The first setting step is a step in which the first conversion matrix setting unit sets the first conversion matrix according to the vertical scaling factor when the scaling process is performed on the image data. The second setting step is a step in which the second conversion matrix setting unit sets the second conversion matrix according to the horizontal scaling factor when the scaling process is performed on the image data. In the selection step, the selection unit is configured to select (i) a predetermined image processing condition different from the vertical scaling factor and the horizontal scaling factor, or the vertical scaling factor and the horizontal scaling factor based on the predetermined image processing condition. And (ii) one or a plurality of filter coefficient sets stored in advance, and selecting a reference filter coefficient set. In the conversion step, the coefficient conversion unit converts the matrix indicated by the reference filter coefficient set selected in the selection step into the first conversion matrix and the second conversion matrix set in the first setting step and the second setting step. This is the step of performing the primary conversion. The filter processing step is a step in which the filter processing unit performs a filter process on the image data using the filter coefficient set after the primary conversion in the conversion step. Other applications are the same as those described for the image processing apparatus, and a description thereof will be omitted.

以上、説明したように、本発明に係る画像処理装置は、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理装置であって、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1変換行列設定部と、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2変換行列設定部と、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択部と、該選択部で選択された基準フィルタ係数セットが示す行列を、前記第1変換行列設定部及び前記第2変換行列設定部によって設定された第1の変換行列及び第2の変換行列を用いて一次変換する係数変換部と、該係数変換部で一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理部と、を備えることを特徴としたものである。これにより、画像データに対して行なう変倍処理の縦方向と横方向の変倍率が異なる場合であっても、少ない演算量で算出可能な最適なフィルタ係数に基づく1回のフィルタ処理によって画質の向上を実現できる。   As described above, the image processing apparatus according to the present invention is an image processing apparatus that performs filter processing on image data for forming an image in which a plurality of pixels are two-dimensionally arranged. A first transformation matrix setting unit that sets a first transformation matrix according to a magnification in the vertical direction when the magnification process is performed on the image data, and a horizontal direction when the image data is subjected to the magnification process A second transformation matrix setting unit for setting a second transformation matrix according to a scaling factor; and (i) predetermined image processing conditions different from the vertical scaling factor and the horizontal scaling factor, or the predetermined A reference filter coefficient set based on the image processing condition obtained by adding the vertical scaling factor and the horizontal scaling factor to the image processing condition, and (ii) one or more filter coefficient sets stored in advance. Selection part to be selected and selected by the selection part A coefficient conversion unit that performs primary conversion on a matrix indicated by a reference filter coefficient set using the first conversion matrix and the second conversion matrix set by the first conversion matrix setting unit and the second conversion matrix setting unit; And a filter processing unit that performs a filter process on the image data using the filter coefficient set subjected to the primary conversion by the coefficient conversion unit. As a result, even when the scaling process performed on the image data is different in the vertical and horizontal scaling ratios, the image quality can be reduced by a single filtering process based on the optimum filter coefficient that can be calculated with a small amount of calculation. Improvements can be realized.

また、本発明に係る画像処理装置は、前記係数変換部により一次変換後のフィルタ係数セットのサイズを前記基準フィルタ係数セットのサイズと異ならせることが可能になっており、前記一次変換後のフィルタ係数セットを、前記基準フィルタ係数セットのサイズ及び/又は定められたサイズに合わせるように調整するサイズ調整部を更に備え、前記フィルタ処理部は、前記サイズ調整部で調整後のフィルタ係数セットを用いてフィルタ処理を施すように構成することもできる。これにより、元々本発明を適用する前の画像処理装置において必要なサイズとして設計した従来機種の基準フィルタ係数セットをそのまま利用することができる。   In the image processing apparatus according to the present invention, the coefficient conversion unit can make the size of the filter coefficient set after the primary conversion different from the size of the reference filter coefficient set, and the filter after the primary conversion The image processing apparatus further includes a size adjustment unit that adjusts a coefficient set to match a size of the reference filter coefficient set and / or a predetermined size, and the filter processing unit uses the filter coefficient set adjusted by the size adjustment unit. It is also possible to configure so as to perform filter processing. Thereby, the reference filter coefficient set of the conventional model originally designed as a necessary size in the image processing apparatus before applying the present invention can be used as it is.

また、本発明に係る画像処理装置は、前記第1の変換行列は、前記縦方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であり、前記第2の変換行列は、前記横方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であるように構成することもできる。これにより、フィルタ処理に用いるフィルタの空間周波数特性が所定の変倍率に適したものになる。   In the image processing apparatus according to the present invention, the first transformation matrix is a triangular matrix composed of only rational numbers generated by a predetermined calculation using one variable based on the vertical scaling factor. The two transformation matrices may be configured to be a triangular matrix consisting of only rational numbers generated by a predetermined calculation using one variable based on the horizontal scaling factor. As a result, the spatial frequency characteristic of the filter used for the filter processing becomes suitable for a predetermined scaling factor.

また、本発明に係る画像処理装置は、前記所定の画像処理条件に含まれる条件につき、或いは、前記所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件に含まれる条件につき、それぞれ複数の区分に分け、各区分で、前記第1の変換行列及び前記第2の変換行列及び/又は前記基準フィルタ係数セットを切り替えるように構成することもできる。これにより、画像処理条件に含まれる条件毎に細かくフィルタ処理時のフィルタを切り替えることができる。   In addition, the image processing apparatus according to the present invention is configured to perform image processing for the conditions included in the predetermined image processing conditions or by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing conditions. The conditions included in the conditions may be divided into a plurality of sections, and the first transform matrix, the second transform matrix, and / or the reference filter coefficient set may be switched in each section. Thereby, the filter at the time of filter processing can be finely switched for every condition included in the image processing condition.

また、本発明に係る画像処理方法は、複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理方法であって、第1変換行列設定部が、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1設定ステップと、第2変換行列設定部が、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2設定ステップと、選択部が、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択ステップと、係数変換部が、前記選択ステップで選択された基準フィルタ係数セットが示す行列を、前記第1設定ステップ及び前記第2設定ステップで設定された前記第1の変換行列及び前記第2の変換行列を用いて一次変換する変換ステップと、フィルタ処理部が、前記変換ステップで一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理ステップと、を有することを特徴としたものである。これにより、画像データに対して行なう変倍処理の縦方向と横方向の変倍率が異なる場合であっても、少ない演算量で算出可能な最適なフィルタ係数に基づく1回のフィルタ処理によって画質の向上を実現できる。   The image processing method according to the present invention is an image processing method for performing filter processing on image data for forming an image in which a plurality of pixels are two-dimensionally arranged. A first setting step for setting a first conversion matrix and a second conversion matrix setting unit according to a vertical scaling factor when performing scaling processing on image data, A second setting step of setting a second transformation matrix in accordance with a horizontal scaling factor when performing the multiplication process; and a selection unit, (i) the vertical scaling factor and the horizontal scaling factor, Are different predetermined image processing conditions, or image processing conditions obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing conditions, and (ii) one or more filter coefficients stored in advance And select a reference filter coefficient set based on A selection step, and a coefficient conversion unit, the matrix indicated by the reference filter coefficient set selected in the selection step, the first conversion matrix set in the first setting step and the second setting step, and the first A conversion step of performing a primary conversion using a conversion matrix of 2, and a filter processing step in which a filter processing unit performs a filter process on the image data using the filter coefficient set after the primary conversion in the conversion step. It is characterized by having. As a result, even when the scaling process performed on the image data is different in the vertical and horizontal scaling ratios, the image quality can be reduced by a single filtering process based on the optimum filter coefficient that can be calculated with a small amount of calculation. Improvements can be realized.

また、本発明に係るプログラムは、複数の画素が2次元に配置された画像を形成するための画像データに対するフィルタ処理を含む画像処理を、コンピュータに実行させるためのプログラムであって、前記画像処理は、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1設定ステップと、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2設定ステップと、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択ステップと、前記選択ステップで選択された基準フィルタ係数セットが示す行列を、前記第1設定ステップ及び前記第2設定ステップで設定された前記第1の変換行列及び前記第2の変換行列を用いて一次変換する変換ステップと、前記変換ステップで一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理ステップと、を有することを特徴としたものである。これにより、画像データに対して行なう変倍処理の縦方向と横方向の変倍率が異なる場合であっても、少ない演算量で算出可能な最適なフィルタ係数に基づく1回のフィルタ処理によって画質の向上を実現できる。   A program according to the present invention is a program for causing a computer to execute image processing including filter processing for image data for forming an image in which a plurality of pixels are two-dimensionally arranged. Includes a first setting step for setting a first transformation matrix according to a vertical scaling factor when the scaling process is performed on the image data, and when the scaling process is performed on the image data. A second setting step for setting a second transformation matrix in accordance with the horizontal scaling factor, and (i) predetermined image processing conditions different from the vertical scaling factor and the horizontal scaling factor, or Based on the image processing condition obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing condition, and (ii) one or more filter coefficient sets stored in advance, a reference filter coefficient Set And a matrix indicated by the reference filter coefficient set selected in the selection step, the first transformation matrix and the second transformation set in the first setting step and the second setting step. A conversion step for performing a primary conversion using a matrix; and a filter processing step for performing a filter process on the image data using the filter coefficient set after the primary conversion in the conversion step. is there. As a result, even when the scaling process performed on the image data is different in the vertical and horizontal scaling ratios, the image quality can be reduced by a single filtering process based on the optimum filter coefficient that can be calculated with a small amount of calculation. Improvements can be realized.

1…カラー画像入力装置、2…カラー画像処理装置、3…カラー画像出力装置、4…操作パネル、20…A/D変換部、21…シェーディング補正部、22…入力階調補正部、23…領域分離処理部、24…色補正部、25…黒生成下色除去部、26…空間フィルタ処理部、27…変倍部、28…出力階調補正部、29…階調再現処理部、30…フィルタ係数設定部、100…画像形成装置、300…メモリ(記憶部)、301…第1変換行列設定部、302…第2変換行列設定部、303…フィルタ係数セット選択部、304a,304b…係数変換部、305a,305b…サイズ修正部、306a,306b…フィルタ係数結合部、307…窓関数処理部、308…除算係数算出部、100…画像形成装置。 DESCRIPTION OF SYMBOLS 1 ... Color image input device, 2 ... Color image processing device, 3 ... Color image output device, 4 ... Operation panel, 20 ... A / D conversion part, 21 ... Shading correction part, 22 ... Input gradation correction part, 23 ... Area separation processing unit, 24 ... color correction unit, 25 ... black generation and under color removal unit, 26 ... spatial filter processing unit, 27 ... scaling unit, 28 ... output gradation correction unit, 29 ... tone reproduction processing unit, 30 ... Filter coefficient setting unit, 100 ... Image forming apparatus, 300 ... Memory (storage unit), 301 ... First transformation matrix setting unit, 302 ... Second transformation matrix setting unit, 303 ... Filter coefficient set selection unit, 304a, 304b ... Coefficient conversion unit, 305a, 305b ... size correction unit, 306a, 306b ... filter coefficient combination unit, 307 ... window function processing unit, 308 ... division coefficient calculation unit, 100 ... image forming apparatus.

Claims (5)

複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理装置であって、
前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1変換行列設定部と、
前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2変換行列設定部と、
(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択部と、
該選択部で選択された基準フィルタ係数セットが示す行列を、前記第1変換行列設定部及び前記第2変換行列設定部によって設定された第1の変換行列及び第2の変換行列を用いて一次変換する係数変換部と、
該係数変換部で一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理部と、
を備えることを特徴とする画像処理装置。
An image processing apparatus that performs filter processing on image data for forming an image in which a plurality of pixels are two-dimensionally arranged,
A first conversion matrix setting unit that sets a first conversion matrix in accordance with a vertical scaling factor when the scaling process is performed on the image data;
A second transformation matrix setting unit for setting a second transformation matrix according to a lateral scaling factor when the scaling process is performed on the image data;
(I) A predetermined image processing condition different from the vertical scaling factor and the horizontal scaling factor, or an image obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing condition A selection unit that selects a reference filter coefficient set based on the processing conditions and (ii) one or more filter coefficient sets stored in advance;
The matrix indicated by the reference filter coefficient set selected by the selection unit is converted into a first order using the first conversion matrix and the second conversion matrix set by the first conversion matrix setting unit and the second conversion matrix setting unit. A coefficient conversion unit for conversion;
A filter processing unit that performs a filter process on the image data using the filter coefficient set after the primary conversion by the coefficient conversion unit;
An image processing apparatus comprising:
前記係数変換部により一次変換後のフィルタ係数セットのサイズを前記基準フィルタ係数セットのサイズと異ならせることが可能になっており、
前記一次変換後のフィルタ係数セットを、前記基準フィルタ係数セットのサイズ及び/又は定められたサイズに合わせるように調整するサイズ調整部を更に備え、
前記フィルタ処理部は、前記サイズ調整部で調整後のフィルタ係数セットを用いてフィルタ処理を施すことを特徴とする請求項1に記載の画像処理装置。
It is possible to make the size of the filter coefficient set after the primary conversion different from the size of the reference filter coefficient set by the coefficient conversion unit,
A size adjusting unit that adjusts the filter coefficient set after the primary conversion to match the size of the reference filter coefficient set and / or a predetermined size;
The image processing apparatus according to claim 1, wherein the filter processing unit performs a filter process using the filter coefficient set adjusted by the size adjusting unit.
前記第1の変換行列は、前記縦方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であり、
前記第2の変換行列は、前記横方向の変倍率に基づく1つの変数を用いて所定の演算で生成した有理数のみからなる三角行列であることを特徴とする請求項1又は2に記載の画像処理装置。
The first transformation matrix is a triangular matrix consisting of only rational numbers generated by a predetermined calculation using one variable based on the scaling factor in the vertical direction,
3. The image according to claim 1, wherein the second transformation matrix is a triangular matrix including only rational numbers generated by a predetermined calculation using one variable based on the scaling factor in the horizontal direction. Processing equipment.
前記所定の画像処理条件に含まれる条件につき、或いは、前記所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件に含まれる条件につき、それぞれ複数の区分に分け、各区分で、前記第1の変換行列及び前記第2の変換行列及び/又は前記基準フィルタ係数セットを切り替えることを特徴とする請求項1〜3のいずれか1項に記載の画像処理装置。   A plurality of categories for each condition included in the predetermined image processing condition, or for each condition included in the image processing condition obtained by adding the vertical scaling factor and the horizontal scaling factor to the predetermined image processing condition. The image processing according to claim 1, wherein the first transformation matrix, the second transformation matrix, and / or the reference filter coefficient set are switched in each division. apparatus. 複数の画素が2次元に配置された画像を形成するための画像データにフィルタ処理を施す画像処理方法であって、
第1変換行列設定部が、前記画像データに対して変倍処理を施す際の縦方向の変倍率に応じて、第1の変換行列を設定する第1設定ステップと、
第2変換行列設定部が、前記画像データに対して変倍処理を施す際の横方向の変倍率に応じて、第2の変換行列を設定する第2設定ステップと、
選択部が、(i)前記縦方向の変倍率及び前記横方向の変倍率とは異なる所定の画像処理条件、或いは該所定の画像処理条件に前記縦方向の変倍率及び前記横方向の変倍率を加えた画像処理条件と、(ii)予め記憶された1又は複数のフィルタ係数セットと、に基づき、基準フィルタ係数セットを選択する選択ステップと、
係数変換部が、前記選択ステップで選択された基準フィルタ係数セットが示す行列を、前記第1設定ステップ及び前記第2設定ステップで設定された前記第1の変換行列及び前記第2の変換行列を用いて一次変換する変換ステップと、
フィルタ処理部が、前記変換ステップで一次変換された後のフィルタ係数セットを用いて、前記画像データにフィルタ処理を施すフィルタ処理ステップと、
を有することを特徴とする画像処理方法。
An image processing method for performing filter processing on image data for forming an image in which a plurality of pixels are two-dimensionally arranged,
A first setting step in which a first conversion matrix setting unit sets a first conversion matrix in accordance with a vertical scaling factor when performing a scaling process on the image data;
A second setting step in which a second conversion matrix setting unit sets a second conversion matrix according to a horizontal scaling factor when the scaling process is performed on the image data;
(I) a predetermined image processing condition different from the vertical scaling factor and the horizontal scaling factor, or the vertical scaling factor and the horizontal scaling factor in the predetermined image processing condition; A selection step of selecting a reference filter coefficient set based on (ii) one or more pre-stored filter coefficient sets;
The coefficient conversion unit represents the matrix indicated by the reference filter coefficient set selected in the selection step as the first conversion matrix and the second conversion matrix set in the first setting step and the second setting step. A conversion step for primary conversion using,
A filter processing unit that performs a filter process on the image data using the filter coefficient set after the primary conversion in the conversion step;
An image processing method comprising:
JP2013009957A 2013-01-23 2013-01-23 Image processing device and image processing method Pending JP2014143512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013009957A JP2014143512A (en) 2013-01-23 2013-01-23 Image processing device and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013009957A JP2014143512A (en) 2013-01-23 2013-01-23 Image processing device and image processing method

Publications (1)

Publication Number Publication Date
JP2014143512A true JP2014143512A (en) 2014-08-07

Family

ID=51424499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013009957A Pending JP2014143512A (en) 2013-01-23 2013-01-23 Image processing device and image processing method

Country Status (1)

Country Link
JP (1) JP2014143512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111868778A (en) * 2018-03-19 2020-10-30 索尼公司 Image processing apparatus, image processing method, and program
CN116828224A (en) * 2023-08-28 2023-09-29 深圳有咖互动科技有限公司 Real-time interaction method, device, equipment and medium based on interface gift icon

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111868778A (en) * 2018-03-19 2020-10-30 索尼公司 Image processing apparatus, image processing method, and program
CN111868778B (en) * 2018-03-19 2024-05-21 索尼公司 Image processing device, image processing method, and storage medium
CN116828224A (en) * 2023-08-28 2023-09-29 深圳有咖互动科技有限公司 Real-time interaction method, device, equipment and medium based on interface gift icon
CN116828224B (en) * 2023-08-28 2023-11-24 深圳有咖互动科技有限公司 Real-time interaction method, device, equipment and medium based on interface gift icon

Similar Documents

Publication Publication Date Title
JP6649750B2 (en) Image processing apparatus and image processing method
JP4549418B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
JP4173154B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP4342560B2 (en) Image processing method, image processing apparatus, computer program, and recording medium
JP2014143512A (en) Image processing device and image processing method
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP2013074309A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP4230435B2 (en) Image processing method, image processing apparatus, and image forming apparatus including the same
JP4334498B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP4139752B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium recording the program
JP2006005907A (en) Image processing method, image processing apparatus, image forming apparatus, computer program and dummy halftone matrix creating method
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP2009267835A (en) Image processing device, image forming device, image processing method, computer program, and recording medium
JP2015049631A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2005027016A (en) Image processing apparatus
JP5265040B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP4266004B2 (en) Image processing method, image processing apparatus, image forming apparatus, image processing program, and recording medium recording image processing program
JP2007334520A (en) Image processor, image forming device, image processing method, image processing program, and recording medium recoding image processing program
JP4386870B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5079904B2 (en) Multilevel dither processing method, image processing apparatus, image forming apparatus, multi-function machine, multilevel dither processing program, and computer-readable recording medium