[go: up one dir, main page]

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

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

Info

Publication number
JP2010278924A
JP2010278924A JP2009131494A JP2009131494A JP2010278924A JP 2010278924 A JP2010278924 A JP 2010278924A JP 2009131494 A JP2009131494 A JP 2009131494A JP 2009131494 A JP2009131494 A JP 2009131494A JP 2010278924 A JP2010278924 A JP 2010278924A
Authority
JP
Japan
Prior art keywords
image data
unit
processing
halftone
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009131494A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Owaku
剛志 大和久
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 JP2009131494A priority Critical patent/JP2010278924A/en
Publication of JP2010278924A publication Critical patent/JP2010278924A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus capable of preventing an occurrence of moires which are interference patterns of halftone patterns of an original with halftone patterns generated in a halftone processing in an image processing, and capable of obtaining an optimum copy output, to provide an image forming apparatus, to provide an image processing method, to provide a program, and to provide a recording medium. <P>SOLUTION: A difference detection section 103 calculates a difference value Dif<SB>_</SB>F(u, v) of a frequency component from a spatial frequency component of image data before halftone processing and a spatial frequency component of image data after halftone processing. A moire determining section 104 determines whether any moires occur based on the difference value Dif<SB>_</SB>F(u, v) of the frequency component. When it is determined that the moires occur, a filter coefficient calculation section 105 calculates a filter coefficient for suppressing the occurrence of the moires based on the difference value Dif<SB>_</SB>F(u, v) of the frequency component. A spatial filter processing section performs spatial filter processing by using the calculated filter coefficient. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理を行う画像処理装置、画像形成装置、画像形成方法、プログラムおよび記録媒体に関する。   The present invention relates to an image processing apparatus that performs image processing, an image forming apparatus, an image forming method, a program, and a recording medium.

複写機および複合機などの画像形成装置は、原稿をスキャンして取得した画像データを出力する際、中間調処理を行ってハーフトーン画像を生成し、ディザ法あるいは誤差拡散法などの面積階調法でコピー出力の濃度を制御している。ハーフトーン画像は、複数の画素で構成されるディザパターンが一定の方向に並ぶため、スキャンした画像データがハーフトーンで構成されている場合、画像データのハーフトーンと、中間調処理によって生成されるハーフトーンとが互いに干渉し、規則的な干渉パターンとなって出力結果に現れることがある。この規則的な干渉パターンは、モアレと呼ばれ、出力画質を低下させる要因の一つである。   Image forming apparatuses such as copiers and multifunction peripherals perform halftone processing to generate halftone images when outputting image data obtained by scanning a document, and area gradation such as dithering or error diffusion Method to control the density of copy output. A halftone image is generated by halftone processing of image data and halftone processing when scanned image data is composed of halftones because dither patterns composed of a plurality of pixels are arranged in a certain direction. Halftones may interfere with each other, resulting in a regular interference pattern and appearing in the output result. This regular interference pattern is called moire and is one of the factors that degrade the output image quality.

モアレの発生を抑制する画像処理を行う従来の技術としては、特許文献1に記載される画像処理装置がある。この画像処理装置は、変倍処理後の画像データについてフーリエ変換を行なって書込密度との関係でモアレを発生する特定空間周波数を検知し、検知された特定空間周波数に対して、公倍関係にない空間周波数の1つの空間周波数フィルタ処理を行うことによって、モアレの発生を抑制する。   As a conventional technique for performing image processing for suppressing the occurrence of moiré, there is an image processing apparatus described in Patent Document 1. This image processing apparatus performs a Fourier transform on the image data after the scaling process to detect a specific spatial frequency that generates moiré in relation to the writing density, and a common multiple relationship with respect to the detected specific spatial frequency The generation of moire is suppressed by performing one spatial frequency filter process with a spatial frequency not present in the range.

また、特許文献2に記載される画像処理装置は、モアレが発生する周波数を有する網点領域のみを検出し、モアレなどの問題が発生する特定線数の場合には、強い平滑化処理を行うフィルタ処理に変更して、モアレの発生を抑制する。   Further, the image processing apparatus described in Patent Document 2 detects only a halftone dot region having a frequency at which moire occurs, and performs strong smoothing processing in the case of a specific number of lines in which a problem such as moire occurs. Change to filter processing to suppress the occurrence of moire.

また、特許文献3に記載される画像処理装置は、階調画像と、階調画像を網点化して得られる網点画像との差信号を求め、差信号を検波してモアレ検出信号を生成し、モアレ検出信号をパラメータとして、階調画像と階調画像の低周波成分信号とを加重平均することによって、モアレ要因が除去された画像信号を生成し、モアレの発生を抑制する。   The image processing apparatus described in Patent Document 3 obtains a difference signal between a gradation image and a halftone image obtained by converting the gradation image into halftone dots, and detects the difference signal to generate a moire detection signal. Then, by using the moire detection signal as a parameter, the gradation image and the low-frequency component signal of the gradation image are weighted and averaged to generate an image signal from which the moire factor has been removed, thereby suppressing the occurrence of moire.

特開平8−51536号公報JP-A-8-51536 特開2001−119575号公報JP 2001-119575 A 特開平9−238259号公報JP-A-9-238259

しかしながら、特許文献1および特許文献2に記載される画像処理装置は、画像の濃度および中間調処理のスクリーン角度を考慮していない。画像の濃度が変われば、画像データのハーフトーンのドット間の幅が変わり、中間調処理によって生成されるハーフトーンのドット間の幅も変わるため、干渉が起こらず、モアレが発生しない場合がある。また、中間調処理のスクリーン角度が変われば、中間調処理によって生成されるハーフトーンのドット間の幅が方向によって変わるため、干渉が起こらず、モアレが発生しない場合がある。特許文献1および特許文献2に記載される画像処理装置では、これらを考慮していないため、モアレが発生していない場合でも、必要以上に強い平滑フィルタ処理を行うので、輪郭がぼやけるなどの画質劣化が起こってしまうという問題がある。   However, the image processing apparatuses described in Patent Document 1 and Patent Document 2 do not consider the image density and the screen angle of halftone processing. If the image density changes, the width between halftone dots in the image data changes, and the width between halftone dots generated by halftone processing also changes, so there is no interference and moire may not occur. . Also, if the screen angle of the halftone process changes, the width between the halftone dots generated by the halftone process changes depending on the direction, so that interference does not occur and moire may not occur. Since the image processing apparatuses described in Patent Document 1 and Patent Document 2 do not take these into consideration, even if no moire occurs, smoothing filter processing that is stronger than necessary is performed, so image quality such as blurred outlines is obtained. There is a problem that deterioration occurs.

また、特許文献3に記載される画像処理装置は、検出したモアレ検出信号の周期を考慮せずに、高周波成分信号が除去された低周波成分信号と、階調画像信号とを加重平均しているため、除去する必要のない、見た目に目立たないような高周波のモアレが発生する場合でも、画像の高周波成分が小さくなり、輪郭がぼやけるなどの画質劣化が起こってしまうという問題がある。   Further, the image processing apparatus described in Patent Document 3 performs weighted averaging of the low-frequency component signal from which the high-frequency component signal has been removed and the gradation image signal without considering the period of the detected moire detection signal. Therefore, even when high-frequency moire that does not need to be removed and is inconspicuous occurs, there is a problem that the high-frequency component of the image is reduced and the image quality is deteriorated such as the outline is blurred.

本発明の目的は、画像処理において、原稿のハーフトーンのパターンと、中間調処理で生成されるハーフトーンのパターンとの干渉パターンであるモアレの発生を防止し、最適なコピー出力を得ることができる画像処理装置、画像形成装置、画像形成方法、プログラムおよび記録媒体を提供することである。   An object of the present invention is to prevent occurrence of moire, which is an interference pattern between a halftone pattern of a document and a halftone pattern generated by halftone processing, and obtain an optimum copy output in image processing. An image processing apparatus, an image forming apparatus, an image forming method, a program, and a recording medium are provided.

本発明は、画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理部と、
中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択部と、
領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部と、
周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出部と、
差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定部と、
判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出部と、
フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理部とを含むことを特徴とする画像処理装置である。
The present invention includes a halftone processing unit that performs halftone processing on image data to generate a halftone image;
The position of the pixel indicated by the image data before halftone processing before the halftone processing is performed by the halftone processing unit, and the pixel indicated by the image data after halftone processing after the halftone processing is performed by the halftone processing unit When the position is expressed in the same coordinate system, an area selection unit that selects an area of a predetermined shape at the same position, and
A frequency conversion unit that converts pixel values indicated by pre-halftone image data and post-halftone image data of pixels included in the region selected by the region selection unit into frequency components;
A difference calculation unit that calculates a difference between frequency components based on the frequency component of the image data before halftone processing converted by the frequency conversion unit and the frequency component of the image data after halftone processing converted by the frequency conversion unit;
A determination unit that determines whether or not moire, which is an interference pattern, is generated based on the difference between the frequency components calculated by the difference calculation unit;
A filter coefficient calculation unit that calculates a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated by the difference calculation unit when the determination unit determines that moire occurs;
An image processing apparatus comprising: a filter processing unit that performs filter processing on image data using the filter coefficient calculated by the filter coefficient calculation unit.

また本発明は、前記中間調処理部は、画像データを記憶する記憶部に記憶されている画像データに対して中間調処理を行い、
前記フィルタ係数算出部は、算出したフィルタ係数を前記記憶部に記憶されている画像データに関連付けて記憶部に記憶することを特徴とする。
According to the present invention, the halftone processing unit performs halftone processing on the image data stored in the storage unit that stores the image data,
The filter coefficient calculation unit stores the calculated filter coefficient in the storage unit in association with the image data stored in the storage unit.

また本発明は、画像データを表示装置に表示する表示制御部をさらに含み、
表示制御部が前記記憶部に記憶されている画像データを表示装置に表示している期間に、前記中間調処理部は、前記記憶部に記憶されている画像データに対して中間調処理を行い、前記フィルタ係数算出部は、算出したフィルタ係数を前記記憶部に記憶されている画像データに関連付けて記憶部に記憶することを特徴とする。
The present invention further includes a display control unit for displaying the image data on the display device,
During a period when the display control unit displays the image data stored in the storage unit on the display device, the halftone processing unit performs halftone processing on the image data stored in the storage unit. The filter coefficient calculation unit stores the calculated filter coefficient in the storage unit in association with the image data stored in the storage unit.

また本発明は、画像データに基づいてその画像データの原稿の種別を判別する原稿種別判別部をさらに含み、
前記判定部は、原稿種別判別部によって原稿が印刷写真を含む原稿であると判別されたとき、モアレが発生するか否かを判定することを特徴とする。
The present invention further includes a document type determination unit that determines the document type of the image data based on the image data,
The determination unit determines whether or not moire occurs when the document type determination unit determines that the document is a document including a printed photograph.

また本発明は、前記画像処理装置を備えることを特徴とする画像形成装置である。
また本発明は、画像を処理する画像処理装置によって実行される画像処理方法であって、
画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理ステップと、
中間調処理ステップで中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理ステップで中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択ステップと、
領域選択ステップで選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換ステップと、
周波数変換ステップで変換された中間調処理前画像データの周波数成分と、周波数変換ステップで変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出ステップと、
差分算出ステップで算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定ステップと、
判定ステップでモアレが発生すると判定されたとき、差分算出ステップで算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出ステップと、
フィルタ係数算出ステップで算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理ステップとを含むことを特徴とする画像処理方法である。
In addition, the present invention is an image forming apparatus including the image processing apparatus.
The present invention is also an image processing method executed by an image processing apparatus for processing an image,
A halftone processing step of performing halftone processing on the image data to generate a halftone image;
The pixel position indicated by the image data before halftone processing before the halftone processing is performed in the halftone processing step and the pixel indicated by the image data after halftone processing after the halftone processing is performed in the halftone processing step. When the position is expressed in the same coordinate system, an area selection step for selecting an area of a predetermined shape at the same position, and
A frequency conversion step of converting the pixel values indicated by the image data before halftone processing and the image data after halftone processing of the pixels included in the region selected in the region selection step into frequency components;
A difference calculating step for calculating a difference between frequency components based on the frequency component of the image data before halftone processing converted in the frequency conversion step and the frequency component of the image data after halftone processing converted in the frequency conversion step;
A determination step of determining whether or not moire as an interference pattern occurs based on the difference between the frequency components calculated in the difference calculation step;
A filter coefficient calculating step for calculating a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated in the difference calculating step when it is determined that the moire occurs in the determining step;
The image processing method includes a filter processing step of performing a filter process on the image data using the filter coefficient calculated in the filter coefficient calculation step.

また本発明は、コンピュータを、
画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理部と、
中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択部と、
領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部と、
周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出部と、
差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定部と、
判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出部と、
フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理部として機能させるためのプログラムである。
The present invention also provides a computer,
A halftone processing unit that performs halftone processing on image data to generate a halftone image;
The position of the pixel indicated by the image data before halftone processing before the halftone processing is performed by the halftone processing unit, and the pixel indicated by the image data after halftone processing after the halftone processing is performed by the halftone processing unit When the position is expressed in the same coordinate system, an area selection unit that selects an area of a predetermined shape at the same position, and
A frequency conversion unit that converts pixel values indicated by pre-halftone image data and post-halftone image data of pixels included in the region selected by the region selection unit into frequency components;
A difference calculation unit that calculates a difference between frequency components based on the frequency component of the image data before halftone processing converted by the frequency conversion unit and the frequency component of the image data after halftone processing converted by the frequency conversion unit;
A determination unit that determines whether or not moire, which is an interference pattern, is generated based on the difference between the frequency components calculated by the difference calculation unit;
A filter coefficient calculation unit that calculates a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated by the difference calculation unit when the determination unit determines that moire occurs;
This is a program for functioning as a filter processing unit that performs filter processing on image data using the filter coefficient calculated by the filter coefficient calculation unit.

また本発明は、前記プログラムを記録したコンピュータ読み取り可能な記録媒体である。   The present invention is also a computer-readable recording medium on which the program is recorded.

本発明によれば、中間調処理部によって、画像データに対して中間調処理が行われてハーフトーン画像が生成される。領域選択部によって、中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域がそれぞれ選択される。周波数変換部によって、領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値が、それぞれ周波数成分に変換される。差分算出部によって、周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分が算出される。判定部によって、差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かが判定される。フィルタ係数算出部によって、判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数が算出される。そして、フィルタ処理部によって、フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理が行われる。   According to the present invention, the halftone processing unit performs halftone processing on the image data to generate a halftone image. The pixel position indicated by the image data before halftone processing before the halftone processing is performed by the halftone processing unit by the region selection unit, and the halftone processed image after the halftone processing is performed by the halftone processing unit When the position of the pixel indicated by the data is expressed in the same coordinate system, a region having a predetermined shape at the same position is selected. The frequency conversion unit converts the pixel values indicated by the pre-halftone image data and the post-halftone image data of the pixels included in the region selected by the region selection unit into frequency components. The difference calculation unit calculates the difference between the frequency components based on the frequency component of the image data before halftone processing converted by the frequency conversion unit and the frequency component of the image data after halftone processing converted by the frequency conversion unit. The The determination unit determines whether or not moire, which is an interference pattern, is generated based on the difference between the frequency components calculated by the difference calculation unit. When the filter coefficient calculation unit determines that the moire is generated by the determination unit, a filter coefficient for suppressing the generation of the moire is calculated based on the frequency component difference calculated by the difference calculation unit. Then, the filter processing unit performs filter processing on the image data using the filter coefficient calculated by the filter coefficient calculation unit.

したがって、画像処理において、入力される画像データに基づいて、原稿のハーフトーンのパターンと、中間調処理で生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定することができるので、コピーなどを出力する前にモアレの発生の有無を知ることができる。モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数を算出して空間フィルタ処理を行うことによって、モアレの発生を防止し、最適なコピー出力を得ることができる。   Therefore, in image processing, it is determined whether or not moire, which is an interference pattern between a halftone pattern of a document and a halftone pattern generated by halftone processing, is generated based on input image data. Therefore, it is possible to know the presence or absence of moire before outputting a copy or the like. When it is determined that moiré occurs, the filter coefficient for suppressing the occurrence of moiré is calculated and spatial filtering is performed, so that the occurrence of moiré can be prevented and an optimum copy output can be obtained.

また本発明によれば、前記中間調処理部によって、画像データを記憶する記憶部に記憶されている画像データに対して中間調処理が行なわれ、前記フィルタ係数算出部によって、算出されたフィルタ係数が、前記記憶部に記憶されている画像データに関連付けて記憶部に記憶される。したがって、スキャナ部などで取り込んだ画像をハードディスクなどの記憶装置に記憶しておき、待機時間などに記憶装置に記憶した画像データに対してフィルタ係数を算出し、算出したフィルタ係数をその画像データに関連付けて記憶装置に記憶しておくことができ、時間がかかる処理を効率的に行うことができる。   According to the invention, the halftone processing unit performs halftone processing on the image data stored in the storage unit that stores the image data, and the filter coefficient calculated by the filter coefficient calculation unit Are stored in the storage unit in association with the image data stored in the storage unit. Accordingly, an image captured by the scanner unit or the like is stored in a storage device such as a hard disk, filter coefficients are calculated for the image data stored in the storage device during a standby time, and the calculated filter coefficients are used as the image data. The data can be stored in the storage device in association with each other, and time-consuming processing can be performed efficiently.

また本発明によれば、ユーザが画像データのプレビュー機能を選択した場合、表示制御部によって、画像データが表示装置に表示される。表示制御部が前記記憶部に記憶されている画像データを表示装置に表示し、ユーザが画像データの編集処理を行っている期間を利用して、前記中間調処理部によって、前記記憶部に記憶されている画像データに対して中間調処理が行われ、前記フィルタ係数算出部によって、算出されたフィルタ係数が、前記記憶部に記憶されている画像データに関連付けて記憶部に記憶される。したがって、たとえばコピーを出力する前に、画像データのプレビュー画像を表示装置に表示し、ユーザが表示装置に表示されているプレビュー画像を見ている間に、その画像データにモアレが発生するか否かを判定し、モアレが発生すると判定されたときに、フィルタ係数を算出しておくことができるので、時間がかかる処理を効率的に行うことができる。   According to the present invention, when the user selects a preview function for image data, the display control unit displays the image data on the display device. The display control unit displays the image data stored in the storage unit on the display device, and the halftone processing unit stores the image data in the storage unit using a period during which the user performs the image data editing process. A halftone process is performed on the processed image data, and the filter coefficient calculation unit stores the calculated filter coefficient in the storage unit in association with the image data stored in the storage unit. Therefore, for example, before outputting a copy, a preview image of the image data is displayed on the display device, and whether or not moire occurs in the image data while the user is viewing the preview image displayed on the display device. Since it is possible to calculate the filter coefficient when it is determined that moiré is generated, time-consuming processing can be performed efficiently.

また本発明によれば、原稿種別判別部によって、画像データに基づいてその画像データの原稿の種別が判別される。前記判定部によって、原稿種別判別部によって原稿が印刷写真を含む原稿であると判別されたとき、モアレが発生するか否かが判定される。モアレが発生する可能性があるのは、原稿の画像にハーフトーン画像が含まれている場合であるので、原稿種別判別部による判別結果が、モアレが発生する可能性がない原稿、たとえば原稿が印刷写真を含まない原稿である場合、領域選択部、周波数変換部、差分算出部、判定部およびフィルタ係数算出部による処理を行わなくすることができ、処理時間を短縮することができる。   According to the invention, the document type determination unit determines the document type of the image data based on the image data. When the determination unit determines that the document is a document including a printed photograph, the document type determination unit determines whether moire occurs. Moire may occur when a halftone image is included in the document image. Therefore, the determination result by the document type determination unit indicates that there is no possibility of moiré, for example, a document. In the case of a document that does not include a printed photograph, the processing by the region selection unit, frequency conversion unit, difference calculation unit, determination unit, and filter coefficient calculation unit can be omitted, and the processing time can be shortened.

また本発明によれば、前記画像処理装置を備えるので、入力される画像データにモアレが発生すると判定した場合、モアレの発生を抑制するためのフィルタ係数を算出し、算出したフィルタ係数を用いて空間フィルタ処理を行うことができ、モアレのないコピーなどを出力することができる。   According to the invention, since the image processing apparatus is provided, when it is determined that moiré occurs in the input image data, a filter coefficient for suppressing the occurrence of moiré is calculated, and the calculated filter coefficient is used. Spatial filter processing can be performed, and a copy without moire can be output.

また本発明によれば、画像を処理する画像処理装置によって画像処理を実行するにあたって、中間調処理ステップでは、画像データに対して中間調処理を行ってハーフトーン画像を生成する。領域選択ステップでは、中間調処理ステップで中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理ステップで中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する。周波数変換ステップでは、領域選択ステップで選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する。差分算出ステップでは、周波数変換ステップで変換された中間調処理前画像データの周波数成分と、周波数変換ステップで変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する。判定ステップでは、差分算出ステップで算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する。フィルタ係数算出ステップでは、判定ステップでモアレが発生すると判定されたとき、差分算出ステップで算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出する。そして、フィルタ処理ステップでは、フィルタ係数算出ステップで算出されたフィルタ係数を用いて、画像データにフィルタ処理を行う。   According to the present invention, when the image processing is executed by the image processing apparatus that processes the image, the halftone processing step performs halftone processing on the image data to generate a halftone image. In the region selection step, the pixel position indicated by the image data before halftone processing before halftone processing is performed in the halftone processing step, and the halftone processed image after halftone processing is performed in the halftone processing step When the position of the pixel indicated by the data is expressed in the same coordinate system, a region having a predetermined shape at the same position is selected. In the frequency conversion step, the pixel values indicated by the pre-halftone image data and the post-halftone image data of the pixels included in the region selected in the region selection step are converted into frequency components, respectively. In the difference calculation step, the difference between the frequency components is calculated based on the frequency component of the image data before halftone processing converted in the frequency conversion step and the frequency component of the image data after halftone processing converted in the frequency conversion step. . In the determination step, it is determined whether or not moire that is an interference pattern occurs based on the difference between the frequency components calculated in the difference calculation step. In the filter coefficient calculation step, when it is determined in the determination step that moiré occurs, a filter coefficient for suppressing the occurrence of moiré is calculated based on the frequency component difference calculated in the difference calculation step. In the filter processing step, the image data is filtered using the filter coefficient calculated in the filter coefficient calculation step.

したがって、入力される画像データに基づいて、原稿のハーフトーンのパターンと、中間調処理で生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定することができるので、コピーなどを出力する前にモアレの発生の有無を知ることができる。モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数を算出して空間フィルタ処理を行うことによって、モアレの発生を防止し、最適なコピー出力を得ることができる。   Accordingly, it is possible to determine whether or not moire, which is an interference pattern between the halftone pattern of the document and the halftone pattern generated by the halftone process, is generated based on the input image data. It is possible to know the presence or absence of moire before outputting a copy or the like. When it is determined that moiré occurs, the filter coefficient for suppressing the occurrence of moiré is calculated and spatial filtering is performed, so that the occurrence of moiré can be prevented and an optimum copy output can be obtained.

また本発明によれば、プログラムは、コンピュータを、画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理部と、中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択部と、領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部と、周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出部と、差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定部と、判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出部と、フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理部として機能させる。   Further, according to the present invention, the program causes the computer to perform halftone processing on the image data to generate a halftone image, and the halftone processing before the halftone processing is performed by the halftone processing unit. When the pixel position indicated by the pre-tone image data and the pixel position indicated by the post-halftone image data after the halftone processing is performed by the halftone processing unit are represented in the same coordinate system, the same position A region selecting unit for selecting a region having a predetermined shape, and pixel values indicated by pre-halftone image data and post-halftone image data of pixels included in the region selected by the region selecting unit, respectively, as frequency components A frequency conversion unit that converts the image data, a frequency component of the image data before halftone processing converted by the frequency conversion unit, and image data after halftone processing converted by the frequency conversion unit A difference calculation unit that calculates a difference between frequency components based on the frequency component; a determination unit that determines whether or not moire that is an interference pattern occurs based on the difference between the frequency components calculated by the difference calculation unit; A filter coefficient calculation unit that calculates a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated by the difference calculation unit when the determination unit determines that moire occurs; and a filter coefficient calculation The filter coefficient calculated by the unit is used as a filter processing unit that performs filter processing on the image data.

したがって、原稿のハーフトーンのパターンと、中間調処理によって生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定し、モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数を算出して空間フィルタ処理を行うことができる処理をプログラムで実現することができる。   Therefore, it is determined whether or not moire, which is an interference pattern between the halftone pattern of the original and the halftone pattern generated by the halftone process, is generated. A process capable of calculating a filter coefficient for suppressing occurrence and performing a spatial filter process can be realized by a program.

また本発明によれば、前記プログラムを記録したコンピュータ読み取り可能な記録媒体であるので、コンピュータ読み取り可能な記録媒体から読み出されたプログラムによって、前記画像処理装置をコンピュータ上に実現することができる。   Further, according to the present invention, since the computer-readable recording medium records the program, the image processing apparatus can be realized on the computer by the program read from the computer-readable recording medium.

本発明の一実施形態に係るモアレ抑制フィルタ係数算出部10の構成を示すブロック図である。It is a block diagram which shows the structure of the moire suppression filter coefficient calculation part 10 which concerns on one Embodiment of this invention. 注目画素301に対して総和濃度煩雑度を求める対象となる画素を説明するための図である。FIG. 10 is a diagram for explaining a pixel for which a total density complexity is calculated for a target pixel 301. 差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)を示すグラフの一例である。It is an example of the graph which shows the difference value Dif_F (u, v) of the frequency component calculated by the difference detection part 103. 図3に示した周波数成分の差分値Dif_F(u,v)に対するモアレ判定の例を示す図である。It is a figure which shows the example of the moire determination with respect to the difference value Dif_F (u, v) of the frequency component shown in FIG. フィルタ係数算出部105によって算出されたフィルタ係数Filter31の一例を示す図である。It is a figure which shows an example of the filter coefficient Filter31 calculated by the filter coefficient calculation part 105. FIG. モアレ抑制フィルタ係数算出部10が実行するモアレ抑制フィルタ係数算出処理およびそれに係る処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the moire suppression filter coefficient calculation process which the moire suppression filter coefficient calculation part 10 performs, and the process which concerns on it. 本発明の一実施形態である画像形成装置1の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus 1 according to an embodiment of the present invention. 画像形成装置1がプレビューを表示するときの処理を説明するための図である。FIG. 6 is a diagram for explaining processing when the image forming apparatus 1 displays a preview. 出力階調補正部21が用いるガンマ曲線の例を示す図である。It is a figure which shows the example of the gamma curve which the output gradation correction | amendment part 21 uses. 本発明の他の実施形態である画像形成装置1aの構成を示すブロック図である。It is a block diagram which shows the structure of the image forming apparatus 1a which is other embodiment of this invention.

図1は、本発明の一実施形態に係るモアレ抑制フィルタ係数算出部10の構成を示すブロック図である。モアレ抑制フィルタ係数算出部10は、本発明の一実施形態である画像形成装置1および本発明の他の実施形態である画像形成装置1aに含まれる。画像形成装置1については、図7で詳述し、画像形成装置1aについては、図10で詳述する。   FIG. 1 is a block diagram showing a configuration of a moire suppression filter coefficient calculation unit 10 according to an embodiment of the present invention. The moiré suppression filter coefficient calculation unit 10 is included in the image forming apparatus 1 that is one embodiment of the present invention and the image forming apparatus 1a that is another embodiment of the present invention. The image forming apparatus 1 will be described in detail with reference to FIG. 7, and the image forming apparatus 1a will be described in detail with reference to FIG.

モアレ抑制フィルタ係数算出部10は、画像形成装置1,1aに入力された画像データが、図7で後述する原稿種別自動判別部13または図10で後述する原稿種別自動判別部13aによって、印刷写真が含まれる原稿の画像データであると判定されたときに動作する。印刷写真が含まれる原稿は、写真が印刷された印刷写真原稿、ならびに文字および写真が印刷された文字印刷写真原稿である。   The moiré suppression filter coefficient calculation unit 10 causes the image data input to the image forming apparatuses 1 and 1a to be printed by a document type automatic determination unit 13 described later in FIG. 7 or a document type automatic determination unit 13a described later in FIG. The operation is performed when it is determined that the image data is a document image including. The manuscript including the printed photo is a printed photo manuscript on which a photo is printed, and a character printed photo manuscript on which characters and a photo are printed.

モアレ抑制フィルタ係数算出部10について説明する前に、原稿種別自動判別部13が行う原稿種別の判別方法について説明する。原稿種別自動判別部13は、次に示す7つの工程からなる原稿種別の判別方法を用いる。   Before describing the moiré suppression filter coefficient calculation unit 10, a document type determination method performed by the document type automatic determination unit 13 will be described. The document type automatic determination unit 13 uses a document type determination method including the following seven steps.

第1工程では、注目画素を含むn×m画素のブロック、たとえば7×15画素のブロックにおける最小濃度値および最大濃度値を算出する。第2工程では、算出された最小濃度値および最大濃度値を用いて最大濃度差を算出する。第3工程では、隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度、たとえば主走査方向と副走査方向とについて算出した値の和を総和濃度繁雑度として算出する。   In the first step, the minimum density value and the maximum density value in an n × m pixel block including the target pixel, for example, a 7 × 15 pixel block are calculated. In the second step, the maximum density difference is calculated using the calculated minimum density value and maximum density value. In the third step, a total density busyness that is the sum of absolute values of density differences between adjacent pixels, for example, a sum of values calculated in the main scanning direction and the sub-scanning direction is calculated as the total density busyness.

図2は、注目画素301に対して総和濃度煩雑度を求める対象となる画素を説明するための図である。注目画素301に対して総和濃度煩雑度を求める対象となる画素は、ブロック30に含まれる画素のうち、注目画素301を含む主走査方向の画素302と、注目画素301を含む副走査方向の画素303とから構成される。したがって、総和濃度繁雑度は、主走査方向で隣接する画素の濃度差の絶対値の総和と、副走査方向で隣接する画素の濃度差の絶対値の総和とを合計した値である。   FIG. 2 is a diagram for explaining a pixel for which the total density complexity is calculated for the target pixel 301. Among the pixels included in the block 30, the main scanning direction pixel 302 including the target pixel 301 and the sub scanning direction pixel including the target pixel 301 among the pixels included in the block 30. 303. Therefore, the total density busyness is a value obtained by summing the sum of absolute values of density differences between adjacent pixels in the main scanning direction and the sum of absolute values of density differences between adjacent pixels in the sub-scanning direction.

第4工程では、算出された最大濃度差と最大濃度差閾値との比較、および算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行う。最大濃度差<最大濃度差閾値、かつ総和濃度繁雑度<総和濃度繁雑度閾値のとき、注目画素301は下地印画紙領域に属すると判定する。最大濃度差<最大濃度差閾値、かつ総和濃度繁雑度<総和濃度繁雑度閾値という条件を満たさないとき、注目画素301は文字網点領域に属すると判定する。   In the fourth step, the calculated maximum density difference is compared with the maximum density difference threshold, and the calculated total density busyness is compared with the total density busyness threshold. When the maximum density difference <the maximum density difference threshold and the total density busyness <the total density busyness threshold, it is determined that the target pixel 301 belongs to the background photographic paper region. When the conditions of maximum density difference <maximum density difference threshold and total density busyness <total density busyness threshold are not satisfied, it is determined that the target pixel 301 belongs to the character halftone dot region.

第5工程では、下地印画紙領域に属すると判定された画素について、注目画素301が、最大濃度差<下地印画紙判定閾値を満たすとき、下地画素であると判定し、最大濃度差<下地印画紙判定閾値を満たさないとき、印画紙画素であると判定する。第6工程では、文字網点領域に属すると判定された画素について、注目画素301が、総和濃度繁雑度<最大濃度差×文字網点判定閾値を満たすとき、文字画素であると判定し、総和濃度繁雑度<最大濃度差×文字網点判定閾値を満たさないとき、網点画素であると判定する。   In the fifth step, regarding the pixel determined to belong to the background photographic paper region, when the target pixel 301 satisfies the maximum density difference <the background photographic paper determination threshold, it is determined that the pixel is the background pixel, and the maximum density difference <the background printing. When the paper determination threshold is not satisfied, it is determined that the pixel is a photographic paper pixel. In the sixth step, regarding the pixels determined to belong to the character halftone dot region, when the target pixel 301 satisfies the total density busyness <maximum density difference × character halftone dot determination threshold, the pixel is determined to be a character pixel, and the total sum When the density busyness <maximum density difference × character halftone dot determination threshold value is not satisfied, it is determined that the pixel is a halftone pixel.

第7工程では、下地画素からなる下地領域、印画紙画素からなる印画紙写真領域、文字画素からなる文字領域、および網点画素からなる網点領域に分類された画素数をカウントし、それぞれのカウント値と、予め定められている下地領域、印画紙写真領域、網点領域および文字領域に対するそれぞれの閾値とを比較して、原稿全体の種別を判定する。たとえば、文字領域、網点領域、印画紙写真領域の順に検出精度が高いとすると、文字領域の比率が全画素数の30%以上の場合には文字原稿、網点領域の比率が全画素数の20%以上の場合には網点原稿(以下、「印刷写真原稿」ともいう)、印画紙写真領域の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるとき、文字/網点原稿(以下「文字印刷写真原稿」ともいう)であると判定する。この判定方法は、たとえば特開2002−232708号公報に記載されている判定方法である。   In the seventh step, the number of pixels classified into a background area consisting of background pixels, a photographic paper photograph area consisting of photographic paper pixels, a character area consisting of character pixels, and a halftone dot area consisting of halftone pixels is counted. The type of the entire document is determined by comparing the count value with respective threshold values for a predetermined background area, photographic paper photograph area, halftone dot area, and character area. For example, assuming that the detection accuracy is higher in the order of a character area, a halftone dot area, and a photographic paper photograph area, if the ratio of the character area is 30% or more of the total number of pixels, the ratio of the character original and the halftone area is the total number of pixels. When the ratio is 20% or more, it is determined that the original is a halftone dot original (hereinafter also referred to as “printed photo original”), and when the ratio of the photographic paper photo area is 10% or more of the total number of pixels, . Further, when the ratio of the character area and the ratio of the halftone dot area are each equal to or greater than the threshold value, it is determined that the character / halftone original (hereinafter also referred to as “character-printed photo original”). This determination method is a determination method described in, for example, Japanese Patent Application Laid-Open No. 2002-232708.

図1を参照して、モアレ抑制フィルタ係数算出部10は、領域選択部101、周波数変換部102、差分検出部103、モアレ判定部104およびフィルタ係数算出部105を含んで構成される。   Referring to FIG. 1, the moire suppression filter coefficient calculation unit 10 includes an area selection unit 101, a frequency conversion unit 102, a difference detection unit 103, a moire determination unit 104, and a filter coefficient calculation unit 105.

領域選択部101は、中間調処理が行われる前の中間調処理前画像データCMYK(
Cyan-Magenta-Yellow-Black)1、および中間調処理が行われた後の中間調処理後画像データCMYK2における同一座標の矩形領域をそれぞれ選択する。同一座標の矩形領域とは、中間調処理前画像データCMYK1が示す画素の位置と、中間調処理後画像データCMYK2が示す画素の位置とを同一の座標系で表したとき、同じ位置にある矩形の領域である。予め定める形状の領域である矩形領域は、たとえば256×256画素のサイズである。また、選択される矩形領域の数は、1つに限定されるものではなく、位置を変えて複数選択、たとえば25個の矩形領域を選択してもよい。
The area selection unit 101 uses the pre-halftone image data CMYK (before halftone processing).
Cyan-Magenta-Yellow-Black) 1 and rectangular regions having the same coordinates in the halftone processed image data CMYK2 after the halftone processing is performed are selected. The rectangular area of the same coordinate is a rectangle at the same position when the pixel position indicated by the image data CMYK1 before halftone processing and the pixel position indicated by the image data CMYK2 after halftone processing are represented in the same coordinate system. It is an area. The rectangular area, which is an area having a predetermined shape, has a size of, for example, 256 × 256 pixels. The number of rectangular areas to be selected is not limited to one, and a plurality of selections, for example, 25 rectangular areas may be selected by changing the position.

周波数変換部102は、領域選択部101によってそれぞれ選択された矩形領域に含まれる画素の画素値にフーリエ変換を行って、周波数成分(以下「空間周波数成分」ともいう)に変換する。周波数成分への変換は、中間調処理前画素データおよび中間調処理後画像データのそれぞれの画像データが示す画素値に対して、CMYKプレーンごとに行う。CMYKプレーンとは、1つの画素をシアン(Cyan:略称C)、マゼンタ(Magenta:略称M)、イエロー(Yellow:略称Y)、および黒(Black:略称K)の4つの色で表したとき、各色からなるそれぞれの画像である。フーリエ変換は、式(1)を用いて行う。   The frequency conversion unit 102 performs Fourier transform on the pixel values of the pixels included in the rectangular regions selected by the region selection unit 101 to convert the pixel values into frequency components (hereinafter also referred to as “spatial frequency components”). The conversion to the frequency component is performed for each CMYK plane with respect to the pixel values indicated by the respective image data of the pixel data before halftone processing and the image data after halftone processing. The CMYK plane means that when one pixel is represented by four colors of cyan (Cyan: abbreviation C), magenta (Magenta: abbreviation M), yellow (Yellow: abbreviation Y), and black (Black: abbreviation Y). It is each image which consists of each color. The Fourier transform is performed using equation (1).

Figure 2010278924
Figure 2010278924

ここに、A(x,y)は、XY座標系における座標(x,y)の位置にある画素の画素値である。Mは、矩形領域内のX軸方向の画素数であり、Nは、矩形領域内のY軸方向の画素数である。C(u,v)は、フーリエ級数である。uは、X軸方向の周波数であり、vは、Y軸方向の周波数である。   Here, A (x, y) is the pixel value of the pixel at the position of the coordinate (x, y) in the XY coordinate system. M is the number of pixels in the X-axis direction in the rectangular area, and N is the number of pixels in the Y-axis direction in the rectangular area. C (u, v) is a Fourier series. u is a frequency in the X-axis direction, and v is a frequency in the Y-axis direction.

差分検出部103は、同一座標の矩形領域ごとに、中間調処理後画像データの周波数成分の絶対値を各矩形領域に含まれる画素の画素数で除算した値AfterHT_F(u,v)から、中間調処理前画像データの周波数成分の絶対値を各矩形領域の画素数で除算した値BeforeHT_F(u,v)を減算した周波数成分の差分を、周波数成分の差分値Dif_F(u,v)として算出する。周波数成分の差分値Dif_F(u,v)は、CMYKプレーンごとに算出する。   For each rectangular area having the same coordinates, the difference detecting unit 103 calculates an intermediate value from a value AfterHT_F (u, v) obtained by dividing the absolute value of the frequency component of the image data after halftone processing by the number of pixels included in each rectangular area. The difference between the frequency components obtained by subtracting the value Before HT_F (u, v) obtained by dividing the absolute value of the frequency component of the pre-tone image data by the number of pixels in each rectangular area is calculated as the frequency component difference value Dif_F (u, v). To do. The frequency component difference value Dif_F (u, v) is calculated for each CMYK plane.

図3は、差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)を示すグラフの一例である。図3(a)は、AfterHT_F(u,v)の一例であり、図3(b)は、BeforeHT_F(u,v)の一例であり、図3(c)は、周波数成分の差分値Dif_F(u,v)の一例である。図3(c)に示した周波数成分の差分値Dif_F(u,v)は、変数vの周波数が最も低い値のとき、変数uの周波数が低い方から順に、「100」、「−30」、「−30」、「0」、「0」、「−40」…であり、変数vの周波数が2番目に低い値のとき、変数uの周波数が低い方から順に、「−20」、「−4」、「7」、「0」、「20」、「20」…であり、変数vの周波数が3番目に低い値のとき、変数uの周波数が低い方から順に、「0」、「47」、「110」、「178」、「50」、「30」…であり、変数vの周波数が4番目に低い値のとき、変数uの周波数が低い方から順に、「−155」、「−134」、「116」、「−70」、「20」、「−50」…であり、変数vの周波数が5番目に低い値のとき、変数uの周波数が低い方から順に、「20」、「50」、「80」、「10」、「20」、「20」…であり、変数vの周波数が6番目に低い値のとき、変数uの周波数が低い方から順に、「50」、「−70」、「3」、「−180」、「45」、「63」…である。   FIG. 3 is an example of a graph illustrating the frequency component difference value Dif_F (u, v) calculated by the difference detection unit 103. 3A is an example of AfterHT_F (u, v), FIG. 3B is an example of BeforeHT_F (u, v), and FIG. 3C is a frequency component difference value Dif_F ( u, v) is an example. The difference values Dif_F (u, v) of the frequency components shown in FIG. 3C are “100” and “−30” in order from the lowest frequency of the variable u when the frequency of the variable v is the lowest value. , “−30”, “0”, “0”, “−40”..., And when the frequency of the variable v is the second lowest value, “−20”, “−4”, “7”, “0”, “20”, “20”..., And when the frequency of the variable v is the third lowest value, “0” in order from the lowest frequency of the variable u. , “47”, “110”, “178”, “50”, “30”..., And when the frequency of the variable v is the fourth lowest value, “−155” in order from the lowest frequency of the variable u. ”,“ −134 ”,“ 116 ”,“ −70 ”,“ 20 ”,“ −50 ”..., And when the frequency of the variable v is the fifth lowest value, In order from the lowest u frequency, “20”, “50”, “80”, “10”, “20”, “20”..., and when the frequency of the variable v is the sixth lowest value, In order from the lowest u frequency, “50”, “−70”, “3”, “−180”, “45”, “63”.

判定部であるモアレ判定部104は、モアレの発生の有無を判定するための閾値を設定し、周波数成分の差分値Dif_F(u,v)がその閾値以上であるとき、モアレが発生すると判定して、モアレ判定信号を出力する。モアレは、中間調処理によって生成されるハーフパターンと、原稿の網点パターン、つまり原稿のハーフパターンとの干渉によって発生する干渉パターンである。したがって、中間調処理後画像データの周波数成分において、モアレの周期に相当する周期の周波数成分の絶対値が、その周波数成分の近隣の周波数成分の絶対値に比べて、局所的に大きくなる傾向がある。したがって、周波数成分の差分値Dif_F(u,v)が局所的に大きくなっている周波数の有無を判定することによって、モアレの発生の有無を判定することができる。また、モアレの周期が非常に長い場合、または非常に短い場合、見た目の画質劣化は気にならないので、周期が非常に長い周波数および非常に短い周波数を除いた特定の周波数範囲において、モアレの発生の有無を判定すればよい。   The moire determination unit 104 serving as a determination unit sets a threshold for determining whether or not moire has occurred, and determines that moire occurs when the difference value Dif_F (u, v) of the frequency component is equal to or greater than the threshold. To output a moire determination signal. Moire is an interference pattern generated by interference between a half pattern generated by halftone processing and a halftone pattern of a document, that is, a half pattern of a document. Therefore, in the frequency component of the image data after halftone processing, the absolute value of the frequency component of the cycle corresponding to the cycle of moire tends to be locally larger than the absolute value of the frequency component in the vicinity of the frequency component. is there. Therefore, the presence / absence of moire can be determined by determining the presence / absence of a frequency at which the difference value Dif_F (u, v) of the frequency component is locally large. In addition, when the moire period is very long or very short, there is no concern about visual image quality degradation, so moire occurs in a specific frequency range excluding very long and very short frequencies. What is necessary is just to determine the presence or absence.

図4は、図3に示した周波数成分の差分値Dif_F(u,v)に対するモアレ判定の例を示す図である。特定の周波数範囲は、周波数の変数uを自乗した値と周波数の変数vを自乗した値とを合計した値の正の平方根の値が示す周波数が、閾値TH_F1以上閾値TH_F2以下の範囲である。図4に示した例では、閾値TH_F1=3(Hz)および閾値TH_F2=5(Hz)であり、二点鎖線で挟まれた領域41内の周波数成分の差分値Dif_F(u,v)が対象になる。   FIG. 4 is a diagram illustrating an example of moire determination for the frequency component difference value Dif_F (u, v) illustrated in FIG. 3. The specific frequency range is a range in which a frequency indicated by a positive square root value of a sum of a value obtained by squaring the frequency variable u and a value obtained by squaring the frequency variable v is a threshold value TH_F1 or more and a threshold value TH_F2 or less. In the example shown in FIG. 4, the threshold value TH_F1 = 3 (Hz) and the threshold value TH_F2 = 5 (Hz), and the difference value Dif_F (u, v) of the frequency component in the region 41 sandwiched between two-dot chain lines is the target. become.

図4に示した例では、周波数成分の差分値の閾値TH_Dif_Fは、「100」である。周波数成分の差分値Dif_F(u,v)は、図4で参照符「40」を付した3つの箇所、すなわち、変数vの周波数が3番目に低い値で、かつ変数uの周波数が低い方から3番目の値で「110」および4番目の値で「178」、ならびに変数vの周波数が4番目に低い値で、かつ変数uの周波数が低い方から3番目の値で「116」であり、これらが閾値TH_Dif_F=「100」以上である。したがって、モアレ判定部104は、これら3つの周波数成分の差分値Dif_F(u,v)が閾値TH_Dif_F以上であるので、モアレが発生すると判定する。   In the example illustrated in FIG. 4, the threshold value TH_Dif_F of the difference value of the frequency components is “100”. The difference value Dif_F (u, v) of the frequency component is the three points marked with reference numeral “40” in FIG. 4, that is, the one where the frequency of the variable v is the third lowest value and the frequency of the variable u is lower The third value is “110”, the fourth value is “178”, and the frequency of the variable v is the fourth lowest value, and the variable u is the third lowest value, “116”. Yes, these are threshold values TH_Dif_F = “100” or more. Therefore, the moire determination unit 104 determines that moire occurs because the difference value Dif_F (u, v) of these three frequency components is equal to or greater than the threshold value TH_Dif_F.

フィルタ係数算出部105は、モアレ判定部104によってモアレが発生すると判定されると、モアレの発生を抑制するために空間フィルタ処理で用いるフィルタ係数を算出する。まず、周波数成分の差分値Dif_F(u,v)のうち、閾値TH_Dif_F以上の周波数成分の差分値Dif_F(u,v)について、超過分の値Dif_F_Over(u,v)を式(2)によって算出する。   When the moire determination unit 104 determines that moire occurs, the filter coefficient calculation unit 105 calculates a filter coefficient used in the spatial filter process in order to suppress the occurrence of moire. First, of the frequency component difference value Dif_F (u, v), an excess value Dif_F_Over (u, v) is calculated for the frequency component difference value Dif_F (u, v) greater than or equal to the threshold value TH_Dif_F by Equation (2). To do.

Figure 2010278924
Figure 2010278924

次に、中間調処理前画像データの周波数成分の絶対値を各矩形領域の画素数で除算した値BeforeHT_F(u,v)、および式(2)によって算出した超過分の値Dif_F_Over(u,v)を式(3)に代入してフィルタ係数中間値Filter_F(u,v)を算出する。   Next, the value BeforeHT_F (u, v) obtained by dividing the absolute value of the frequency component of the image data before halftone processing by the number of pixels in each rectangular area, and the excess value Dif_F_Over (u, v) calculated by Expression (2) ) Is substituted into equation (3) to calculate the filter coefficient intermediate value Filter_F (u, v).

Figure 2010278924
Figure 2010278924

すなわち、BeforeHT_F(u,v)からDif_F_Over(u,v)を減算した値を、BeforeHT_F(u,v)で除算した値をフィルタ係数中間値Filter_F(u,v)として求める。   That is, a value obtained by subtracting Diff_F_Over (u, v) from Before HT_F (u, v) is divided by Before HT_F (u, v) to obtain a filter coefficient intermediate value Filter_F (u, v).

最後に、フィルタ係数中間値Filter_F(u,v)に逆フーリエ変換を行って、フィルタ係数Filter(x,y)を算出する。逆フーリエ変換は、式(4)を用いて行う。   Finally, an inverse Fourier transform is performed on the filter coefficient intermediate value Filter_F (u, v) to calculate a filter coefficient Filter (x, y). The inverse Fourier transform is performed using equation (4).

Figure 2010278924
Figure 2010278924

式(4)によって算出されたフィルタ係数Filter(x,y)は、各係数に定数を掛けた後、四捨五入して整数に正規化してもよい。また、任意の範囲の係数だけを用いることとして、それ以外の係数を切り捨ててもよい。係数の数は、たとえば回路規模などによって決められる。あるいは、上下左右対称の係数配置となるように、それぞれ対応する位置の係数の平均値で置き換えるようにしてもよい。   The filter coefficient Filter (x, y) calculated by the equation (4) may be normalized to an integer by rounding off each coefficient after being multiplied by a constant. In addition, using only coefficients in an arbitrary range, other coefficients may be discarded. The number of coefficients is determined by, for example, the circuit scale. Or you may make it replace with the average value of the coefficient of each corresponding position so that it may become a coefficient arrangement | positioning symmetrical vertically and horizontally.

図5は、フィルタ係数算出部105によって算出されたフィルタ係数31の一例を示す図である。図5(a)は、超過分の値Dif_F_Over(u,v)の一例であり、図5(b)は、フィルタ係数中間値Filter_F(u,v)の一例であり、図5(c)は、フィルタ係数31の一例である。   FIG. 5 is a diagram illustrating an example of the filter coefficient 31 calculated by the filter coefficient calculation unit 105. 5A is an example of the excess value Dif_F_Over (u, v), FIG. 5B is an example of the filter coefficient intermediate value Filter_F (u, v), and FIG. This is an example of the filter coefficient 31.

図5(a)に示した例では、超過分の値Dif_F_Over(u,v)は、変数vの周波数が3番目に低い値で、かつ変数uの周波数が3番目に低い値で「10」および4番目に低い値で「78」、ならびに変数vの周波数が4番目に低い値で、かつ変数uの周波数が3番目に低い値で「16」であり、その他がすべて「0」である。   In the example shown in FIG. 5A, the excess value Dif_F_Over (u, v) is “10” when the frequency of the variable v is the third lowest value and the frequency of the variable u is the third lowest value. And the fourth lowest value is “78”, and the frequency of the variable v is the fourth lowest value and the frequency of the variable u is the third lowest value “16”, and all others are “0”. .

図5(b)に示した例では、フィルタ係数中間値Filter_F(u,v)は、変数vの周波数が3番目に低い値で、かつ変数uの周波数が3番目に低い値で「0.92」および4番目に低い値で「−0.16」、ならびに変数vの周波数が4番目に低い値で、かつ変数uの周波数が3番目に低い値で「0.80」であり、その他がすべて「1」である。   In the example shown in FIG. 5B, the filter coefficient intermediate value Filter_F (u, v) is the third lowest value of the frequency of the variable v and the third lowest value of the frequency of the variable u. 92 ”and the fourth lowest value“ −0.16 ”, and the frequency of the variable v is the fourth lowest value and the frequency of the variable u is the third lowest value“ 0.80 ”. Are all “1”.

図5(c)に示したフィルタ係数31の例では、フィルタ係数Filter(x,y)は、5×5のフィルタ係数であり、変数xおよび変数yともに1〜5の値をとる。Filter(x,y)は、(x,y)が(1,1)で「36」、(2,1)で「55」、(3,1)で「78」、(4,1)で「55」、(5,1)で「36」、(1,2)で「55」、(2,2)で「80」、(3,2)で「90」、(4,2)で「80」、(5,2)で「55」、(1,3)で「78」、(2,3)で「90」、(3,3)で「100」、(4,3)で「90」、(5,3)で「78」、(1,4)で「55」、(2,4)で「80」、(3,4)で「90」、(4,4)で「80」、(5,4)で「55」、(1,5)で「36」、(2,5)で「55」、(3,5)で「78」、(4,5)で「55」、(5,5)で「36」である。   In the example of the filter coefficient 31 shown in FIG. 5C, the filter coefficient Filter (x, y) is a 5 × 5 filter coefficient, and both the variable x and the variable y take values of 1 to 5. Filter (x, y) is (36) when (x, y) is (1, 1), “55” when (2, 1), “78” when (3, 1), and (4, 1). “55”, (5,1) is “36”, (1,2) is “55”, (2,2) is “80”, (3,2) is “90”, (4,2) “80”, (5,2) “55”, (1,3) “78”, (2,3) “90”, (3,3) “100”, (4,3) “90”, (5,3) “78”, (1,4) “55”, (2,4) “80”, (3,4) “90”, (4,4) “80”, (5,4) “55”, (1,5) “36”, (2,5) “55”, (3,5) “78”, (4,5) “55” and (5, 5) are “36”.

図6は、モアレ抑制フィルタ係数算出部10が実行するモアレ抑制フィルタ係数算出処理およびそれに係る処理の処理手順を示すフローチャートである。モアレ抑制フィルタ係数算出部10は、原稿種別自動判別部13からの原稿種別判定信号が、印刷写真が含まれている原稿、すなわち、印刷写真原稿または文字印刷写真原稿であることを示しているとき、ステップA1に移る。ステップA1〜A7は、モアレ抑制フィルタ係数算出部10が実行するモアレ抑制フィルタ係数算出処理であり、ステップA8〜A10は、それに係る処理である。   FIG. 6 is a flowchart illustrating a moire suppression filter coefficient calculation process performed by the moire suppression filter coefficient calculation unit 10 and a processing procedure for the process. The moire suppression filter coefficient calculation unit 10 indicates that the document type determination signal from the document type automatic determination unit 13 indicates a document including a printed photograph, that is, a printed photograph document or a character printed photograph document. The process proceeds to Step A1. Steps A1 to A7 are moiré suppression filter coefficient calculation processing executed by the moiré suppression filter coefficient calculation unit 10, and steps A8 to A10 are processing related thereto.

ステップA1に移る時点では、後述する出力階調補正部21によって出力階調補正が行われた画像データ、つまり後述する階調再現処理部22によって階調再現処理が行われる前の画像データと、階調再現処理部22によって階調再現処理が行われた後の画像データとが求められ、メモリ23に記憶されている。出力階調補正部21によって出力階調補正が行われた画像データが、中間調処理前画像データであり、および階調再現処理部22によって階調再現処理が行われた後の画像データが、中間調処理後画像データである。階調再現処理部22が階調再現処理を行って中間調処理後画像データを求める処理は、中間調処理ステップである。   At the time of moving to step A1, image data that has been subjected to output gradation correction by an output gradation correction unit 21 described later, that is, image data before gradation reproduction processing is performed by a gradation reproduction processing unit 22 described later, The image data after the gradation reproduction processing is performed by the gradation reproduction processing unit 22 is obtained and stored in the memory 23. The image data that has undergone output gradation correction by the output gradation correction unit 21 is image data before halftone processing, and the image data that has undergone gradation reproduction processing by the gradation reproduction processing unit 22 is Image data after halftone processing. The process in which the gradation reproduction processing unit 22 performs the gradation reproduction process to obtain the image data after halftone processing is a halftone processing step.

領域選択ステップであるステップA1では、領域選択部101は、矩形領域を抽出する。具体的には、メモリ23に記憶される中間調処理前画像データおよび中間調処理後画像データの各画像データから、同一座標の矩形領域を選択する。周波数変換ステップであるステップA2では、周波数変換部102は、空間周波数変換処理を行う。具体的には、中間調処理前画像データおよび中間調処理後画像データについて、領域選択部101によって選択された矩形領域内の画素の画素値を、フーリエ変換して、空間周波数成分を求める。   In step A1, which is an area selection step, the area selection unit 101 extracts a rectangular area. Specifically, a rectangular area having the same coordinates is selected from each image data of the pre-halftone process image data and the post-halftone process image data stored in the memory 23. In step A2, which is a frequency conversion step, the frequency conversion unit 102 performs a spatial frequency conversion process. Specifically, with respect to the image data before halftone processing and the image data after halftone processing, the pixel values of the pixels in the rectangular area selected by the area selection unit 101 are Fourier-transformed to obtain a spatial frequency component.

ステップA3では、差分検出部103は、絶対値を算出する。具体的には、中間調処理前画像データおよび中間調処理後画像データについて、周波数変換部102によって求められた空間周波数成分の絶対値を算出する。ステップA4では、差分検出部103は、正規化処理を行う。具体的には、ステップA3で算出した空間周波数成分の絶対値を各矩形領域に含まれる画素の画素数で除算して正規化する。   In step A3, the difference detection unit 103 calculates an absolute value. Specifically, the absolute value of the spatial frequency component obtained by the frequency converter 102 is calculated for the pre-halftone image data and the post-halftone image data. In step A4, the difference detection unit 103 performs normalization processing. Specifically, the absolute value of the spatial frequency component calculated in step A3 is normalized by dividing it by the number of pixels included in each rectangular area.

ステップA5では、差分検出部103は、差分を算出する。具体的には、中間調処理後画像データから求めた空間周波数成分の絶対値を正規化した値から、中間調処理前画像データから求めた空間周波数成分の絶対値を正規化した値を減算した差分を、周波数成分の差分値Dif_F(u,v)として算出する。ステップA3〜A5は、差分算出ステップである。   In step A5, the difference detection unit 103 calculates a difference. Specifically, the value obtained by normalizing the absolute value of the spatial frequency component obtained from the image data before halftone processing is subtracted from the value obtained by normalizing the absolute value of the spatial frequency component obtained from the image data after halftone processing. The difference is calculated as a difference value Dif_F (u, v) of the frequency component. Steps A3 to A5 are difference calculation steps.

判定ステップであるステップA6では、モアレ判定部104は、モアレが発生するか否かを判定する。モアレ判定部104は、予め定める周波数の範囲で、周波数成分の差分値Dif_F(u,v)が予め定める閾値以上であるとき、モアレが発生すると判定し、ステップA7に進む。モアレ判定部104は、予め定める周波数の範囲で、周波数成分の差分値Dif_F(u,v)が予め定める閾値未満であるとき、モアレが発生していないと判定し、ステップA10に進む。   In step A6, which is a determination step, the moire determination unit 104 determines whether or not moire occurs. The moire determination unit 104 determines that moire occurs when the frequency component difference value Dif_F (u, v) is equal to or greater than a predetermined threshold within a predetermined frequency range, and proceeds to step A7. When the difference value Dif_F (u, v) of the frequency component is less than the predetermined threshold in the predetermined frequency range, the moire determination unit 104 determines that no moire has occurred, and proceeds to step A10.

フィルタ係数算出ステップであるステップA7では、フィルタ係数算出部105は、モアレの発生を抑制するためのフィルタ係数を算出する。フィルタ処理ステップであるステップA8では、図7で後述する空間フィルタ処理部20は、フィルタ係数算出部105によって算出されたフィルタ係数を用いて空間フィルタ処理を行う。ステップA9では、図7で後述する階調再現処理部22は、階調再現処理を行い、モアレ抑制フィルタ係数算出処理およびそれに係る処理を終了する。具体的には、階調再現処理部22は、空間フィルタ処理部20によって空間フィルタ処理が行われた画像データに対して中間調処理を行い、中間調処理を行った画像データをメモリ23に記憶し、モアレ抑制フィルタ係数算出処理およびそれに係る処理を終了する。   In step A7, which is a filter coefficient calculation step, the filter coefficient calculation unit 105 calculates a filter coefficient for suppressing the occurrence of moire. In step A8, which is a filter processing step, the spatial filter processing unit 20 described later with reference to FIG. 7 performs a spatial filter process using the filter coefficient calculated by the filter coefficient calculation unit 105. In step A9, the gradation reproduction processing unit 22 described later with reference to FIG. 7 performs gradation reproduction processing, and ends the moire suppression filter coefficient calculation process and the related process. Specifically, the gradation reproduction processing unit 22 performs halftone processing on the image data on which the spatial filter processing has been performed by the spatial filter processing unit 20, and stores the image data on which the halftone processing has been performed in the memory 23. Then, the moire suppression filter coefficient calculation process and the related process are finished.

ステップA10では、階調再現処理部22は、階調再現処理が行われた画像データを出力し、モアレ抑制フィルタ係数算出処理およびそれに係る処理を終了する。具体的には、空間フィルタ処理部20によって空間フィルタ処理が行われた画像データに対して中間調処理を行い、中間調処理を行った画像データをカラー画像出力装置4に出力し、モアレ抑制フィルタ係数算出処理およびそれに係る処理を終了する。   In step A10, the gradation reproduction processing unit 22 outputs the image data on which the gradation reproduction process has been performed, and ends the moire suppression filter coefficient calculation process and the process related thereto. Specifically, the halftone process is performed on the image data that has been subjected to the spatial filter processing by the spatial filter processing unit 20, and the image data that has been subjected to the halftone process is output to the color image output device 4. The coefficient calculation process and related processes are terminated.

図6に示したモアレ抑制フィルタ係数算出処理およびそれに係る処理が実行されるタイミングは、後述する画像形成装置1が画像データを印刷するとき、もしくはプレビュー画像を表示するとき、または後述する画像形成装置1,1aがハードディスクなどの記憶装置に記憶されている画像データに対してバックグランドでフィルタ係数を算出するときである。プレビュー画像は、ユーザが画像データの大まかな内容を把握することができるように表示する画像であり、以下単に「プレビュー」ともいう。   The moire suppression filter coefficient calculation process shown in FIG. 6 and the timing at which the process is executed are performed when the image forming apparatus 1 described later prints image data, displays a preview image, or the image forming apparatus described later. Reference numerals 1 and 1a denote filter coefficients in the background for image data stored in a storage device such as a hard disk. The preview image is an image displayed so that the user can grasp the rough contents of the image data, and is also simply referred to as “preview” hereinafter.

モアレ抑制フィルタ係数算出部10は、バックグランドでフィルタ係数を算出するときは、プリント出力などのジョブがない時間帯に、記憶装置に記憶される画像データに対して、モアレの発生の有無を判定し、モアレが生じ得る場合に、その画像データについてフィルタ係数を算出し、算出したフィルタ係数をその画像データと関連付けて記憶装置に記憶する。そして、画像形成装置1,1aは、画像データを出力するとき、記憶装置からフィルタ係数を読み出し、読み出したフィルタ係数を用いて空間フィルタ処理を行い、中間調処理を行って出力する。   When calculating the filter coefficient in the background, the moiré suppression filter coefficient calculation unit 10 determines whether or not moiré has occurred in the image data stored in the storage device during a time period when there is no job such as print output. If moire can occur, a filter coefficient is calculated for the image data, and the calculated filter coefficient is stored in the storage device in association with the image data. Then, when outputting image data, the image forming apparatuses 1 and 1a read out filter coefficients from the storage device, perform spatial filter processing using the read filter coefficients, perform halftone processing, and output the result.

図7は、本発明の一実施形態である画像形成装置1の構成を示すブロック図である。画像形成装置1は、たとえばデジタルカラー複写機であり、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4、操作パネル5、制御部6、ハードディスク7および画像表示装置8を含んで構成される。本発明に係る画像処理方法は、カラー画像処理装置3で実行される。   FIG. 7 is a block diagram showing a configuration of the image forming apparatus 1 according to the embodiment of the present invention. The image forming apparatus 1 is a digital color copying machine, for example, and includes a color image input device 2, a color image processing device 3, a color image output device 4, an operation panel 5, a control unit 6, a hard disk 7, and an image display device 8. Composed. The image processing method according to the present invention is executed by the color image processing apparatus 3.

カラー画像入力装置2は、たとえば電荷結合素子(Charge Coupled Device:以下「CCD」という)を備えたスキャナ部などの読取装置によって構成される。カラー画像入力装置2は、CCDによって、原稿からの反射光像をRGB(Red-Green-Blue)のアナログ信号として読み取って、カラー画像処理装置3に送る。   The color image input device 2 is configured by a reading device such as a scanner unit provided with, for example, a charge coupled device (hereinafter referred to as “CCD”). The color image input device 2 reads the reflected light image from the original as an RGB (Red-Green-Blue) analog signal by the CCD and sends it to the color image processing device 3.

画像処理装置であるカラー画像処理装置3は、A/D(Analog-to-Digital)変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15、圧縮部16、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22、メモリ23およびモアレ抑制フィルタ係数算出部10を含んで構成される。   A color image processing apparatus 3 as an image processing apparatus includes an A / D (Analog-to-Digital) conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13, an input tone correction unit 14, and a region separation processing unit 15. , Compression unit 16, decoding unit 17, color correction unit 18, black generation and under color removal unit 19, spatial filter processing unit 20, output gradation correction unit 21, gradation reproduction processing unit 22, memory 23, and moire suppression filter coefficient calculation The unit 10 is configured.

カラー画像処理装置3は、カラー画像入力装置2から受け取った信号によって表される画像データを、A/D変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15および圧縮部16の順に送り、一旦ハードディスク7に記憶する。その後、ハードディスク7から読み出された画像データは、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22およびモアレ抑制フィルタ係数算出部10の順に送られ、CMYKのデジタルカラー信号として、カラー画像出力装置4へ送られる。   The color image processing device 3 converts the image data represented by the signal received from the color image input device 2 into an A / D conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13, an input tone correction unit 14, The region separation processing unit 15 and the compression unit 16 are sent in this order and temporarily stored in the hard disk 7. Thereafter, the image data read from the hard disk 7 includes a decoding unit 17, a color correction unit 18, a black generation and under color removal unit 19, a spatial filter processing unit 20, an output gradation correction unit 21, a gradation reproduction processing unit 22, and They are sent in the order of the moire suppression filter coefficient calculation unit 10 and sent to the color image output device 4 as CMYK digital color signals.

A/D変換部11は、RGBのアナログ信号をデジタル信号に変換し、シェーディング補正部12に送る。シェーディング補正部12は、A/D変換部11から受け取るデジタルのRGB信号に対して、カラー画像入力装置2の照明系、結像系および撮像系で生じる歪みを取り除く処理を行う。シェーディング補正部12は、カラーバランスの調整も行う。   The A / D conversion unit 11 converts RGB analog signals into digital signals and sends them to the shading correction unit 12. The shading correction unit 12 performs processing for removing distortion generated in the illumination system, the imaging system, and the imaging system of the color image input device 2 on the digital RGB signal received from the A / D conversion unit 11. The shading correction unit 12 also adjusts the color balance.

原稿種別判別部である原稿種別自動判別部13は、シェーディング補正部12によって歪みが取り除かれたRGB信号(以下「RGBの反射率信号」ともいう)に対して、γ補正処理を行って濃度信号に変換するとともに、上述した原稿種別の判別方法によって、読み取った原稿の原稿種別の判別を行う。たとえば、原稿種別自動判別部13は、読み取った原稿が、文字からなる文字原稿であるのか、印刷写真からなる印刷写真原稿であるのか、あるいは、文字と印刷写真とが混在した文字印刷写真原稿であるのかなどの判別を行う。   A document type automatic determination unit 13 serving as a document type determination unit performs a γ correction process on the RGB signal from which distortion has been removed by the shading correction unit 12 (hereinafter also referred to as “RGB reflectance signal”) to perform a density signal. The document type of the read document is determined by the above-described document type determination method. For example, the automatic document type discrimination unit 13 determines whether the read original is a text original consisting of characters, a printed photo original consisting of a printed photo, or a text-printed photo original containing a mixture of characters and print photos. Determine if it exists.

原稿種別の判定結果は、原稿種別判定信号として、入力階調補正部14、領域分離処理部15、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、階調再現処理部22およびモアレ抑制フィルタ係数算出部10に送られ、原稿判別結果に応じたパラメータが設定され、それぞれの処理が行われる。   The document type determination result is obtained as a document type determination signal as an input tone correction unit 14, a region separation processing unit 15, a color correction unit 18, a black generation and under color removal unit 19, a spatial filter processing unit 20, and a tone reproduction processing unit. 22 and the moire suppression filter coefficient calculation unit 10, parameters corresponding to the document discrimination result are set, and the respective processes are performed.

入力階調補正部14は、下地濃度の除去およびコントラストなどの画質調整処理を行う。領域分離処理部15は、入力階調補正部14からRGBのデジタル信号を受け取る。そして、受け取ったRGBのデジタル信号の画像データが示す各画素が、どのような種類の領域に属するか、たとえば下地領域、印画紙写真領域、文字領域および網点領域のうちのいずれの領域に属する画素であるのかを分離する。領域分離処理部15は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を圧縮部16に送るとともに、入力階調補正部14から受け取るRGBのデジタル信号をそのまま圧縮部16に送る。   The input tone correction unit 14 performs image quality adjustment processing such as background density removal and contrast. The region separation processing unit 15 receives RGB digital signals from the input tone correction unit 14. Then, what kind of area each pixel indicated by the received RGB digital signal image data belongs to, for example, any one of a background area, a photographic paper photograph area, a character area, and a halftone dot area Separate whether it is a pixel. Based on the separation result, the region separation processing unit 15 sends a region identification signal indicating which region the pixel belongs to to the compression unit 16 and also receives the RGB digital signal received from the input tone correction unit 14 as it is. Send to.

圧縮部16は、領域分離処理部15から受け取ったRGB信号および領域識別信号を符号化する処理を行う。圧縮部16は、RGB信号および領域識別信号を符号化した符号化コードを、一旦ハードディスク7に記憶し、ファイリングデータとして管理する。ファイリングデータは、ファイル化したデータである。   The compression unit 16 performs processing for encoding the RGB signal and the region identification signal received from the region separation processing unit 15. The compression unit 16 temporarily stores the encoded code obtained by encoding the RGB signal and the area identification signal in the hard disk 7 and manages it as filing data. The filing data is filed data.

RGB信号の符号化の方法としては、たとえばJPEG(Joint Photographic Experts Group)が用いられる。領域識別信号の符号化の方法としては、たとえば可逆圧縮方法であるMMR(Modified Modified Reed)またはMR(Modified Reed)が用いられる。圧縮された領域識別信号は、圧縮されたRGB信号の記憶アドレスまたは画像データ名と関連付けて記憶装置内に設けられる管理テーブルに記憶され、その関連付けに従って画像データの読み出し、および書き込みの制御が行われる。画像データ名は、各画像データを識別するための識別情報である。   For example, JPEG (Joint Photographic Experts Group) is used as an RGB signal encoding method. As a method for encoding the region identification signal, for example, MMR (Modified Modified Reed) or MR (Modified Reed) which is a lossless compression method is used. The compressed area identification signal is stored in a management table provided in the storage device in association with the storage address or image data name of the compressed RGB signal, and image data reading and writing are controlled according to the association. . The image data name is identification information for identifying each image data.

復号部17は、コピー出力あるいはプリント出力などのジョブが指示されたとき、ハードディスク7からRGB信号の符号化コードおよび領域識別信号の符号化コードを読み出し、読み出した符号化コードを復号化する処理を行う。復号部17は、RGB信号の符号化コードをRGBの画像データに復号化し、領域識別信号の符号化コードを領域識別信号に復号化する。そして、復号化した領域識別信号を、色補正部18、黒生成下色除去部19、空間フィルタ処理部20および階調再現処理部22に送る。色補正部18、黒生成下色除去部19、空間フィルタ処理部20および階調再現処理部22は、受け取った領域識別信号が示す領域に応じた処理の切替えを行う。復号化されたRGBの画像データは、色補正部18に送られる。   When a job such as copy output or print output is instructed, the decoding unit 17 reads the RGB signal encoding code and the region identification signal encoding code from the hard disk 7 and decodes the read encoding code. Do. The decoding unit 17 decodes the encoded code of the RGB signal into RGB image data, and decodes the encoded code of the region identification signal into the region identification signal. Then, the decoded region identification signal is sent to the color correction unit 18, the black generation and under color removal unit 19, the spatial filter processing unit 20, and the gradation reproduction processing unit 22. The color correction unit 18, the black generation and under color removal unit 19, the spatial filter processing unit 20, and the gradation reproduction processing unit 22 switch processing according to the region indicated by the received region identification signal. The decoded RGB image data is sent to the color correction unit 18.

色補正部18は、色再現の忠実化実現のために、不要吸収成分を含むCMY(Cyan-
Magenta-Yellow)色材の分光特性に基づいた色濁りを取り除く処理を行う。黒生成下色除去部19は、色補正部18によって色補正されたCMYの3色信号からK(Black)信号を生成する黒生成、元のCMY信号から黒生成で得たK信号を差し引いて新たなCMY信号を生成する。すなわち、黒生成下色除去部19は、色補正部18から受け取ったCMYの3色信号を、CMYKの4色信号に変換して、空間フィルタ処理部20に送る。
The color correction unit 18 is a CMY (Cyan-
Magenta-Yellow) Removes color turbidity based on the spectral characteristics of the colorant. The black generation and under color removal unit 19 generates black (K) signals from the CMY three-color signals color-corrected by the color correction unit 18, and subtracts the K signals obtained by black generation from the original CMY signals. A new CMY signal is generated. That is, the black generation and under color removal unit 19 converts the CMY three-color signal received from the color correction unit 18 into a CMYK four-color signal and sends the converted signal to the spatial filter processing unit 20.

フィルタ処理部である空間フィルタ処理部20は、黒生成下色除去部19から受け取るCMYK信号の画像データに対して、復号部17からの領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけおよび粒状性劣化を防ぐように処理する。その画像データに対して、モアレ抑制フィルタ係数算出部10によってモアレの発生を抑制するフィルタ係数が算出されて、メモリ23にフィルタ係数が記憶されているときは、さらにそのフィルタ係数による空間フィルタ処理を行う。   The spatial filter processing unit 20 that is a filter processing unit performs spatial filter processing using a digital filter on the image data of the CMYK signal received from the black generation and under color removal unit 19 based on the region identification signal from the decoding unit 17, By correcting the spatial frequency characteristics, the output image is processed so as to prevent blurring and graininess deterioration. When the filter coefficient for suppressing the generation of moire is calculated by the moire suppression filter coefficient calculation unit 10 for the image data and the filter coefficient is stored in the memory 23, the spatial filter process using the filter coefficient is further performed. Do.

中間調処理部である階調再現処理部22は、空間フィルタ処理部20と同様に、CMYK信号の画像データに対して、領域分離処理部15からの領域識別信号を基に所定の処理を行う。たとえば、領域分離処理部15によって、文字に分離された領域は、特に黒文字あるいは色文字の再現性を高めるために、空間フィルタ処理部20による空間フィルタ処理における鮮鋭強調処理で高周波数の強調量が大きくされる。同時に、階調再現処理部22においては、高域周波数の再現に適した高解像度のスクリーンでの2値化または多値化処理が行われる。   Similar to the spatial filter processing unit 20, the gradation reproduction processing unit 22, which is a halftone processing unit, performs predetermined processing on the image data of the CMYK signal based on the region identification signal from the region separation processing unit 15. . For example, the region separated into characters by the region separation processing unit 15 has a high frequency enhancement amount in the sharp enhancement processing in the spatial filter processing by the spatial filter processing unit 20 in order to improve the reproducibility of black characters or color characters in particular. Increased. At the same time, the tone reproduction processing unit 22 performs binarization or multi-value processing on a high-resolution screen suitable for high frequency reproduction.

また、領域分離処理部15によって網点領域に分離された領域に関しては、空間フィルタ処理部20は、入力網点成分を除去するためのローパスフィルタ処理を行う。そして、出力階調補正部21では、カラー画像出力装置4の特性に基づく出力階調補正処理を行った後、階調再現処理部22で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理、すなわち中間調処理が行われる。領域分離処理部15によって、写真に分離された領域に関しては、階調再現性を重視したスクリーンでの2値化または多値化処理が行われる。   In addition, for the region separated into halftone dot regions by the region separation processing unit 15, the spatial filter processing unit 20 performs low-pass filter processing for removing the input halftone component. Then, the output tone correction unit 21 performs output tone correction processing based on the characteristics of the color image output device 4, and then the tone reproduction processing unit 22 finally separates the image into pixels and outputs the respective levels. Gradation reproduction processing is performed so that the tone can be reproduced, that is, halftone processing is performed. With respect to the region separated into photographs by the region separation processing unit 15, binarization or multi-value processing is performed on the screen with an emphasis on gradation reproducibility.

モアレ抑制フィルタ係数算出部10は、出力階調補正部21によって出力階調補正が行われた画像データ、つまり階調再現処理部22によって階調再現処理が行われる前の画像データと、階調再現処理部22によって階調再現処理が行われた後の画像データとの周波数成分の差分値Dif_F(u,v)からモアレの発生の有無を判定する。モアレの発生が有ると判定したとき、周波数成分の差分値Dif_F(u,v)に基づいて、モアレの発生を抑制するフィルタ係数を算出し、メモリ23を介して空間フィルタ処理部20にフィードバックする。   The moiré suppression filter coefficient calculation unit 10 includes image data that has undergone output gradation correction by the output gradation correction unit 21, that is, image data that has not been subjected to gradation reproduction processing by the gradation reproduction processing unit 22, and gradation The presence / absence of moiré is determined from the difference value Dif_F (u, v) of the frequency component from the image data after the gradation reproduction processing is performed by the reproduction processing unit 22. When it is determined that moiré occurs, a filter coefficient that suppresses the occurrence of moiré is calculated based on the difference value Dif_F (u, v) of the frequency component, and is fed back to the spatial filter processing unit 20 via the memory 23. .

モアレ抑制フィルタ係数算出部10は、ハードディスク7に記憶されている画像データおよび領域識別信号を読み出し、画像形成装置1の待機時間中にバックグランドでも動作する。待機中とは、コピー出力あるいはプリント出力などのジョブを実行していない時間帯である。算出したフィルタ係数は、画像データ名と関連付けてメモリ23に保持され、ハードディスク7に記憶される画像データが出力される際に、空間フィルタ処理部20で使用される。空間フィルタ処理部20は、デジタルフィルタによる空間フィルタ処理を行った結果に対して、算出したフィルタ係数で空間フィルタ処理を行う。   The moire suppression filter coefficient calculation unit 10 reads the image data and the area identification signal stored in the hard disk 7 and operates in the background during the standby time of the image forming apparatus 1. Waiting is a time period during which a job such as copy output or print output is not being executed. The calculated filter coefficient is stored in the memory 23 in association with the image data name, and is used by the spatial filter processing unit 20 when the image data stored in the hard disk 7 is output. The spatial filter processing unit 20 performs spatial filter processing with the calculated filter coefficient on the result of performing the spatial filter processing by the digital filter.

メモリ23は、たとえば半導体メモリなどの記憶装置によって構成され、出力階調補正部21で処理が行われた画像データCMYK1および階調再現処理部22で処理が行われた画像データCMYK2は、一旦メモリ23に記憶される。出力階調補正部21で処理が行われた画像データCMYK1は、中間調処理前画像データであり、階調再現処理部22で処理が行われた画像データCMYK2は、中間調処理後画像データである。モアレ抑制フィルタ係数算出部10は、メモリ23から中間調処理前画像データおよび中間調処理後画像データを読み出して、モアレの発生の有無を判定する。   The memory 23 is configured by a storage device such as a semiconductor memory, for example. The image data CMYK1 processed by the output gradation correction unit 21 and the image data CMYK2 processed by the gradation reproduction processing unit 22 are temporarily stored in the memory. 23. The image data CMYK1 processed by the output tone correction unit 21 is image data before halftone processing, and the image data CMYK2 processed by the tone reproduction processing unit 22 is image data after halftone processing. is there. The moire suppression filter coefficient calculation unit 10 reads out the image data before halftone processing and the image data after halftone processing from the memory 23, and determines whether or not moire has occurred.

また、メモリ23に記憶される中間調処理後画像データは、所定のタイミングでメモリ23から読み出されてカラー画像出力装置4に送られる。モアレ抑制フィルタ係数算出部10は、算出したフィルタ係数をメモリ23に記憶し、空間フィルタ処理部20は、メモリ23に記憶されるフィルタ係数を読み出して空間フィルタ処理を行う。   The halftone processed image data stored in the memory 23 is read from the memory 23 at a predetermined timing and sent to the color image output device 4. The moiré suppression filter coefficient calculation unit 10 stores the calculated filter coefficient in the memory 23, and the spatial filter processing unit 20 reads the filter coefficient stored in the memory 23 and performs spatial filter processing.

カラー画像出力装置4は、たとえば、電子写真方式あるいはインクジェット方式を用いたカラー画像を出力する出力装置によって構成され、画像データを記録媒体、たとえば紙などに出力する。操作パネル5は、たとえば、液晶ディスプレイなどの表示部、および設定ボタンなどを備える操作部から構成され、操作パネル5から入力される情報に基づいてカラー画像入力装置2、カラー画像処理装置3およびカラー画像出力装置4の動作を制御する。   The color image output device 4 is constituted by, for example, an output device that outputs a color image using an electrophotographic method or an ink jet method, and outputs image data to a recording medium such as paper. The operation panel 5 includes, for example, a display unit such as a liquid crystal display and an operation unit including setting buttons, and the color image input device 2, the color image processing device 3, and the color based on information input from the operation panel 5. The operation of the image output device 4 is controlled.

制御部6は、たとえば中央処理装置(以下「CPU」という)および半導体メモリ、またはDSP(Digital Signal Processor)によって構成され、カラー画像処理装置3の各機能およびハードディスク7を制御する。記憶部であるハードディスク7は、たとえば磁気ディスク装置によって構成され、圧縮部16からのデータを記憶し、記憶しているデータを復号部17に送る。表示装置である画像表示装置8は、たとえば液晶ディスプレイなどによって構成され、プレビューを表示する。   The control unit 6 includes, for example, a central processing unit (hereinafter referred to as “CPU”) and a semiconductor memory, or a DSP (Digital Signal Processor), and controls each function of the color image processing device 3 and the hard disk 7. The hard disk 7 serving as a storage unit is configured by, for example, a magnetic disk device, stores data from the compression unit 16, and sends the stored data to the decoding unit 17. The image display device 8 which is a display device is configured by a liquid crystal display, for example, and displays a preview.

図8は、画像形成装置1がプレビューを表示するときの処理を説明するための図である。重複を避けるために、図7で説明した処理と同じ処理については、重複を避けるために、説明を省略し、図7で説明した処理と異なる処理について説明する。   FIG. 8 is a diagram for explaining processing when the image forming apparatus 1 displays a preview. In order to avoid duplication, the same processing as that described with reference to FIG. 7 will not be described in order to avoid duplication, and processing different from the processing described with reference to FIG. 7 will be described.

色補正部18は、画像表示装置8の表示特性に基づいてRGB信号をR’G’B’信号に変換し、変換したR’G’B’信号を黒生成下色除去部19に送る。黒生成下色除去部19は、受け取ったR’G’B’信号の画像データを空間フィルタ処理部20にスルーする。スルーとは、受け取ったR’G’B’信号の画像データに対して何も処理を行わず、そのまま空間フィルタ処理部20に送ることである。   The color correction unit 18 converts the RGB signal into an R′G′B ′ signal based on the display characteristics of the image display device 8, and sends the converted R′G′B ′ signal to the black generation and under color removal unit 19. The black generation and under color removal unit 19 passes the received image data of the R′G′B ′ signal to the spatial filter processing unit 20. “Through” means that the image data of the received R′G′B ′ signal is sent to the spatial filter processing unit 20 without being processed.

空間フィルタ処理部20は、領域識別信号に基づいてR’G’B’信号の画像データに対して強調処理および平滑化処理を行い、出力階調補正部21に送る。表示制御部である出力階調補正部21は、空間フィルタ処理部20から受け取った画像データに対して、画像表示装置8に表示するための出力γ補正処理を行い、画像表示装置8に出力する。   The spatial filter processing unit 20 performs enhancement processing and smoothing processing on the image data of the R′G′B ′ signal based on the region identification signal, and sends it to the output gradation correction unit 21. The output tone correction unit 21 serving as a display control unit performs output γ correction processing for displaying the image data received from the spatial filter processing unit 20 on the image display device 8, and outputs the output γ correction processing to the image display device 8. .

このとき、領域識別信号に基づいて、画像領域に応じて異なるガンマ曲線を選択し、画像領域毎に出力γ補正処理の内容を異ならせるようにしても良い。画像領域は、下地領域、印画紙写真領域、網点領域および文字領域である。たとえば文字領域以外の領域に対しては、画像表示装置8の表示特性に応じたガンマ曲線が選択され、文字領域に対しては、文字をくっきりと表示させるためのガンマ曲線が選択される。   At this time, a different gamma curve may be selected depending on the image area based on the area identification signal, and the content of the output γ correction process may be different for each image area. The image area is a background area, a photographic paper photograph area, a halftone dot area, and a character area. For example, a gamma curve corresponding to the display characteristics of the image display device 8 is selected for a region other than the character region, and a gamma curve for clearly displaying characters is selected for the character region.

図9は、出力階調補正部21が用いるガンマ曲線の例を示す図である。ガンマ曲線は、入力信号の大きさに対する出力信号の大きさを示す入出力特性である。図9(a)は、画像表示装置8の表示特性に応じたガンマ曲線Aを示す図である。ガンマ曲線Aは、入力信号が小さい区間では、出力信号の増加率は入力信号の増加率よりも小さいが、入力信号が大きい区間では、出力信号の増加率は入力信号の増加率よりも大きい。   FIG. 9 is a diagram illustrating an example of a gamma curve used by the output tone correction unit 21. The gamma curve is an input / output characteristic indicating the magnitude of the output signal with respect to the magnitude of the input signal. FIG. 9A is a diagram showing a gamma curve A corresponding to the display characteristics of the image display device 8. In the gamma curve A, the increase rate of the output signal is smaller than the increase rate of the input signal in the interval where the input signal is small, but the increase rate of the output signal is greater than the increase rate of the input signal in the interval where the input signal is large.

図9(b)は、文字をくっきりと表示させるためのガンマ曲線Bを追加した図である。ガンマ曲線Bは、ガンマ曲線Aよりも、入力信号が小さい区間では、出力信号はほとんど増加せず、入力信号が大きい区間では、出力信号の増加率はガンマ曲線Aよりも大きく、入力信号が大きくなるにつれて増加率が下がっている。ガンマ曲線Bを用いることによって、文字をくっきり表示することができる。   FIG. 9B is a diagram in which a gamma curve B for displaying characters clearly is added. In the gamma curve B, the output signal hardly increases in the section where the input signal is smaller than the gamma curve A, and the increase rate of the output signal is larger than that in the gamma curve A and the input signal is larger in the section where the input signal is large. As it becomes, the rate of increase decreases. By using the gamma curve B, characters can be displayed clearly.

プレビューを表示するプレビューモードが選択されたとき、プレビューが表示されている空き時間に、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22およびモアレ抑制フィルタ係数算出部10が動作し、モアレの発生を抑制するためのフィルタ係数を算出する。   When the preview mode for displaying the preview is selected, the decoding unit 17, the color correction unit 18, the black generation and under color removal unit 19, the spatial filter processing unit 20, and the output tone correction unit are used in the free time in which the preview is displayed. 21, the gradation reproduction processing unit 22 and the moire suppression filter coefficient calculation unit 10 operate to calculate filter coefficients for suppressing the occurrence of moire.

プレビューモードの選択は、たとえば操作パネルに表示されるメニューからプレビューモードを選択することによって行われる。プレビューが表示されている空き時間は、プレビューのための画像データが画像表示装置8に送られて、プレビューが画像表示装置8に表示され、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20および出力階調補正部21が動作を行っていない時間帯である。   The selection of the preview mode is performed by selecting the preview mode from a menu displayed on the operation panel, for example. In the idle time in which the preview is displayed, image data for preview is sent to the image display device 8 and the preview is displayed on the image display device 8, and the decoding unit 17, the color correction unit 18, and the black generation under color removal This is a time period when the unit 19, the spatial filter processing unit 20, and the output tone correction unit 21 are not operating.

プレビューが表示されている空き時間での復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21および階調再現処理部22の処理は、図7で説明した処理と同じであり、重複を避けるために説明は省略する。モアレ抑制フィルタ係数算出部10は、中間調処理前画像データと中間調処理後画像データとの周波数成分の差分値Dif_F(u,v)からモアレの発生の有無を判定する。モアレの発生が有ると判定したとき、周波数成分の差分値Dif_F(u,v)に基づいて、モアレの発生を抑制するフィルタ係数を算出し、空間フィルタ処理部20にフィードバックする。   The processes of the decoding unit 17, the color correction unit 18, the black generation and under color removal unit 19, the spatial filter processing unit 20, the output gradation correction unit 21, and the gradation reproduction processing unit 22 in the idle time in which the preview is displayed are as follows: The processing is the same as that described with reference to FIG. 7, and description thereof is omitted to avoid duplication. The moire suppression filter coefficient calculation unit 10 determines the presence or absence of moiré from the difference value Dif_F (u, v) of the frequency components between the image data before halftone processing and the image data after halftone processing. When it is determined that moiré occurs, a filter coefficient that suppresses the occurrence of moiré is calculated based on the difference value Dif_F (u, v) of the frequency components and fed back to the spatial filter processing unit 20.

このように、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22およびモアレ抑制フィルタ係数算出部10の処理は、画像表示装置8に表示されたプレビューをユーザが確認する時間帯を利用して行われる。   As described above, the processes of the decoding unit 17, the color correction unit 18, the black generation and under color removal unit 19, the spatial filter processing unit 20, the output gradation correction unit 21, the gradation reproduction processing unit 22, and the moire suppression filter coefficient calculation unit 10. Is performed using a time period in which the user confirms the preview displayed on the image display device 8.

図10は、本発明の他の実施形態である画像形成装置1aの構成を示すブロック図である。画像形成装置1aは、カラー画像入力装置2、カラー画像処理装置3a、カラー画像出力装置4、操作パネル5、制御部6、ハードディスク7および画像表示装置8を含んで構成される。本発明に係る画像処理方法は、カラー画像処理装置3aで実行される。   FIG. 10 is a block diagram showing a configuration of an image forming apparatus 1a according to another embodiment of the present invention. The image forming apparatus 1a includes a color image input device 2, a color image processing device 3a, a color image output device 4, an operation panel 5, a control unit 6, a hard disk 7, and an image display device 8. The image processing method according to the present invention is executed by the color image processing apparatus 3a.

画像処理装置であるカラー画像処理装置3aは、A/D(Analog-to-Digital)変換部11、シェーディング補正部12、原稿種別自動判別部13a、圧縮部16、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22、メモリ23、モアレ抑制フィルタ係数算出部10、入力処理部24および領域分離部25を含んで構成される。カラー画像処理装置3aの構成要素のうちカラー画像処理装置3の構成要素と同じ構成要素については、同じ参照符を付して、重複を避けるために説明は省略する。   A color image processing apparatus 3a, which is an image processing apparatus, includes an A / D (Analog-to-Digital) conversion unit 11, a shading correction unit 12, a document type automatic discrimination unit 13a, a compression unit 16, a decoding unit 17, and a color correction unit 18. A black generation and under color removal unit 19, a spatial filter processing unit 20, an output tone correction unit 21, a tone reproduction processing unit 22, a memory 23, a moire suppression filter coefficient calculation unit 10, an input processing unit 24, and a region separation unit 25. Consists of including. Among the components of the color image processing device 3a, the same components as those of the color image processing device 3 are denoted by the same reference numerals, and description thereof is omitted to avoid duplication.

図7に示した原稿種別自動判別部13に相当する原稿種別自動判別部13aは、復号部17の後段に配置され、図7に示した領域分離処理部15に相当する領域分離部25は、その後段に配置される。入力処理部24は、図7に示した入力階調補正部14の代わりに用いられる。   An automatic document type determination unit 13a corresponding to the automatic document type determination unit 13 shown in FIG. 7 is arranged at the subsequent stage of the decoding unit 17, and an area separation unit 25 corresponding to the area separation processing unit 15 shown in FIG. It is arranged in the subsequent stage. The input processing unit 24 is used instead of the input tone correction unit 14 shown in FIG.

入力処理部24は、シェーディング補正部12から受け取る画像データに対して入力階調補正部14が行う処理と同じ処理を行い、圧縮部16に送る。原稿種別自動判別部13aは、復号部17によって復号された画像データに対して、原稿種別自動判別部13が行う処理と同じ処理を行い、領域分離部25に送る。領域分離部25は、原稿種別自動判別部13aから受け取った画像データに対して領域分離処理部15が行う処理と同じ処理を行い、色補正部18に送る。   The input processing unit 24 performs the same processing as the processing performed by the input tone correction unit 14 on the image data received from the shading correction unit 12 and sends the image data to the compression unit 16. The document type automatic determination unit 13 a performs the same processing as the processing performed by the document type automatic determination unit 13 on the image data decoded by the decoding unit 17 and sends the image data to the region separation unit 25. The region separation unit 25 performs the same processing as the processing performed by the region separation processing unit 15 on the image data received from the document type automatic determination unit 13 a and sends the image data to the color correction unit 18.

図7に示した画像形成装置1は、圧縮部16によって圧縮されて符号化された画像データと領域識別信号とを関連付けてハードディスク7に記憶したが、画像形成装置1aは、カラー画像入力装置2に備えられるスキャナ部によって読み込まれた画像データに対して、原稿種別判別処理および領域分離処理を行うことなく、一旦ハードディスク7に記憶する。そして、ハードディスク7から読み出した画像データに対して、原稿種別自動判別部13aによって原稿種別判別処理を行い、領域分離部25によって領域分離処理を行うようにしたものである。   The image forming apparatus 1 illustrated in FIG. 7 associates the image data compressed and encoded by the compression unit 16 and the area identification signal and stores them in the hard disk 7. The image forming apparatus 1 a includes the color image input device 2. The image data read by the scanner unit provided in is temporarily stored in the hard disk 7 without performing the document type determination process and the area separation process. The image type read out from the hard disk 7 is subjected to document type determination processing by the document type automatic determination unit 13a, and region separation processing is performed by the region separation unit 25.

カラー画像処理装置3のA/D変換部11、シェーディング補正部12、原稿種別自動判別部13、入力階調補正部14、領域分離処理部15、圧縮部16、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22およびモアレ抑制フィルタ係数算出部10の各機能、およびカラー画像処理装置3aのA/D変換部11、シェーディング補正部12、原稿種別自動判別部13a、圧縮部16、復号部17、色補正部18、黒生成下色除去部19、空間フィルタ処理部20、出力階調補正部21、階調再現処理部22、モアレ抑制フィルタ係数算出部10、入力処理部24および領域分離部25の各機能は、ハードウエアロジックたとえば図示しないDSPによって構成されてもよいし、これらの機能を実現するためのプログラムを記憶する図示しない記憶装置、およびその記憶装置に記憶されるプログラムを実行する図示しないCPUによって構成されてもよい。   A / D conversion unit 11, shading correction unit 12, document type automatic discrimination unit 13, input tone correction unit 14, region separation processing unit 15, compression unit 16, decoding unit 17, and color correction unit 18 of color image processing apparatus 3. , Black generation and under color removal unit 19, spatial filter processing unit 20, output tone correction unit 21, tone reproduction processing unit 22, and moire suppression filter coefficient calculation unit 10, and A / D of color image processing device 3a Conversion unit 11, shading correction unit 12, document type automatic discrimination unit 13a, compression unit 16, decoding unit 17, color correction unit 18, black generation and under color removal unit 19, spatial filter processing unit 20, output tone correction unit 21, Each function of the gradation reproduction processing unit 22, the moire suppression filter coefficient calculation unit 10, the input processing unit 24, and the region separation unit 25 is configured by hardware logic such as a DSP (not shown). Good to, these functions stores a program for realizing the storage device (not shown), and a program may be constituted by a CPU (not shown) to execute a stored in the storage device.

記憶装置は、前記プログラムを記憶するROM(Read Only Memory)および制御のために用いるデータを記憶するRAM(Random Access Memory)などの半導体メモリ、ならびにその他必要なプログラムおよびデータを記憶する半導体メモリあるいは磁気ディスク装置などによって構成される。   The storage device includes a semiconductor memory such as a ROM (Read Only Memory) that stores the program and a RAM (Random Access Memory) that stores data used for control, and a semiconductor memory or a magnetic field that stores other necessary programs and data. It is composed of a disk device.

上述した実施の形態では、プログラムは、カラー画像処理装置3,3aの記憶装置に記憶されるが、この記憶装置に限定されるものではなく、コンピュータで読取り可能な記録媒体に記録されていてもよい。記録媒体は、たとえば図示しない外部記憶装置としてプログラム読取装置をカラー画像処理装置3,3aに設け、そこに記録媒体を挿入することによって読取り可能な記録媒体であってもよいし、あるいは他の装置の記憶装置であってもよい。   In the above-described embodiment, the program is stored in the storage device of the color image processing devices 3 and 3a. However, the program is not limited to this storage device, and may be recorded on a computer-readable recording medium. Good. The recording medium may be a recording medium that can be read by providing a program reading device as an external storage device (not shown) in the color image processing devices 3 and 3a and inserting the recording medium therein, or other device, for example. It may be a storage device.

いずれの記録媒体であっても、記憶されているプログラムがコンピュータからアクセスされて実行される構成であればよい。あるいはいずれの記録媒体であっても、プログラムが読み出され、読み出されたプログラムが、記憶装置のプログラム記憶エリアに記憶されて、そのプログラムが実行される構成であってもよい。   Any recording medium may be used as long as the stored program is accessed from a computer and executed. Alternatively, any recording medium may be configured such that the program is read, the read program is stored in the program storage area of the storage device, and the program is executed.

カラー画像処理装置3,3aと分離可能に構成される記録媒体は、たとえば磁気テープ/カセットテープなどのテープ系の記録媒体、フレキシブルディスク/ハードディスクなどの磁気ディスクもしくはCD−ROM(Compact Disk Read Only Memory)/MO(
Magneto Optical disk)/MD(Mini Disc)/DVD(Digital Versatile Disk)/CD−R(Compact Disk Recordable)/ブルーレイディスクなどの光ディスクのディスク系の記録媒体、IC(Integrated Circuit)カード(メモリカードを含む)/光カードなどのカード系の記録媒体、またはマスクROM/EPROM(Erasable Programmable
Read Only Memory)/EEPROM(Electrically Erasable Programmable Read Only
Memory)/フラッシュROMなどの半導体メモリを含む固定的にプログラムを担持する記録媒体であってもよい。
The recording medium configured to be separable from the color image processing apparatuses 3 and 3a is, for example, a tape recording medium such as a magnetic tape / cassette tape, a magnetic disk such as a flexible disk / hard disk, or a CD-ROM (Compact Disk Read Only Memory). ) / MO (
Magnet-type optical disks (MDs) / MDs (Mini Discs) / DVDs (Digital Versatile Disks) / CD-Rs (Compact Disk Recordables) / Blu-rays and other optical discs, IC (Integrated Circuit) cards (including memory cards) ) / Card-type recording media such as optical cards, or mask ROM / EPROM (Erasable Programmable)
Read Only Memory) / EEPROM (Electrically Erasable Programmable Read Only
Memory) / a recording medium that carries a fixed program including a semiconductor memory such as a flash ROM.

また、カラー画像処理装置3,3aを通信ネットワークと接続可能に構成し、通信ネットワークを介して上記プログラムを供給してもよい。この通信ネットワークとしては、特に限定されず、たとえば、インターネット、イントラネット、エキストラネット、LAN(Local Area Network)、ISDN(Integrated Services Digital Network)、VAN(Value Added Network)、CATV(Community Antenna Television)通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、または衛星通信網など通信ネットワークが利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、たとえば、IEEE1394、USB(Universal Serial Bus)、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber
Line)回線等の有線でも、IrDA(Infrared Data Association)あるいはリモートコントロールで用いられる赤外線、Bluetooth(登録商標)、802.11無線、HDR(High Data Rate)、携帯電話網、衛星回線、地上波デジタル網などの無線でも利用可能である。なお、本発明は、上記プログラムが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。
The color image processing apparatuses 3 and 3a may be configured to be connectable to a communication network, and the program may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value Added Network), CATV (Community Antenna Television) communication network. A communication network such as a virtual private network, a telephone line network, a mobile communication network, or a satellite communication network can be used. Further, the transmission medium constituting the communication network is not particularly limited. For example, IEEE1394, USB (Universal Serial Bus), power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber)
Line (wire) lines, etc., IrDA (Infrared Data Association) or infrared light used for remote control, Bluetooth (registered trademark), 802.11 wireless, HDR (High Data Rate), mobile phone network, satellite line, terrestrial digital It can also be used wirelessly such as on the 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 is embodied by electronic transmission.

上述した実施の形態では、画像形成装置1,1aとして、デジタルカラー複写機を例に説明したが、デジタルカラー複写機に限定されるものではなく、画像形成装置1,1aは、複写機能、印刷機能、ファクシミリ機能、およびスキャンによって取得した画像データを電子メールとして外部に送信する機能であるScan to E-mail機能などの機能を備えるデジタルカラー複合機あるいはデジタルモノクロ複合機であってもよい。   In the above-described embodiment, the digital color copying machine has been described as an example of the image forming apparatuses 1 and 1a. However, the image forming apparatuses 1 and 1a are not limited to the digital color copying machine, and the image forming apparatuses 1 and 1a have a copying function and printing. It may be a digital color multifunction peripheral or a digital monochrome multifunction peripheral having a function, a facsimile function, and a function such as a Scan to E-mail function that transmits image data acquired by scanning to the outside as an electronic mail.

また、画像形成装置1,1aは、たとえばモデムあるいはネットワークカードによって構成される通信装置を備え、ファクシミリでの画像データの送受信を可能にしてもよい。あるいはネットワークカードおよびLAN(Local Area Network)ケーブルを介してネットワークに接続されたコンピュータあるいは他の画像形成装置1,1aと画像データの送受信を行なうように構成してもよい。   Further, the image forming apparatuses 1 and 1a may include a communication device configured by, for example, a modem or a network card, and may be capable of transmitting and receiving image data by facsimile. Alternatively, image data may be transmitted / received to / from a computer or other image forming apparatus 1, 1 a connected to the network via a network card and a LAN (Local Area Network) cable.

ファクシミリで送信を行う場合、画像形成装置1,1aは、モデムによって、相手先との送信手続きを行い送信可能な状態が確保されると、所定の形式で圧縮された画像データ、たとえばスキャナで読み込まれ圧縮された画像データをメモリから読み出し、圧縮形式の変更など必要な処理を行って、通信回線を介して相手先に順次送信する。   When performing transmission by facsimile, the image forming apparatuses 1 and 1a read the image data compressed in a predetermined format, for example, a scanner, when the transmission procedure with the other party is ensured by the modem and the transmission is ensured. The compressed image data is read from the memory, necessary processing such as changing the compression format is performed, and sequentially transmitted to the other party via the communication line.

ファクシミリで受信する場合、画像形成装置1,1aは、モデムによって、通信手続きを行いながら相手先から送信されてくる画像データを受信し、受信した画像データを、復号部17にて復号し、復号した画像データに対して、必要に応じて、回転処理および解像度変換処理を行い、出力階調補正および階調再現処理を行い、カラー画像出力装置4に出力する。   In the case of receiving by facsimile, the image forming apparatuses 1 and 1a receive image data transmitted from the other party while performing a communication procedure using a modem, and the received image data is decoded by the decoding unit 17 and decoded. If necessary, the image data is subjected to rotation processing and resolution conversion processing, output tone correction and tone reproduction processing, and output to the color image output device 4.

このように、階調再現処理部22によって、画像データに対して中間調処理が行われてハーフトーン画像が生成される。領域選択部101によって、階調再現処理部22によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、階調再現処理部22によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の矩形領域がそれぞれ選択される。周波数変換部102によって、領域選択部101によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値が、それぞれ周波数成分に変換される。差分検出部103によって、周波数変換部102によって変換された中間調処理前画像データの周波数成分と、周波数変換部102によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分値Dif_F(u,v)が算出される。モアレ判定部104によって、差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)に基づいて、干渉パターンであるモアレが発生するか否かが判定される。フィルタ係数算出部105によって、モアレ判定部104によってモアレが発生すると判定されたとき、差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)に基づいて、モアレの発生を抑制するためのフィルタ係数Filter(x,y)が算出される。そして、空間フィルタ処理部20によって、フィルタ係数算出部105によって算出されたフィルタ係数Filter(x,y)を用いて、画像データにフィルタ処理が行われる。   In this way, the gradation reproduction processing unit 22 performs halftone processing on the image data to generate a halftone image. By the area selection unit 101, the pixel position indicated by the image data before halftone processing before the halftone processing is performed by the gradation reproduction processing unit 22 and the halftone processing after the halftone processing is performed by the gradation reproduction processing unit 22. When the pixel position indicated by the image data after halftone processing is represented in the same coordinate system, rectangular regions at the same position are selected. The frequency conversion unit 102 converts the pixel values indicated by the image data before halftone processing and the image data after halftone processing included in the region selected by the region selection unit 101 into frequency components. The difference between the frequency components based on the frequency component of the pre-halftone image data converted by the frequency converter 102 and the frequency component of the post-halftone image data converted by the frequency converter 102 by the difference detector 103. A value Dif_F (u, v) is calculated. Based on the difference value Dif_F (u, v) of the frequency component calculated by the difference detection unit 103, the moire determination unit 104 determines whether or not moire as an interference pattern occurs. When the filter coefficient calculation unit 105 determines that moire is generated by the moire determination unit 104, the generation of moire is suppressed based on the difference value Dif_F (u, v) of the frequency component calculated by the difference detection unit 103. A filter coefficient Filter (x, y) is calculated. Then, the spatial filter processing unit 20 performs filter processing on the image data using the filter coefficient Filter (x, y) calculated by the filter coefficient calculation unit 105.

したがって、画像処理において、入力される画像データに基づいて、原稿のハーフトーンのパターンと、中間調処理で生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定することができるので、コピーなどを出力する前にモアレの発生の有無を知ることができる。モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出して空間フィルタ処理を行うことによって、モアレの発生を防止し、最適なコピー出力を得ることができる。   Therefore, in image processing, it is determined whether or not moire, which is an interference pattern between a halftone pattern of a document and a halftone pattern generated by halftone processing, is generated based on input image data. Therefore, it is possible to know the presence or absence of moire before outputting a copy or the like. If it is determined that moiré occurs, the filter coefficient Filter (x, y) for suppressing the occurrence of moiré is calculated and spatial filtering is performed to prevent the occurrence of moiré and to produce an optimal copy output. Obtainable.

さらに、階調再現処理部22によって、画像データを記憶するハードディスク7に記憶されている画像データに対して中間調処理が行なわれ、フィルタ係数算出部105によって、算出されたフィルタ係数Filter(x,y)が、ハードディスク7に記憶されている画像データに関連付けてハードディスク7に記憶される。したがって、スキャナ部などで取り込んだ画像をハードディスク7などの記憶装置に記憶しておき、待機時間などに記憶装置に記憶した画像データに対してフィルタ係数Filter(x,y)を算出し、算出したフィルタ係数Filter(x,y)をその画像データに関連付けて記憶装置に記憶しておくことができ、時間がかかる処理を効率的に行うことができる。   Further, the gradation reproduction processing unit 22 performs halftone processing on the image data stored in the hard disk 7 that stores the image data, and the filter coefficient calculation unit 105 calculates the filter coefficients Filter (x, y) is stored in the hard disk 7 in association with the image data stored in the hard disk 7. Therefore, the image captured by the scanner unit or the like is stored in a storage device such as the hard disk 7, and the filter coefficient Filter (x, y) is calculated for the image data stored in the storage device during the standby time or the like. The filter coefficient Filter (x, y) can be stored in the storage device in association with the image data, and time-consuming processing can be performed efficiently.

さらに、ユーザが画像データのプレビュー機能を選択した場合、出力階調補正部21によって、画像データが画像表示装置8に表示される。出力階調補正部21がハードディスク7に記憶されている画像データを画像表示装置8に表示し、ユーザが画像データの編集処理を行っている期間を利用して、階調再現処理部22によって、ハードディスク7に記憶されている画像データに対して中間調処理が行われ、フィルタ係数算出部105によって、算出されたフィルタ係数Filter(x,y)が、ハードディスク7に記憶されている画像データに関連付けてハードディスク7に記憶される。したがって、たとえばコピーを出力する前に、画像データのプレビュー画像を画像表示装置8に表示し、ユーザが画像表示装置8に表示されているプレビュー画像を見ている間に、その画像データにモアレが発生するか否かを判定し、モアレが発生すると判定されたときに、フィルタ係数Filter(x,y)を算出しておくことができるので、時間がかかる処理を効率的に行うことができる。   Further, when the user selects the image data preview function, the output gradation correction unit 21 displays the image data on the image display device 8. The output tone correction unit 21 displays the image data stored in the hard disk 7 on the image display device 8 and the tone reproduction processing unit 22 uses the period during which the user is editing the image data. Halftone processing is performed on the image data stored in the hard disk 7, and the filter coefficient Filter (x, y) calculated by the filter coefficient calculation unit 105 is associated with the image data stored in the hard disk 7. And stored in the hard disk 7. Therefore, for example, before outputting a copy, a preview image of the image data is displayed on the image display device 8, and while the user is viewing the preview image displayed on the image display device 8, there is moiré in the image data. Since it is determined whether or not moiré occurs and the filter coefficient Filter (x, y) can be calculated in advance, time-consuming processing can be performed efficiently.

さらに、原稿種別自動判別部13によって、画像データに基づいてその画像データの原稿の種別が判別される。モアレ判定部104によって、原稿種別自動判別部13によって原稿が印刷写真を含む原稿であると判別されたとき、モアレが発生するか否かが判定される。モアレが発生する可能性があるのは、原稿の画像にハーフトーン画像が含まれている場合であるので、原稿種別自動判別部13による判別結果が、モアレが発生する可能性がない原稿、たとえば原稿が印刷写真を含まない原稿である場合、領域選択部101、周波数変換部102、差分検出部103、モアレ判定部104およびフィルタ係数算出部105による処理を行わなくすることができ、処理時間を短縮することができる。   Further, the document type automatic determination unit 13 determines the document type of the image data based on the image data. When the moiré determination unit 104 determines that the original is an original including a printed photograph by the original type automatic determination unit 13, it is determined whether or not moire occurs. Moire may occur when a halftone image is included in the image of the document. Therefore, the determination result by the document type automatic determination unit 13 indicates that the document has no possibility of moiré, for example, When the document is a document that does not include a printed photograph, the processing by the region selection unit 101, the frequency conversion unit 102, the difference detection unit 103, the moire determination unit 104, and the filter coefficient calculation unit 105 can be eliminated, and the processing time can be reduced. It can be shortened.

さらに、カラー画像処理装置3,3aを備えるので、入力される画像データにモアレが発生すると判定した場合、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出し、算出したフィルタ係数Filter(x,y)を用いて空間フィルタ処理を行うことができ、モアレのないコピーなどを出力することができる。   Further, since the color image processing devices 3 and 3a are provided, when it is determined that moire occurs in the input image data, a filter coefficient Filter (x, y) for suppressing the occurrence of moire is calculated, and the calculated filter is calculated. Spatial filter processing can be performed using the coefficient Filter (x, y), and a copy without moire can be output.

さらに、画像を処理するカラー画像処理装置3,3aによって画像処理を実行するにあたって、図6に示したフローチャートにおいて、中間調処理後画像データを求める処理では、階調再現処理部22は、画像データに対して中間調処理を行ってハーフトーン画像を生成する。ステップA1では、中間調処理後画像データを求める処理で中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理後画像データを求める処理で中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の矩形領域をそれぞれ選択する。ステップA2では、ステップA1で選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する。ステップA3〜A5では、ステップA2で変換された中間調処理前画像データの周波数成分と、ステップA2で変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分値Dif_F(u,v)を算出する。ステップA6では、ステップA3〜A5で算出された周波数成分の差分値Dif_F(u,v)に基づいて、干渉パターンであるモアレが発生するか否かを判定する。ステップA7では、ステップA6でモアレが発生すると判定されたとき、ステップA3〜A5で算出された周波数成分の差分値Dif_F(u,v)に基づいて、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出する。そして、ステップA8では、ステップA7で算出されたフィルタ係数Filter(x,y)を用いて、画像データにフィルタ処理を行う。   Furthermore, in executing the image processing by the color image processing devices 3 and 3a for processing the image, in the flowchart shown in FIG. 6, in the process for obtaining the image data after halftone processing, the gradation reproduction processing unit 22 Is subjected to halftone processing to generate a halftone image. In step A1, the halftone process is performed by the process of obtaining the halftone processed image data and the position of the pixel indicated by the image data before the halftone process before the halftone process is performed in the process of obtaining the halftone processed image data. When the position of the pixel indicated by the halftone processed image data after being displayed is expressed in the same coordinate system, the rectangular regions at the same position are selected. In step A2, the pixel values indicated by the pre-halftone image data and the post-halftone image data of the pixels included in the region selected in step A1 are converted into frequency components, respectively. In steps A3 to A5, based on the frequency component of the pre-halftone image data converted in step A2 and the frequency component of the post-halftone image data converted in step A2, the difference value Dif_F (u , V). In step A6, based on the frequency component difference value Dif_F (u, v) calculated in steps A3 to A5, it is determined whether or not moire as an interference pattern occurs. In step A7, when it is determined in step A6 that moire occurs, the filter coefficient Filter for suppressing the occurrence of moire based on the difference value Dif_F (u, v) of the frequency components calculated in steps A3 to A5. Calculate (x, y). In step A8, the image data is filtered using the filter coefficient Filter (x, y) calculated in step A7.

したがって、画像処理において、入力される画像データに基づいて、原稿のハーフトーンのパターンと、中間調処理で生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定することができるので、コピーなどを出力する前にモアレの発生の有無を知ることができる。モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出して空間フィルタ処理を行うことによって、モアレの発生を防止し、最適なコピー出力を得ることができる。   Therefore, in image processing, it is determined whether or not moire, which is an interference pattern between a halftone pattern of a document and a halftone pattern generated by halftone processing, is generated based on input image data. Therefore, it is possible to know the presence or absence of moire before outputting a copy or the like. If it is determined that moiré occurs, the filter coefficient Filter (x, y) for suppressing the occurrence of moiré is calculated and spatial filtering is performed to prevent the occurrence of moiré and to produce an optimal copy output. Obtainable.

さらに、プログラムは、コンピュータを、画像データに対して中間調処理を行ってハーフトーン画像を生成する階調再現処理部22と、階調再現処理部22によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、階調再現処理部22によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の矩形領域をそれぞれ選択する領域選択部101と、領域選択部101によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部102と、周波数変換部102によって変換された中間調処理前画像データの周波数成分と、周波数変換部102によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分値Dif_F(u,v)を算出する差分検出部103と、差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)に基づいて、干渉パターンであるモアレが発生するか否かを判定するモアレ判定部104と、モアレ判定部104によってモアレが発生すると判定されたとき、差分検出部103によって算出された周波数成分の差分値Dif_F(u,v)に基づいて、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出するフィルタ係数算出部105と、フィルタ係数算出部105によって算出されたフィルタ係数Filter(x,y)を用いて、画像データにフィルタ処理を行う空間フィルタ処理部20として機能させる。   Further, the program causes the computer to perform halftone processing on the image data to generate a halftone image, and a halftone before the halftone processing is performed by the gradation reproduction processing unit 22. When the position of the pixel indicated by the pre-processing image data and the position of the pixel indicated by the image data after halftone processing after the halftone processing is performed by the gradation reproduction processing unit 22 are expressed in the same coordinate system A region selection unit 101 that selects a rectangular region at each position, and a pixel value indicated by image data before halftone processing and image data after halftone processing of pixels included in the region selected by the region selection unit 101, respectively, as frequency components The frequency conversion unit 102 that converts the frequency component into the frequency component of the pre-halftone image data converted by the frequency conversion unit 102 and the frequency component A difference detection unit 103 that calculates a difference value Dif_F (u, v) of the frequency component based on the frequency component of the image data after halftone processing, and a difference value Dif_F (u, f) of the frequency component calculated by the difference detection unit 103 v), the moire determination unit 104 that determines whether or not moire as an interference pattern occurs, and the frequency component calculated by the difference detection unit 103 when the moire determination unit 104 determines that moire occurs. Filter coefficient calculator 105 for calculating a filter coefficient Filter (x, y) for suppressing the occurrence of moire based on the difference value Dif_F (u, v) of the filter, and the filter coefficient calculated by the filter coefficient calculator 105 Using Filter (x, y), it functions as a spatial filter processing unit 20 that performs filter processing on image data. That.

したがって、原稿のハーフトーンのパターンと、中間調処理によって生成されるハーフトーンのパターンとの干渉パターンであるモアレが発生するか否かを判定し、モアレが発生すると判定した場合には、モアレの発生を抑制するためのフィルタ係数Filter(x,y)を算出して空間フィルタ処理を行うことができる処理をプログラムで実現することができる。   Therefore, it is determined whether or not moire, which is an interference pattern between the halftone pattern of the original and the halftone pattern generated by the halftone process, is generated. A process capable of calculating the filter coefficient Filter (x, y) for suppressing the generation and performing the spatial filter process can be realized by a program.

さらに、記録媒体は、前記プログラムを記録したコンピュータ読み取り可能な記録媒体であるので、コンピュータ読み取り可能な記録媒体から読み出されたプログラムによって、カラー画像処理装置3,3aをコンピュータ上に実現することができる。   Further, since the recording medium is a computer-readable recording medium in which the program is recorded, the color image processing apparatuses 3 and 3a can be realized on the computer by the program read from the computer-readable recording medium. it can.

1,1a 画像形成装置
2 カラー画像入力装置
3,3a カラー画像処理装置
4 カラー画像出力装置
5 操作パネル
6 制御部
7 ハードディスク
8 画像表示装置
10 モアレ抑制フィルタ係数算出部
11 A/D変換部
12 シェーディング補正部
13,13a 原稿種別自動判別部
14 入力階調補正部
15 領域分離処理部
16 圧縮部
17 復号部
18 色補正部
19 黒生成下色除去部
20 空間フィルタ処理部
21 出力階調補正部
22 階調再現処理部
23 メモリ
24 入力処理部
25 領域分離部
101 領域選択部
102 周波数変換部
103 差分検出部
104 モアレ判定部
105 フィルタ係数算出部
301 注目画素
302 主走査方向の画素
303 副走査方向の画素
DESCRIPTION OF SYMBOLS 1, 1a Image forming apparatus 2 Color image input apparatus 3, 3a Color image processing apparatus 4 Color image output apparatus 5 Operation panel 6 Control part 7 Hard disk 8 Image display apparatus 10 Moire suppression filter coefficient calculation part 11 A / D conversion part 12 Shading Correction unit 13, 13a Document type automatic discrimination unit 14 Input tone correction unit 15 Area separation processing unit 16 Compression unit 17 Decoding unit 18 Color correction unit 19 Black generation and under color removal unit 20 Spatial filter processing unit 21 Output tone correction unit 22 Gradation reproduction processing unit 23 Memory 24 Input processing unit 25 Region separation unit 101 Region selection unit 102 Frequency conversion unit 103 Difference detection unit 104 Moire determination unit 105 Filter coefficient calculation unit 301 Target pixel 302 Pixel in main scanning direction 303 Sub scanning direction Pixel

Claims (8)

画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理部と、
中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択部と、
領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部と、
周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出部と、
差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定部と、
判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出部と、
フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理部とを含むことを特徴とする画像処理装置。
A halftone processing unit that generates halftone images by performing halftone processing on image data;
The position of the pixel indicated by the image data before halftone processing before the halftone processing is performed by the halftone processing unit, and the pixel indicated by the image data after halftone processing after the halftone processing is performed by the halftone processing unit When the position is expressed in the same coordinate system, an area selection unit that selects an area of a predetermined shape at the same position, and
A frequency conversion unit that converts pixel values indicated by pre-halftone image data and post-halftone image data of pixels included in the region selected by the region selection unit into frequency components;
A difference calculation unit that calculates a difference between frequency components based on the frequency component of the image data before halftone processing converted by the frequency conversion unit and the frequency component of the image data after halftone processing converted by the frequency conversion unit;
A determination unit that determines whether or not moire, which is an interference pattern, is generated based on the difference between the frequency components calculated by the difference calculation unit;
A filter coefficient calculation unit that calculates a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated by the difference calculation unit when the determination unit determines that moire occurs;
An image processing apparatus comprising: a filter processing unit that performs filter processing on image data using the filter coefficient calculated by the filter coefficient calculation unit.
前記中間調処理部は、画像データを記憶する記憶部に記憶されている画像データに対して中間調処理を行い、
前記フィルタ係数算出部は、算出したフィルタ係数を前記記憶部に記憶されている画像データに関連付けて記憶部に記憶することを特徴とする請求項1に記載の画像処理装置。
The halftone processing unit performs halftone processing on image data stored in a storage unit that stores image data,
The image processing apparatus according to claim 1, wherein the filter coefficient calculation unit stores the calculated filter coefficient in the storage unit in association with the image data stored in the storage unit.
画像データを表示装置に表示する表示制御部をさらに含み、
表示制御部が前記記憶部に記憶されている画像データを表示装置に表示している期間に、前記中間調処理部は、前記記憶部に記憶されている画像データに対して中間調処理を行い、前記フィルタ係数算出部は、算出したフィルタ係数を前記記憶部に記憶されている画像データに関連付けて記憶部に記憶することを特徴とする請求項2に記載の画像処理装置。
A display control unit for displaying the image data on the display device;
During a period when the display control unit displays the image data stored in the storage unit on the display device, the halftone processing unit performs halftone processing on the image data stored in the storage unit. The image processing apparatus according to claim 2, wherein the filter coefficient calculation unit stores the calculated filter coefficient in the storage unit in association with the image data stored in the storage unit.
画像データに基づいてその画像データの原稿の種別を判別する原稿種別判別部をさらに含み、
前記判定部は、原稿種別判別部によって原稿が印刷写真を含む原稿であると判別されたとき、モアレが発生するか否かを判定することを特徴とする請求項1〜3のいずれか1つに記載の画像処理装置。
A document type discriminating unit for discriminating the type of the image data based on the image data;
4. The determination unit according to claim 1, wherein the determination unit determines whether or not moire occurs when the document type determination unit determines that the document is a document including a printed photograph. An image processing apparatus according to 1.
請求項1〜4のいずれか1つに記載の画像処理装置を備えることを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1. 画像を処理する画像処理装置によって実行される画像処理方法であって、
画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理ステップと、
中間調処理ステップで中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理ステップで中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択ステップと、
領域選択ステップで選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換ステップと、
周波数変換ステップで変換された中間調処理前画像データの周波数成分と、周波数変換ステップで変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出ステップと、
差分算出ステップで算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定ステップと、
判定ステップでモアレが発生すると判定されたとき、差分算出ステップで算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出ステップと、
フィルタ係数算出ステップで算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理ステップとを含むことを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus for processing an image,
A halftone processing step of performing halftone processing on the image data to generate a halftone image;
The pixel position indicated by the image data before halftone processing before the halftone processing is performed in the halftone processing step and the pixel indicated by the image data after halftone processing after the halftone processing is performed in the halftone processing step. When the position is expressed in the same coordinate system, an area selection step for selecting an area of a predetermined shape at the same position, and
A frequency conversion step of converting the pixel values indicated by the image data before halftone processing and the image data after halftone processing of the pixels included in the region selected in the region selection step into frequency components;
A difference calculating step for calculating a difference between frequency components based on the frequency component of the image data before halftone processing converted in the frequency conversion step and the frequency component of the image data after halftone processing converted in the frequency conversion step;
A determination step of determining whether or not moire as an interference pattern occurs based on the difference between the frequency components calculated in the difference calculation step;
A filter coefficient calculating step for calculating a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated in the difference calculating step when it is determined that the moire occurs in the determining step;
An image processing method comprising: a filter processing step of performing filter processing on image data using the filter coefficient calculated in the filter coefficient calculation step.
コンピュータを、
画像データに対して中間調処理を行ってハーフトーン画像を生成する中間調処理部と、
中間調処理部によって中間調処理が行われる前の中間調処理前画像データが示す画素の位置と、中間調処理部によって中間調処理が行われた後の中間調処理後画像データが示す画素の位置とを同一の座標系で表したとき、同じ位置の予め定める形状の領域をそれぞれ選択する領域選択部と、
領域選択部によって選択された領域に含まれる画素の中間調処理前画像データおよび中間調処理後画像データが示す画素値を、それぞれ周波数成分に変換する周波数変換部と、
周波数変換部によって変換された中間調処理前画像データの周波数成分と、周波数変換部によって変換された中間調処理後画像データの周波数成分とに基づいて周波数成分の差分を算出する差分算出部と、
差分算出部によって算出された周波数成分の差分に基づいて、干渉パターンであるモアレが発生するか否かを判定する判定部と、
判定部によってモアレが発生すると判定されたとき、差分算出部によって算出された周波数成分の差分に基づいて、モアレの発生を抑制するためのフィルタ係数を算出するフィルタ係数算出部と、
フィルタ係数算出部によって算出されたフィルタ係数を用いて、画像データにフィルタ処理を行うフィルタ処理部として機能させるためのプログラム。
Computer
A halftone processing unit that performs halftone processing on image data to generate a halftone image;
The position of the pixel indicated by the image data before halftone processing before the halftone processing is performed by the halftone processing unit, and the pixel indicated by the image data after halftone processing after the halftone processing is performed by the halftone processing unit When the position is expressed in the same coordinate system, an area selection unit that selects an area of a predetermined shape at the same position, and
A frequency conversion unit that converts pixel values indicated by pre-halftone image data and post-halftone image data of pixels included in the region selected by the region selection unit into frequency components;
A difference calculation unit that calculates a difference between frequency components based on the frequency component of the image data before halftone processing converted by the frequency conversion unit and the frequency component of the image data after halftone processing converted by the frequency conversion unit;
A determination unit that determines whether or not moire, which is an interference pattern, is generated based on the difference between the frequency components calculated by the difference calculation unit;
A filter coefficient calculation unit that calculates a filter coefficient for suppressing the occurrence of moire based on the difference between the frequency components calculated by the difference calculation unit when the determination unit determines that moire occurs;
A program for functioning as a filter processing unit that performs filter processing on image data using the filter coefficient calculated by the filter coefficient calculation unit.
請求項7に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 7 is recorded.
JP2009131494A 2009-05-29 2009-05-29 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium Pending JP2010278924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009131494A JP2010278924A (en) 2009-05-29 2009-05-29 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009131494A JP2010278924A (en) 2009-05-29 2009-05-29 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2010278924A true JP2010278924A (en) 2010-12-09

Family

ID=43425430

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009131494A Pending JP2010278924A (en) 2009-05-29 2009-05-29 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2010278924A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015126262A (en) * 2013-12-25 2015-07-06 京セラドキュメントソリューションズ株式会社 Image processing device and image processing method
CN115273732A (en) * 2022-06-13 2022-11-01 浙江大华技术股份有限公司 Abnormal texture suppression method for display screen, terminal and computer-readable storage medium
CN116137842A (en) * 2020-07-22 2023-05-19 凸版印刷株式会社 Moiré generation prediction device, moire generation prediction system, and moire generation prediction method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015126262A (en) * 2013-12-25 2015-07-06 京セラドキュメントソリューションズ株式会社 Image processing device and image processing method
CN116137842A (en) * 2020-07-22 2023-05-19 凸版印刷株式会社 Moiré generation prediction device, moire generation prediction system, and moire generation prediction method
CN116137842B (en) * 2020-07-22 2024-03-22 凸版印刷株式会社 Moire fringe generation prediction device, moiré fringe generation prediction system, and moiré fringe generation prediction method
CN115273732A (en) * 2022-06-13 2022-11-01 浙江大华技术股份有限公司 Abnormal texture suppression method for display screen, terminal and computer-readable storage medium

Similar Documents

Publication Publication Date Title
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP4549418B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5275325B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4402090B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2007067964A (en) Image processing device, image forming apparatus, image reading device, image processing method, image processing program, and computer readable recording medium with image processing program recorded thereon
JP2010278924A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2008305099A (en) Image processing method, image processor, image forming device, computer program and recording medium
JP2010206725A (en) Image processor, image forming device, image processing method, program, and recording medium
JP3983694B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP2013074309A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP2011015172A (en) Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP4596964B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4545167B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
JP2007053439A (en) Isolated point discrimination apparatus, image processing apparatus, image reading apparatus, image forming apparatus, isolated point discrimination method, isolated point discrimination program, image processing program, and computer-readable recording medium
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program
JP5851235B2 (en) Image processing apparatus, image forming apparatus, digital camera, image processing method, computer program, and storage medium
JP2003219178A (en) Image processing method, device thereof and image forming device
JP4545134B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP5863497B2 (en) Image processing apparatus, image forming apparatus, computer program, and storage medium
JP2009212820A (en) Image processing device, image processing method, image forming device, program, and recording medium
JP2009159089A (en) Image processing device, image processing method, image forming apparatus, image reader, computer program and recording medium