JP2006155572A - Image processor, image forming device, image processing method and computer program - Google Patents

Image processor, image forming device, image processing method and computer program Download PDF

Info

Publication number
JP2006155572A
JP2006155572A JP2005234897A JP2005234897A JP2006155572A JP 2006155572 A JP2006155572 A JP 2006155572A JP 2005234897 A JP2005234897 A JP 2005234897A JP 2005234897 A JP2005234897 A JP 2005234897A JP 2006155572 A JP2006155572 A JP 2006155572A
Authority
JP
Japan
Prior art keywords
image
processing
data
block
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005234897A
Other languages
Japanese (ja)
Other versions
JP4570534B2 (en
Inventor
Hisamitsu Katougi
央光 加藤木
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 JP2005234897A priority Critical patent/JP4570534B2/en
Publication of JP2006155572A publication Critical patent/JP2006155572A/en
Application granted granted Critical
Publication of JP4570534B2 publication Critical patent/JP4570534B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor, an image forming device, an image processing method and a computer program, performing edge emphasis processing or smoothing processing according to image data. <P>SOLUTION: This image processor has: a frequency component decision part 372a deciding whether an image is an image including an edge component or not, on the basis of a spatial frequency component of the image data; a block area decision part 372b deciding an attribute of the image of a block unit on the basis of area identification information outputted from an area separation processing part; and a processing content decision part 372c totally deciding processing to be executed in an arithmetic processing part 373 on the basis of a decision result of the block area decision part 372b and the frequency component decision part 372a. The decided processing is applied to the data having the prescribed spatial frequency component to convert the data in a frequency area into data in a density area by an inverse frequency conversion part 374. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像データのエッジ強調、平滑化を行う画像処理装置、画像形成装置、該画像処理装置及び画像形成装置を実現する画像処理方法、並びにコンピュータプログラムに関する。   The present invention relates to an image processing apparatus that performs edge enhancement and smoothing of image data, an image forming apparatus, an image processing method that realizes the image processing apparatus, and a computer program.

デジタル画像処理技術において、高精細な画像を得る手法の一つとして画像のエッジ強調処理及び平滑化処理を挙げることができる。例えば、文字や連続階調画像の輪郭部(例えば印画紙写真)については、エッジを強調処理を施すことによってくっきりと見えやすくすることができ、網点で形成された印刷物(印刷写真)については、平滑化処理を施すことによりモアレの発生を抑制することが可能である。これらのエッジ強調や平滑化の処理には、デジタルフィルタによる空間フィルタ処理が一般的に用いられている(例えば、非特許文献1参照)   In the digital image processing technique, one of methods for obtaining a high-definition image is an edge enhancement process and a smoothing process of an image. For example, outlines of characters and continuous tone images (for example, photographic paper photographs) can be clearly seen by emphasizing the edges. For printed matter (printed photographs) formed with halftone dots, The occurrence of moire can be suppressed by performing a smoothing process. In these edge enhancement and smoothing processes, a spatial filter process using a digital filter is generally used (for example, see Non-Patent Document 1).

また、同様に、画像のエッジ成分を強調する手法の一つに原画像を直交変換により周波数領域に変換し、予め準備されている定数を用いて周波数データの変更を行い、変更された周波数領域の周波数データの逆直交変換を行なうことにより鮮明化された画像を得る方法が提案されている(例えば、特許文献1参照)。
電子写真学会誌、第36巻、第4号(1997)、343〜352頁 特開平9−54825号公報
Similarly, as one of the methods for enhancing the edge component of the image, the original image is converted into the frequency domain by orthogonal transform, and the frequency data is changed using a constant prepared in advance. There has been proposed a method of obtaining a sharpened image by performing inverse orthogonal transform of the frequency data (see, for example, Patent Document 1).
The Journal of Electrophotographic Society, Vol. 36, No. 4 (1997), pages 343-352 JP-A-9-54825

しかしながら、特許文献1に記載されている手法では、周波数全域のデータにおいて、予め準備されている定数を掛けることにより周波数データの変更を行なっているが、全域のデータを強調しているため、顔の輪郭などのゆるやかな曲線領域において、不必要なブロックノイズが目立つという問題点がある。   However, in the method described in Patent Document 1, the frequency data is changed by multiplying the data in the entire frequency range by a constant prepared in advance. There is a problem that unnecessary block noise is conspicuous in a gently curved region such as a contour of the.

また、直交変換された周波数領域の周波数データに周波数データの周期ごとに予め準備されている値を掛けることにより周波数データの変更を行ない、より鮮明な画像を得ようとしているが、この場合、高周波ほど予め準備している値を大きくして、複数の値を設定しなければならないという課題がある。このように複数の値を設定しておく場合、あらかじめ多くのレジスタが必要となり回路規模が大きくなるという問題がある。   In addition, the frequency data is changed by multiplying the frequency data of the frequency domain subjected to orthogonal transformation by a value prepared in advance for each period of the frequency data to obtain a clearer image. There is a problem that a plurality of values must be set by increasing the value prepared in advance. When a plurality of values are set in this way, there is a problem that many registers are required in advance and the circuit scale becomes large.

本発明は斯かる事情に鑑みてなされたものであり、回路規模を大きくすることなく高精度なエッジ強調処理、平滑化処理を実現できる画像処理装置、画像形成装置、該画像処理装置及び画像形成装置を実現する画像処理方法、並びにコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and an image processing apparatus, an image forming apparatus, the image processing apparatus, and an image forming apparatus capable of realizing highly accurate edge enhancement processing and smoothing processing without increasing the circuit scale. An object of the present invention is to provide an image processing method and a computer program for realizing the apparatus.

本発明に係る画像処理装置は、画像データに直交変換を施して複数の空間周波数成分からなるデータを生成し、生成したデータに基づいて画像処理を行う画像処理装置において、前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出する検出手段と、該検出手段の検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施す手段と、前記処理を施して得られたデータに逆直交変換を施す手段とを備えることを特徴とする。   An image processing apparatus according to the present invention generates image data composed of a plurality of spatial frequency components by performing orthogonal transform on image data, and performs image processing based on the generated data. Detecting means for detecting the characteristics of the plurality of spatial frequency components from data consisting of the plurality of spatial frequency components, means for applying processing corresponding to the detection result of the detecting means to data belonging to a predetermined spatial frequency region of the data, and the processing Means for performing inverse orthogonal transform on the data obtained by applying the data.

本発明にあっては、画像の特徴を複数の空間周波数成分からなるデータより検出する検出手段を備え、検出結果に応じた処理を、所定の空間周波数域に属するデータに対して施すようにしているため、空間周波数の全域について処理を施す必要がなくなり、処理の際に用いるパラメータが削減され、その結果、回路規模が抑えられる。また、施す処理がエッジ強調処理である場合には、強調領域が限定されることとなり、曲線上にあるエッジ境界部での不必要なブロックパターンの出現が抑えられる。更に、エッジ強調処理が必要でない場合には、例えば2次元マトリクスデータを用いた処理により平滑化が可能となり、よりスムーズな画像が得られる。   In the present invention, it is provided with a detecting means for detecting image features from data composed of a plurality of spatial frequency components, and processing corresponding to the detection result is performed on data belonging to a predetermined spatial frequency range. Therefore, it is not necessary to perform processing for the entire spatial frequency, parameters used for processing are reduced, and as a result, the circuit scale is suppressed. Further, when the processing to be performed is edge enhancement processing, the enhancement region is limited, and the appearance of an unnecessary block pattern at the edge boundary portion on the curve can be suppressed. Furthermore, when edge enhancement processing is not necessary, smoothing can be performed by processing using, for example, two-dimensional matrix data, and a smoother image can be obtained.

本発明に係る画像処理装置は、前記空間周波数成分の大きさと予め設定した閾値との大小関係を判定する判定手段を備え、前記検出手段は、前記判定手段の判定結果に基づいて前記画像の特徴を検出するようにしてあることを特徴とする。   The image processing apparatus according to the present invention includes a determination unit that determines a magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, and the detection unit is characterized by the image based on a determination result of the determination unit. Is detected.

本発明にあっては、空間周波数成分の大きさと予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしているため、例えば、低周波数域の空間周波数成分を閾値と比較することによって、対象の画像にエッジ成分が含まれているか否かが容易に検出される。   In the present invention, since the feature of the image is detected by determining the magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, for example, the spatial frequency component in the low frequency range is compared with the threshold value. By doing so, it is easily detected whether or not an edge component is included in the target image.

本発明に係る画像処理装置は、前記空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行う演算手段、及び前記演算により得られた値と予め設定した閾値との大小関係を判定する判定手段を備え、前記検出手段は、前記判定手段の判定結果に基づいて前記画像の特徴を検出するようにしてあることを特徴とする。   The image processing apparatus according to the present invention includes a calculation unit that performs a predetermined calculation using a direct current component and an alternating current component among the spatial frequency components, and a magnitude relationship between a value obtained by the calculation and a preset threshold value. Judgment means for judging is provided, and the detecting means detects the feature of the image based on the judgment result of the judging means.

本発明にあっては、空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行い、演算により得られた値と予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしているため、画像全体の平均濃度を表す直流成分も判定要素として取り込むことができ、画像全体の濃度に依存したエッジブロック判定が可能となり、エッジ判定精度が向上する。特に、ハイライト上の薄い文字などもエッジブロックとして判定されやすくなり、文字の再現性が向上する。   In the present invention, a predetermined calculation is performed using a direct current component and an alternating current component among the spatial frequency components, and a magnitude relationship between a value obtained by the calculation and a preset threshold value is determined to determine the characteristics of the image. Since detection is performed, a direct current component representing the average density of the entire image can also be taken in as a determination element, and edge block determination depending on the density of the entire image can be performed, thereby improving edge determination accuracy. In particular, a thin character on a highlight is easily determined as an edge block, and the character reproducibility is improved.

本発明に係る画像処理装置は、前記検出手段は、前記判定結果に基づいて前記画像がエッジ画像であるか否かを検出するようにしてあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the detection means detects whether or not the image is an edge image based on the determination result.

本発明にあっては、空間周波数成分の大きさと予め設定した閾値との大小関係に基づいてエッジ画像であるか否かの検出をするようにしているため、例えば、文字や連続階調画像の輪郭部を含む画像についてはエッジを強調するような処理を施し、網点で構成された画像についてはモアレの発生を抑えるような平滑化処理を施すことが可能となる。   In the present invention, since it is detected whether or not the image is an edge image based on the magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, for example, a character or a continuous tone image is detected. It is possible to perform processing that emphasizes edges for an image including a contour portion, and smoothing processing that suppresses the occurrence of moire for an image composed of halftone dots.

本発明に係る画像処理装置は、前記処理は、エッジ強調処理又は平滑化処理であることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the processing is edge enhancement processing or smoothing processing.

本発明にあっては、画像の特徴に応じてエッジ強調処理又は平滑化処理を施すため、例えば、文字や連続階調画像の輪郭部を含む画像についてはエッジを強調するようなエッジ強調処理、網点で構成された画像についてはモアレの発生を抑えるような平滑化処理を施すことが可能となる。   In the present invention, in order to perform edge enhancement processing or smoothing processing according to the characteristics of the image, for example, edge enhancement processing that enhances the edge for an image including a character or a contour portion of a continuous tone image, An image composed of halftone dots can be subjected to a smoothing process that suppresses the occurrence of moire.

本発明に係る画像処理装置は、前記画像がエッジ画像であることを前記検出手段が検出した場合、エッジ強調処理を施すようにしてあり、前記画像が非エッジ画像であることを前記検出手段が検出した場合、平滑化処理を施すようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, when the detection unit detects that the image is an edge image, an edge enhancement process is performed, and the detection unit determines that the image is a non-edge image. If detected, a smoothing process is performed.

本発明にあっては、エッジ画像についてはエッジ強調処理を施し、非エッジ画像については平滑化処理を施すようにしているため、エッジ強調が必要である場合には、不必要なブロックパターンを抑えたきれいなエッジ曲線が得られ、エッジ強調が不要である場合には、平滑化によりスムーズな画像が得られる。   In the present invention, edge enhancement processing is performed on edge images and smoothing processing is performed on non-edge images. Therefore, when edge enhancement is necessary, unnecessary block patterns are suppressed. When a clean edge curve is obtained and edge enhancement is not required, a smooth image can be obtained by smoothing.

本発明に係る画像処理装置は、前記画像データが文字領域、網点領域、又は写真領域の何れに属するデータであるかを判定する領域判定手段を更に備えることを特徴とする。   The image processing apparatus according to the present invention further includes an area determination unit that determines whether the image data belongs to a character area, a halftone dot area, or a photographic area.

本発明にあっては、画像データが文字領域、網点領域、又は写真領域の何れに属するデータであるかを判定する領域判定手段を更に備えているため、画像の属性が総合的に判定される。   In the present invention, since the image data further includes area determination means for determining whether the image data belongs to a character area, a halftone dot area, or a photo area, the attribute of the image is comprehensively determined. The

本発明に係る画像処理装置は、前記画像がエッジ画像であることを前記検出手段が検出し、かつ、前記画像データが文字領域又は写真領域に属するデータであると前記領域判定手段が判定した場合、エッジ強調処理を施すようにしてあり、前記画像が非エッジ画像であることを前記検出手段が検出し、かつ、前記画像データが網点領域又は写真領域に属するデータであると前記領域判定手段が判定した場合、平滑化処理を施すようにしてあることを特徴とする。   In the image processing apparatus according to the present invention, the detection unit detects that the image is an edge image, and the region determination unit determines that the image data belongs to a character region or a photo region. The edge determination processing is performed, the detection unit detects that the image is a non-edge image, and the region determination unit determines that the image data is data belonging to a halftone dot region or a photographic region. Is determined, a smoothing process is performed.

本発明にあっては、エッジ画像であって、文字領域又は写真領域に属するデータについてはエッジ強調処理を施し、非エッジ画像であって、網点領域又は写真領域に属するデータについては平滑化処理を施すようにしているため、エッジ強調が必要である場合には、不必要なブロックパターンを抑えたきれいなエッジ曲線が得られ、エッジ強調が不要である場合には、平滑化によりスムーズな画像が得られる。   In the present invention, edge enhancement processing is applied to data belonging to a character region or a photo region, and smoothing processing is performed on data belonging to a halftone dot region or a photo region. Therefore, when edge enhancement is necessary, a clean edge curve with an unnecessary block pattern suppressed can be obtained, and when edge enhancement is unnecessary, a smooth image is obtained by smoothing. can get.

本発明に係る画像処理装置は、前記エッジ強調処理を施す場合、前記空間周波数域に属するデータに1より大きな実数を乗じ、前記平滑化処理を施す場合、前記データを1より大きな実数で除算するようにしてあることを特徴とする。   The image processing apparatus according to the present invention multiplies the data belonging to the spatial frequency range by a real number greater than 1 when performing the edge enhancement process, and divides the data by a real number greater than 1 when performing the smoothing process. It is characterized by the above.

本発明にあっては、エッジ強調処理を施す場合には、所定の空間周波数域に属するデータに1より大きな実数を乗じ、平滑化処理を施す場合には、1より大きな実数で除算するようにしているため、空間周波数領域の全域に亘ってパラメータを用意しておく必要がなく、回路規模が抑えられる。特に、エッジ強調処理を施す場合には空間周波数に応じて乗じる実数を変えることで、よりエッジが効いた画像が得られる。   In the present invention, when edge enhancement processing is performed, data belonging to a predetermined spatial frequency region is multiplied by a real number larger than 1, and when smoothing processing is performed, division is performed by a real number larger than 1. Therefore, it is not necessary to prepare parameters over the entire spatial frequency region, and the circuit scale can be suppressed. In particular, when edge enhancement processing is performed, an image with more effective edges can be obtained by changing the real number to be multiplied according to the spatial frequency.

本発明に係る画像形成装置は、前述した発明の何れか1つに記載の画像処理装置と、該画像処理装置により処理された画像データに基づいてシート上に画像形成を行う手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described inventions, and a unit that forms an image on a sheet based on image data processed by the image processing apparatus. It is characterized by.

本発明にあっては、画像の特徴に応じた処理を施す際、所定の空間周波数域に属するデータについて処理を施すことにより得られた画像データに基づいてシート上に画像形成を行うため、例えば、エッジ境界部での不必要なブロックパターンの出現が抑えたきれいなエッジ曲線を含む画像、平滑化して得られたスムーズな画像がシート上に形成される。   In the present invention, when performing processing according to the characteristics of the image, in order to form an image on the sheet based on image data obtained by processing data belonging to a predetermined spatial frequency range, for example, An image including a clean edge curve in which the appearance of unnecessary block patterns at the edge boundary portion is suppressed, and a smooth image obtained by smoothing are formed on the sheet.

本発明に係る画像処理方法は、画像データに直交変換を施して複数の空間周波数成分からなるデータを生成し、生成したデータに基づいて画像処理を行う画像処理方法において、前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出する第1ステップと、検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施す第2ステップと、前記処理を施して得られたデータに逆直交変換を施す第3ステップとを有することを特徴とする。   An image processing method according to the present invention is an image processing method that performs orthogonal transformation on image data to generate data composed of a plurality of spatial frequency components, and performs image processing based on the generated data. A first step of detecting the characteristics of the data from data consisting of the plurality of spatial frequency components, a second step of applying a process according to the detection result to data belonging to a predetermined spatial frequency region of the data, and performing the process And a third step of performing inverse orthogonal transform on the data obtained in this manner.

本発明にあっては、画像の特徴を複数の空間周波数成分からなるデータより検出し、検出結果に応じた処理を、所定の空間周波数域に属するデータに対して施すようにしているため、空間周波数の全域について処理を施す必要がなくなり、処理の際に用いるパラメータが削減される。また、施す処理がエッジ強調処理である場合には、強調領域が限定されることとなり、曲線上にあるエッジ境界部での不必要なブロックパターンの出現が抑えられる。更に、エッジ強調処理が必要でない場合には、例えば2次元マトリクスデータを用いた処理により平滑化が可能となり、よりスムーズな画像が得られる。   In the present invention, the feature of the image is detected from data composed of a plurality of spatial frequency components, and processing corresponding to the detection result is performed on data belonging to a predetermined spatial frequency range. There is no need to perform processing for the entire frequency range, and the parameters used for processing are reduced. Further, when the processing to be performed is edge enhancement processing, the enhancement region is limited, and the appearance of an unnecessary block pattern at the edge boundary portion on the curve can be suppressed. Furthermore, when edge enhancement processing is not necessary, smoothing can be performed by processing using, for example, two-dimensional matrix data, and a smoother image can be obtained.

本発明に係る画像処理方法は、前記第1ステップは、前記空間周波数成分の大きさと予め設定した閾値との大小関係を判定し、判定した結果に基づいて前記画像の特徴を検出するステップであることを特徴とする。   In the image processing method according to the present invention, the first step is a step of determining a magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, and detecting the feature of the image based on the determined result. It is characterized by that.

本発明にあっては、空間周波数成分の大きさと予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしているため、例えば、低周波数域の空間周波数成分を閾値と比較することによって、対象の画像にエッジ成分が含まれているか否かが容易に検出される。   In the present invention, since the feature of the image is detected by determining the magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, for example, the spatial frequency component in the low frequency range is compared with the threshold value. By doing so, it is easily detected whether or not an edge component is included in the target image.

本発明に係る画像処理方法は、前記第1ステップは、前記空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行い、該演算により得られた値と予め設定した閾値との大小関係を判定し、判定した結果に基づいて前記画像の特徴を検出するステップであることを特徴とする。   In the image processing method according to the present invention, in the first step, a predetermined calculation is performed using a DC component and an AC component of the spatial frequency components, and a value obtained by the calculation and a preset threshold value are calculated. It is a step of determining the magnitude relationship and detecting the feature of the image based on the determined result.

本発明にあっては、空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行い、演算により得られた値と予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしているため、画像全体の平均濃度を表す直流成分も判定要素として取り込むことができ、画像全体の濃度に依存したエッジブロック判定が可能となり、エッジ判定精度が向上する。特に、ハイライト上の薄い文字などもエッジブロックとして判定されやすくなり、文字の再現性が向上する。   In the present invention, a predetermined calculation is performed using a direct current component and an alternating current component among the spatial frequency components, and a magnitude relationship between a value obtained by the calculation and a preset threshold value is determined to determine the characteristics of the image. Since detection is performed, a direct current component representing the average density of the entire image can also be taken in as a determination element, and edge block determination depending on the density of the entire image can be performed, thereby improving edge determination accuracy. In particular, a thin character on a highlight is easily determined as an edge block, and the character reproducibility is improved.

本発明に係るコンピュータプログラムは、コンピュータに、画像データに直交変換を施して複数の空間周波数成分からなるデータを生成させ、生成させたデータに基づいて画像処理を行わせるコンピュータプログラムにおいて、コンピュータに、前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出させるステップと、コンピュータに、該ステップの検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施させるステップと、コンピュータに、前記処理を施して得られたデータに逆直交変換を施させるステップとを有することを特徴とする。   A computer program according to the present invention is a computer program that causes a computer to perform orthogonal transformation on image data to generate data composed of a plurality of spatial frequency components, and to perform image processing based on the generated data. Detecting a feature of the image based on the image data from the data composed of the plurality of spatial frequency components; and causing the computer to perform processing according to the detection result of the step on data belonging to a predetermined spatial frequency region. And a step of causing the computer to perform inverse orthogonal transform on the data obtained by performing the above processing.

本発明にあっては、画像の特徴を複数の空間周波数成分からなるデータより検出するステップを備え、検出結果に応じた処理を、所定の空間周波数域に属するデータに対して施すようにしているため、空間周波数の全域について処理を施す必要がなくなり、処理の際に用いるパラメータが削減され、その結果、回路規模が抑えられる。また、施す処理がエッジ強調処理である場合には、強調領域が限定されることとなり、曲線上にあるエッジ境界部での不必要なブロックパターンの出現が抑えられる。更に、エッジ強調処理が必要でない場合には、例えば2次元マトリクスデータを用いた処理により平滑化が可能となり、よりスムーズな画像が得られる。   In the present invention, a step of detecting image features from data composed of a plurality of spatial frequency components is provided, and processing corresponding to the detection result is performed on data belonging to a predetermined spatial frequency range. Therefore, it is not necessary to perform processing for the entire spatial frequency, and the parameters used for the processing are reduced. As a result, the circuit scale is suppressed. Further, when the processing to be performed is edge enhancement processing, the enhancement region is limited, and the appearance of an unnecessary block pattern at the edge boundary portion on the curve can be suppressed. Furthermore, when edge enhancement processing is not necessary, smoothing can be performed by processing using, for example, two-dimensional matrix data, and a smoother image can be obtained.

本発明による場合は、画像の特徴を複数の空間周波数成分からなるデータより検出する検出手段を備え、検出結果に応じた処理を、所定の空間周波数域に属するデータに対して施すようにしている。したがって、空間周波数の全域について処理を施す必要がなくなり、処理の際に用いるパラメータを削減することができ、その結果、回路規模を抑えることができる。また、施す処理がエッジ強調処理である場合には、強調領域が限定されることとなり、曲線上にあるエッジ境界部での不必要なブロックパターンの出現を抑えることができる。更に、エッジ強調処理が必要でない場合には、例えば2次元マトリクスデータを用いた処理により平滑化が可能となり、よりスムーズな画像を得ることができる。   In the case of the present invention, a detecting means for detecting image features from data composed of a plurality of spatial frequency components is provided, and processing corresponding to the detection result is performed on data belonging to a predetermined spatial frequency range. . Therefore, it is not necessary to perform processing for the entire spatial frequency, and the parameters used in the processing can be reduced. As a result, the circuit scale can be suppressed. Further, when the processing to be performed is edge enhancement processing, the enhancement region is limited, and the appearance of an unnecessary block pattern at the edge boundary portion on the curve can be suppressed. Further, when edge enhancement processing is not necessary, smoothing can be performed by processing using, for example, two-dimensional matrix data, and a smoother image can be obtained.

また、本発明による場合は、空間周波数成分の大きさと予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしている。したがって、例えば、低周波数域の空間周波数成分を閾値と比較することによって、対象の画像にエッジ成分が含まれているか否かを容易に検出することができる。   Further, according to the present invention, the feature of the image is detected by determining the magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value. Therefore, for example, it is possible to easily detect whether or not an edge component is included in the target image by comparing a spatial frequency component in a low frequency range with a threshold value.

更に、本発明による場合は、空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行い、演算により得られた値と予め設定した閾値との大小関係を判定して画像の特徴を検出するようにしている。したがって、画像全体の平均濃度を表す直流成分も判定要素として取り込むことができ、画像全体の濃度に依存したエッジブロック判定が可能となり、エッジ判定精度を向上させることができる。特に、ハイライト上の薄い文字などもエッジブロックとして判定されやすくなり、文字の再現性を向上させる際に有効である。   Further, according to the present invention, a predetermined calculation is performed using a direct current component and an alternating current component among the spatial frequency components, and a magnitude relationship between a value obtained by the calculation and a preset threshold value is determined, and the feature of the image is determined. To detect. Therefore, a DC component representing the average density of the entire image can also be taken in as a determination element, edge block determination depending on the density of the entire image can be performed, and edge determination accuracy can be improved. In particular, a thin character on a highlight is easily determined as an edge block, which is effective in improving the reproducibility of characters.

更に、本発明による場合は、空間周波数成分の大きさと予め設定した閾値との大小関係に基づいてエッジ画像であるか否かの検出をするようにしている。したがって、例えば、文字や連続階調画像の輪郭部を含む画像についてはエッジを強調するような処理を施し、網点で構成された画像についてはモアレの発生を抑えるような平滑化処理を施すことが可能となる。   Furthermore, in the case of the present invention, it is detected whether or not the image is an edge image based on the magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value. Therefore, for example, an image that includes a character or a contour portion of a continuous tone image is subjected to processing for enhancing an edge, and an image composed of halftone dots is subjected to smoothing processing to suppress the occurrence of moire. Is possible.

更に、本発明による場合は、画像の特徴に応じてエッジ強調処理又は平滑化処理を施すようにしている。したがって、例えば、文字や連続階調画像の輪郭部を含む画像についてはエッジを強調するようなエッジ強調処理、網点で構成された画像についてはモアレの発生を抑えるような平滑化処理を施すことが可能となる。   Furthermore, according to the present invention, edge enhancement processing or smoothing processing is performed according to the characteristics of the image. Therefore, for example, edge emphasis processing that emphasizes edges is applied to images including outlines of characters and continuous tone images, and smoothing processing is applied to images composed of halftone dots to suppress the occurrence of moire. Is possible.

更に、本発明による場合は、エッジ画像についてはエッジ強調処理を施し、非エッジ画像については平滑化処理を施すようにしている。したがって、エッジ強調が必要である場合には、不必要なブロックパターンを抑えたきれいなエッジ曲線を得ることができ、エッジ強調が不要である場合には、平滑化によりスムーズな画像を得ることができる。   Furthermore, according to the present invention, edge enhancement processing is performed on edge images, and smoothing processing is performed on non-edge images. Therefore, when edge enhancement is necessary, it is possible to obtain a clean edge curve that suppresses unnecessary block patterns, and when edge enhancement is unnecessary, a smooth image can be obtained by smoothing. .

更に、本発明による場合は、画像データが文字領域、網点領域、又は写真領域の何れに属するデータであるかを判定する領域判定手段を更に備えている。したがって、画像の属性を総合的に判定することができ、その判定結果に応じた処理を施すことで画像毎に適切な画質の調整を実現することができる。   Further, according to the present invention, the image forming apparatus further includes area determination means for determining whether the image data belongs to a character area, a halftone dot area, or a photo area. Therefore, the attribute of the image can be comprehensively determined, and appropriate image quality adjustment can be realized for each image by performing processing according to the determination result.

更に、本発明による場合は、エッジ画像であって、文字領域又は写真領域に属するデータについてはエッジ強調処理を施し、非エッジ画像であって、網点領域又は写真領域に属するデータについては平滑化処理を施すようにしている。したがって、エッジ強調が必要である場合には、不必要なブロックパターンを抑えたきれいなエッジ曲線を得ることができ、エッジ強調が不要である場合には、平滑化によりスムーズな画像を得ることができる。   Further, according to the present invention, edge enhancement processing is applied to data belonging to a character area or a photographic area, and smoothing is performed on data belonging to a halftone dot area or a photographic area. Processing is performed. Therefore, when edge enhancement is necessary, it is possible to obtain a clean edge curve that suppresses unnecessary block patterns, and when edge enhancement is unnecessary, a smooth image can be obtained by smoothing. .

更に、本発明による場合は、エッジ強調処理を施す場合には、所定の空間周波数域に属するデータに1より大きな実数を乗じ、平滑化処理を施す場合には、1より大きな実数で除算するようにしている。したがって、空間周波数領域の全域に亘ってパラメータを用意しておく必要がなく、回路規模を抑えることができる。特に、エッジ強調処理を施す場合には空間周波数に応じて乗じる実数を変えることで、よりエッジが効いた画像を得ることができる。   Further, according to the present invention, when edge enhancement processing is performed, data belonging to a predetermined spatial frequency region is multiplied by a real number larger than 1, and when smoothing processing is performed, division by a real number larger than 1 is performed. I have to. Therefore, it is not necessary to prepare parameters over the entire spatial frequency domain, and the circuit scale can be suppressed. In particular, when edge enhancement processing is performed, an image with more effective edges can be obtained by changing the real number to be multiplied according to the spatial frequency.

更に、本発明による場合は、画像の特徴に応じた処理を施す際、所定の空間周波数域に属するデータについて処理を施すことにより得られた画像データに基づいてシート上に画像形成を行う。したがって、例えば、エッジ境界部での不必要なブロックパターンの出現が抑えたきれいなエッジ曲線を含む画像、平滑化して得られたスムーズな画像をシート上に形成することができる。   Further, according to the present invention, when processing according to the characteristics of an image is performed, an image is formed on a sheet based on image data obtained by processing data belonging to a predetermined spatial frequency range. Therefore, for example, an image including a clean edge curve in which the appearance of an unnecessary block pattern at the edge boundary portion is suppressed, and a smooth image obtained by smoothing can be formed on the sheet.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。
実施の形態1.
図1は本発明に係る画像処理装置の内部構成を示すブロック図である。本発明に係る画像処理装置は、制御部1、画像入力部2、画像処理部3、画像出力部4、記憶部5、及び操作部6を備えている。制御部1は、前記ハードウェア各部を制御するCPUと、制御の際に必要なデータ等を一時的に保持するRAMとを備えている。記憶部5は、例えば、不揮発性の半導体メモリであり、ハードウェア各部を制御するための制御プログラム、各種データを記憶している。制御部1は装置の電源投入時等において記憶部5から制御プログラムをロードし、記憶部5内の各種データを参照しながら当該制御プログラムを実行することにより、全体として本発明に係る画像処理装置として動作させる。また、操作部6は、利用者からの操作指示を受付けるための各種ハードウェアキーを備えている。
Hereinafter, the present invention will be specifically described with reference to the drawings illustrating embodiments thereof.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing an internal configuration of an image processing apparatus according to the present invention. The image processing apparatus according to the present invention includes a control unit 1, an image input unit 2, an image processing unit 3, an image output unit 4, a storage unit 5, and an operation unit 6. The control unit 1 includes a CPU that controls each part of the hardware and a RAM that temporarily stores data necessary for the control. The storage unit 5 is, for example, a non-volatile semiconductor memory, and stores a control program and various data for controlling each unit of hardware. The control unit 1 loads a control program from the storage unit 5 when the apparatus is turned on, and executes the control program while referring to various data in the storage unit 5, whereby the image processing apparatus according to the present invention as a whole. To act as. The operation unit 6 includes various hardware keys for receiving operation instructions from the user.

画像入力部2は、原稿の画像を光学的に読取る手段であり、読取用の原稿に光を照射する光源、CCD(Charge Coupled Device)のようなイメージセンサ等を備えている。画像入力部2では、所定の読取り位置にセットされた原稿からの反射光像を当該イメージセンサに結像させ、RGBデータ(R:Red, G:Green, B:Blue)を出力する。画像入力部2が出力するRGBデータは画像処理部3へ入力される。   The image input unit 2 is a unit that optically reads an image of a document, and includes a light source that irradiates light to a document for reading, an image sensor such as a CCD (Charge Coupled Device), and the like. The image input unit 2 forms a reflected light image from the original set at a predetermined reading position on the image sensor, and outputs RGB data (R: Red, G: Green, B: Blue). The RGB data output from the image input unit 2 is input to the image processing unit 3.

画像処理部3は、画像入力部2から出力されるRGBデータに対して各種の色調整処理を行って出力用の画像データを生成する。生成した画像データは画像出力部4へ出力される。本実施の形態では、出力用の画像データとしてCMYKデータ(C : Cyan, M : Magenta, Y : Yellow, K : Black)を生成するようにしている。なお、画像処理部3の内部構成、動作等については後に詳述することとする。   The image processing unit 3 performs various color adjustment processes on the RGB data output from the image input unit 2 to generate image data for output. The generated image data is output to the image output unit 4. In the present embodiment, CMYK data (C: Cyan, M: Magenta, Y: Yellow, K: Black) is generated as image data for output. The internal configuration and operation of the image processing unit 3 will be described in detail later.

画像出力部4は、画像処理部3が出力する画像データに基づいて用紙、OHPフィルム等のシート上に画像形成を行う手段である。そのため、画像出力部4は、感光体ドラムを所定の電位に帯電させる帯電器、外部から受付けた画像データに応じてレーザ光を発して感光体ドラム上に静電潜像を生成させるレーザ書込装置、感光体ドラム表面に形成された静電潜像にトナーを供給して顕像化する現像器、感光体ドラム表面に形成されたトナー像を用紙上に転写する転写器等(不図示)を備えており、電子写真方式にて利用者が所望する画像を用紙上に形成する。なお、レーザ書込装置を用いた電子写真方式により画像形成を行う他、インクジェット方式、熱転写方式、昇華方式等により画像形成を行う構成であってもよい。   The image output unit 4 is a unit that forms an image on a sheet such as paper or an OHP film based on the image data output by the image processing unit 3. Therefore, the image output unit 4 is a charger that charges the photosensitive drum to a predetermined potential, and laser writing that generates an electrostatic latent image on the photosensitive drum by emitting laser light according to image data received from the outside. An apparatus, a developing device that supplies toner to the electrostatic latent image formed on the surface of the photosensitive drum to make it visible, a transfer device that transfers the toner image formed on the surface of the photosensitive drum onto paper (not shown), etc. And an image desired by the user is formed on a sheet by electrophotography. In addition to image formation by an electrophotographic method using a laser writing apparatus, an image formation may be performed by an inkjet method, a thermal transfer method, a sublimation method, or the like.

本実施の形態では、画像入力部2を画像の読取手段として構成し、画像出力部4を画像形成手段として構成したが、外部から画像データを受信する手段、外部に画像データを送信する手段として構成するようにしてもよく、それらを適宜に組み合わせた構成であってもよい。例えば、画像入力部2が画像の読取手段、画像出力部4が画像データの送信手段である場合には、本発明はスキャナ装置(画像読取装置)として動作することとなり、画像入力部2が画像データの受信手段、画像出力部4が画像形成手段である場合には、本発明はプリンタ装置(画像形成装置)として動作することとなる。また、画像の読取手段、画像形成手段、画像データの送受信手段を備えるデジタル複合機にも適用できることは勿論のことである。   In the present embodiment, the image input unit 2 is configured as an image reading unit and the image output unit 4 is configured as an image forming unit. However, as a unit for receiving image data from the outside and a unit for transmitting image data to the outside. You may make it comprise, and the structure which combined them suitably may be sufficient. For example, when the image input unit 2 is an image reading unit and the image output unit 4 is an image data transmission unit, the present invention operates as a scanner device (image reading device). When the data receiving unit and the image output unit 4 are image forming units, the present invention operates as a printer device (image forming device). Needless to say, the present invention can also be applied to a digital multi-function peripheral including an image reading unit, an image forming unit, and an image data transmitting / receiving unit.

図2は画像処理部3の構成を説明するブロック図である。画像処理部3は、AD変換部31、シェーディング補正部32、入力階調補正部33、領域分離処理部34、色補正部35、黒生成・下色除去部36、画質調整部37、出力階調補正部38、階調再現処理部39を備えている。   FIG. 2 is a block diagram illustrating the configuration of the image processing unit 3. The image processing unit 3 includes an AD conversion unit 31, a shading correction unit 32, an input gradation correction unit 33, a region separation processing unit 34, a color correction unit 35, a black generation / under color removal unit 36, an image quality adjustment unit 37, an output floor A tone correction unit 38 and a gradation reproduction processing unit 39 are provided.

AD変換部31は、画像入力部2から入力されたRGBデータをデジタル形式のデータに変換する。シェーディング補正部32は、AD変換部31から出力されるデジタル形式のRGBデータに対して、画像入力部2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。なお、本実施の形態では、AD変換、シェーディング補正を画像処理部3の内部で行う構成としたが、AD変換及びシェーディング補正を施して得られたデジタルRGBデータを外部から受付ける構成であってもよく、また、その場合にはAD変換部31及びシェーディング補正部32を搭載している必要がないことは勿論のことである。   The AD conversion unit 31 converts the RGB data input from the image input unit 2 into digital format data. The shading correction unit 32 performs processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the image input unit 2 on the digital RGB data output from the AD conversion unit 31. In the present embodiment, AD conversion and shading correction are performed inside the image processing unit 3, but digital RGB data obtained by performing AD conversion and shading correction may be received from the outside. Of course, in that case, the AD conversion unit 31 and the shading correction unit 32 need not be mounted.

入力階調補正部33は、シェーディング補正部32から受け取ったRGBデータのカラーバランスを整える処理を行うと共に、本画像処置装置が処理し易い濃度信号に変換し、後段の領域分離処理部34へ出力する。   The input tone correction unit 33 performs a process of adjusting the color balance of the RGB data received from the shading correction unit 32, converts the density data into a density signal that can be easily processed by the image processing apparatus, and outputs the density signal to the subsequent region separation processing unit 34. To do.

領域分離処理部34は、RGBデータに基づいて入力画像中の各画素を文字領域、網点領域、写真領域の何れかに分離するものである。領域分離処理部34は、分離結果に基づき、各画素がどの領域に属しているかを示す領域識別情報を黒生成・下色除去部36、画質調整部37、及び階調再現処理部39に出力すると共に、入力階調補正部33より出力されたRGBデータをそのまま後段の色補正部35へ出力する。領域分離の手法としては、公知の手法を用いることができる。例えば、「画像電子学会予稿90−60−04」には、網点領域では画像信号の変動が大きいこと、及び背景に比べて濃度が高いことを利用して、網点領域と非網点領域とを分離できることが記載されている。また、文字領域では、最大信号レベルと最小信号レベルとの差が大きく、小領域内の濃度が高いことを利用して、文字領域と写真領域とを分離できることが記載されている。   The region separation processing unit 34 separates each pixel in the input image into one of a character region, a halftone dot region, and a photographic region based on RGB data. Based on the separation result, the region separation processing unit 34 outputs region identification information indicating which region each pixel belongs to to the black generation / under color removal unit 36, the image quality adjustment unit 37, and the gradation reproduction processing unit 39. In addition, the RGB data output from the input tone correction unit 33 is output to the subsequent color correction unit 35 as it is. A known method can be used as the method of region separation. For example, in “Image Electronics Society Proceedings 90-60-04”, the halftone dot region and the non-halftone dot region are utilized by utilizing the fact that the fluctuation of the image signal is large in the halftone dot region and the density is higher than the background. It is described that can be separated. Further, it is described that the character area and the photographic area can be separated by utilizing the fact that the difference between the maximum signal level and the minimum signal level is large in the character area and the density in the small area is high.

色補正部35は、領域分離処理部34から出力されたRGBデータをCMYデータに変換すると共に、色再現の忠実化実現のために不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行うものである。CMYデータに変換された後、色濁りを取り除く処理が施されたデータは黒生成・下色除去部36へ出力される。   The color correction unit 35 converts the RGB data output from the region separation processing unit 34 into CMY data, and color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components for realizing faithful color reproduction. The process which removes is performed. After being converted into CMY data, the data subjected to the process of removing color turbidity is output to the black generation / under color removal unit 36.

黒生成・下色除去部36は、色補正後のCMYの3色データから黒(K)データを生成する黒生成、元のCMYデータから黒生成で得たKデータを差し引いて新たなCMYデータを生成する処理を行うものであり、CMYの3色のデータからをCMYKの4色のデータに変換する。黒生成処理の一例として、スケルトンブラックによる黒生成を行う方法が知られている。この方法では、スケルトンカーブの入力特性をy=f(x)、入力されるデータをC,M,Y、出力されるデータをC’,M’,Y’,K’、下色除去率をα(0<α<1)とすると、黒生成・下色除去処理は、K’=f{min(C,M,Y)}、C’=C−αK’、M’=M−αK’、Y’=Y−αK’のように表すことができる。   The black generation / under color removal unit 36 generates black (K) data from the CMY three-color data after color correction, and subtracts K data obtained by black generation from the original CMY data to obtain new CMY data. Is generated, and CMY three-color data is converted into CMYK four-color data. As an example of black generation processing, a method of generating black using skeleton black is known. In this method, the input characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, the output data is C ′, M ′, Y ′, K ′, and the undercolor removal rate is If α (0 <α <1), the black generation / under color removal processing is K ′ = f {min (C, M, Y)}, C ′ = C−αK ′, M ′ = M−αK ′. , Y ′ = Y−αK ′.

画質調整部37は、黒生成・下色除去部36より入力されるCMYKデータに対し、領域識別情報を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけ、粒状性劣化等を防ぐ処理を行うものである。本発明は、特にこの画質調整部37に関するものであり、所定の画素数からなるブロック毎に画像の属性についての判定を行い、文字領域かつエッジ画像に属すると判定した場合には黒文字又は色文字の再現性を高めるためにエッジ強調処理を行う。また、網点領域かつ非エッジ画像に属すると判定した場合にはモアレの発生等を抑えるために平滑化処理を行う。   The image quality adjustment unit 37 performs spatial filter processing using a digital filter on the CMYK data input from the black generation / undercolor removal unit 36 based on the region identification information, and corrects the spatial frequency characteristics to blur the output image. The processing for preventing the deterioration of graininess and the like is performed. In particular, the present invention relates to the image quality adjustment unit 37. When the attribute of the image is determined for each block having a predetermined number of pixels and it is determined that the image belongs to the character region and the edge image, the black character or the color character is determined. Edge enhancement processing is performed to improve the reproducibility of the image. Further, when it is determined that the image belongs to a halftone dot region and a non-edge image, smoothing processing is performed in order to suppress the occurrence of moire or the like.

出力階調補正部38では、濃度信号などの信号を出力先の特性に応じた網点面積率に変換する出力階調補正処理を行う。   The output gradation correction unit 38 performs an output gradation correction process for converting a signal such as a density signal into a halftone dot area ratio corresponding to the characteristics of the output destination.

階調再現処理部39では、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理を行う。例えば、領域分離処理部34にて写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化又は多値化処理を行い、領域分離処理部34にて文字に分離された領域に関しては、高周波数の再現性に適した高解像度のスクリーンでの二値化又は多値化処理を行う。   The gradation reproduction processing unit 39 performs gradation reproduction processing that finally separates an image into pixels and performs processing so that each gradation can be reproduced. For example, for a region separated into photographs by the region separation processing unit 34, binarization or multi-value processing is performed on the screen with an emphasis on gradation reproducibility, and the region separation processing unit 34 separates the characters into characters. The binarization or multi-value processing is performed on a high-resolution screen suitable for high-frequency reproducibility.

以下、画質調整部37の詳細について説明する。図3は画質調整部37の内部構成を示すブロック図である。画質調整部37は、周波数変換部371、ブロック判定部372、演算処理部373、逆周波数変換部374を備えており、前段の黒生成・下色除去部36から出力される画像データ(例えば、256階調の画像データPi(X,Y))を空間周波数成分に変換し、空間周波数成分の判定結果に応じた処理を施し、これらのデータを濃度領域に再変換した画像データ(例えば、256階調の画像データPo(X,Y))を出力する。ここで、図4の概念図に示したように、画像データPi(X,Y)は、X方向(右方向)及びY方向(下方向)の2次元マトリクス状に配置された画素によって構成された画素データのうち、Y番目のライン上のX番目の画素位置における画素データを表している。本実施の形態では、8×8画素により構成されるブロック単位の画像データを周波数変換部371に入力させ、このブロック単位で後述する各処理を行う。   Details of the image quality adjustment unit 37 will be described below. FIG. 3 is a block diagram showing the internal configuration of the image quality adjustment unit 37. The image quality adjustment unit 37 includes a frequency conversion unit 371, a block determination unit 372, an arithmetic processing unit 373, and an inverse frequency conversion unit 374, and image data (for example, output from the black generation / undercolor removal unit 36 in the previous stage) 256-gradation image data Pi (X, Y)) is converted into a spatial frequency component, processed according to the determination result of the spatial frequency component, and the image data (for example, 256) obtained by reconverting these data into a density region. The gradation image data Po (X, Y)) is output. Here, as shown in the conceptual diagram of FIG. 4, the image data Pi (X, Y) is configured by pixels arranged in a two-dimensional matrix in the X direction (right direction) and the Y direction (down direction). Among the pixel data, the pixel data at the Xth pixel position on the Yth line is represented. In the present embodiment, block unit image data composed of 8 × 8 pixels is input to the frequency conversion unit 371, and each process to be described later is performed in this block unit.

周波数変換部371は、ブロック単位で入力された画像データに対し、周波数領域への変換を行う。本実施の形態では、直交変換の1つである離散コサイン変換(DCT : Discrete Cosine Transform)を利用して周波数領域への変換(以下、DCT変換という)を行う。本実施の形態では、図4に示したように、2次元画像に対して最も左上の画素を含むブロックから右方向(X方向)にブロック単位でDCT変換を行い、ブロック単位でラインを変更しながら最終的に最も右下の画素を含む最終ブロックまでDCT変換を行う。DCT変換の式は、入力画像をAij、出力画像をBij、入力画像AijのサイズをM行N列(M,Nは正の整数)とした場合、次式のように表すことができる。   The frequency conversion unit 371 converts the image data input in units of blocks into a frequency domain. In the present embodiment, a transform to the frequency domain (hereinafter referred to as a DCT transform) is performed using a discrete cosine transform (DCT), which is one of orthogonal transforms. In the present embodiment, as shown in FIG. 4, DCT conversion is performed in block units in the right direction (X direction) from the block including the upper left pixel on the two-dimensional image, and the line is changed in block units. However, DCT conversion is finally performed up to the final block including the lowermost right pixel. The expression of DCT conversion can be expressed as the following expression when the input image is Aij, the output image is Bij, and the size of the input image Aij is M rows and N columns (M and N are positive integers).

Figure 2006155572
Figure 2006155572

周波数変換部371では、8×8画素を1ブロックとする画像データを受取り、その8×8画素のブロックについてDCT変換を行い、DCT変換された空間周波数成分Qj(S,T)をブロック判定部372及び演算処理部373へ出力する。図5は変換前後のブロックを示す概念図である。   The frequency conversion unit 371 receives image data having 8 × 8 pixels as one block, performs DCT conversion on the 8 × 8 pixel block, and uses the DCT converted spatial frequency component Qj (S, T) as a block determination unit. 372 and the arithmetic processing unit 373. FIG. 5 is a conceptual diagram showing blocks before and after conversion.

ブロック判定部372は、周波数成分判定部372a、ブロック領域判定部372b、及び処理内容判定部372cを備えており、入力された各ブロック毎の画像の特徴を検出するとともに、検出した特徴に基づき、そのブロックに対して施すべき処理(本実施の形態ではエッジ強調処理または平滑化処理)を定める。すなわち、ブロック判定部372は、本発明に係る画像処理装置の判定手段として機能する。   The block determination unit 372 includes a frequency component determination unit 372a, a block region determination unit 372b, and a processing content determination unit 372c. The block determination unit 372 detects image features for each input block, and based on the detected features. A process to be performed on the block (in this embodiment, an edge enhancement process or a smoothing process) is determined. That is, the block determination unit 372 functions as a determination unit of the image processing apparatus according to the present invention.

周波数成分判定部372aには、周波数変換部371にて空間周波数成分に変換されたブロック単位のデータが入力され、それぞれのブロック内において直流成分の近傍位置での空間周波数成分の大きさを判定する。図6は空間周波数成分に変換された後のブロックを示す概念図である。本実施の形態では、8×8画素のブロックからなる画像データをDCT変換することにより、8×8のマトリクスサイズを有する空間周波数成分(DCT係数)のデータを取得するようにしている。8×8個の要素のうち、左上の位置に対応する成分が直流成分であり、それ以外の位置に対応する成分が交流成分となる。周波数成分判定部372aは直流成分の近傍の位置における周波数成分を表すDCT係数の大きさを求め、それぞれ少なくとも1つが予め定めた閾値よりも大きい否かを判定する。   The block component data converted into the spatial frequency component by the frequency conversion unit 371 is input to the frequency component determination unit 372a, and the size of the spatial frequency component at a position near the DC component in each block is determined. . FIG. 6 is a conceptual diagram showing a block after being converted into a spatial frequency component. In the present embodiment, data of a spatial frequency component (DCT coefficient) having a matrix size of 8 × 8 is obtained by performing DCT conversion on image data composed of blocks of 8 × 8 pixels. Of the 8 × 8 elements, the component corresponding to the upper left position is a DC component, and the components corresponding to other positions are AC components. The frequency component determination unit 372a obtains the magnitude of the DCT coefficient representing the frequency component at a position in the vicinity of the direct current component, and determines whether or not at least one is greater than a predetermined threshold value.

例えば、図6の太線で囲まれるエッジブロック判定領域(すなわち、3×3のマトリクスサイズを有する領域)において、直流成分の位置の座標を(s0,t0)、その位置での空間周波数成分をQ(s0,t0)、その右隣の位置の座標を(s0+1,t0)、その位置での空間周波数成分をQ(s0+1,t0)、更にその右隣の位置の座標を(s0+2,t0)、その位置での空間周波数成分をQ(s0+2,t0)とし、一行下がって左側から順に各位置に対応する空間周波数成分をそれぞれQ(s0,t0+1)、Q(s0+1,t0+1)、Q(s0+2,t0+1)、更に一行下がって左側から順に各位置に対応する空間周波数成分をそれぞれQ(s0,t0+2)、Q(s0+1,t0+2)、Q(s0+2,t0+2)とした場合、エッジを含むブロック(エッジブロック)であるか否かの判定を、予め定めた閾値α(αは正の定数)を用いた以下の式により行う。   For example, in the edge block determination area surrounded by the thick line in FIG. 6 (that is, an area having a matrix size of 3 × 3), the coordinate of the position of the DC component is (s0, t0), and the spatial frequency component at that position is Q (S0, t0), the coordinates of the right next position are (s0 + 1, t0), the spatial frequency component at that position is Q (s0 + 1, t0), and the coordinates of the right next position are (s0 + 2, t0), The spatial frequency component at that position is defined as Q (s0 + 2, t0), and the spatial frequency components corresponding to the respective positions are sequentially moved down from the left side by Q (s0, t0 + 1), Q (s0 + 1, t0 + 1), Q (s0 + 2, t0 + 1), and the spatial frequency components corresponding to the respective positions in order from the left side further down one line are Q (s0, t0 + 2), Q (s0 + 1, t0 + 2), Q (s0 + 2, t0 + 2), and so on. If the determination of whether a block (edge blocks) including an edge, (the α positive constant) threshold α a predetermined performed by the following equation was used.

|Q(s0+n,t0+m)|>α、ここでn,m=0,1,2、かつn=m≠0   | Q (s0 + n, t0 + m) |> α, where n, m = 0, 1, 2, and n = m ≠ 0

上記の判定式を満たすn,mの組が存在する場合、すなわち、直流成分以外の空間周波数成分(交流成分)のうち、何れかの大きさが閾値αより大きいと判断される場合には処理対象のブロック(以下、処理ブロックとする)がエッジブロックであると判定する。また、交流成分の何れの大きさも閾値α以下であると判断される場合には処理ブロックが非エッジブロックであると判定する。すなわち、周波数成分判定部372aは画像の特徴(エッジ成分を含むか否か)を検出する検出手段として機能し、この周波数成分判定部372aによる判定結果は処理内容判定部372cへ出力される。   Processing is performed when there is a set of n and m satisfying the above-described determination formula, that is, when any of the spatial frequency components (AC components) other than the DC component is determined to be larger than the threshold value α. It is determined that the target block (hereinafter referred to as a processing block) is an edge block. Further, when it is determined that any of the AC components is equal to or less than the threshold value α, it is determined that the processing block is a non-edge block. That is, the frequency component determination unit 372a functions as a detection unit that detects image characteristics (whether or not an edge component is included), and the determination result by the frequency component determination unit 372a is output to the processing content determination unit 372c.

ここで、前述した手法によりブロックにエッジが含まれているか否かを判定できる理由について説明する。ある自然画像に対してDCT変換後の各ブロックのなかで大きな値をもつものほど高い輝度を割り当てるとすると、実行後の結果から低周波数側に相当する成分(各ブロックの左上部分)の輝度が高くなる。すなわち、低周波数成分が多くの情報量を持つことになる。これは、相関の強い信号は、周波数上で見ると低周波数領域に信号の電力が集中することが知られている。このことは、各DCT係数において電力が集中する係数と、あまり集中しない係数とが存在することを意味する。換言すると、各DCT係数の大きさに大きな偏りが生じることになる。ある自然画像に対してDCT変換を行なって、DCT係数を見てみると直流成分のDCT係数がとくに大きな値を持ち、交流成分のDCT係数においても低周波成分の値が大きいことが分かる。   Here, the reason why it can be determined whether or not an edge is included in the block by the above-described method will be described. If a higher luminance is assigned to a natural image having a larger value in each block after DCT conversion, the luminance of the component corresponding to the low frequency side (upper left part of each block) is determined from the result after execution. Get higher. That is, the low frequency component has a large amount of information. As for this, it is known that the signal power concentrates in a low frequency region when the signal having a strong correlation is viewed in frequency. This means that there is a coefficient in which power is concentrated in each DCT coefficient and a coefficient in which power is not concentrated. In other words, a large deviation occurs in the size of each DCT coefficient. When DCT conversion is performed on a certain natural image and the DCT coefficient is seen, it can be seen that the DCT coefficient of the DC component has a particularly large value, and the value of the low frequency component is also large in the DCT coefficient of the AC component.

一方、ソリッド画像(エッジ成分を持たない濃度が均一な画像)にDCT変換を行なった場合、直流成分しか値をもたず、直流成分の周辺の低周波数成分は0となる。これに対して、エッジ成分を有する、あるいは、濃度の濃淡を有するなどの特徴量をもつ画像(自然画像など)の場合では、直流成分の周辺の低周波成分にも大きな値を示し、これらの値によって、原画像が特徴量をもっているかどうかの判断材料として使用できる。また、主走査方向にエッジ成分が目立つ場合や副走査方向にエッジ成分が目立つ場合などに、直流成分の右隣りの交流成分や真下の交流成分の値が影響を受けて大きくなる。以上の理由から、低周波数成分の絶対値の大きさを調べることにより、エッジ成分を含むか否かの判定をすることができる。   On the other hand, when DCT conversion is performed on a solid image (an image having no edge component and a uniform density), only the DC component has a value, and the low frequency components around the DC component are zero. On the other hand, in the case of an image having an edge component or a feature amount (such as a natural image) having a density, the low frequency component around the direct current component also shows a large value. Depending on the value, it can be used as a material for determining whether or not the original image has a feature value. Further, when an edge component is conspicuous in the main scanning direction or an edge component is conspicuous in the sub-scanning direction, the value of the alternating current component to the right of the direct current component or the direct current alternating current component is affected and increases. For the above reasons, it is possible to determine whether or not an edge component is included by examining the magnitude of the absolute value of the low frequency component.

なお、上記の判定式で用いる閾値αは任意に設定することができる。例えば、閾値αの設定値が小さい場合には処理対象ブロックがエッジブロックであると判定され易く、閾値αの設定値が大きい場合には処理ブロックがエッジブロックであると判定されにくくなる。ここでは、一つの例としてα=64を設定することができる。このαを設定しておくことにより、処理ブロック単位でそれぞれ濃度領域での画像がエッジ成分を含んでいるか否かの判定材料として用いることができる。また、ブロック領域判定部372bの判定結果に応じて閾値αを設定するようにしてもよい。例えば、文字領域である場合にはエッジブロックであることが容易に判定されるような閾値α1(例えば、α1=32)を設定し、網点領域である場合にはエッジブロックであることが容易に判定されないような閾値α2(例えば、α2=96)を設定することも可能である。更に、入力する画像に応じてユーザ自身が操作部6を通じて閾値αを設定する構成であってもよい。   Note that the threshold α used in the above-described determination formula can be arbitrarily set. For example, when the setting value of the threshold value α is small, it is easy to determine that the processing target block is an edge block, and when the setting value of the threshold value α is large, it is difficult to determine that the processing block is an edge block. Here, α = 64 can be set as an example. By setting α, it can be used as a material for determining whether an image in the density region includes an edge component for each processing block. Further, the threshold value α may be set according to the determination result of the block area determination unit 372b. For example, a threshold value α1 (for example, α1 = 32) that can be easily determined to be an edge block is set in the case of a character area, and an edge block is easily set in the case of a dot area. It is also possible to set a threshold value α2 (for example, α2 = 96) that is not determined as follows. Furthermore, the configuration may be such that the user himself sets the threshold value α through the operation unit 6 in accordance with the input image.

また、エッジブロック判定領域のマトリクスサイズを本実施の形態では3×3画素としたが、ハードウェアの条件が許すのであれば、低周波数領域にて更に広い範囲まで拡げるようにしてもよい。   Further, although the matrix size of the edge block determination area is 3 × 3 pixels in the present embodiment, it may be expanded to a wider range in the low frequency area if the hardware condition permits.

ブロック領域判定部372bは、領域分離処理部34から画素毎の領域識別情報を受け取り、ブロック全体に対して領域の判定を行う。このブロック領域判定部372bにおけるブロック全体の領域判定は、画素単位で判定された領域識別情報を基に処理ブロック内(8×8画素)で文字領域に属する画素、網点領域に属する画素、写真領域に属する画素の3種類の画素をカウントし、それぞれの比率を求め、その結果に基づいてブロック全体の判定を行うものである。   The block region determination unit 372b receives region identification information for each pixel from the region separation processing unit 34, and determines a region for the entire block. The block area determination unit 372b determines the area of the entire block based on the area identification information determined in units of pixels, the pixels belonging to the character area, the pixels belonging to the halftone dot area, and the photograph within the processing block (8 × 8 pixels) Three types of pixels belonging to the region are counted, their ratios are obtained, and the entire block is determined based on the result.

なお、本実施の形態では、領域分離処理部34にて画素毎に文字領域、網点領域、写真領域に分離し、領域分離処理部34から出力される領域分離情報に基づき、ブロック領域判定部372bにてブロック単位の領域分離を行うようにしたが、領域分離処理部34においてブロック単位の領域分離を行い、分離結果を処理内容判定部372cに入力させる構成であってもよい。この場合、画質調整部37にブロック領域判定部372bを備えている必要がないことは勿論のことである。   In the present embodiment, the region separation processing unit 34 separates each pixel into a character region, a halftone dot region, and a photographic region, and based on the region separation information output from the region separation processing unit 34, a block region determination unit Although the region separation in block units is performed in 372b, the region separation processing unit 34 may perform region separation in block units, and the separation result may be input to the processing content determination unit 372c. In this case, it is needless to say that the image quality adjustment unit 37 does not need to include the block area determination unit 372b.

図7はブロック領域判定部372bで用いる判定基準と判定結果との関係をまとめた図表である。ブロック領域判定部372bは、処理ブロックを構成する64画素のうち、文字領域に属すると判定された画素、網点領域に属すると判定された画素、及び写真領域に属すると判定された画素がどれくらいの割合で含まれているかを判定する。具体的には、領域A、領域B、領域Cの3つの領域が存在する場合(ただし、領域A、領域B、領域Cは文字領域、網点領域、写真領域の何れかに対応する)であって、その内の領域Aが処理ブロックの60%を占める場合には、その処理ブロックは領域Aに属する画像であると判定し、各領域A,B,Cの占める割合が60%未満である場合には、処理ブロックはその他の画像であると判定する。また、領域A、領域Bの2つの領域が存在する場合であって、その内の領域Aが処理ブロックの70%を占める場合には、その処理ブロックは領域Aに属する画像であると判定し、各領域A,Bの占める割合が70%未満である場合には、処理ブロックはその他の画像であると判定する。更に、領域Aのみが存在する場合には、その処理ブロックは領域Aに属する画像であると判定する。   FIG. 7 is a table summarizing the relationship between the determination criteria used in the block area determination unit 372b and the determination results. The block area determination unit 372b determines how many pixels determined to belong to the character area, pixels determined to belong to the halftone dot area, and pixels determined to belong to the photograph area among the 64 pixels constituting the processing block. It is determined whether it is included in the ratio of. Specifically, when there are three regions, region A, region B, and region C (however, region A, region B, and region C correspond to any of a character region, a halftone dot region, and a photo region). If the area A occupies 60% of the processing block, it is determined that the processing block is an image belonging to the area A, and the ratio of each area A, B, C is less than 60%. If there is, it is determined that the processing block is another image. Further, when there are two areas, area A and area B, and area A occupies 70% of the processing block, it is determined that the processing block is an image belonging to area A. If the ratio of the areas A and B is less than 70%, it is determined that the processing block is another image. Further, when only the area A exists, it is determined that the processing block is an image belonging to the area A.

なお、前述した判定基準は処理ブロックが属する画像領域を判定するための一例であり、好ましい画像が得られるように適切な値を設定すればよい。   The above-described determination criterion is an example for determining the image region to which the processing block belongs, and an appropriate value may be set so that a preferable image can be obtained.

このように、領域判定手段としてのブロック領域判定部372bでは、処理ブロック内で計算された判定画素が多く偏っている場合は、偏っているとされる領域を判定結果とするが、ブロック内に2つの領域が同じ程度の割合で存在する場合には、1つの領域に属すると判定せずにその他の領域であると判定し、後段の処理内容判定部372cへ判定結果を出力する。   As described above, in the block area determination unit 372b as the area determination means, when many determination pixels calculated in the processing block are biased, the area which is determined to be biased is determined as a determination result. If the two areas exist at the same rate, it is determined not to belong to one area, but is determined to be another area, and the determination result is output to the processing content determination unit 372c in the subsequent stage.

処理内容判定部372cでは、周波数成分判定部372aによる判定結果と、ブロック領域判定部372bによる判定結果とを組み合わせて総合判定を行い、後述する演算処理部373での処理内容を定める。図8は周波数成分判定部372aによる判定結果とブロック領域判定部372bによる判定結果との組み合わせにより定まる処理内容をまとめた図表である。この図表で定められているように、領域判定によりブロック全体が文字領域であると判定された場合であって、周波数成分の判定結果がエッジブロックを示す場合には、演算処理部373で実行すべき処理をエッジ強調処理と判定する。また、領域判定によりブロック全体が文字領域であると判定された場合であって、周波数成分の判定結果が非エッジブロックを示す場合には、空間周波数成分Qj(S,T)に対して施す処理が選択されず、演算処理部373ではそのまま空間周波数成分Qj(S,T)のデータを逆周波数変換部374へ送出する処理が行われる。   The processing content determination unit 372c performs comprehensive determination by combining the determination result by the frequency component determination unit 372a and the determination result by the block region determination unit 372b, and determines the processing content in the arithmetic processing unit 373 described later. FIG. 8 is a table summarizing the processing contents determined by the combination of the determination result by the frequency component determination unit 372a and the determination result by the block region determination unit 372b. As determined in this chart, when the entire block is determined to be a character region by region determination and the frequency component determination result indicates an edge block, the calculation processing unit 373 executes the determination. The power processing is determined as edge enhancement processing. Further, when it is determined by the area determination that the entire block is a character area, and the determination result of the frequency component indicates a non-edge block, processing to be performed on the spatial frequency component Qj (S, T) Is not selected, and the arithmetic processing unit 373 performs processing for sending the data of the spatial frequency component Qj (S, T) to the inverse frequency conversion unit 374 as it is.

ブロック全体の領域判定結果が文字領域であり、周波数成分の判定結果が非エッジブロックである場合としては、文字の外側のエッジ部分だけでなく、文字の内側も含んだ文字領域として誤判定される場合も含んでいる。すなわち、本実施の形態で用いるブロックのサイズ(8×8画素)よりも太い文字(例えば、幅が10画素くらいの太さの文字)が含まれている場合には、その内側も文字領域と誤判定してしまう場合があるが、周波数成分でのエッジ判定を行うことにより誤判定を防止することができる。   When the area determination result of the entire block is a character area and the frequency component determination result is a non-edge block, it is erroneously determined as a character area that includes not only the edge portion outside the character but also the inside of the character. Including cases. That is, when a character (for example, a character with a width of about 10 pixels) thicker than the block size (8 × 8 pixels) used in the present embodiment is included, the inside of the character region is also a character region. Although erroneous determination may occur, erroneous determination can be prevented by performing edge determination with frequency components.

また、領域判定によりブロック全体が網点領域であると判定された場合であって、周波数成分の判定結果が非エッジブロックを示す場合には、演算処理部373で実行すべき処理を平滑化処理と判定する。領域判定により網点領域であると判定された場合であって、周波数成分の判定結果がエッジブロックを示す場合には、空間周波数成分Qj(S,T)に対して施す処理が選択されず、演算処理部373ではそのまま空間周波数成分Qj(S,T)のデータを逆周波数変換部374へ送出する処理が行われる。   In addition, when it is determined by the region determination that the entire block is a halftone dot region and the determination result of the frequency component indicates a non-edge block, the processing to be executed by the arithmetic processing unit 373 is smoothed. Is determined. If it is determined by the region determination that the region is a halftone dot region and the determination result of the frequency component indicates an edge block, the processing to be performed on the spatial frequency component Qj (S, T) is not selected, The arithmetic processing unit 373 performs processing for sending the data of the spatial frequency component Qj (S, T) to the inverse frequency conversion unit 374 as it is.

網点領域には低周波数成分が含まれないため、通常、周波数成分の判定結果は非エッジブロックを示す。しかし、地図上に存在する文字のように網点領域に文字が存在する場合、又は網点文字、色文字のように網点で構成された文字の場合には領域判定で網点領域と判定され、周波数成分の判定結果ではエッジブロックと判定され得る。この場合にエッジ強調処理を行うとモアレが発生する虞があり、しかも、平滑化処理を行うと文字部分がぼやける虞があるため、これらの処理を施さないことが望ましい。このように、領域判定の判定結果と周波数成分の判定結果とを用いて総合的に判定することにより、判定精度を上げることができ、最適な処理を実行することが可能である。   Since the halftone area does not include low frequency components, the frequency component determination result usually indicates a non-edge block. However, if there is a character in a halftone dot area, such as a character on the map, or a character composed of halftone dots, such as a halftone dot character or a color character, the area is determined to be a halftone dot area. Then, the frequency component determination result can be determined as an edge block. In this case, if the edge emphasis process is performed, moire may occur, and if the smoothing process is performed, the character portion may be blurred. Therefore, it is desirable not to perform these processes. As described above, by making a comprehensive determination using the determination result of the region determination and the determination result of the frequency component, it is possible to increase the determination accuracy and execute an optimal process.

また、領域判定によりブロック全体が写真領域であると判定された場合であって、周波数成分の判定結果がエッジブロックを示す場合には、演算処理部373で実行すべき処理をエッジ強調処理と判定する。領域判定によりブロック全体が写真領域であると判定された場合であって、周波数成分の判定結果が非エッジブロックを示す場合には、演算処理部373で実行すべき処理を平滑化処理と判定する。   Further, when it is determined by the area determination that the entire block is a photographic area, and the determination result of the frequency component indicates an edge block, the process to be executed by the arithmetic processing unit 373 is determined as the edge enhancement process. To do. If it is determined by region determination that the entire block is a photographic region, and the determination result of the frequency component indicates a non-edge block, the processing to be executed by the arithmetic processing unit 373 is determined as smoothing processing. .

更に、領域判定によりブロック全体が前述した何れの領域にも該当しないと判定された場合、すなわち、その他の領域と判定された場合、空間周波数成分Qj(S,T)に対して施す処理が選択されず、演算処理部373ではそのまま空間周波数成分Qj(S,T)のデータを逆周波数変換部374へ送出する処理が行われる。   Furthermore, when it is determined by the area determination that the entire block does not correspond to any of the above-described areas, that is, when it is determined that it is another area, processing to be applied to the spatial frequency component Qj (S, T) is selected. Instead, the arithmetic processing unit 373 performs processing for sending the data of the spatial frequency component Qj (S, T) to the inverse frequency conversion unit 374 as it is.

例えば、ブロック内に文字領域と網点領域とが同程度含まれている場合、エッジ強調処理を施すと網点領域も強調され、平滑化処理がなされている網点領域との境界部分で違和感が生じる。一方、平滑化処理を行う場合は、文字領域に対して境界部分での違和感が生じる。従って、このような場合には、エッジ強調処理、平滑化処理の双方を行わないことにより画質劣化を防止することができる。   For example, if the text area and halftone dot area are included to the same extent in the block, the edge emphasis process will also emphasize the halftone dot area, and there will be a sense of incongruity at the boundary with the smoothed dot area. Occurs. On the other hand, when the smoothing process is performed, a sense of incongruity at the boundary portion occurs with respect to the character area. Therefore, in such a case, image quality deterioration can be prevented by not performing both edge enhancement processing and smoothing processing.

演算処理部373は、ブロック判定部372から出力される判定結果を受けてエッジ強調処理あるいは平滑化処理を行うか、又は周波数変換部371から出力される空間周波数成分Qj(S,T)のデータをそのまま逆周波数変換部374へ送出する処理を行う。   The arithmetic processing unit 373 receives the determination result output from the block determination unit 372, performs edge enhancement processing or smoothing processing, or data of the spatial frequency component Qj (S, T) output from the frequency conversion unit 371. Is sent to the inverse frequency converter 374 as it is.

まず、演算処理部373にてエッジ強調処理を行う場合について説明する。図9はエッジ強調処理を施す領域について説明する説明図である。本実施の形態では8×8画素の処理ブロックのうち、垂直方向のみの成分を有するDCT係数、水平方向のみの成分を有するDCT係数、及び両者の交点位置に対応するDCT係数について演算処理を施すことによりエッジ強調処理を実行する。この演算処理を施す領域については、例えば、記憶部5内に予め設定されている。   First, the case where the edge enhancement process is performed by the arithmetic processing unit 373 will be described. FIG. 9 is an explanatory diagram for explaining a region to which edge enhancement processing is performed. In the present embodiment, arithmetic processing is performed on a DCT coefficient having a component only in the vertical direction, a DCT coefficient having a component only in the horizontal direction, and a DCT coefficient corresponding to the position of the intersection of the 8 × 8 pixel processing blocks. As a result, the edge enhancement process is executed. For example, the area on which the calculation process is performed is set in advance in the storage unit 5.

エッジ強調処理を行う場合の演算処理では、処理ブロックの行番号と列番号とを加算した値、及び予め定めた定数をDCT係数Qj(S,T)に乗じることによって変換後のDCT係数Qk(S,T)を取得する。図10の概念図には、演算処理を施す領域において処理ブロックの行番号と列番号とを加算した値を示している。演算処理を施す領域においてDCT係数Qk(S,T)は次式のように表すことができる。   In the arithmetic processing in the case of performing edge emphasis processing, a DCT coefficient Qk (() after conversion is obtained by multiplying the DCT coefficient Qj (S, T) by a value obtained by adding the row number and column number of the processing block and a predetermined constant. S, T). The conceptual diagram of FIG. 10 shows a value obtained by adding the row number and column number of the processing block in the area where the arithmetic processing is performed. The DCT coefficient Qk (S, T) can be expressed as follows in the region where the arithmetic processing is performed.

Qk(S,T)=Qj(S,T)×(行番号と列番号との加算値)×(定数)   Qk (S, T) = Qj (S, T) × (added value of row number and column number) × (constant)

なお、演算処理を施さない領域においては、入力されたQj(S,T)をそのまま、演算処理後の値としている。ここで、前述した式の定数としては、例えば、0.35を用いることができる。ただし、この値は一例にすぎず、ある微小な値で強調されるような値であればよい。また、この値によって強調されるため、エッジが強調されすぎないかどうかなどの全体のバランスを考え、実際の出力画像などを用いて画質の評価を行いながら決定するとよい。このような処理を行った場合でも、直流成分については変換しないため、ブロック全体の平均濃度は維持される。   In the region where the arithmetic processing is not performed, the input Qj (S, T) is used as the value after the arithmetic processing as it is. Here, for example, 0.35 can be used as the constant of the above-described equation. However, this value is only an example and may be a value that is emphasized by a small value. In addition, since it is emphasized by this value, it may be determined while evaluating the image quality using an actual output image in consideration of the overall balance such as whether or not the edge is overemphasized. Even when such processing is performed, since the DC component is not converted, the average density of the entire block is maintained.

次いで、演算処理部373にて平滑化処理を行う場合について説明する。図11は平滑化処理を施す領域について説明する説明図である。本実施の形態では、8×8画素の処理ブロックのうち、直流成分とその周辺とを除く領域において各DCT係数に演算処理を施し、平滑化処理を行う。より具体的には、DCT係数Qj(S,T)のうち、3<S+T≦14を満たす位置に対応したDCT係数Qj(S,T)について演算処理を施す。この演算処理を施す領域については、例えば、記憶部5内に予め設定されている。   Next, the case where the arithmetic processing unit 373 performs the smoothing process will be described. FIG. 11 is an explanatory diagram for explaining a region on which the smoothing process is performed. In the present embodiment, among the 8 × 8 pixel processing blocks, each DCT coefficient is subjected to arithmetic processing in a region excluding the DC component and its periphery, and smoothing processing is performed. More specifically, arithmetic processing is performed on the DCT coefficient Qj (S, T) corresponding to the position satisfying 3 <S + T ≦ 14 in the DCT coefficient Qj (S, T). For example, the area on which the calculation process is performed is set in advance in the storage unit 5.

図12は平滑化処理の際に用いる2次元マトリクスデータの一例を示す概念図である。図12に示したマトリクスデータは8×8のDCT係数のそれぞれに対応する値M(S,T)を持ち、0≦S+T≦3におけるM(S,T)の値は1であり、3<S+T≦14におけるM(S,T)は1以上の値をとる。   FIG. 12 is a conceptual diagram showing an example of two-dimensional matrix data used in the smoothing process. The matrix data shown in FIG. 12 has a value M (S, T) corresponding to each of 8 × 8 DCT coefficients, the value of M (S, T) in 0 ≦ S + T ≦ 3 is 1, and 3 < M (S, T) in S + T ≦ 14 takes a value of 1 or more.

図12に示した2次元マトリクスデータは、一般にコントラスト感度関数(以下ではCSFとする。CSF : Contrast Sensitive Function)の特性、すなわち、人間の視覚特性を反映した特性を有している。一般に人間のコントラストに対する感度は、空間周波数に依存しており、人間の知覚系は一種のバンドパスフィルタと考えられる。例えば、白黒の縞模様を考えた場合、連続する縞と縞との間隔によって、人間の縞模様に対する感度が変化する。縞の間隔が非常に小さい場合、人間は縞模様を知覚することが困難になる。M(S,T)の値は、例えば、図12のハッチングで示された周波数成分を中心に、人間のコントラストに対する感度に応じて同心円状に変化するような値となっている。   The two-dimensional matrix data shown in FIG. 12 generally has a contrast sensitivity function (hereinafter referred to as CSF: CSF: Contrast Sensitive Function) characteristic, that is, a characteristic reflecting human visual characteristics. In general, the sensitivity to human contrast depends on the spatial frequency, and the human perception system is considered as a kind of band-pass filter. For example, when considering a black and white striped pattern, the sensitivity to a human striped pattern varies depending on the interval between successive striped patterns. When the interval between the stripes is very small, it becomes difficult for a human to perceive the stripe pattern. The value of M (S, T) is, for example, a value that changes concentrically according to the sensitivity to human contrast, centering on the frequency component indicated by hatching in FIG.

演算処理部373は、DCT係数Qj(S,T)に対して演算処理を施して平滑化処理を行う場合、単位ブロック毎に周波数成分データSj(S、T)を2次元マトリクスデータの対応する要素M(S,T)で除算することにより、演算後のDCT係数Qk(S,T)を得る。すなわち、平滑化処理は下記の演算を実行することにより実現される。   When the arithmetic processing unit 373 performs arithmetic processing on the DCT coefficient Qj (S, T) and performs smoothing processing, the arithmetic processing unit 373 corresponds the frequency component data Sj (S, T) to the two-dimensional matrix data for each unit block. The DCT coefficient Qk (S, T) after the calculation is obtained by dividing by the element M (S, T). That is, the smoothing process is realized by executing the following calculation.

Qk(S,T)=Sj(S,T)/M(S,T)   Qk (S, T) = Sj (S, T) / M (S, T)

CSFでDCT係数Qj(S,T)を除算した場合、コントラストに対する感度が高い周波数成分のDCT係数が、コントラストに対する感度が低い周波数成分より大きな値で除されるため、効果的に平滑化されることとなる。なお、Qk(S,T)を小数点以下まで求めても良い。   When the DCT coefficient Qj (S, T) is divided by CSF, the DCT coefficient of the frequency component having high sensitivity to contrast is divided by a larger value than the frequency component having low sensitivity to contrast, and thus smoothed effectively. It will be. Note that Qk (S, T) may be obtained up to the decimal point.

本実施の形態によれば、単位ブロックがエッジ部分を有しない場合、単位ブロックが滑らかになるように2次元マトリクスを用いて平滑化処理され、単位ブロックがエッジ部分を有している場合、エッジ部分が強調される。従って、画像全体において、エッジ部分は強調し、エッジ部分を有しない平坦な画像部分はよりスムーズな画像を得ることができ、
原画像の特徴部分を良好に保つことができる。
According to the present embodiment, when a unit block does not have an edge portion, smoothing processing is performed using a two-dimensional matrix so that the unit block is smooth, and when a unit block has an edge portion, an edge The part is emphasized. Therefore, in the entire image, the edge portion is emphasized, and a flat image portion having no edge portion can obtain a smoother image,
The characteristic part of the original image can be kept good.

なお、平滑化処理に使用する2次元マトリクスデータは、図12に示すものに限らず、人間のコントラストに対する感度が低い周波数成分に小さな値を設定し、コントラストに対する感度が高い周波数成分に大きな値を設定した2次元マトリクス、言い換えれば、低周波成分は維持し、8×8画素のブロック内において、同心円状に外側のDCT係数がより強く抑制されるような2次元マトリクスを用いても良い。例えば、ガウス分布となる2次元マトリクスデータを用いることも可能である。   Note that the two-dimensional matrix data used for the smoothing process is not limited to that shown in FIG. 12, and a small value is set for a frequency component having low sensitivity to human contrast, and a large value is set for a frequency component having high sensitivity to contrast. A set two-dimensional matrix, in other words, a low-frequency component may be maintained, and a two-dimensional matrix in which the outer DCT coefficients are more strongly suppressed concentrically within an 8 × 8 pixel block may be used. For example, two-dimensional matrix data having a Gaussian distribution can be used.

また、実施の形態においては、3<S+T≦14の周波数成分を変更しているが、これに限るものではなく、1<S+T≦14の周波数成分を変更するように構成しても良い。   In the embodiment, the frequency component of 3 <S + T ≦ 14 is changed. However, the present invention is not limited to this, and the frequency component of 1 <S + T ≦ 14 may be changed.

ブロック判定部372において、前述したエッジ強調処理も平滑化処理も行わないと判定された場合、DCT係数Qj(S,T)に対して演算処理を施すことなく、後段の逆周波数変換部374へデータを出力する。   When the block determination unit 372 determines that neither the edge enhancement process nor the smoothing process described above is performed, the DCT coefficient Qj (S, T) is not subjected to the calculation process, and the subsequent frequency conversion unit 374 is performed. Output data.

逆周波数変換部374は、演算処理部373から出力されるDCT係数Qk(S,T)に逆周波数変換を行って、濃度領域データ(画像データ)への変換を行う。2次元DCT変換の逆変換の式を用いて逆周波数変換を行う。入力画像においてエッジ成分を含んでいるブロックはエッジ強調処理が行われているので、よりメリハリが効いたはっきりした画像を得ることができ、エッジ成分を含んでいない画像に関しては視覚特性を考慮したスムージング処理が行われる。強調処理は、直流成分以外の周波数全域を強調するのではなく、強調領域を限定しているため、曲線上にあるエッジ境界部での不必要なブロックパターンの出現を抑えて、きれいなエッジ曲線を得ることができる。   The inverse frequency conversion unit 374 performs inverse frequency conversion on the DCT coefficient Qk (S, T) output from the arithmetic processing unit 373 and converts it to density region data (image data). Inverse frequency transformation is performed using the inverse transformation formula of the two-dimensional DCT transformation. In the input image, blocks that contain edge components are edge-enhanced, so a sharper and clearer image can be obtained. For images that do not contain edge components, smoothing that takes into account visual characteristics Processing is performed. Since the emphasis process does not emphasize the entire frequency range other than the DC component, but limits the emphasis region, it suppresses the appearance of unnecessary block patterns at the edge boundary on the curve and creates a clean edge curve. Obtainable.

実施の形態2.
実施の形態1では、周波数成分判定部372aにおいて直流成分周辺の空間周波数成分の大きさを調べ、処理ブロックがエッジブロックであるか否かを判定する構成としたが、ブロック全体の平均濃度を表す直流成分の大きさも判定要素に加える構成としてもよい。例えば、処理しようとするブロックがエッジ成分を多く含む場合には、通常、直流成分周辺の成分は大きな値を持つようになる。そのため、エッジブロックの判定には、直流成分の周辺の値の大きさを調べ、これらの値が所定の値以上であればエッジブロックであると判定することができる。また、画像のエッジ部分は背景との濃度差によっても認識に差が生じる。例えば、ハイライト上の薄い文字などを文字として認識させ、はっきりと見せたい場合がある。この場合、薄い文字であるためにエッジブロックと判定されにくく、エッジ強調処理が行えず、文字として見づらくなる場合がある。そこで、本実施の形態では、ハイライト上の薄い文字でもエッジブロックと判定できるようにブロック全体の平均濃度を考慮して判定を行う。
Embodiment 2. FIG.
In the first embodiment, the frequency component determination unit 372a checks the size of the spatial frequency component around the DC component and determines whether or not the processing block is an edge block, but represents the average density of the entire block. The magnitude of the DC component may be added to the determination element. For example, when the block to be processed includes many edge components, the components around the DC component usually have a large value. Therefore, in determining the edge block, the magnitudes of the values around the DC component are examined, and if these values are equal to or greater than a predetermined value, it can be determined that the block is an edge block. In addition, the edge portion of the image has a difference in recognition due to the density difference from the background. For example, there is a case where a thin character or the like on a highlight is recognized as a character so that it can be clearly seen. In this case, since it is a thin character, it is difficult to determine it as an edge block, the edge emphasis process cannot be performed, and it may be difficult to see the character as a character. Therefore, in the present embodiment, determination is performed in consideration of the average density of the entire block so that even a thin character on the highlight can be determined as an edge block.

本実施における画像処理装置のハードウェア構成は実施の形態1に示したものと同様である。すなわち、画質調整部37内のブロック判定部372は、周波数成分判定部372a、ブロック領域判定部372b、及び処理内容判定部372cを備えている。これらの判定部による判定結果によって、最終的に処理されるブロック毎の画像の特徴を検出するとともに、検出した特徴に基づき、そのブロックに対して施すべき処理(本実施の形態では、エッジ強調処理または平滑化処理)を定める。なお、領域識別情報を用いない場合には、ブロック領域判定部372bは無くてもよい。   The hardware configuration of the image processing apparatus in this embodiment is the same as that shown in the first embodiment. That is, the block determination unit 372 in the image quality adjustment unit 37 includes a frequency component determination unit 372a, a block region determination unit 372b, and a processing content determination unit 372c. The feature of the image for each block to be finally processed is detected based on the determination result by these determination units, and the processing to be performed on the block based on the detected feature (in this embodiment, edge enhancement processing) Or smoothing processing). Note that when the area identification information is not used, the block area determination unit 372b may be omitted.

周波数成分判定部372aには、周波数変換部371にて空間周波数成分に変換されたブロック単位のデータが入力される。周波数成分判定部372aは、それぞれのブロック内において直流成分近傍の位置における周波数成分を表すDCT係数の大きさを求め、これらの値に対して処理ブロックの直流成分の値を乗算し、少なくとも1つが予め定めた閾値β1(β1は正の整数)よりも大きいか否かを判定する。   The block component data converted into the spatial frequency component by the frequency conversion unit 371 is input to the frequency component determination unit 372a. The frequency component determination unit 372a obtains the magnitude of the DCT coefficient representing the frequency component at a position near the DC component in each block, multiplies these values by the value of the DC component of the processing block, and at least one of them is It is determined whether or not it is larger than a predetermined threshold value β1 (β1 is a positive integer).

実施の形態1と同様に、周波数成分判定部372aに入力するデータを8×8画素のブロックからなるデータとし、直流成分を含む3×3画素の領域をエッジブロック判定領域とした場合、エッジブロックであるか否かの判定を以下の式により行う。   As in the first embodiment, when the data input to the frequency component determination unit 372a is data composed of 8 × 8 pixel blocks, and the 3 × 3 pixel region including the DC component is the edge block determination region, the edge block Is determined by the following equation.

|Q(s0+n,t0+m)|×|Q(s0,t0)|>β1
ここでn,m=0,1,2、かつn=m≠0
| Q (s0 + n, t0 + m) | × | Q (s0, t0) |> β1
Where n, m = 0, 1, 2, and n = m ≠ 0

この判定式において、Q(s0,t0)はブロック内における直流成分を表し、Q(s0+n,t0+m)は、座標(s0+n,t0+m)における交流成分を表す。判定式を満たすn,mの組が存在する場合、すなわち、直流成分以外の空間周波数成分(交流成分)に直流成分の大きさを乗算した値のうち、何れかの大きさが閾値β1より大きいと判断される場合には、処理対象のブロック(処理ブロック)がエッジブロックであると判定する。また、直流成分が乗算された交流成分の何れの大きさも閾値β1以下であると判断される場合には、エッジブロックでないと判定する。すなわち、周波数成分判定部372aは、直流成分と交流成分とを用いて所定の演算を行う演算手段として機能すると共に、画像の特徴(エッジ成分を含むか否か)を検出する検出手段として機能する。   In this determination formula, Q (s0, t0) represents a direct current component in the block, and Q (s0 + n, t0 + m) represents an alternating current component at coordinates (s0 + n, t0 + m). When there is a set of n and m satisfying the determination formula, that is, any one of the values obtained by multiplying the spatial frequency component (AC component) other than the DC component by the size of the DC component is larger than the threshold value β1. If it is determined that the block to be processed (processing block) is an edge block. If it is determined that any of the AC components multiplied by the DC component is equal to or less than the threshold value β1, it is determined that the block is not an edge block. That is, the frequency component determination unit 372a functions as a calculation unit that performs a predetermined calculation using a DC component and an AC component, and also functions as a detection unit that detects image characteristics (whether an edge component is included). .

所定の空間周波数成分の値に直流成分を乗算した値を用いることにより、直流成分が大きいブロックでは比較対象となる値が強調され、よりエッジブロックと判定されやすくなる。一方、直流成分が小さいブロックでは比較対象となる値があまり強調されず、エッジブロックと判定されにくくなる。   By using a value obtained by multiplying the value of a predetermined spatial frequency component by a DC component, a value to be compared is emphasized in a block having a large DC component, and it is easier to determine an edge block. On the other hand, in a block having a small DC component, the value to be compared is not emphasized so much that it is difficult to determine that the block is an edge block.

例えば、画像データを8ビット、すなわち、256階調で表し、255が画像の白を表すとした場合、白っぽい画像では直流成分は比較的大きい値を持つ。ハイライト上に薄い文字が書かれているようなブロックでは、エッジ成分を持つにもかかわらず、背景のハイライト部分と薄い文字の濃度差が小さいため、直流成分の周辺のDCTデータと閾値とを用いた判定のみでは、通常はエッジブロックと判定されにくい。しかし、判定にブロック全体の平均濃度を表す直流成分を乗算した値を用いることによって、背景のハイライト部分と薄い文字の濃度差が小さい場合でも、処理ブロックの平均濃度が低いことから、直流成分が大きくなり、所定の空間周波数成分に、この直流成分を乗算した値を用いて閾値判定を行なえば、最終的には、参照する閾値が相対的に低くなったような作用を施し、よりエッジブロックと判定されやすくなる。このことにより、エッジ強調処理などの処理が行えることになり、ハイライト上の薄い文字をよりはっきりと表現したい場合などで効果が見られる。   For example, when the image data is represented by 8 bits, that is, 256 gradations and 255 represents the white of the image, the direct current component has a relatively large value in the whitish image. In a block in which a thin character is written on the highlight, although there is an edge component, the density difference between the highlight portion of the background and the thin character is small. In general, it is difficult to determine an edge block by only using the determination. However, by using a value obtained by multiplying the DC component representing the average density of the entire block for the determination, the DC component is low because the average density of the processing block is low even if the density difference between the highlight portion of the background and the light character is small. If the threshold value is determined using a value obtained by multiplying the predetermined spatial frequency component by this direct current component, the threshold value to be referred to is finally reduced, and the edge becomes more edged. It becomes easy to be determined as a block. As a result, processing such as edge emphasis processing can be performed, and an effect is seen when it is desired to express a thin character on a highlight more clearly.

更に、処理ブロックがエッジブロックでないと判定した場合、すなわち、直流成分が乗算された交流成分の何れの大きさも閾値β1以下であると判定した場合、その処理ブロックが非エッジブロックであるか否かを判定するようにしてもよい。例えば、実施の形態1と同様にして、直流成分近傍の交流成分の大きさと閾値β2(β2は正の整数)とを比較し、直流成分近傍の交流成分の大きさが閾値β2以下である場合、その処理ブロックが非エッジブロックであると判定し、閾値β2より大きい場合、その処理ブロックが中間ブロックであると判定することができる。   Further, when it is determined that the processing block is not an edge block, that is, when it is determined that any of the AC components multiplied by the DC component is equal to or less than the threshold value β1, whether or not the processing block is a non-edge block. May be determined. For example, when the magnitude of the AC component near the DC component is compared with the threshold value β2 (β2 is a positive integer) as in the first embodiment, and the magnitude of the AC component near the DC component is equal to or less than the threshold value β2. When the processing block is determined to be a non-edge block and is larger than the threshold value β2, it can be determined that the processing block is an intermediate block.

ここで、中間ブロックとは、ブロック判定においてエッジブロックにも非エッジブロックにも属さないブロックのことを表している。前述した判定式では、閾値の大きさによってエッジブロックであるか否かを定めている。そのため、明らかにエッジブロック、非エッジブロックと判定されるブロックは問題ないが、ちょうどこれらの中間に相当するブロック、つまり、閾値の設定に応じてエッジブロックになったり、非エッジブロックになったりするようなブロックは、閾値に敏感に影響を受けるため、どちらかのブロックに判定され、強調または平滑化処理が施されると画質に悪影響をもたらす虞がある。このため、エッジブロックでもなく、非エッジブロックでもないような判定が難しいブロックについては、前述したような判定基準によって中間ブロックであると判定し、ブロック全体としてはどちらの処理も行わないような方法を設けている。   Here, the intermediate block represents a block that does not belong to an edge block or a non-edge block in the block determination. In the above-described determination formula, whether or not the block is an edge block is determined by the size of the threshold. Therefore, there is no problem with blocks that are clearly judged as edge blocks and non-edge blocks, but they are just blocks in between, that is, they become edge blocks or non-edge blocks depending on the threshold setting. Since such a block is sensitively affected by the threshold value, if one of the blocks is determined and subjected to enhancement or smoothing processing, the image quality may be adversely affected. For this reason, a block that is not an edge block or a non-edge block that is difficult to determine is determined to be an intermediate block according to the criteria described above, and neither process is performed as a whole block. Is provided.

閾値の具体的な設定例としては、直流成分を用いてエッジブロックか否かの判定に用いる閾値β1は34000であり、直流成分を用いずに、直流成分近傍の空間周波数成分のみで非エッジブロックであるか否かの判定に用いる閾値β2は16である。なお、これらの値は一例であり、好ましい画像が得られるような適切な値を設定すればよい。   As a specific example of setting the threshold value, the threshold value β1 used to determine whether or not the edge block is a DC component is 34000, and only the spatial frequency component near the DC component is used and the non-edge block is not used. The threshold value β2 used for determining whether or not is 16. Note that these values are merely examples, and appropriate values may be set so that a preferable image can be obtained.

周波数成分判定部372aによる判定結果は処理内容判定部372cに出力される。処理内容判定部372cでは、周波数成分判定部372aによる判定結果と、ブロック領域判定部372bによる判定結果とを組み合わせて総合判定を行い、処理ブロック全体に施す処理を定める。図13は周波数成分判定部372aによる判定結果とブロック領域判定部372bによる判定結果との組み合わせにより定まる処理内容をまとめた図表である。この図表に定められているように、周波数成分の判定により中間ブロックであると判定された処理ブロック、及び領域判定により文字領域、網点領域、写真領域の何れにも属さないと判定された処理ブロックについては、エッジ強調処理及び平滑化処理の何れも行わない。また、領域判定によりブロック全体が文字領域であると判定された場合であって、周波数成分の判定結果がエッジブロックを示す場合には、ブロック全体にエッジ強調処理を施すことが規定されている。更に、領域判定によりブロック全体が網点領域であると判定された場合であって、周波数成分の判定結果が非エッジブロックを示す場合には、ブロック全体に平滑化処理を施すことが規定され、領域判定によりブロック全体が写真領域であると判定された場合であって、周波数成分の判定結果がエッジブロック又は非エッジブロックを示す場合には、それぞれブロック全体にエッジ強調処理、平滑化処理を施すことが規定されている。   The determination result by the frequency component determination unit 372a is output to the processing content determination unit 372c. The processing content determination unit 372c performs overall determination by combining the determination result by the frequency component determination unit 372a and the determination result by the block region determination unit 372b, and determines processing to be performed on the entire processing block. FIG. 13 is a chart summarizing the processing contents determined by the combination of the determination result by the frequency component determination unit 372a and the determination result by the block region determination unit 372b. As defined in this chart, the processing block determined to be an intermediate block by the frequency component determination, and the processing determined not to belong to any of the character area, the dot area, and the photograph area by the area determination Neither edge emphasis processing nor smoothing processing is performed for the block. In addition, when the entire block is determined to be a character region by region determination and the frequency component determination result indicates an edge block, it is specified that edge enhancement processing is performed on the entire block. Further, when it is determined by the region determination that the entire block is a halftone dot region, and the determination result of the frequency component indicates a non-edge block, it is prescribed that the entire block is subjected to smoothing processing, When it is determined that the entire block is a photographic region by region determination, and the frequency component determination result indicates an edge block or non-edge block, edge enhancement processing and smoothing processing are performed on the entire block, respectively. It is prescribed.

このように、周波数データによるブロック判定において、エッジブロック及び非エッジブロックの他に中間ブロック判定を設けることにより、強調処理が必要なブロック、平滑化処理が必要なブロック、いずれの処理も必要がないブロックを選別することができ、より画像の特徴を捉えた処理が可能となる。   In this way, in block determination using frequency data, by providing intermediate block determination in addition to edge blocks and non-edge blocks, neither processing that requires enhancement processing nor block that requires smoothing processing is required. Blocks can be selected, and processing that captures image features becomes possible.

実施の形態3.
実施の形態1では、各処理をハードウェアにより実現する画像処理装置として説明したが、ソフトウェアの処理により本発明の画像処理方法を実現する構成であってもよい。
Embodiment 3 FIG.
The first embodiment has been described as an image processing apparatus that implements each process by hardware. However, the image processing method of the present invention may be implemented by software processing.

図14は本発明に係るコンピュータプログラムがインストールされた画像処理装置の内部構成を説明するブロック図である。図中10は、本実施の形態に係る画像処理装置であり、具体的にはパーソナルコンピュータ、ワークステーション等である。画像処理装置10はCPU11を備えており、このCPU11がバス12に接続されたROM13から各種の制御プログラムをRAM14にロードして実行し、操作部15、補助記憶部16、記憶部17、画像入力IF18、画像出力IF19等のハードウェアを制御する。   FIG. 14 is a block diagram illustrating an internal configuration of an image processing apparatus in which a computer program according to the present invention is installed. In the figure, reference numeral 10 denotes an image processing apparatus according to the present embodiment, specifically a personal computer, a workstation, or the like. The image processing apparatus 10 includes a CPU 11. The CPU 11 loads various control programs from the ROM 13 connected to the bus 12 to the RAM 14 and executes them. The operation unit 15, auxiliary storage unit 16, storage unit 17, image input The hardware such as the IF 18 and the image output IF 19 is controlled.

操作部15は、処理対象となる画像データの選択、画像処理に必要なパラメータの入力、画像処理の開始指示等を受付けるために、キーボード、マウス等を備える。補助記憶部16は、本発明のコンピュータプログラムを記録した記録媒体20からコンピュータプログラムを読取るための読取装置を備えている。記録媒体20としては、FD(Flexible Disk)、CD−ROM等を用いることができる。記憶部17は、ディスク状の磁気記録媒体を有するハードディスク装置を備えており、補助記憶部16を通じて読取られたコンピュータプログラム、画像入力IF18を通じて入力された画像データ等を記憶する。   The operation unit 15 includes a keyboard, a mouse, and the like in order to select image data to be processed, input parameters necessary for image processing, an instruction to start image processing, and the like. The auxiliary storage unit 16 includes a reading device for reading the computer program from the recording medium 20 on which the computer program of the present invention is recorded. As the recording medium 20, an FD (Flexible Disk), a CD-ROM, or the like can be used. The storage unit 17 includes a hard disk device having a disk-shaped magnetic recording medium, and stores a computer program read through the auxiliary storage unit 16, image data input through the image input IF 18, and the like.

画像入力IF18は、画像入力装置21を接続するためのインタフェースである。画像入力IF18としてSCSI、USBのようなインタフェースを利用することでき、この画像入力IF18に接続する画像入力装置21は、スキャナ装置、デジタルスチルカメラ等である。画像出力IF19は、画像出力装置22を接続するためのインタフェースである。画像出力IF19としてUSBのようなインタフェースを利用することができ、この画像出力IF19に接続する画像出力装置22は、プリンタ装置等である。   The image input IF 18 is an interface for connecting the image input device 21. An interface such as SCSI or USB can be used as the image input IF 18, and the image input device 21 connected to the image input IF 18 is a scanner device, a digital still camera, or the like. The image output IF 19 is an interface for connecting the image output device 22. An interface such as a USB can be used as the image output IF 19, and the image output device 22 connected to the image output IF 19 is a printer device or the like.

なお、本発明に係るコンピュータプログラムを記録する記録媒体20としては、前述したFD及びCD−ROMの他に、MO、MD、DVD等の光ディスク、ハードディスクのような磁気記録媒体、ICカード、メモリカード、光カード等のカード型記録媒体、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリの利用も可能である。   As the recording medium 20 for recording the computer program according to the present invention, in addition to the above-mentioned FD and CD-ROM, optical recording medium such as MO, MD, DVD, magnetic recording medium such as hard disk, IC card, memory card Further, it is also possible to use a semiconductor memory such as a card-type recording medium such as an optical card, a mask ROM, an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory), a flash ROM, or the like.

以下、本実施の形態に係る画像処理装置10の動作について説明する。図15は画像処理装置10が実行する処理の手順を説明するフローチャートである。画像処理装置10のCPU11は、まず、画像入力IF18を通じて入力された画像データの各画素について領域分離処理を実行する(ステップS11)。領域分離処理では各画素が文字領域、網点領域、写真領域の何れに属しているかを判定し、その判定結果を領域分離情報として出力する。   Hereinafter, the operation of the image processing apparatus 10 according to the present embodiment will be described. FIG. 15 is a flowchart for explaining a procedure of processing executed by the image processing apparatus 10. First, the CPU 11 of the image processing apparatus 10 executes a region separation process for each pixel of the image data input through the image input IF 18 (step S11). In the region separation process, it is determined whether each pixel belongs to a character region, a halftone dot region, or a photograph region, and the determination result is output as region separation information.

次いで、CPU11は、入力された画像データから処理対象のブロック(処理ブロック)の読み出しを行う(ステップS12)。この処理ブロックは、例えば、8×8の画素データの集合により構成されるものであり、2次元画像に対して左上隅の画素を含むブロックから右方向にブロック単位で読出処理を行い、ブロック単位でラインを変更しながら最終的に右下隅の画素を含む最終ブロックまで読出処理を行う。   Next, the CPU 11 reads a processing target block (processing block) from the input image data (step S12). This processing block is constituted by, for example, a set of 8 × 8 pixel data, and a two-dimensional image is subjected to reading processing in units of blocks from the block including the upper left corner pixel in the right direction. While changing the line, the reading process is finally performed up to the final block including the pixel in the lower right corner.

次いで、CPU11は、読み出した処理ブロックに対してDCT処理を実行する(ステップS13)。このDCT処理では、ブロック単位で読み出した画像データについて直交変換の1つである離散コサイン変換(DCT変換)を行い、周波数領域のデータに変換する。   Next, the CPU 11 performs DCT processing on the read processing block (step S13). In this DCT process, discrete cosine transform (DCT transform), which is one of orthogonal transforms, is performed on image data read in units of blocks, and converted to frequency domain data.

次いで、CPU11は、ステップS13で取得した周波数領域のデータに基づいてDCT係数判定処理を実行する(ステップS14)。このDCT係数判定処理では、処理ブロック内において直流成分近傍の空間周波数成分の大きさが予め設定した閾値αよりも大きいか否かを判定することにより、エッジを含んだブロック(エッジブロック)であるか否かを検出する。図16はDCT係数判定処理の手順を説明するフローチャートである。CPU11は、まず、所定の空間周波数成分の大きさが予め定められた閾値αより大きいか否かを判断する(ステップS141)。判定は処理ブロック全体について行う必要はなく、実施の形態1と同様に、直流成分近傍の幾つかの空間周波数成分について行えばよい。また、閾値αは、前述のコンピュータプログラムで使用するパラメータとしてコンピュータプログラム内に記述しておけばよい。   Next, the CPU 11 executes DCT coefficient determination processing based on the frequency domain data acquired in step S13 (step S14). In this DCT coefficient determination process, a block (edge block) including an edge is determined by determining whether or not the size of the spatial frequency component in the vicinity of the DC component is larger than a preset threshold value α in the processing block. Whether or not is detected. FIG. 16 is a flowchart for explaining the procedure of DCT coefficient determination processing. First, the CPU 11 determines whether or not the magnitude of the predetermined spatial frequency component is larger than a predetermined threshold value α (step S141). The determination need not be performed for the entire processing block, but may be performed for several spatial frequency components in the vicinity of the DC component, as in the first embodiment. Further, the threshold value α may be described in the computer program as a parameter used in the above-described computer program.

所定の空間周波数成分の大きさが閾値αよりも大きいと判断した場合(S141:YES)、処理ブロックがエッジブロックであると判定し(ステップS142)、CPU11は、処理を図15に示したフローチャートのステップS14へ戻す。また、所定の空間周波数成分の大きさが何れも閾値α以下であると判断した場合(S141:NO)、処理ブロックが非エッジブロックであると判定し(ステップS143)、CPU11は、処理を図15に示したフローチャートのステップS14へ戻す。   When it is determined that the size of the predetermined spatial frequency component is larger than the threshold value α (S141: YES), it is determined that the processing block is an edge block (step S142), and the CPU 11 performs the process shown in the flowchart of FIG. Return to step S14. If it is determined that the magnitudes of the predetermined spatial frequency components are all equal to or less than the threshold value α (S141: NO), it is determined that the processing block is a non-edge block (step S143), and the CPU 11 performs the process. Return to step S14 in the flowchart shown in FIG.

次に、CPU11は、ステップS11で取得した領域識別情報に基づいてブロック領域判定処理を実行する(ステップS15)。すなわち、処理ブロック毎に文字領域に属する画素、網点領域に属する画素、写真領域に属する画素の3種類をカウントし、それぞれの比率を求め、処理ブロックが文字領域、網点領域、写真領域、又はその他の領域の何れに属するブロックであるかを判定する。図17はブロック領域判定処理の手順を説明するフローチャートである。CPU11は、まず、対象の処理ブロックについて各領域に属する画素の数をカウントし、文字領域、網点領域、写真領域の3つの領域が存在するか否かを判断する(ステップS151)。3つの領域が存在すると判断した場合(S151:YES)、処理ブロックの60%以上を占める領域が存在するか否かを判断する(ステップS152)。処理ブロックの60%以上を占める領域が存在すると判断した場合(S152:YES)、その領域を処理ブロックの領域と判定する(ステップS153)。すなわち、文字領域に属する画素が処理ブロック内の60%以上を占める場合、その処理ブロックが文字領域に属するブロックであると判定する。網点領域に属する画素、写真領域に属する画素が60%以上を占める場合も同様である。一方、処理ブロックの60%以上を占める領域が存在しないと判断した場合(S152:NO)、その処理ブロックをその他の領域と判定する(ステップS154)。   Next, the CPU 11 executes a block area determination process based on the area identification information acquired in step S11 (step S15). That is, for each processing block, three types of pixels belonging to the character area, pixels belonging to the halftone dot area, and pixels belonging to the photographic area are counted, and the respective ratios are obtained. Alternatively, it is determined which block belongs to which other area. FIG. 17 is a flowchart for explaining the procedure of the block area determination process. First, the CPU 11 counts the number of pixels belonging to each area for the target processing block, and determines whether there are three areas, a character area, a halftone area, and a photograph area (step S151). If it is determined that there are three areas (S151: YES), it is determined whether there is an area that occupies 60% or more of the processing block (step S152). When it is determined that there is an area that occupies 60% or more of the processing block (S152: YES), the area is determined as the processing block area (step S153). That is, when pixels belonging to the character area occupy 60% or more of the processing block, it is determined that the processing block is a block belonging to the character area. The same applies when the pixels belonging to the halftone dot region and the pixels belonging to the photo region occupy 60% or more. On the other hand, when it is determined that there is no region that occupies 60% or more of the processing block (S152: NO), the processing block is determined as another region (step S154).

対象の処理ブロックに3つの領域が存在しないと判断した場合(S151:NO)、文字領域、網点領域、写真領域のうち2つの領域が存在するか否かを判断する(ステップS155)。2つの領域が存在すると判断した場合(S155:YES)、そのうち一方の領域が処理ブロックの70%以上を占めるか否かを判断する(ステップS156)。70%以上を占める領域が存在すると判断した場合(S156:YES)、その領域を処理ブロックの領域と判定し(ステップS157)、一方、70%以上を占める領域が存在しないと判断した場合(S156:NO)、処理ブロックをその他の領域と判定する(S154)。また、ステップS155で2つの領域が存在しないと判断した場合(S155:NO)、すなわち、処理ブロックには1つの領域のみが存在すると判断した場合、その存在する領域を処理ブロックの領域と判定する(ステップS158)。
処理ブロックの領域を判定した後、CPU11は、処理を図15に示したフローチャートのステップS15へ戻す。
If it is determined that three areas do not exist in the target processing block (S151: NO), it is determined whether two areas of the character area, the halftone dot area, and the photograph area exist (step S155). If it is determined that there are two areas (S155: YES), it is determined whether one of those areas occupies 70% or more of the processing block (step S156). When it is determined that there is an area that occupies 70% or more (S156: YES), the area is determined as an area of the processing block (step S157). On the other hand, when it is determined that there is no area that occupies 70% or more (S156). : NO), the processing block is determined as another area (S154). If it is determined in step S155 that two areas do not exist (S155: NO), that is, if it is determined that only one area exists in the processing block, the existing area is determined as the area of the processing block. (Step S158).
After determining the area of the processing block, the CPU 11 returns the process to step S15 of the flowchart shown in FIG.

次に、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが文字領域に属するか否かを判断する(ステップS16)。文字領域に属すると判断した場合(S16:YES)、CPU11は、DCT係数判定処理の判定結果に基づいて処理ブロックがエッジブロックであるか否かを判断する(ステップS17)。処理ブロックがエッジブロックであると判断した場合(S17:YES)、CPU11は、処理ブロック内の所定の領域に対してエッジ強調処理を実行する(ステップS18)。すなわち、処理ブロックが文字領域に属しており、しかもエッジブロックである場合には、その処理ブロックに対してエッジ強調処理が施されることになる。そして、CPU11は逆DCT処理を行い(ステップS19)、周波数領域のデータを濃度領域のデータに変換する。   Next, the CPU 11 determines whether or not the processing block belongs to the character area based on the determination result of the block area determination processing (step S16). If it is determined that it belongs to the character region (S16: YES), the CPU 11 determines whether or not the processing block is an edge block based on the determination result of the DCT coefficient determination processing (step S17). If it is determined that the processing block is an edge block (S17: YES), the CPU 11 executes edge enhancement processing on a predetermined area in the processing block (step S18). That is, when the processing block belongs to the character area and is an edge block, edge enhancement processing is performed on the processing block. Then, the CPU 11 performs an inverse DCT process (step S19), and converts the frequency domain data into density domain data.

ステップS16において、処理ブロックが文字領域に属さないと判断した場合(S16:NO)、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが網点領域に属するか否かを判断する(ステップS20)。網点領域に属すると判断した場合(S20:YES)、CPU11は、DCT係数判定処理の判定結果に基づいて処理ブロックがエッジブロックであるか否かを判断する(ステップS21)。処理ブロックがエッジブロックでないと判断した場合(S21:NO)、CPU11は、処理ブロック内の所定の領域に対して平滑化処理を実行する(ステップS24)。すなわち、処理ブロックが網点領域に属しており、しかも非エッジブロックである場合には、その処理ブロックに対して平滑化処理が施されることになる。そして、CPU11は逆DCT処理を行い(S19)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined in step S16 that the processing block does not belong to the character area (S16: NO), the CPU 11 determines whether or not the processing block belongs to the halftone area based on the determination result of the block area determination processing ( Step S20). If it is determined that it belongs to the halftone area (S20: YES), the CPU 11 determines whether or not the processing block is an edge block based on the determination result of the DCT coefficient determination process (step S21). When it is determined that the processing block is not an edge block (S21: NO), the CPU 11 executes a smoothing process on a predetermined area in the processing block (step S24). That is, if the processing block belongs to the halftone dot area and is a non-edge block, the processing block is subjected to smoothing processing. Then, the CPU 11 performs inverse DCT processing (S19), and converts the frequency domain data into density domain data.

ステップS20において、処理ブロックが網点領域に属さないと判断した場合(S20:NO)、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが写真領域に属するか否かを判断する(ステップS22)。処理ブロックが写真領域に属すると判断した場合(S22:YES)、CPU11は、DCT係数判定処理の判定結果に基づいて処理ブロックがエッジブロックであるか否かを判断する(ステップS23)。処理ブロックがエッジブロックであると判断した場合(S23:YES)、CPU11は、処理ブロック内の所定の領域に対してエッジ強調処理を実行し(S18)、エッジブロックでないと判断した場合(S23:NO)、処理ブロック内の所定の領域に対して平滑化処理を実行する(ステップS24)。すなわち、処理ブロックが写真領域に属しており、しかもエッジブロックである場合にはエッジ強調処理が施されることとなり、非エッジブロックである場合には平滑化処理が施されることとなる。エッジ強調処理(S18)又は平滑化処理(S24)を実行した後、CPU11は逆DCT処理を行い(S19)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined in step S20 that the processing block does not belong to the halftone dot area (S20: NO), the CPU 11 determines whether or not the processing block belongs to the photographic area based on the determination result of the block area determination process (step S20: NO). Step S22). If it is determined that the processing block belongs to the photo area (S22: YES), the CPU 11 determines whether or not the processing block is an edge block based on the determination result of the DCT coefficient determination processing (step S23). When it is determined that the processing block is an edge block (S23: YES), the CPU 11 performs edge enhancement processing on a predetermined area in the processing block (S18), and when it is determined that the processing block is not an edge block (S23: NO), a smoothing process is executed for a predetermined area in the processing block (step S24). That is, when the processing block belongs to a photographic area and is an edge block, edge enhancement processing is performed, and when it is a non-edge block, smoothing processing is performed. After executing the edge enhancement process (S18) or the smoothing process (S24), the CPU 11 performs an inverse DCT process (S19), and converts the frequency domain data into the density domain data.

また、ステップS17においてエッジブロックでないと判断された場合(S17:NO)、ステップS21においてエッジブロックであると判断された場合(S21:YES)、ステップS22において処理ブロックが写真領域に属さないと判断した場合(S22:NO)、エッジ強調処理及び平滑化処理の双方を実行することなく逆DCT処理を行い(S19)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined in step S17 that it is not an edge block (S17: NO), if it is determined in step S21 that it is an edge block (S21: YES), it is determined in step S22 that the processing block does not belong to a photographic area. If so (S22: NO), inverse DCT processing is performed without executing both edge enhancement processing and smoothing processing (S19), and frequency domain data is converted to density domain data.

次いで、CPU11は、全ブロックについて処理が終了したか否かを判断し(ステップS25)、全ブロックの処理が終了していないと判断した場合(S25:NO)、CPU11は、処理をステップS12へ戻し、全ブロックの処理が終了したと判断した場合(S25:YES)、本ルーチンによる処理を終了する。   Next, the CPU 11 determines whether or not the processing has been completed for all blocks (step S25). If the CPU 11 determines that the processing for all blocks has not been completed (S25: NO), the CPU 11 advances the processing to step S12. If it is determined that the processing of all blocks has been completed (S25: YES), the processing by this routine is terminated.

本実施の形態では、ブロック全体の領域判定結果と周波数成分判定結果とを基にブロックに対する処理を行う構成について説明したが、ブロックに対する領域判定結果を用いず、周波数成分のみの判定結果を用いて処理を行うようにしても良い。この場合、本発明をアプリケーションソフトウェアとして用いる場合に有効である。例えば、スキャナなどの画像入力装置で読み込んだ写真やネットワークを介してダウンロードした画像の場合、対象は判明しているので領域分離を行う必要はなく、必要に応じてエッジ強調や平滑化を行えばよい。   In the present embodiment, a configuration has been described in which processing for a block is performed based on a region determination result and a frequency component determination result for the entire block. However, a region determination result for a block is not used, and only a frequency component determination result is used. Processing may be performed. In this case, it is effective when the present invention is used as application software. For example, in the case of a photo read by an image input device such as a scanner or an image downloaded via a network, the object is known, so there is no need to perform region separation, and if edge enhancement or smoothing is performed as necessary Good.

実施の形態4.
実施の形態3では、直流成分近傍の空間周波数成分の大きさを閾値αと比較することにより、処理ブロックがエッジブロックであるか、又は非エッジブロックであるかをソフトウェアの処理により判定する構成としたが、直流成分を考慮してエッジブロックであるか否かを判定し、更に、直流成分を用いずに、直流成分近傍の空間周波数成分のみで中間ブロックであるか、又は非エッジブロックであるかを判定する構成としてもよい。すなわち、本実施の形態では、実施の形態2に説明した画像処理装置をソフトウェアの処理により実現する構成について説明する。なお、本発明のコンピュータプログラムがインストールされる画像処理装置10の内部構成は、実施の形態3と全く同様であるため、その説明を省略することとする。
Embodiment 4 FIG.
In the third embodiment, the size of the spatial frequency component in the vicinity of the DC component is compared with a threshold value α to determine whether the processing block is an edge block or a non-edge block by software processing. However, it is determined whether or not it is an edge block in consideration of the DC component. Further, without using the DC component, only the spatial frequency component in the vicinity of the DC component is an intermediate block or a non-edge block. It is good also as a structure which determines. That is, in the present embodiment, a configuration for realizing the image processing apparatus described in the second embodiment by software processing will be described. Note that the internal configuration of the image processing apparatus 10 in which the computer program of the present invention is installed is exactly the same as that of the third embodiment, and thus the description thereof is omitted.

図18は画像処理装置10が実行する処理の手順を説明するフローチャートである。画像処理装置10のCPU11は、実施の形態3と同様の手順にて領域分離処理からDCT処理までの処理を実行する(ステップS31〜S33)。   FIG. 18 is a flowchart for explaining a procedure of processing executed by the image processing apparatus 10. The CPU 11 of the image processing apparatus 10 executes processing from region separation processing to DCT processing in the same procedure as in the third embodiment (steps S31 to S33).

次いで、CPU11は、DCT処理にて取得した周波数領域のデータに基づいてDCT係数判定処理を実行する(ステップS34)。このDCT係数判定処理では、処理ブロック内において直流成分近傍の空間周波数成分に対し直流成分の大きさを乗算し、得られた値と予め設定した閾値β1との大小関係を判定することにより、処理ブロックがエッジブロックであるか否かを判定する。エッジブロックでないと判定された処理ブロックについては、所定の空間周波数成分の大きさと予め設定した閾値との大小関係を比較することにより、非エッジブロックであるか、又は何れにも属さない中間ブロックであるか否かを判定する。図19はDCT係数判定処理の手順を説明するフローチャートである。CPU11は、まず、所定の空間周波数成分に直流成分を乗算した値が閾値β1より大きいか否かを判断する(ステップS341)。判定は処理ブロック全体について行う必要はなく、実施の形態2と同様に、直流成分近傍の幾つかの空間周波数成分について行えばよい。また、閾値β1は、使用するコンピュータプログラム内にパラメータとして記述しておけばよい。   Next, the CPU 11 executes a DCT coefficient determination process based on the frequency domain data acquired by the DCT process (step S34). In this DCT coefficient determination process, the spatial frequency component in the vicinity of the DC component is multiplied by the magnitude of the DC component in the processing block, and the magnitude relationship between the obtained value and the preset threshold value β1 is determined. It is determined whether or not the block is an edge block. Processing blocks that are determined not to be edge blocks are non-edge blocks or intermediate blocks that do not belong to any of them by comparing the magnitude relationship between the size of a predetermined spatial frequency component and a preset threshold value. It is determined whether or not there is. FIG. 19 is a flowchart for explaining the procedure of DCT coefficient determination processing. First, the CPU 11 determines whether or not a value obtained by multiplying a predetermined spatial frequency component by a DC component is larger than a threshold value β1 (step S341). The determination need not be performed for the entire processing block, and may be performed for several spatial frequency components in the vicinity of the DC component, as in the second embodiment. The threshold value β1 may be described as a parameter in the computer program to be used.

所定の空間周波数成分に直流成分を乗算した値が閾値β1より大きいと判断した場合(S341:YES)、CPU11は、処理ブロックがエッジブロックであると判定する(ステップS342)。所定の空間周波数成分に直流成分を乗算した値が何れも閾値β1以下であると判断した場合(S341:NO)、直流成分近傍の所定の空間周波数成分が閾値β2より大きいか否かを判断する(ステップS343)。ここで、閾値β2は、前記コンピュータプログラム内にパラメータとして記述しておけばよい。所定の空間周波数成分の大きさが何れも閾値β2以下であると判断した場合(S343:NO)、CPU11は、処理ブロックが非エッジブロックであると判定し(ステップS345)、閾値β2よりも大きい空間周波数成分があると判断した場合(S343:YES)、処理ブロックがエッジブロックにも非エッジブロックにも属さない中間ブロックであると判定する(ステップS344)。
DCT係数に基づいて処理ブロックの判定を行った後、CPU11は、処理を図18に示したフローチャートへ戻す。
If it is determined that the value obtained by multiplying the predetermined spatial frequency component by the DC component is greater than the threshold β1 (S341: YES), the CPU 11 determines that the processing block is an edge block (step S342). When it is determined that the value obtained by multiplying the predetermined spatial frequency component by the DC component is equal to or less than the threshold β1 (S341: NO), it is determined whether the predetermined spatial frequency component in the vicinity of the DC component is greater than the threshold β2. (Step S343). Here, the threshold value β2 may be described as a parameter in the computer program. When it is determined that the magnitudes of the predetermined spatial frequency components are all equal to or smaller than the threshold β2 (S343: NO), the CPU 11 determines that the processing block is a non-edge block (step S345) and is larger than the threshold β2. If it is determined that there is a spatial frequency component (S343: YES), it is determined that the processing block is an intermediate block that does not belong to either an edge block or a non-edge block (step S344).
After determining the processing block based on the DCT coefficient, the CPU 11 returns the processing to the flowchart shown in FIG.

次に、CPU11は、ステップS31の領域分離処理により得られる領域識別情報に基づいてブロック領域判定処理を実行する(ステップS35)。すなわち、処理ブロック毎に文字領域に属する画素、網点領域に属する画素、写真領域に属する画素の3種類をカウントし、それぞれの比率を求め、処理ブロックが文字領域、網点領域、写真領域、又はその他の領域の何れに属するブロックであるか否かを判定する。具体的な処理手順は、実施の形態3で説明した図17のフローチャートと全く同様である。   Next, the CPU 11 executes a block area determination process based on the area identification information obtained by the area separation process in step S31 (step S35). That is, for each processing block, three types of pixels belonging to the character area, pixels belonging to the halftone dot area, and pixels belonging to the photographic area are counted, and the respective ratios are obtained, so that the processing block is the character area, halftone dot area, photographic area, Alternatively, it is determined whether the block belongs to any other area. A specific processing procedure is exactly the same as the flowchart of FIG. 17 described in the third embodiment.

次に、CPU11は、DCT係数判定処理の判定結果に基づいて対象の処理ブロックがエッジブロックにも非エッジブロックにも属さない中間ブロックであるか否かを判断する(ステップS36)。対象の処理ブロックが中間ブロックであると判断した場合(S36:YES)、その処理ブロックについてはエッジ強調処理及び平滑化処理の何れも行わないため、逆DCT処理を実行し(ステップS40)、周波数領域のデータを濃度領域のデータに変換する。   Next, the CPU 11 determines whether or not the target processing block is an intermediate block that does not belong to either an edge block or a non-edge block based on the determination result of the DCT coefficient determination processing (step S36). When it is determined that the target processing block is an intermediate block (S36: YES), since neither the edge emphasis processing nor the smoothing processing is performed for the processing block, inverse DCT processing is executed (step S40), and the frequency The area data is converted into density area data.

処理対象のブロックが中間ブロックでないと判断した場合(S36:NO)、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが文字領域であるか否かを判断する(ステップS37)。文字領域に属すると判断した場合(S37:YES)、CPU11は、再度DCT係数判定処理の判定結果を利用し、対象の処理ブロックがエッジブロックであるか否かを判断する(ステップS38)。処理ブロックがエッジブロックであると判断した場合(S38:YES)、CPU11は、処理ブロック内の所定領域に対してエッジ強調処理を実行する(ステップS39)。すなわち、処理ブロックが文字領域に属しており、しかもエッジブロックである場合には、その処理ブロックに対してエッジ強調処理が施されることになる。エッジ強調処理を実行した後、CPU11は逆DCT処理を行い(S40)、周波数領域のデータを濃度領域のデータに変換する。   When determining that the block to be processed is not an intermediate block (S36: NO), the CPU 11 determines whether or not the processing block is a character area based on the determination result of the block area determination process (step S37). When determining that it belongs to the character area (S37: YES), the CPU 11 uses the determination result of the DCT coefficient determination process again to determine whether or not the target processing block is an edge block (step S38). If it is determined that the processing block is an edge block (S38: YES), the CPU 11 executes edge enhancement processing on a predetermined area in the processing block (step S39). That is, when the processing block belongs to the character area and is an edge block, edge enhancement processing is performed on the processing block. After executing the edge enhancement process, the CPU 11 performs an inverse DCT process (S40), and converts the frequency domain data into density domain data.

ステップS37で処理ブロックが文字領域に属さないと判断した場合(S37:NO)、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが網点領域に属するか否かを判断する(ステップS41)。網点領域に属すると判断した場合(S41:YES)、CPU11は、DCT係数判定処理の判定結果に基づいて処理ブロックがエッジブロックであるか否かを判断する(ステップS42)。処理ブロックがエッジブロックでないと判断した場合(S42:NO)、CPU11は、処理ブロック内の所定の領域に対して平滑化処理を実行する(ステップS45)。すなわち、処理ブロックが網点領域に属しており、しかも非エッジブロックである場合には、その処理ブロックに対して平滑化処理が施されることになる。そして、CPU11は逆DCT処理を行い(S40)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined in step S37 that the processing block does not belong to the character area (S37: NO), the CPU 11 determines whether the processing block belongs to the halftone area based on the determination result of the block area determination processing (step S37). S41). When determining that it belongs to the halftone dot region (S41: YES), the CPU 11 determines whether or not the processing block is an edge block based on the determination result of the DCT coefficient determination processing (step S42). When determining that the processing block is not an edge block (S42: NO), the CPU 11 executes a smoothing process on a predetermined area in the processing block (step S45). That is, if the processing block belongs to the halftone dot area and is a non-edge block, the processing block is subjected to smoothing processing. Then, the CPU 11 performs inverse DCT processing (S40), and converts the frequency domain data into density domain data.

ステップS41で処理ブロックが網点領域に属さないと判断した場合(S41:NO)、CPU11は、ブロック領域判定処理の判定結果に基づいて処理ブロックが写真領域に属するか否かを判断する(ステップS43)。処理ブロックが写真領域に属すると判断した場合(S43:YES)、CPU11は、DCT係数判定処理の判定結果に基づいて処理ブロックがエッジブロックであるか否かを判断する(ステップS44)。処理ブロックがエッジブロックであると判断した場合(S44:YES)、CPU11は、処理ブロック内の所定の領域に対してエッジ強調処理を実行し(S39)、エッジブロックでないと判断した場合(S44:NO)、処理ブロック内の所定の領域に対して平滑化処理を実行する。すなわち、処理ブロックが写真領域に属しており、しかもエッジブロックである場合にはエッジ強調処理が施されることとなり、非エッジブロックである場合には平滑化処理が施されることとなる。エッジ強調処理(S39)又は平滑化処理(S45)を実行した後、CPU11は逆DCT処理を行い(S40)、周波数領域のデータを濃度領域のデータに変換する。   When it is determined in step S41 that the processing block does not belong to the halftone dot area (S41: NO), the CPU 11 determines whether or not the processing block belongs to the photo area based on the determination result of the block area determination process (step S41). S43). If it is determined that the processing block belongs to the photographic area (S43: YES), the CPU 11 determines whether or not the processing block is an edge block based on the determination result of the DCT coefficient determination processing (step S44). When it is determined that the processing block is an edge block (S44: YES), the CPU 11 performs edge enhancement processing on a predetermined area in the processing block (S39), and when it is determined that the processing block is not an edge block (S44: NO), a smoothing process is executed for a predetermined area in the processing block. That is, when the processing block belongs to a photographic area and is an edge block, edge enhancement processing is performed, and when it is a non-edge block, smoothing processing is performed. After executing the edge enhancement process (S39) or the smoothing process (S45), the CPU 11 performs an inverse DCT process (S40) to convert the frequency domain data into density domain data.

また、ステップS38でエッジブロックでないと判断された場合(S38:NO)、ステップS42でエッジブロックであると判断された場合(S42:YES)、ステップS43で処理ブロックが写真領域に属さないと判断した場合(S43:NO)、エッジ強調処理及び平滑化処理の双方を実行することなく逆DCT処理を行い(S40)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined in step S38 that it is not an edge block (S38: NO), if it is determined in step S42 that it is an edge block (S42: YES), it is determined in step S43 that the processing block does not belong to a photographic area. If so (S43: NO), inverse DCT processing is performed without executing both edge enhancement processing and smoothing processing (S40), and frequency domain data is converted to density domain data.

次いで、CPU11は、全ブロックについて処理が終了したか否かを判断し(ステップS46)、全ブロックの処理が終了していないと判断した場合(S46:NO)、CPU11は、処理をステップS32へ戻し、全ブロックの処理が終了したと判断した場合(S46:YES)、本ルーチンによる処理を終了する。   Next, the CPU 11 determines whether or not the processing has been completed for all blocks (step S46). If the CPU 11 determines that the processing has not been completed for all blocks (S46: NO), the CPU 11 advances the processing to step S32. If it is determined that the processing of all blocks has been completed (S46: YES), the processing by this routine is terminated.

このように本実施の形態では、直流成分を考慮しているためブロック全体の濃度に依存したエッジブロック判定が可能となり、エッジ判定精度が向上する。また、周波数データによるブロック判定において、エッジブロック及び非エッジブロックの他に中間ブロック判定を設けることにより、強調処理が必要なブロック、平滑化処理が必要なブロック、いずれの処理も必要がないブロックを選別することができ、より画像の特徴を捉えた処理が可能となる。   As described above, in this embodiment, since the direct current component is taken into consideration, the edge block determination depending on the density of the entire block can be performed, and the edge determination accuracy is improved. In addition, in block determination based on frequency data, by providing intermediate block determination in addition to edge blocks and non-edge blocks, blocks that require enhancement processing, blocks that require smoothing processing, and blocks that do not require any processing. Sorting can be performed, and processing that captures the characteristics of the image becomes possible.

実施の形態5.
実施の形態4では、ブロック全体の領域判定結果と周波数判定結果とを基にブロックに対する処理を決定する構成としたが、領域判定結果を用いず、周波数成分のみの判定結果を用いて実行すべき処理を定める構成としてもよい。
Embodiment 5. FIG.
In the fourth embodiment, the processing for the block is determined based on the region determination result and the frequency determination result of the entire block, but should be executed using the determination result of only the frequency component without using the region determination result. It is good also as a structure which determines a process.

図20は画像処理装置10が実行する処理の手順を説明するフローチャートである。画像処理装置10のCPU11は、まず、画像入力IF18を通じて入力された画像データから処理ブロックの読み出しを行う(ステップS51)。処理ブロックは、例えば、8×8の画素データの集合により構成される。次いで、CPU11は、読み出した処理ブロックに対してDCT処理を実行する(ステップS52)。このDCT処理では、ブロック単位で読み出した画像データについて直交変換の1つである離散コサイン変換(DCT変換)を行い、周波数領域のデータに変換する。   FIG. 20 is a flowchart for explaining a procedure of processing executed by the image processing apparatus 10. First, the CPU 11 of the image processing apparatus 10 reads a processing block from the image data input through the image input IF 18 (step S51). The processing block is constituted by a set of 8 × 8 pixel data, for example. Next, the CPU 11 performs DCT processing on the read processing block (step S52). In this DCT process, discrete cosine transform (DCT transform), which is one of orthogonal transforms, is performed on image data read in units of blocks, and converted to frequency domain data.

次いで、CPU11は、処理ブロック内の所定の空間周波数成分に直流成分を乗算した値が閾値β1より大きいか否かを判断する(ステップS53)。判定は処理ブロック全体について行う必要はなく、前述と同様に、直流成分近傍の幾つかの空間周波数成分について行えばよい。また、閾値β1は、使用するコンピュータプログラム内にパラメータとして記述しておけばよい。所定の空間周波数成分に直流成分を乗算した値が何れも閾値β1より大きいと判断した場合(S53:YES)、その処理ブロックはエッジブロックであると判定し(ステップS54)、エッジ強調処理を実行する(ステップS55)。エッジ強調処理を行った後、CPU11は、逆DCT処理を実行し(ステップS56)、周波数領域のデータを濃度領域のデータに変換する。   Next, the CPU 11 determines whether or not a value obtained by multiplying a predetermined spatial frequency component in the processing block by a DC component is larger than a threshold value β1 (step S53). The determination need not be performed for the entire processing block, and may be performed for several spatial frequency components in the vicinity of the DC component, as described above. The threshold value β1 may be described as a parameter in the computer program to be used. If it is determined that the value obtained by multiplying the predetermined spatial frequency component by the DC component is greater than the threshold value β1 (S53: YES), it is determined that the processing block is an edge block (step S54), and edge enhancement processing is executed. (Step S55). After performing the edge enhancement process, the CPU 11 executes an inverse DCT process (step S56), and converts the frequency domain data into the density domain data.

また、所定の空間周波数成分に直流成分を乗算した値が何れも閾値β1以下であると判断した場合(S53:NO)、直流成分近傍の所定の空間周波数成分が閾値β2より大きいか否かを判断する(ステップS58)。所定の空間周波数成分の大きさが何れも閾値β2以下であると判断した場合(S58:NO)、CPU11は、処理ブロックが非エッジブロックであると判定し(ステップS60)、処理ブロックに対して平滑化処理を実行する(ステップS61)。平滑化処理を行った後、CPU11は、逆DCT処理を実行し(S56)、周波数領域のデータを濃度領域のデータに変換する。また、所定の空間周波数成分の大きさが閾値β2よりも大きいと判断した場合(S58:YES)、処理ブロックはエッジブロックにも非エッジブロックにも属さない中間ブロックであると判定し(ステップS59)、エッジ強調処理及び平滑化処理の何れも実行せずに逆DCT処理を行い(S56)、周波数領域のデータを濃度領域のデータに変換する。   If it is determined that the value obtained by multiplying the DC component by the predetermined spatial frequency component is not more than the threshold value β1 (S53: NO), it is determined whether or not the predetermined spatial frequency component in the vicinity of the DC component is greater than the threshold value β2. Judgment is made (step S58). When it is determined that the magnitudes of the predetermined spatial frequency components are all equal to or smaller than the threshold β2 (S58: NO), the CPU 11 determines that the processing block is a non-edge block (step S60), and the processing block Smoothing processing is executed (step S61). After performing the smoothing process, the CPU 11 executes an inverse DCT process (S56), and converts the frequency domain data into the density domain data. If it is determined that the size of the predetermined spatial frequency component is larger than the threshold β2 (S58: YES), it is determined that the processing block is an intermediate block that does not belong to an edge block or a non-edge block (step S59). ), The inverse DCT process is performed without executing any of the edge enhancement process and the smoothing process (S56), and the frequency domain data is converted into the density domain data.

ステップS56で逆DCT処理を実行した後、CPU11は、全ブロックについても処理が終了したか否かを判断する(ステップS57)。全ブロックの処理が終了していないと判断した場合(S57:NO)、CPU11は、処理をステップS51へ戻し、全ブロックの処理が終了したと判断した場合(S57:YES)、本ルーチンによる処理を終了する。   After executing the inverse DCT process in step S56, the CPU 11 determines whether or not the process has been completed for all blocks (step S57). When it is determined that the processing for all blocks has not been completed (S57: NO), the CPU 11 returns the processing to step S51, and when it is determined that the processing for all blocks has been completed (S57: YES), the processing according to this routine is performed. Exit.

このように、本実施の形態では周波数成分のみの判定結果を用いて実行すべき処理を定めているため、予め処理対象が判明している場合に有効である。例えば、スキャナなどの画像入力装置で読み込んだ写真、ネットワークを介してダウンロードした画像の場合、領域分離を行うことなく、周波数成分のみの判定結果を用いて画像に施すべき処理を定めることができる。   As described above, in the present embodiment, since the process to be executed is determined using the determination result of only the frequency component, it is effective when the processing target is known in advance. For example, in the case of a photograph read by an image input device such as a scanner or an image downloaded via a network, processing to be performed on the image can be determined using the determination result of only the frequency component without performing region separation.

本発明に係る画像処理装置の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the image processing apparatus which concerns on this invention. 画像処理部の構成を説明するブロック図である。It is a block diagram explaining the structure of an image process part. 画質調整部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of an image quality adjustment part. 画像データPi(X,Y)を示す概念図である。It is a conceptual diagram which shows image data Pi (X, Y). 変換前後のブロックを示す概念図である。It is a conceptual diagram which shows the block before and behind conversion. 空間周波数成分に変換された後のブロックを示す概念図である。It is a conceptual diagram which shows the block after converting into a spatial frequency component. ブロック領域判定部で用いる判定基準と判定結果との関係をまとめた図表である。It is the table | surface which put together the relationship between the criterion used by a block area | region determination part, and a determination result. 周波数成分判定部による判定結果とブロック領域判定部による判定結果との組み合わせにより定まる処理内容をまとめた図表である。It is the table | surface which put together the processing content determined by the combination of the determination result by a frequency component determination part, and the determination result by a block area | region determination part. エッジ強調処理を施す領域について説明する説明図である。It is explanatory drawing explaining the area | region which performs an edge emphasis process. 演算処理を施す領域において処理ブロックの行番号と列番号とを加算した値を示す概念図である。It is a conceptual diagram which shows the value which added the row number and column number of the process block in the area | region which performs arithmetic processing. 平滑化処理を施す領域について説明する説明図である。It is explanatory drawing explaining the area | region which performs a smoothing process. 平滑化処理の際に用いる2次元マトリクスデータの一例を示す概念図である。It is a conceptual diagram which shows an example of the two-dimensional matrix data used in the case of a smoothing process. 周波数成分判定部による判定結果とブロック領域判定部による判定結果との組み合わせにより定まる処理内容をまとめた図表である。It is the table | surface which put together the processing content determined by the combination of the determination result by a frequency component determination part, and the determination result by a block area | region determination part. 本発明に係るコンピュータプログラムがインストールされた画像処理装置の内部構成を説明するブロック図である。It is a block diagram explaining the internal structure of the image processing apparatus in which the computer program based on this invention was installed. 画像処理装置が実行する処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of the process which an image processing apparatus performs. DCT係数判定処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of a DCT coefficient determination process. ブロック領域判定処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of a block area | region determination process. 画像処理装置が実行する処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of the process which an image processing apparatus performs. DCT係数判定処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of a DCT coefficient determination process. 画像処理装置が実行する処理の手順を説明するフローチャートである。It is a flowchart explaining the procedure of the process which an image processing apparatus performs.

符号の説明Explanation of symbols

1 制御部
2 画像入力部
3 画像処理部
4 画像出力部
5 記憶部
6 操作部
37 画像調整部
371 周波数変換部
372 判定部
373 演算処理部
374 逆周波数変換部
372a 周波数成分判定部
372b ブロック領域判定部
372c 処理内容判定部
10 画像処理装置
11 CPU
20 記録媒体
DESCRIPTION OF SYMBOLS 1 Control part 2 Image input part 3 Image processing part 4 Image output part 5 Memory | storage part 6 Operation part 37 Image adjustment part 371 Frequency conversion part 372 Determination part 373 Calculation processing part 374 Inverse frequency conversion part 372a Frequency component determination part 372b Block area determination Unit 372c Processing content determination unit 10 Image processing device 11 CPU
20 recording media

Claims (14)

画像データに直交変換を施して複数の空間周波数成分からなるデータを生成し、生成したデータに基づいて画像処理を行う画像処理装置において、
前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出する検出手段と、該検出手段の検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施す手段と、前記処理を施して得られたデータに逆直交変換を施す手段とを備えることを特徴とする画像処理装置。
In an image processing apparatus that performs orthogonal transformation on image data to generate data composed of a plurality of spatial frequency components, and performs image processing based on the generated data,
Detection means for detecting image characteristics based on the image data from the data composed of the plurality of spatial frequency components, and processing corresponding to the detection result of the detection means is performed on data belonging to a predetermined spatial frequency region among the data An image processing apparatus comprising: means; and means for performing inverse orthogonal transform on the data obtained by performing the processing.
前記空間周波数成分の大きさと予め設定した閾値との大小関係を判定する判定手段を備え、前記検出手段は、前記判定手段の判定結果に基づいて前記画像の特徴を検出するようにしてあることを特徴とする請求項1に記載の画像処理装置。   A determination unit that determines a magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, and the detection unit detects a feature of the image based on a determination result of the determination unit; The image processing apparatus according to claim 1, wherein: 前記空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行う演算手段、及び前記演算により得られた値と予め設定した閾値との大小関係を判定する判定手段を備え、前記検出手段は、前記判定手段の判定結果に基づいて前記画像の特徴を検出するようにしてあることを特徴とする請求項1に記載の画像処理装置。   The detection includes: a calculation unit that performs a predetermined calculation using a DC component and an AC component among the spatial frequency components; and a determination unit that determines a magnitude relationship between a value obtained by the calculation and a preset threshold value. The image processing apparatus according to claim 1, wherein the unit is configured to detect a feature of the image based on a determination result of the determination unit. 前記検出手段は、前記判定結果に基づいて前記画像がエッジ画像であるか否かを検出するようにしてあることを特徴とする請求項2又は請求項3に記載の画像処理装置。   The image processing apparatus according to claim 2, wherein the detection unit is configured to detect whether the image is an edge image based on the determination result. 前記処理は、エッジ強調処理又は平滑化処理であることを特徴とする請求項1乃至請求項4の何れか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the processing is edge enhancement processing or smoothing processing. 前記画像がエッジ画像であることを前記検出手段が検出した場合、エッジ強調処理を施すようにしてあり、前記画像が非エッジ画像であることを前記検出手段が検出した場合、平滑化処理を施すようにしてあることを特徴とする請求項5に記載の画像処理装置。   When the detection means detects that the image is an edge image, an edge enhancement process is performed. When the detection means detects that the image is a non-edge image, a smoothing process is performed. 6. The image processing apparatus according to claim 5, wherein the image processing apparatus is configured as described above. 前記画像データが文字領域、網点領域、又は写真領域の何れに属するデータであるかを判定する領域判定手段を更に備えることを特徴とする請求項1乃至請求項6の何れか1つに記載の画像処理装置。   7. The apparatus according to claim 1, further comprising a region determination unit that determines whether the image data belongs to a character region, a halftone dot region, or a photo region. Image processing apparatus. 前記画像がエッジ画像であることを前記検出手段が検出し、かつ、前記画像データが文字領域又は写真領域に属するデータであると前記領域判定手段が判定した場合、エッジ強調処理を施すようにしてあり、前記画像が非エッジ画像であることを前記検出手段が検出し、かつ、前記画像データが網点領域又は写真領域に属するデータであると前記領域判定手段が判定した場合、平滑化処理を施すようにしてあることを特徴とする請求項7に記載の画像処理装置。   When the detection means detects that the image is an edge image, and the area determination means determines that the image data is data belonging to a character area or a photo area, an edge enhancement process is performed. Yes, when the detection means detects that the image is a non-edge image and the area determination means determines that the image data belongs to a halftone area or a photographic area, smoothing processing is performed. The image processing apparatus according to claim 7, wherein the image processing apparatus is applied. 前記エッジ強調処理を施す場合、前記空間周波数域に属するデータに1より大きな実数を乗じ、前記平滑化処理を施す場合、前記データを1より大きな実数で除算するようにしてあることを特徴とする請求項6乃至請求項8の何れか1つに記載の画像処理装置。   When the edge enhancement process is performed, the data belonging to the spatial frequency range is multiplied by a real number larger than 1, and when the smoothing process is performed, the data is divided by a real number larger than 1. The image processing apparatus according to claim 6. 請求項1乃至請求項9の何れか1つに記載の画像処理装置と、該画像処理装置により処理された画像データに基づいてシート上に画像形成を行う手段とを備えることを特徴とする画像形成装置。   An image processing apparatus comprising: the image processing apparatus according to claim 1; and means for forming an image on a sheet based on image data processed by the image processing apparatus. Forming equipment. 画像データに直交変換を施して複数の空間周波数成分からなるデータを生成し、生成したデータに基づいて画像処理を行う画像処理方法において、
前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出する第1ステップと、検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施す第2ステップと、前記処理を施して得られたデータに逆直交変換を施す第3ステップとを有することを特徴とする画像処理方法。
In an image processing method of performing orthogonal transformation on image data to generate data composed of a plurality of spatial frequency components and performing image processing based on the generated data,
A first step of detecting image characteristics based on the image data from data consisting of the plurality of spatial frequency components, and a second step of performing processing according to the detection result on data belonging to a predetermined spatial frequency region among the data. And a third step of performing inverse orthogonal transform on the data obtained by performing the processing.
前記第1ステップは、前記空間周波数成分の大きさと予め設定した閾値との大小関係を判定し、判定した結果に基づいて前記画像の特徴を検出するステップであることを特徴とする請求項11に記載の画像処理方法。   12. The step according to claim 11, wherein the first step is a step of determining a magnitude relationship between the magnitude of the spatial frequency component and a preset threshold value, and detecting the feature of the image based on the determined result. The image processing method as described. 前記第1ステップは、前記空間周波数成分のうち直流成分と交流成分とを用いて所定の演算を行い、該演算により得られた値と予め設定した閾値との大小関係を判定し、判定した結果に基づいて前記画像の特徴を検出するステップであることを特徴とする請求項11に記載の画像処理方法。   The first step performs a predetermined calculation using a DC component and an AC component among the spatial frequency components, determines a magnitude relationship between a value obtained by the calculation and a preset threshold value, and results of the determination The image processing method according to claim 11, wherein the image processing method is a step of detecting a feature of the image based on the image. コンピュータに、画像データに直交変換を施して複数の空間周波数成分からなるデータを生成させ、生成させたデータに基づいて画像処理を行わせるコンピュータプログラムにおいて、
コンピュータに、前記画像データに基づく画像の特徴を前記複数の空間周波数成分からなるデータより検出させるステップと、コンピュータに、該ステップの検出結果に応じた処理を前記データのうち所定の空間周波数域に属するデータに施させるステップと、コンピュータに、前記処理を施して得られたデータに逆直交変換を施させるステップとを有することを特徴とするコンピュータプログラム。
In a computer program for causing a computer to perform orthogonal transformation on image data to generate data composed of a plurality of spatial frequency components, and to perform image processing based on the generated data,
Causing the computer to detect image characteristics based on the image data from the data composed of the plurality of spatial frequency components; and causing the computer to perform processing according to the detection result of the step in a predetermined spatial frequency region of the data. A computer program comprising the steps of: applying to the data to which the computer belongs; and causing the computer to perform inverse orthogonal transform on the data obtained by performing the processing.
JP2005234897A 2004-11-04 2005-08-12 Image processing apparatus, image forming apparatus, image processing method, and computer program Active JP4570534B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005234897A JP4570534B2 (en) 2004-11-04 2005-08-12 Image processing apparatus, image forming apparatus, image processing method, and computer program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004321096 2004-11-04
JP2005234897A JP4570534B2 (en) 2004-11-04 2005-08-12 Image processing apparatus, image forming apparatus, image processing method, and computer program

Publications (2)

Publication Number Publication Date
JP2006155572A true JP2006155572A (en) 2006-06-15
JP4570534B2 JP4570534B2 (en) 2010-10-27

Family

ID=36633741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005234897A Active JP4570534B2 (en) 2004-11-04 2005-08-12 Image processing apparatus, image forming apparatus, image processing method, and computer program

Country Status (1)

Country Link
JP (1) JP4570534B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009100221A (en) * 2007-10-16 2009-05-07 Noritsu Koki Co Ltd Image processing device, system and program
JP2009278363A (en) * 2008-05-14 2009-11-26 Canon Inc Image processor and image processing method
US7809205B2 (en) 2005-08-30 2010-10-05 Sharp Kabushiki Kaisha Image processing method, image processing apparatus, image forming apparatus and recording medium
JP2012190148A (en) * 2011-03-09 2012-10-04 Canon Inc Image processing apparatus, image processing method, and computer program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04320160A (en) * 1991-04-19 1992-11-10 Matsushita Electric Ind Co Ltd Picture signal compression expansion device and area identification processing unit
JPH0575875A (en) * 1991-09-18 1993-03-26 Tokyo Electric Co Ltd Picture encoding device
JPH05167859A (en) * 1991-12-17 1993-07-02 Tokyo Electric Co Ltd Image encoding device
JPH05292307A (en) * 1992-04-15 1993-11-05 Ricoh Co Ltd Color picture processing unit
JPH05344348A (en) * 1992-06-09 1993-12-24 Canon Inc Image encoding control method and its device
JPH0795419A (en) * 1993-09-24 1995-04-07 Toshiba Corp Picture recorder
JPH0954825A (en) * 1995-06-05 1997-02-25 Seiko Epson Corp Method and device for processing image
JPH11120346A (en) * 1997-10-17 1999-04-30 Ricoh Co Ltd Image processor
JP2004274398A (en) * 2003-03-07 2004-09-30 Sharp Corp Image processor, image forming device, image processing method, image processing program, and recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6340046A (en) * 1986-07-31 1988-02-20 株式会社長谷工コーポレーション X-shaped wiring structure of column

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04320160A (en) * 1991-04-19 1992-11-10 Matsushita Electric Ind Co Ltd Picture signal compression expansion device and area identification processing unit
JPH0575875A (en) * 1991-09-18 1993-03-26 Tokyo Electric Co Ltd Picture encoding device
JPH05167859A (en) * 1991-12-17 1993-07-02 Tokyo Electric Co Ltd Image encoding device
JPH05292307A (en) * 1992-04-15 1993-11-05 Ricoh Co Ltd Color picture processing unit
JPH05344348A (en) * 1992-06-09 1993-12-24 Canon Inc Image encoding control method and its device
JPH0795419A (en) * 1993-09-24 1995-04-07 Toshiba Corp Picture recorder
JPH0954825A (en) * 1995-06-05 1997-02-25 Seiko Epson Corp Method and device for processing image
JPH11120346A (en) * 1997-10-17 1999-04-30 Ricoh Co Ltd Image processor
JP2004274398A (en) * 2003-03-07 2004-09-30 Sharp Corp Image processor, image forming device, image processing method, image processing program, and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809205B2 (en) 2005-08-30 2010-10-05 Sharp Kabushiki Kaisha Image processing method, image processing apparatus, image forming apparatus and recording medium
JP2009100221A (en) * 2007-10-16 2009-05-07 Noritsu Koki Co Ltd Image processing device, system and program
JP2009278363A (en) * 2008-05-14 2009-11-26 Canon Inc Image processor and image processing method
US8384964B2 (en) 2008-05-14 2013-02-26 Canon Kabushiki Kaisha Image processing apparatus and image processing method
JP2012190148A (en) * 2011-03-09 2012-10-04 Canon Inc Image processing apparatus, image processing method, and computer program
US8983122B2 (en) 2011-03-09 2015-03-17 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and computer-readable storage medium

Also Published As

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

Similar Documents

Publication Publication Date Title
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP4381360B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4972122B2 (en) Image processing device
JP6781406B2 (en) Image processing equipment and computer programs
JP2009038537A (en) Image processor, image formation device, image processing program, and recording medium for recording image processing program therein
JP4115999B2 (en) Image processing apparatus, image forming apparatus, image reading processing apparatus, image processing method, image processing program, and computer-readable recording medium
US7692817B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program product and computer memory product for carrying out image processing by transforming image data to image data having spatial frequency components
JP4064023B2 (en) Digital image halftone processing method and apparatus, and recording medium on which digital image halftone processing program is recorded
JP2022145776A (en) Image processing apparatus and image processing method
JP4637686B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, and computer program
JP4570534B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program
JP6976824B2 (en) Image processing equipment, image processing methods, and programs
JP2003219191A (en) Image processor and image forming apparatus comprising it
JP2008305099A (en) Image processing method, image processor, image forming device, computer program and recording medium
JP6882083B2 (en) Image processing device, image forming device, image processing method and program
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP2006304015A (en) Image processing apparatus, image forming apparatus, method of processing image, computer program and recording medium
JP4067538B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4080252B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4149368B2 (en) Image processing method, image processing apparatus and image forming apparatus, computer program, and computer-readable recording medium
JP2005267119A (en) Image processor, image forming device, image processing method, image processing program, and recording medium
JP4259410B2 (en) Image processing device
JP3854060B2 (en) Image processing apparatus, image forming apparatus, image processing method, and recording medium
JP4324532B2 (en) Image processing apparatus and storage medium
JP3216963B2 (en) Halftone area determination device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100518

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100525

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100723

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100810

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100810

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

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4570534

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150