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

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

Info

Publication number
JP4903254B2
JP4903254B2 JP2009289253A JP2009289253A JP4903254B2 JP 4903254 B2 JP4903254 B2 JP 4903254B2 JP 2009289253 A JP2009289253 A JP 2009289253A JP 2009289253 A JP2009289253 A JP 2009289253A JP 4903254 B2 JP4903254 B2 JP 4903254B2
Authority
JP
Japan
Prior art keywords
density
processing
filter
coefficient
weighting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009289253A
Other languages
Japanese (ja)
Other versions
JP2010124472A (en
Inventor
秀義 吉村
京介 高
朋枝 松岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2009289253A priority Critical patent/JP4903254B2/en
Publication of JP2010124472A publication Critical patent/JP2010124472A/en
Application granted granted Critical
Publication of JP4903254B2 publication Critical patent/JP4903254B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、フィルタ処理により画質の劣化を防止することができる画像処理装置、該画像処理装置を備えた画像形成装置、画像処理方法、前記画像処理装置を実現するためのコンピュータプログラム及び該コンピュータプログラムを記録したコンピュータでの読み取りが可能な記録媒体に関する。   The present invention relates to an image processing apparatus capable of preventing image quality deterioration by filtering, an image forming apparatus including the image processing apparatus, an image processing method, a computer program for realizing the image processing apparatus, and the computer program The present invention relates to a recording medium that can be read by a computer on which the information is recorded.

スキャナ又はデジタルカメラなどの画像入力装置で画像を入力し、ディスプレイ又はプリンタなどの画像出力装置で画像を出力するまでの間には、入力された画像データに対していくつかの画像処理が組み合わせて施される。スキャナ又はデジタルカメラなどの光学入力デバイスの撮像素子としては、CCD(Charge Coupled Device:電荷結合素子)イメージセンサ、CMOS(Complementary Metal Oxide Semiconductor:相補型金属酸化膜半導体)イメージセンサや、CIS(Contact Image Sensor:接触型画像センサ)等が用いられる。また、スキャナ又はデジタルカメラなどでは、レンズを通して集光された光を、撮像素子にて光電変換により電気信号に変え、電気信号をA/D変換処理してデジタルデータとして撮像画像を得た後、デジタルデータ上で画像処理を施し、画像出力装置に合わせた形態に変換して出力される。   Until the image is input by an image input device such as a scanner or a digital camera and the image is output by an image output device such as a display or a printer, some image processing is combined with the input image data. Applied. As an image sensor of an optical input device such as a scanner or a digital camera, a CCD (Charge Coupled Device) image sensor, a CMOS (Complementary Metal Oxide Semiconductor) image sensor, a CIS (Contact Image), or the like. Sensor: contact type image sensor) or the like is used. In a scanner or a digital camera, the light collected through the lens is converted into an electrical signal by photoelectric conversion using an image sensor, and the electrical signal is A / D converted to obtain a captured image as digital data. The digital data is subjected to image processing, converted into a form suitable for the image output device, and output.

例えば、画像入力装置として1次元ラインCCDセンサを撮像素子として使用したスキャナと、画像出力装置としてインクジェット方式又はレーザ方式のプリンタを備えたマルチファンクションプリンタ又はデジタル複写機と称される装置を例に挙げると、特許文献1に記載のように、スキャナで読み取った原稿の撮像画像をプリンタに出力するまでの間には、いくつかの画像処理が施される。一般的には、入力された撮像画像を用いて画像処理を行う場合、例えば、視感度補正処理及びフィルタ処理などが施される。   For example, a scanner using a one-dimensional line CCD sensor as an image pickup device as an image input device and a device called a multi-function printer or a digital copying machine having an ink jet type or laser type printer as an image output device are taken as examples. As described in Patent Document 1, several image processes are performed until a captured image of a document read by a scanner is output to a printer. Generally, when image processing is performed using an input captured image, for example, visibility correction processing and filter processing are performed.

視感度補正処理は、撮像画像のデジタルデータ値を人間の視覚特性に合わせるために行われる。撮像素子及びA/D変換処理を通した画像の変換特性は、通常はリニアな特性であり、撮像素子への光量増加に比例してデジタルデータ値が増加する。これに対し、人間の視覚特性は入射する光線の光量に対して対数の特性を持っていることが知られている。このため、視感度補正処理は、A/D変換後のデジタルデータ値を人間の視覚特性に合わせたデジタルデータ値に変換することで、後の画像処理を容易にする目的で実施される。   The visibility correction process is performed in order to match the digital data value of the captured image with human visual characteristics. The conversion characteristics of the image that has passed through the image sensor and the A / D conversion process are usually linear characteristics, and the digital data value increases in proportion to the increase in the amount of light to the image sensor. On the other hand, it is known that human visual characteristics have logarithmic characteristics with respect to the amount of incident light. For this reason, the visibility correction processing is performed for the purpose of facilitating subsequent image processing by converting the digital data value after A / D conversion into a digital data value that matches human visual characteristics.

フィルタ処理は、様々な目的で実施されるが、一例として、光学入力デバイスに用いられる光学レンズのMTF(Modulation Transfer Function)特性による撮像画像の空間周波数特性悪化の改善目的が挙げられ、一般には撮像画像に対し、視感度補正を行った後のデジタルデータを入力画像とする。例えば、特許文献2には、画像に対するエッジ強調処理結果とスムージング結果とを、エッジ判定結果から混合する空間フィルタ処理について開示されている。また、特許文献3には、画像に対するフィルタ演算結果と元画像とを、コントラストから算出した混合比で混合する画像フィルタについて開示されている。また、特許文献4には、対象画素と周囲画素の画素値差を用いて平滑処理の内容を切り替える画像フィルタについて開示されている。   The filtering process is performed for various purposes. For example, the purpose is to improve the deterioration of the spatial frequency characteristics of the captured image due to the MTF (Modulation Transfer Function) characteristics of the optical lens used in the optical input device. The digital data after performing visibility correction on the image is used as the input image. For example, Patent Document 2 discloses spatial filtering processing that mixes an edge enhancement processing result and a smoothing result for an image from an edge determination result. Patent Document 3 discloses an image filter that mixes a filter calculation result for an image and an original image at a mixing ratio calculated from contrast. Patent Document 4 discloses an image filter that switches the content of smoothing processing using a pixel value difference between a target pixel and surrounding pixels.

特許第3472479号公報Japanese Patent No. 3472479 特開昭61−157169号公報JP 61-157169 A 特開平10−271340号公報JP-A-10-271340 特開平7−288768号公報JP-A-7-288768

光学入力デバイスから出力される撮像画像のデジタルデータには、ノイズが含まれている。このノイズは、撮像素子に起因するものと、A/D変換処理に起因するものがあり、撮像素子に起因するノイズは、大別すると出力電気信号に依存するノイズ(光量依存ノイズ)と、出力電気信号に依存しないノイズ(光量非依存ノイズ)に分けることができる。また、A/D変換処理に起因するノイズは、デジタル出力値にはあまり依存しない。   The digital data of the captured image output from the optical input device includes noise. This noise is caused by the image sensor and that caused by the A / D conversion process. The noise caused by the image sensor is roughly classified into noise depending on the output electric signal (light quantity dependent noise) and output. It can be divided into noise that does not depend on electrical signals (noise independent of light amount). Also, noise caused by A / D conversion processing does not depend much on the digital output value.

光量依存ノイズは、光電変換される電子数のばらつきに起因し、光量の2分の1乗に比例する。光量非依存ノイズ及びA/D変換処理に起因するノイズは、増幅回路のランダムノイズ、撮像素子の素子間ばらつき又はA/D変換器の変換誤差などにより生ずる。一般的にはコスト面から、ランダムノイズの低減対策には限界があるため、合計のノイズ量としてはデジタル値に依存しないランダムノイズの大きさが支配的となる。結果として、撮像画像のデジタルデータには、データ値の全域に同程度のノイズ量が重畳されている。   The light amount-dependent noise is caused by variations in the number of electrons subjected to photoelectric conversion, and is proportional to the half power of the light amount. The light amount-independent noise and the noise caused by the A / D conversion process are caused by random noise of the amplifier circuit, variation between elements of the imaging device, conversion error of the A / D converter, or the like. In general, since there are limits to measures for reducing random noise from the viewpoint of cost, the amount of random noise that does not depend on the digital value is dominant as the total amount of noise. As a result, the same amount of noise is superimposed on the entire data value in the digital data of the captured image.

視感度補正処理は、上述のとおり、撮像画像のデジタルデータ値に対して非線形変換を行う。図31は従来の視感度補正処理の入力値と出力値との関係の一例を示す説明図である。図31において、横軸は入力値、縦軸は出力値を表わす。0から1023までの値で表現される10ビット値のR(Red)、G(Green)、B(Blue)デジタルデータ(入力値)は、0から255までの値で表現されるR、G、B、各8ビット値に変換されて出力される。図31に示すように、RGBデジタルデータ値が低い領域、すなわち、高濃度部(暗部)においては、RGBデジタルデータ値が高い領域、すなわち、低濃度部(明部)に対して、入力値の変化に対する出力値の変化が大きい。   As described above, the visibility correction processing performs nonlinear conversion on the digital data value of the captured image. FIG. 31 is an explanatory diagram showing an example of the relationship between the input value and the output value of the conventional visibility correction process. In FIG. 31, the horizontal axis represents an input value, and the vertical axis represents an output value. 10-bit R (Red), G (Green), and B (Blue) digital data (input values) represented by values from 0 to 1023 are represented by R, G, B, converted into 8-bit values and output. As shown in FIG. 31, in the region where the RGB digital data value is low, that is, in the high density portion (dark portion), the input value of the region where the RGB digital data value is high, ie, in the low density portion (bright portion). The change of the output value with respect to the change is large.

図32は従来の視感度補正処理での入力値に対する出力値の変化量を示す説明図である。図32は図31の例における出力値の変化量であり、入力値が100から120に変化した場合(入力値の変化量は20)と、入力値が900から920に変化した場合(入力値の変化量は20)とにおける出力値の変化量を示す。括弧内は入力と出力とが完全比例している(リニア)場合の傾き0.25(=256/1024)に対する増幅率(ゲイン)を示す。図32に示すように、入力値がともに20変化したのに対し、高濃度部である100から120への変化では、出力値は3.4倍から4.0倍の範囲の増幅が行われ、低濃度部である900から920への変化において出力値は0.2倍から0.4倍の範囲の減衰が行われていることを示す。この結果、視感度補正処理の出力において、高濃度部におけるノイズは増幅され、低濃度部のノイズは減衰する。   FIG. 32 is an explanatory diagram showing the change amount of the output value with respect to the input value in the conventional visibility correction processing. FIG. 32 is a change amount of the output value in the example of FIG. 31. When the input value changes from 100 to 120 (input value change amount is 20) and when the input value changes from 900 to 920 (input value). The amount of change indicates the amount of change in the output value in 20). The parentheses indicate the amplification factor (gain) with respect to the slope 0.25 (= 256/1024) when the input and the output are completely proportional (linear). As shown in FIG. 32, both of the input values have changed by 20, whereas when the change from 100 to 120, which is the high density portion, the output value is amplified in the range of 3.4 times to 4.0 times. In the change from 900 to 920, which is the low density portion, the output value indicates that attenuation in the range of 0.2 to 0.4 times is performed. As a result, in the output of the visibility correction process, the noise in the high density part is amplified and the noise in the low density part is attenuated.

このため、視感度補正処理後のフィルタ処理において、高濃度部におけるノイズは大きく、低濃度部におけるノイズは目立たない状態でのデジタルデータが入力画像として入力される。フィルタ処理では、MTF特性改善のために強調特性を持つフィルタ処理が行われるが、強調特性のフィルタ処理は高濃度付近で増幅されたノイズを更に増幅する。   For this reason, in the filtering process after the visibility correction process, the digital data in a state where the noise in the high density part is large and the noise in the low density part is not conspicuous is input as an input image. In the filter process, a filter process having an emphasis characteristic is performed to improve the MTF characteristic, but the filter process of the emphasis characteristic further amplifies noise amplified near a high density.

図33は強調特性を有するフィルタ処理前後の画像データの一例を示す説明図である。図33において、横軸は画素位置を示し、縦軸は画像データのデータ値(濃度値)を示す。図33は低濃度(主に下地領域)から高濃度(主にベタ領域)に遷移するフィルタ処理への入力画像データに対して、強調特性を持つフィルタ処理を施した後の結果の一例を示す。図33に示すように、低濃度領域の入力画像データはノイズの影響が少なく、入力値のばらつきが少ないのに対し、高濃度領域(ベタ領域)はノイズの影響で入力値のばらつきが大きい。強調特性を持つフィルタ処理を行った結果、高濃度領域におけるノイズは更に増幅され、フィルタ処理後のデータ値のばらつきが大きくなるという課題がある。   FIG. 33 is an explanatory diagram showing an example of image data before and after the filter processing having the emphasis characteristic. In FIG. 33, the horizontal axis indicates the pixel position, and the vertical axis indicates the data value (density value) of the image data. FIG. 33 shows an example of the result after applying filter processing having enhancement characteristics to the input image data to the filter processing for transition from low density (mainly the background area) to high density (mainly the solid area). . As shown in FIG. 33, the input image data in the low density region is less affected by noise and the input value variation is less, whereas the high density region (solid region) has larger input value variation due to the noise. As a result of performing the filter processing having the emphasis characteristic, noise in the high density region is further amplified, and there is a problem that the variation in the data value after the filter processing becomes large.

一方、フィルタ処理の前後のデジタルデータ値が0〜255の8ビットの整数で構成されているため、演算結果として0を下回るフィルタ処理結果は0にクリップされている。ノイズ波高の負の部分が制限されているために、図33のCで示される画素位置(画素領域)のフィルタ処理前のデジタルデータ値とフィルタ処理後のデジタルデータ値との平均値を算出した場合、例えば、フィルタ処理前の平均値が5.3であるのに対して、フィルタ処理後の平均値は9.0となり、フィルタ処理により平均濃度が高くなるという課題がある。   On the other hand, since the digital data values before and after the filtering process are composed of 8-bit integers from 0 to 255, the filtering process result below 0 is clipped to 0 as the calculation result. Since the negative part of the noise wave height is limited, the average value of the digital data value before the filtering process and the digital data value after the filtering process at the pixel position (pixel area) indicated by C in FIG. 33 was calculated. In this case, for example, the average value before the filter process is 5.3, whereas the average value after the filter process is 9.0, and the average density is increased by the filter process.

上述の課題で発生する画質への影響は、特に画像の高濃度域で入力値が一定であるベタ部において特に顕著であり、画像の高濃度領域に濃淡が生じ、画像にザラツキ感が発生する。また、フィルタ処理後の濃度値が高くなるため、画像の濃さが薄くなり(より明るくなり)コントラストが低下する。これを排除するには、強調特性ではなく、平滑特性を持つフィルタ処理を行うことが効果的である。しかし、反面、平滑特性を持つフィルタ処理を行った場合、特にエッジ部において先鋭さを損なうため、画質面での悪影響が発生する。そこで、従来の技術では、エッジ部の温存を主眼に、エッジ部又はコントラスト差の大きい部分を検知し、エッジ部又はコントラスト差が大きい部分では平滑特性を抑制することで回避を目指していた。しかし、エッジ部又はコントラスト差を用いてエッジを保存しようとすると、淡い文字についてはエッジを保存することが可能であるものの、淡い文字と同程度の濃度差を有する高濃度領域(主にベタ領域)については、ノイズを抑制できず濃淡が発生してしまい上述の2つの課題を解決することができなかった。   The influence on the image quality generated by the above-described problem is particularly remarkable in a solid portion where the input value is constant in the high density region of the image, and light and shade are generated in the high density region of the image, and a rough feeling is generated in the image. . In addition, since the density value after the filtering process is increased, the density of the image is reduced (becomes brighter) and the contrast is lowered. In order to eliminate this, it is effective to perform a filter process having a smoothing characteristic instead of an enhancement characteristic. However, on the other hand, when a filtering process having smooth characteristics is performed, sharpness is lost particularly at the edge portion, and thus an adverse effect on image quality occurs. Therefore, in the conventional technique, focusing on the preservation of the edge portion, the edge portion or a portion having a large contrast difference is detected, and the smoothness is suppressed in the edge portion or the portion having a large contrast difference, thereby aiming at avoidance. However, when an edge is stored using an edge portion or contrast difference, an edge can be stored for a light character, but a high-density region (mainly a solid region) having a density difference comparable to that of a light character. ), Noise could not be suppressed, and shading occurred, and the above two problems could not be solved.

本発明は、斯かる事情に鑑みてなされたものであり、フィルタ処理により画質の劣化を防止することができる画像処理装置、該画像処理装置を備えた画像形成装置、画像処理方法、前記画像処理装置を実現するためのコンピュータプログラム及び該コンピュータプログラムを記録したコンピュータでの読み取りが可能な記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and an image processing apparatus capable of preventing image quality deterioration by filtering, an image forming apparatus provided with the image processing apparatus, an image processing method, and the image processing It is an object of the present invention to provide a computer program for realizing the apparatus and a computer-readable recording medium on which the computer program is recorded.

本発明に係る画像処理装置は、入力画像データに対して画像処理を行う画像処理装置において、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、該濃度算出手段で算出した濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理手段と、前記濃度算出手段で算出した濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理手段と、前記濃度算出手段で算出した濃度に応じて、前記第1処理手段及び第2処理手段それぞれで処理した画像データに対して重み付け処理を施す重み付け処理手段とを備えることを特徴とする。 An image processing apparatus according to the present invention calculates density of a pixel area based on a pixel value of a pixel area constituted by a plurality of pixels of an input image in an image processing apparatus that performs image processing on input image data. A density calculating unit that performs the smoothing process on the input image data when the density calculated by the density calculating unit is greater than a predetermined first density threshold, and the density calculated by the density calculating unit. Is smaller than a predetermined second density threshold value (<the first density threshold value) , the input image data is subjected to enhancement processing, mixing processing of enhancement processing and smoothing processing, or strong smoothing processing and weak smoothing processing. The second processing means for performing any one of the processes in combination with the image data processed by each of the first processing means and the second processing means according to the density calculated by the density calculation means. Characterized in that it comprises a weighting processing unit for the assigned process is performed.

本発明に係る画像処理装置は、入力画像データに対してデジタルフィルタ演算処理を行う画像処理装置において、入力画像データに対して平滑化処理を行うための第1フィルタ係数を記憶する記憶手段と、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数を記憶する記憶手段と、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、該濃度算出手段で算出した濃度に応じて、前記第1フィルタ係数に対して重み付けを行う第1の係数と、前記第2フィルタ係数に対して重み付けを行う第2の係数とを設定する重み係数設定手段と、前記重み係数設定手段で設定した第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を生成する重み付け処理手段と、入力画像データに対して、前記重み付け処理手段で生成した新たなフィルタ係数を用いてフィルタ演算を行う演算手段とを備えることを特徴とする。 An image processing apparatus according to the present invention includes a storage unit that stores a first filter coefficient for performing a smoothing process on input image data in an image processing apparatus that performs digital filter arithmetic processing on input image data; Stores a second filter coefficient for performing any of enhancement processing, mixing processing of enhancement processing and smoothing processing, or processing combining strong smoothing processing and weak smoothing processing on input image data. Storage means for calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image, and according to the density calculated by the density calculation means, a first coefficient for weighting the first filter coefficients, and the weighting coefficient setting means for setting a second coefficient for weighting relative to the second filter coefficients, prior Kiomomi coefficient Using the first coefficient set by the determining means, the first filter coefficient is weighted, the second filter coefficient is weighted using the second coefficient, and each weighted filter coefficient is added. and weighting processing means for generating a new filter coefficients, the input image data, characterized by comprising a calculating means for performing a filter operation using the new filter coefficients generated by the weighting processing means.

本発明に係る画像処理装置は、前記濃度算出手段は、複数の特定色それぞれの画素領域の画素値に基づいて、濃度を算出するように構成してあり、前記重み付け処理手段は、前記濃度算出手段で算出した濃度に応じて、前記特定色それぞれに対して共通の重み付け処理を施すように構成してあることを特徴とする。   In the image processing apparatus according to the present invention, the density calculation unit is configured to calculate a density based on pixel values of a pixel area of each of a plurality of specific colors, and the weighting processing unit includes the density calculation According to the density calculated by the means, a common weighting process is applied to each of the specific colors.

本発明に係る画像形成装置は、前述の発明のいずれか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 an image forming unit that forms an image processed by the image processing apparatus.

本発明に係る画像処理方法は、入力画像データに対して画像処理を行う画像処理方法において、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出するステップと、該濃度を算出するステップで算出された濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理ステップと、前記濃度を算出するステップで算出された濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理ステップと、前記濃度を算出するステップで算出された濃度に応じて、前記第1処理ステップ及び第2処理ステップそれぞれで処理した画像データに対して重み付け処理を施すステップとを含むことを特徴とする。 The image processing method according to the present invention is an image processing method for performing image processing on input image data, and calculates a density of the pixel region based on a pixel value of a pixel region constituted by a plurality of pixels of the input image. A first processing step for performing a smoothing process on the input image data when the density calculated in the step for calculating the density is greater than a predetermined first density threshold, and a step for calculating the density. When the calculated density is smaller than a predetermined second density threshold value (<the first density threshold value) , the input image data is emphasized, mixed with the emphasizing process and the smoothing process, or strongly smoothed and weak. The first processing step and the second processing step are performed in accordance with the second processing step for performing any one of the processing combined with the smoothing processing and the density calculated in the step for calculating the density. Characterized in that it comprises the step of applying a weighting process to the processed image data in step respectively.

本発明に係る画像処理方法は、入力画像データに対してデジタルフィルタ演算処理を行う画像処理方法において、入力画像データに対して平滑化処理を行うための第1フィルタ係数を記憶しておき、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数を記憶しておき、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出するステップと、該濃度を算出するステップで算出された濃度に応じて、前記第1フィルタ係数に対して重み付けを行う第1の係数と、前記第2フィルタ係数に対して重み付けを行う第2の係数とを設定するステップと、該設定するステップで設定された第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を作成するステップと、該作成するステップで作成されたフィルタ係数を用いて入力画像データに対してフィルタ演算を行うステップとを含むことを特徴とする。   An image processing method according to the present invention stores a first filter coefficient for performing smoothing processing on input image data in an image processing method for performing digital filter arithmetic processing on input image data. Stores a second filter coefficient for performing any one of enhancement processing, mixed processing of enhancement processing and smoothing processing, or processing combining strong smoothing processing and weak smoothing processing on image data. In accordance with the density calculated in the step of calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image and the step of calculating the density, A step of setting a first coefficient for weighting one filter coefficient and a second coefficient for weighting the second filter coefficient, and setting in the setting step The first filter coefficient is weighted by using the first coefficient, the second filter coefficient is weighted by using the second coefficient, and the weighted filter coefficients are added and newly added. And a step of performing a filter operation on input image data using the filter coefficient created in the creating step.

本発明に係るコンピュータプログラムは、コンピュータに、入力画像データに対して画像処理を行わせるためのコンピュータプログラムにおいて、コンピュータを、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、該濃度算出手段で算出した濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理手段と、前記濃度算出手段で算出した濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理手段と、前記濃度算出手段で算出した濃度に応じて、前記第1処理手段及び第2処理手段それぞれで処理した画像データに対して重み付け処理を施す重み付け処理手段として機能させること特徴とする。 A computer program according to the present invention is a computer program for causing a computer to perform image processing on input image data, wherein the computer is based on a pixel value of a pixel region configured by a plurality of pixels of the input image. A density calculating means for calculating the density of the pixel region; a first processing means for performing a smoothing process on input image data when the density calculated by the density calculating means is greater than a predetermined first density threshold; and When the density calculated by the density calculation means is smaller than a predetermined second density threshold (<the first density threshold) , the input image data is enhanced, mixed with enhancement and smoothing, or strongly smoothed. A second processing unit that performs any one of a combination of processing and a weak smoothing process, and the first calculation unit according to the density calculated by the density calculation unit. And wherein the function as weighting processing means for performing a weighting processing for the image data processed by each management unit and the second processing means.

本発明に係るコンピュータプログラムは、コンピュータに、入力画像データに対してデジタルフィルタ演算処理を行わせるコンピュータプログラムにおいて、コンピュータを、入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、該濃度算出手段で算出した濃度に応じて、入力画像データに対して平滑化処理を行うための第1フィルタ係数に対して重み付けを行う第1の係数と、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数に対して重み付けを行う第2の係数とを設定する重み係数設定手段と、前記重み係数設定手段で設定した第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を生成する重み付け処理手段と、入力画像データに対して、前記重み付け処理手段で生成した新たなフィルタ係数を用いてフィルタ演算を行う演算手段として機能させることを特徴とする。 A computer program according to the present invention is a computer program that causes a computer to perform digital filter arithmetic processing on input image data. The computer is based on pixel values of a pixel area formed by a plurality of pixels of an input image. A density calculating means for calculating the density of the pixel area; and a first weighting unit for weighting a first filter coefficient for performing a smoothing process on the input image data according to the density calculated by the density calculating means. A second process for performing an enhancement process on the input image data, a mixed process of the enhancement process and the smoothing process, or a process combining a strong smoothing process and a weak smoothing process. a weighting factor setting means for setting a second coefficient for weighting the filter coefficient, the first coefficient set in the previous Kiomomi coefficient setting means Weighting used, performs weighting on the first filter coefficients, performs weighting on the second filter coefficients using the second coefficient, generates a new filter coefficient by adding a filter coefficient performed respectively weighting and processing means, the input image data, characterized in that to function as a calculating means for performing a filter operation using the new filter coefficients generated by the weighting processing means.

本発明に係るコンピュータでの読み取りが可能な記録媒体は、前述の発明のいずれか1つに係るコンピュータプログラムを記録してあることを特徴とする。   A recording medium readable by a computer according to the present invention is recorded with a computer program according to any one of the aforementioned inventions.

本発明にあっては、入力画像の複数の画素により構成された画素領域の画素値に基づいて、その画素領域の濃度を算出する。画素領域は、例えば、注目点を中心として5画素×5画素の領域とすることができる。また、算出する濃度は、例えば、濃度値の平均値とすることができる。算出した濃度が所定の第1濃度閾値より大きい場合(第1濃度閾値は、高濃度であるか否かを判定する閾値であり、画素領域が高濃度領域である場合、例えば、ベタ領域などの暗部)、入力画像データに対して平滑化処理(第1処理)を施す。また、画素領域の濃度が所定の第2濃度閾値より小さい場合(第2濃度閾値は、低濃度であるか否かを判定する閾値であり、画素領域が低濃度領域である場合)、入力画像データに対して、画素領域が高濃度領域である場合に施した平滑化処理とは異なる処理(第2処理)を施す。この場合、平滑化処理(第1処理)と異なる処理(第2処理)は、例えば、強調処理、強調処理と平滑化処理との混合処理、あるいは強い平滑化処理と弱い平滑化処理との組み合わせでもよい。   In the present invention, the density of the pixel area is calculated based on the pixel value of the pixel area constituted by a plurality of pixels of the input image. The pixel area can be, for example, an area of 5 pixels × 5 pixels with the attention point at the center. Moreover, the density | concentration to calculate can be made into the average value of a density | concentration value, for example. When the calculated density is larger than a predetermined first density threshold (the first density threshold is a threshold for determining whether or not the density is high, and when the pixel area is a high density area, for example, a solid area or the like The dark portion) and the input image data are subjected to a smoothing process (first process). Further, when the density of the pixel area is smaller than a predetermined second density threshold (the second density threshold is a threshold for determining whether or not the density is low, and the pixel area is a low density area), the input image A process (second process) different from the smoothing process performed when the pixel area is a high density area is applied to the data. In this case, the processing (second processing) different from the smoothing processing (first processing) is, for example, enhancement processing, mixing processing of enhancement processing and smoothing processing, or a combination of strong smoothing processing and weak smoothing processing. But you can.

入力画像データに対して平滑化処理して得られた画像データ、及び入力画像データに対して前記平滑化処理と異なる第2処理を施して得られた画像データそれぞれに対して、画素領域の濃度に応じて重み付け処理を施し、重み付けした画像データそれぞれを加算する。例えば、平滑化処理後の画像データに対する重み付け係数をα、第2処理後の画像データに対する重み付け係数をβとすると、画素領域の濃度が高濃度(暗部)である場合、α=1、β=0とし、画素領域の濃度が低濃度(明部)である場合、α=0、β=1とし、画素領域の濃度が低濃度から高濃度になるに応じてαを0から1に増加させるとともに、βを1から0に減少させることができる。これにより、高濃度領域におけるノイズを抑制するとともに、ノイズに起因するフィルタ処理後の平均濃度の増加を抑制することができ、画質劣化を防止することができる。また、低濃度領域(例えば、下地領域などの明部)についてはエッジの劣化を防止することができる。さらに、画素領域の濃度が低濃度側から高濃度側に遷移するにつれて重み付け係数(混合比)α、βを連続的に変化させることにより、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   The pixel region density for each of the image data obtained by smoothing the input image data and the image data obtained by subjecting the input image data to a second process different from the smoothing process. The weighting process is performed according to the above, and each weighted image data is added. For example, assuming that the weighting coefficient for the image data after the smoothing process is α and the weighting coefficient for the image data after the second processing is β, when the density of the pixel region is high (dark part), α = 1, β = If 0 and the density of the pixel region is low (bright), α = 0 and β = 1, and α is increased from 0 to 1 as the density of the pixel region changes from low to high. At the same time, β can be reduced from 1 to 0. Thereby, while suppressing the noise in a high density area | region, the increase in the average density after the filter process resulting from noise can be suppressed, and image quality degradation can be prevented. Further, edge deterioration can be prevented in a low density region (for example, a bright portion such as a base region). Furthermore, even if the density of the input image is changed by continuously changing the weighting coefficients (mixing ratios) α and β as the density of the pixel region transitions from the low density side to the high density side, the output image It is possible to suppress an abrupt change in the density of the image and to further prevent the deterioration of the image quality.

また、本発明にあっては、入力画像の複数の画素により構成された画素領域の画素値に基づいて、その画素領域の濃度を算出する。画素領域は、例えば、注目点を中心として5画素×5画素の領域とすることができる。また、算出する濃度は、例えば、濃度値の平均値とすることができる。第1フィルタ係数及び第2フィルタ係数それぞれに対して、画素領域の濃度に応じて重み付け処理を施し、重み付けしたフィルタ係数それぞれを加算して得られたフィルタ係数を用いて演算手段でフィルタ演算を行う。ここで、第1フィルタ係数は、例えば、入力画像データに対して平滑化処理を行うためのフィルタ係数である。また、第2フィルタ係数は、例えば、入力画像データに対して強調処理演算、強調処理演算と平滑化処理演算との混合処理演算、あるいは強い平滑化処理演算と弱い平滑化処理演算との組み合わせなどを行うためのフィルタ係数である。   In the present invention, the density of the pixel area is calculated based on the pixel value of the pixel area constituted by a plurality of pixels of the input image. The pixel area can be, for example, an area of 5 pixels × 5 pixels with the attention point at the center. Moreover, the density | concentration to calculate can be made into the average value of a density | concentration value, for example. Each of the first filter coefficient and the second filter coefficient is subjected to weighting processing according to the density of the pixel region, and the filter means is used to perform filter calculation using the filter coefficient obtained by adding the weighted filter coefficients. . Here, the first filter coefficient is, for example, a filter coefficient for performing a smoothing process on the input image data. In addition, the second filter coefficient is, for example, an enhancement processing operation on input image data, a mixed processing operation of the enhancement processing operation and the smoothing processing operation, or a combination of a strong smoothing operation and a weak smoothing operation. It is a filter coefficient for performing.

第1フィルタ係数に対する重み付け係数をα(第1の係数)、第2フィルタ係数に対する重み付け係数をβ(第2の係数)とすると、例えば、画素領域の濃度が高濃度(暗部)である場合、α=1、β=0とし、画素領域の濃度が低濃度(明部)である場合、α=0、β=1とし、画素領域の濃度が低濃度から高濃度になるに応じてαを0から1に増加させるとともに、βを1から0に減少させることができる。すなわち、画素領域が高濃度領域である場合(例えば、ベタ領域などの暗部)、演算手段は、入力画像データに対して平滑化処理を行うための第1フィルタ係数を用いてフィルタ演算を行うことになる。これにより、高濃度領域におけるノイズを抑制するとともに、ノイズに起因するフィルタ処理後の平均濃度の増加を抑制することができ、画質劣化を防止することができる。   When the weighting coefficient for the first filter coefficient is α (first coefficient) and the weighting coefficient for the second filter coefficient is β (second coefficient), for example, when the density of the pixel region is high (dark part), When α = 1 and β = 0 and the density of the pixel region is low (bright portion), α = 0 and β = 1, and α is set in accordance with the density of the pixel region from low to high. While increasing from 0 to 1, β can be decreased from 1 to 0. That is, when the pixel area is a high density area (for example, a dark area such as a solid area), the calculation means performs the filter calculation using the first filter coefficient for performing the smoothing process on the input image data. become. Thereby, while suppressing the noise in a high density area | region, the increase in the average density after the filter process resulting from noise can be suppressed, and image quality degradation can be prevented.

また、画素領域が低濃度領域である場合、演算手段は、入力画像データに対して第2フィルタ係数を用いてフィルタ演算を行うことになる。これにより、低濃度領域(例えば、下地領域などの明部)において、エッジを保存してエッジの劣化を防止することができる。さらに、画素領域の濃度が低濃度側から高濃度側に遷移するにつれて重み付け係数(混合比)α、βを連続的に変化させることにより、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   When the pixel region is a low density region, the calculation means performs a filter calculation using the second filter coefficient on the input image data. Thereby, in a low density region (for example, a bright portion such as a base region), an edge can be preserved to prevent the deterioration of the edge. Furthermore, even if the density of the input image is changed by continuously changing the weighting coefficients (mixing ratios) α and β as the density of the pixel region transitions from the low density side to the high density side, the output image It is possible to suppress an abrupt change in the density of the image and to further prevent the deterioration of the image quality.

また、演算手段を共通化し、画素領域の濃度に応じてフィルタ演算に用いるフィルタ係数を選択するようにしているので、例えば、画素領域の濃度に応じて複数の演算処理部を設け、それぞれの演算処理部で処理する場合に比べて処理量を低減することができる。特に、フィルタのサイズ(フィルタマトリクスのサイズ)が大きい場合には処理量を一層低減することができる。また、フィルタ係数の係数値の種類が少ない場合には、処理量を最適化することができる。   Further, since the calculation means is shared and the filter coefficient used for the filter calculation is selected according to the density of the pixel area, for example, a plurality of calculation processing units are provided according to the density of the pixel area, The amount of processing can be reduced compared with the case where processing is performed by the processing unit. In particular, when the filter size (filter matrix size) is large, the amount of processing can be further reduced. In addition, when the number of filter coefficient types is small, the processing amount can be optimized.

また、本発明にあっては、複数の特定色、例えば、R(赤)、G(緑)、B(青)それぞれの画素領域の画素値に基づいて、画素領域の濃度を判定し、判定した濃度に応じて、特定色それぞれに対して共通の重み付け処理を施す。例えば、重み付け係数(混合比)α、βをそれぞれの特定色に対して同じ値を用いる。共通の重み付け係数を用いることにより、すべての色に対して共通のフィルタ処理又はフィルタ演算を施すことができ、混色時と単色時の処理又は演算の不均一性を防止することができる。   In the present invention, the density of the pixel region is determined based on the pixel values of the pixel regions of a plurality of specific colors, for example, R (red), G (green), and B (blue). In accordance with the density, a common weighting process is performed for each specific color. For example, the same weighting coefficients (mixing ratios) α and β are used for each specific color. By using a common weighting coefficient, it is possible to perform a common filter process or filter operation for all colors, and to prevent non-uniformity in the process or calculation at the time of mixed color and single color.

また、本発明にあっては、画像処理装置で処理された画像の形成を行うことにより、画質の劣化を防止した画像を形成することができる。   In the present invention, it is possible to form an image in which deterioration of image quality is prevented by forming an image processed by the image processing apparatus.

本発明によれば、高濃度領域におけるノイズを抑制するとともに、ノイズに起因するフィルタ処理後の平均濃度の増加を抑制することができ、画質劣化を防止することができる。また、低濃度領域(例えば、下地領域などの明部)についてはエッジの劣化を防止することができる。さらに、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   According to the present invention, it is possible to suppress noise in a high density region, suppress an increase in average density after filtering due to noise, and prevent image quality deterioration. Further, edge deterioration can be prevented in a low density region (for example, a bright portion such as a base region). Furthermore, even when the density of the input image is changed, it is possible to suppress a sudden change in the density of the output image, and it is possible to further prevent deterioration of the image quality.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. 空間フィルタ処理部の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of a spatial filter process part. 画素領域の局所濃度算出の一例を示す説明図である。It is explanatory drawing which shows an example of local density | concentration calculation of a pixel area. フィルタ演算のための参照画素領域の一例を示す説明図である。It is explanatory drawing which shows an example of the reference pixel area | region for filter calculation. 空間フィルタカーネルの構成例を示す説明図である。It is explanatory drawing which shows the structural example of a spatial filter kernel. 第1フィルタ演算部で用いるフィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of the filter coefficient used by a 1st filter calculating part. 第2フィルタ演算部で用いるフィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of the filter coefficient used in a 2nd filter calculating part. 重み付け係数の一例を示す説明図である。It is explanatory drawing which shows an example of a weighting coefficient. 画像処理部の空間フィルタ処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the spatial filter process of an image process part. 実施の形態2の画像処理装置を備える画像形成装置の構成を示すブロック図である。FIG. 4 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to a second embodiment. 領域分離処理部の構成を示すブロック図である。It is a block diagram which shows the structure of an area | region separation process part. 実施の形態2の空間フィルタ処理部の構成の一例を示すブロック図である。6 is a block diagram illustrating an example of a configuration of a spatial filter processing unit according to Embodiment 2. FIG. 強調特性を有するフィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of the filter coefficient which has an emphasis characteristic. 重み付け係数の設定の一例を示す説明図である。It is explanatory drawing which shows an example of the setting of a weighting coefficient. 実施の形態2の画像処理部の空間フィルタ処理の手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a procedure of spatial filter processing of the image processing unit according to the second embodiment. 実施の形態3の空間フィルタ処理部の構成の一例を示すブロック図である。10 is a block diagram illustrating an example of a configuration of a spatial filter processing unit according to Embodiment 3. FIG. 空間フィルタカーネルの構成例を示す説明図である。It is explanatory drawing which shows the structural example of a spatial filter kernel. 実施の形態3の画像処理部の空間フィルタ処理の手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a procedure of spatial filter processing of the image processing unit according to the third embodiment. 実施の形態4の空間フィルタ処理部の構成の一例を示すブロック図である。FIG. 10 is a block diagram illustrating an example of a configuration of a spatial filter processing unit according to a fourth embodiment. 実施の形態4の画像処理部の空間フィルタ処理の手順の一例を示すフローチャートである。15 is a flowchart illustrating an example of a procedure of spatial filter processing of the image processing unit according to the fourth embodiment. 重み付け係数の他の例を示す説明図である。It is explanatory drawing which shows the other example of a weighting coefficient. 平滑特性を有するフィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of the filter coefficient which has a smoothing characteristic. 実施の形態6の空間フィルタ処理部の構成の一例を示すブロック図である。FIG. 20 is a block diagram illustrating an example of a configuration of a spatial filter processing unit according to a sixth embodiment. 各色空間フィルタ部の構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of each color space filter part. 実施の形態7の空間フィルタ処理部の構成の一例を示すブロック図である。FIG. 20 is a block diagram illustrating an example of a configuration of a spatial filter processing unit according to a seventh embodiment. フィルタ係数の選択方法の一例を示す説明図である。It is explanatory drawing which shows an example of the selection method of a filter coefficient. 第1フィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of a 1st filter coefficient. 第2フィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of a 2nd filter coefficient. 第3フィルタ係数の一例を示す説明図である。It is explanatory drawing which shows an example of a 3rd filter coefficient. 実施の形態7の画像処理部の空間フィルタ処理の手順の一例を示すフローチャートである。27 is a flowchart illustrating an example of a procedure of spatial filter processing of the image processing unit according to the seventh embodiment. 従来の視感度補正処理の入力値と出力値との関係の一例を示す説明図である。It is explanatory drawing which shows an example of the relationship between the input value and output value of the conventional visibility correction process. 従来の視感度補正処理での入力値に対する出力値の変化量を示す説明図である。It is explanatory drawing which shows the variation | change_quantity of the output value with respect to the input value in the conventional visibility correction process. 強調特性を有するフィルタ処理前後の画像データの一例を示す説明図である。It is explanatory drawing which shows an example of the image data before and after the filter process which has an emphasis characteristic.

実施の形態1
以下、本発明を実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。画像形成装置(例えば、デジタルカラー複写機)は、画像処理装置としての画像処理部100、画像入力部110、画像出力部120、操作パネル130などを備えている。
Embodiment 1
Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. An image forming apparatus (for example, a digital color copying machine) includes an image processing unit 100 as an image processing apparatus, an image input unit 110, an image output unit 120, an operation panel 130, and the like.

画像入力部110は、原稿に対して読取用の光を照射する光源、CCDラインセンサ等(いずれも不図示)を備えており、原稿から反射されてきた光をR(赤)、G(緑)、B(青)に色分解した電気信号に変換し、カラー画像信号(RGB反射率信号)を取得する。ラインセンサを撮像素子としているため、光源及びCCDラインセンサをラインセンサの長辺(主走査方向)と垂直(副走査方向)に走査して、2次元画像を読み取る。生成した電気信号はA/D変換処理を施してデジタルデータに変換され、画像データとして後段の画像処理部100に出力される。   The image input unit 110 includes a light source for irradiating reading light to the original, a CCD line sensor (not shown), and the light reflected from the original is R (red) and G (green). ) And B (blue), the color signal is converted into an electrical signal to obtain a color image signal (RGB reflectance signal). Since the line sensor is an imaging device, the light source and the CCD line sensor are scanned perpendicularly (sub-scanning direction) to the long side (main scanning direction) of the line sensor to read a two-dimensional image. The generated electric signal is subjected to A / D conversion processing to be converted into digital data, and is output to the subsequent image processing unit 100 as image data.

画像処理部100は、入力された画像データに対して後述する各処理を施した後、画像出力部120へ出力画像の出力を行う。   The image processing unit 100 outputs each output image to the image output unit 120 after performing each process described later on the input image data.

画像出力部120は、電子写真方式の印字部、又はインクジェット方式などの印字部を備えており、印字部にて用紙、OHPフィルム等のシート上に画像を形成し、画像を出力する。   The image output unit 120 includes an electrophotographic printing unit or a printing unit such as an inkjet method. The printing unit forms an image on a sheet such as paper or an OHP film, and outputs the image.

操作パネル130は、デジタル複写機の動作モードを設定するための設定ボタン、テンキー、液晶ディスプレイなどの表示装置より構成されている。   The operation panel 130 includes a display device such as a setting button for setting the operation mode of the digital copying machine, a numeric keypad, and a liquid crystal display.

画像処理部100は、A/D変換部10、シェーディング補正部20、視感度補正部30、空間フィルタ処理部50、変倍処理部60、色補正部70、中間調出力階調処理部80などを備えている。   The image processing unit 100 includes an A / D conversion unit 10, a shading correction unit 20, a visibility correction unit 30, a spatial filter processing unit 50, a scaling processing unit 60, a color correction unit 70, a halftone output tone processing unit 80, and the like. It has.

シェーディング補正部20は、A/D変換部10でA/D変換された反射率信号に対して、シェーディング補正処理を施す。シェーディング補正処理は、画像入力部110の照明系、結像系及び撮像系の構成に起因して画像信号に生じる各種の歪みを取除くために行われる。   The shading correction unit 20 performs a shading correction process on the reflectance signal that has been A / D converted by the A / D conversion unit 10. The shading correction process is performed to remove various distortions that occur in the image signal due to the configuration of the illumination system, the imaging system, and the imaging system of the image input unit 110.

視感度補正部30は、撮像素子であるCCDラインセンサの感度特性と人間の視感度特性との違いを補正するために、R、G、Bの信号毎に別個に設けられたLUT(Look Up Table)メモリの入力値に相当するデータ値を読み出して、出力値とする処理を行う。LUTメモリには、例えば、図31に示したような変換特性を持つデータが格納されている。   The visibility correction unit 30 is a LUT (Look Up) provided separately for each of the R, G, and B signals in order to correct the difference between the sensitivity characteristics of the CCD line sensor that is an image sensor and the human visibility characteristics. Table) A data value corresponding to the input value of the memory is read and processed as an output value. In the LUT memory, for example, data having conversion characteristics as shown in FIG. 31 is stored.

空間フィルタ処理部50は、入力された画像データに対して空間フィルタ処理を行う。なお、詳細は後述する。   The spatial filter processing unit 50 performs spatial filter processing on the input image data. Details will be described later.

変倍処理部60は、画像入力部110と画像出力部120との解像度の違いを吸収するため、画像入力部110に依存した解像度と画像サイズとで入力された画像データを、画像出力部120に合わせて画像解像度及び画像サイズの変更を行う。   The scaling processing unit 60 absorbs the difference in resolution between the image input unit 110 and the image output unit 120, and converts the image data input with the resolution and the image size depending on the image input unit 110 into the image output unit 120. The image resolution and image size are changed according to the above.

色補正部70は、R、G、Bの信号をC(シアン)、M(マゼンタ)、Ye(イエロー)、K(ブラック)の濃度信号に変換し、かつ画像出力部120における色再現の忠実化実現のために、C、M、Ye、Kの濃度信号に対して色補正処理を施す。色補正処理は具体的には、不要吸収成分をそれぞれ含むC、M、Ye、Kの色材の分光特性に基づいた色濁りをC、M、Ye、Kの濃度信号から取除く処理である。   The color correction unit 70 converts R, G, and B signals into density signals of C (cyan), M (magenta), Ye (yellow), and K (black), and faithfully reproduces colors in the image output unit 120. In order to realize this, color correction processing is performed on density signals of C, M, Ye, and K. Specifically, the color correction process is a process of removing color turbidity based on the spectral characteristics of C, M, Ye, and K color materials each including an unnecessary absorption component from the density signals of C, M, Ye, and K. .

中間調出力階調処理部80は、C、M、Ye、K画像データに対して、階調補正処理及び中間調生成処理を施す。中間調生成処理は、画像を複数の画素に分割して階調を再現できるようにする処理であり、2値や多値のディザ法、誤差拡散法等を用いることができる。また中間調出力階調処理部80は、画像データの濃度値を画像出力部120の特性値である網点面積率に変換する処理を行うこともできる。中間調出力階調処理部80によって処理された濃度信号は、画像出力部120へ出力される。   The halftone output tone processing unit 80 performs tone correction processing and halftone generation processing on the C, M, Ye, and K image data. The halftone generation process is a process for dividing an image into a plurality of pixels so that gradation can be reproduced. A binary or multi-value dither method, an error diffusion method, or the like can be used. The halftone output gradation processing unit 80 can also perform processing for converting the density value of the image data into a halftone dot area ratio that is a characteristic value of the image output unit 120. The density signal processed by the halftone output tone processing unit 80 is output to the image output unit 120.

画像処理部100の動作は、例えば、図示しないCPU(Central Processing Unit)により制御される。なお、画像形成装置は、デジタル複写機に限定されるものではなく、例えば、コピア機能、プリンタ機能、ファクシミリ送信機能、scan to e-mail機能等を備えるデジタルカラー複合機であっても良い。デジタルカラー複合機は、さらに、例えば、モデム又はネットワークカードよりなる通信装置を備えている。ファクシミリの送信を行う場合には、モデムで相手先との送信手続きを行い送信可能な状態が確保されると、所定の形式で圧縮された画像データ(スキャナで読み込まれた画像データ)をメモリから読み出し、圧縮形式の変更など必要な処理を施して、相手先に通信回線を介して順次送信する。また、ファクシミリを受信する場合、CPUは、通信手続きを行いながら相手先から送信されてくる画像データを受信して画像処理部100へ入力し、画像処理部100は、取得した画像データを圧縮・伸張処理部(不図示)にて伸張処理を施す。伸張された画像データは、必要に応じて、回転処理又は解像度変換処理が行なわれ、出力階調補正処理、階調再現処理などが施された後、画像出力部120へ出力される。また、ネットワークカード又はLANケーブルなどを介して、ネットワークに接続されたコンピュータや他のデジタル複合機とデータ通信を行うこともできる。なお、カラー複合機に限定されず、モノクロの複合機であってもよい。   The operation of the image processing unit 100 is controlled by a CPU (Central Processing Unit) (not shown), for example. The image forming apparatus is not limited to a digital copying machine, and may be, for example, a digital color multifunction machine having a copier function, a printer function, a facsimile transmission function, a scan to e-mail function, and the like. The digital color multi-function peripheral further includes a communication device including a modem or a network card, for example. When transmitting a facsimile, when a modem is used to perform a transmission procedure with the other party and the transmission is ready, image data compressed in a predetermined format (image data read by the scanner) is read from the memory. It performs necessary processing such as reading and changing the compression format, and sequentially transmits to the other party via a communication line. When receiving a facsimile, the CPU receives image data transmitted from the other party while performing a communication procedure and inputs the received image data to the image processing unit 100. The image processing unit 100 compresses and acquires the acquired image data. Extension processing is performed by an extension processing unit (not shown). The decompressed image data is subjected to rotation processing or resolution conversion processing as necessary, and is subjected to output tone correction processing, tone reproduction processing, and the like, and then output to the image output unit 120. In addition, data communication can be performed with a computer or other digital multi-function peripheral connected to the network via a network card or a LAN cable. Note that the present invention is not limited to a color multifunction peripheral, and may be a monochrome multifunction peripheral.

図2は空間フィルタ処理部50の構成の一例を示すブロック図である。空間フィルタ処理部50は、局所濃度算出部51、混合比算出部52、第1フィルタ演算部53、第2フィルタ演算部54、重み付け処理部55などを備え、重み付け処理部55は、乗算器551、552、加算器553を備えている。   FIG. 2 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50. The spatial filter processing unit 50 includes a local concentration calculation unit 51, a mixture ratio calculation unit 52, a first filter calculation unit 53, a second filter calculation unit 54, a weighting processing unit 55, and the like. The weighting processing unit 55 includes a multiplier 551. , 552 and an adder 553.

空間フィルタ処理部50は、R、G、Bの各8ビットデータを1画素のデータとした画像データを入力画像データとし、所定のフィルタ処理演算後に、R、G、Bの各8ビットデータを1画素のデータとした画像データを出力する。空間フィルタ処理部50は、R、G、Bそれぞれ独立にフィルタ処理演算を行い、各色それぞれの演算において、他の色データを参照しない。以下、単一プレーン色(R、G、Bのいずれか)の処理内容を示す。他の色についても処理内容は同様である。   The spatial filter processing unit 50 uses, as input image data, image data in which 8-bit data of R, G, and B is 1-pixel data, and outputs 8-bit data of R, G, and B after a predetermined filter processing calculation. Output image data as data of one pixel. The spatial filter processing unit 50 performs filter processing calculation independently for each of R, G, and B, and does not refer to other color data in the calculation for each color. Hereinafter, the processing content of a single plane color (any of R, G, and B) is shown. The processing contents are the same for other colors.

局所濃度算出部51は、入力された画像の注目点(注目画素)を中心とした所要の大きさの画素領域内の画素値に基づいて、画素領域の濃度を算出する。   The local density calculation unit 51 calculates the density of the pixel region based on the pixel value in the pixel region having a required size centered on the target point (target pixel) of the input image.

図3は画素領域の局所濃度算出の一例を示す説明図である。図3に示すように、画素領域は、入力された画像の主走査方向、すなわちCCDラインセンサの画素列方向に(2H+1)画素、画像の副走査方向、すなわちCCDラインセンサの走査方向に(2V+1)画素で構成され、例えば、(2H+1)=5画素、(2V+1)=5画素の大きさを有する。   FIG. 3 is an explanatory diagram illustrating an example of calculating the local density of the pixel region. As shown in FIG. 3, the pixel area has (2H + 1) pixels in the main scanning direction of the input image, that is, the pixel line direction of the CCD line sensor, and (2V + 1) in the sub-scanning direction of the image, that is, the scanning direction of the CCD line sensor. ) Pixels, for example, (2H + 1) = 5 pixels and (2V + 1) = 5 pixels.

局所濃度算出部51は、注目点を含む25画素の各画素値に1を乗算して、乗算した結果を画素領域の大きさ(25画素数)で除算する。これにより、局所濃度算出部51は、画素領域内の平均濃度値を算出する。入力された画像の画素値が0〜255(8ビット)である場合、局所濃度算出部51は、255から算出した平均濃度値を減算した値を最終的な画素領域の局所濃度値(濃度)として算出する。   The local density calculation unit 51 multiplies each pixel value of 25 pixels including the target point by 1, and divides the multiplication result by the size of the pixel region (25 pixel number). Thereby, the local density calculation unit 51 calculates an average density value in the pixel region. When the pixel value of the input image is 0 to 255 (8 bits), the local density calculation unit 51 subtracts the average density value calculated from 255 to obtain the local density value (density) of the final pixel area. Calculate as

空間フィルタ処理部50の演算は、R、G、B信号を用いているので、濃度値が0に近いほど高濃度側であり、濃度値が255に近いほど低濃度側になる。局所濃度値は、255から算出した濃度値を減算しているため、局所濃度値が0に近いほど低濃度(明部)となり、局所濃度値が255に近いほど高濃度(暗部)となる。   Since the calculation of the spatial filter processing unit 50 uses R, G, and B signals, the closer the density value is to 0, the higher the density side, and the closer the density value is to 255, the lower the density side. Since the density value calculated from 255 is subtracted from the local density value, the lower the local density value is, the lower the density (bright part), and the closer the local density value to 255, the higher density (dark part).

なお、画像データとしてC、M、Y、又はC、M、Y、K信号を用いる場合は、濃度値が0に近いほど低濃度側であり、濃度値が255に近いほど高濃度側になる。局所濃度値は、255から算出した濃度値を減算しているため、局所濃度値が255に近いほど低濃度(明部)となり、局所濃度値が0に近いほど高濃度(暗部)となる。   When C, M, Y, or C, M, Y, K signals are used as image data, the lower the density value is, the lower the density side is, and the closer the density value is 255, the higher the density side. . Since the density value calculated from 255 is subtracted from the local density value, the lower the local density value is to 255, the lower the density (bright part), and the closer the local density value to 0, the higher the density (dark part).

局所濃度値の算出は、画素領域の平均濃度に基づいて算出する構成に限定されるものではなく、局所濃度は注目点(注目画素)を代表する濃度を、入力画像に含まれるノイズの影響を抑えて求めることが出来ればよい。例えば、参照する画素(画素領域内の画素)のうち、特定数の濃度値が高い画素と、特定数の濃度値が低い画素を除いた、中央値を持つ複数の画素の濃度平均値(または唯一の画素の濃度値)を用いて局所濃度値とすることもできる。あるいは、参照する画素のうち、特定数の濃度値が低い画素のみを除いた、濃度値が高い画素のみを用いた濃度平均値を用いて局所濃度値とすることもできる。あるいは、図3の例では画素領域内の各画素のすべての重み付けが同一であるが、注目点の重み付けを大きくし、注目点から離れるほど重み付けを小さくするといった加重濃度平均値を用いることもできる。   The calculation of the local density value is not limited to the configuration in which the calculation is based on the average density of the pixel area. The local density is a density that represents the target point (target pixel) and the influence of noise included in the input image. It only needs to be able to find it. For example, among the reference pixels (pixels in the pixel area), the density average value of a plurality of pixels having a median value (or a pixel having a specific number of high density values and pixels having a specific number of low density values) (or It is also possible to use a single pixel density value) as a local density value. Alternatively, a local density value can be obtained by using a density average value using only pixels having a high density value, excluding only a specific number of pixels having a low density value from among the referenced pixels. Alternatively, in the example of FIG. 3, all the weights of each pixel in the pixel area are the same, but a weighted density average value can be used in which the weight of the attention point is increased and the weight is decreased as the distance from the attention point is increased. .

また、注目点を含む周辺画素の参照位置又は参照画素数もこれに限定されるものではない。例えば、入力画像の主走査方向と副走査方向の解像度が異なる場合に、主走査方向と副走査方向の参照画素数を変えることもできる。また、例えば参照する位置は、注目点からの一定画素間距離という考え方から、例えば、参照画素として注目点を中心とする正方形(あるいは長方形)状に参照する以外に、円形状の参照範囲(画素領域)を取ることもできる。また、算出する計算量を削減するために、例えば、注目点を含む同一ライン上の複数画素と注目点を含む同一列上の複数画素のみを参照画素とすることもできる。   Further, the reference position or the number of reference pixels of the peripheral pixels including the attention point is not limited to this. For example, when the resolutions of the input image in the main scanning direction and the sub scanning direction are different, the number of reference pixels in the main scanning direction and the sub scanning direction can be changed. In addition, for example, the reference position is based on the idea of a constant inter-pixel distance from the attention point. For example, in addition to referring to a square (or rectangular) shape centered on the attention point as a reference pixel, a circular reference range (pixel Area). In order to reduce the calculation amount to be calculated, for example, only a plurality of pixels on the same line including the attention point and a plurality of pixels on the same column including the attention point can be used as the reference pixels.

第1フィルタ演算部53は、入力された画像データに対して、所定のフィルタ演算用のフィルタ係数を用いてフィルタ演算を行う。   The first filter calculation unit 53 performs a filter calculation on the input image data using a predetermined filter coefficient for filter calculation.

図4はフィルタ演算のための参照画素領域の一例を示す説明図である。図4に示すように、入力画像の主走査方向、すなわちCCDラインセンサの画素列方向に(2H+1)画素、画像の副走査方向、すなわちCCDラインセンサの走査方向に(2V+1)画素の領域(参照画素領域)内の画素を参照画素として参照し、参照画素と後述する空間フィルタカーネルとを用いて演算を行う。演算結果は、参照画素領域の中央位置である注目点(x、y)(注目画素)に対する結果として出力する。   FIG. 4 is an explanatory diagram showing an example of a reference pixel region for filter calculation. As shown in FIG. 4, an area of (2H + 1) pixels in the main scanning direction of the input image, ie, the pixel line direction of the CCD line sensor, and (2V + 1) pixels in the sub-scanning direction of the image, ie, the scanning direction of the CCD line sensor (see Pixels in the pixel area) are referred to as reference pixels, and calculation is performed using the reference pixels and a spatial filter kernel described later. The calculation result is output as a result for the target point (x, y) (target pixel) which is the center position of the reference pixel region.

図5は空間フィルタカーネルの構成例を示す説明図である。図5に示すように、空間フィルタカーネルは、参照画素領域に対応した大きさを有し、フィルタ演算用のフィルタ係数K(−H、−V)、…、K(0、0)、…、K(H、V)を有する。第1フィルタ演算部53は、式(1)に従ったコンボリューション演算を行う。   FIG. 5 is an explanatory diagram showing a configuration example of the spatial filter kernel. As shown in FIG. 5, the spatial filter kernel has a size corresponding to the reference pixel region, and filter coefficients K (−H, −V),..., K (0, 0),. K (H, V). The first filter calculation unit 53 performs a convolution calculation according to Equation (1).

Figure 0004903254
Figure 0004903254

ここで、O(x、y)は、注目点(x、y)に対するフィルタ演算結果を示し、I(i、j)は、参照画素の座標である。   Here, O (x, y) indicates the filter calculation result for the target point (x, y), and I (i, j) is the coordinates of the reference pixel.

第1フィルタ演算部53は、上述のフィルタ演算用のフィルタ係数Kを用いることにより、入力画像データに対して平滑化処理を行う。   The first filter calculation unit 53 performs a smoothing process on the input image data by using the filter coefficient K for the filter calculation described above.

図6は第1フィルタ演算部53で用いるフィルタ係数の一例を示す説明図である。図6に示すように、空間フィルタカーネル(フィルタ係数)の大きさは、7画素×7画素の参照画素領域に対応して49個のフィルタ係数Kを有している。各参照画素に対して、正の係数を持った係数組を用いてコンボリューション演算が施される。これにより、7×7画素の広域に渡る参照画素を用いた平滑特性をもったフィルタ処理結果を得ることができる。   FIG. 6 is an explanatory diagram showing an example of filter coefficients used in the first filter calculation unit 53. As shown in FIG. 6, the size of the spatial filter kernel (filter coefficient) has 49 filter coefficients K corresponding to a reference pixel area of 7 pixels × 7 pixels. For each reference pixel, a convolution operation is performed using a coefficient set having a positive coefficient. As a result, it is possible to obtain a filter processing result having smoothing characteristics using reference pixels over a wide area of 7 × 7 pixels.

第2フィルタ演算部54は、第1フィルタ演算部53と同様の構成を備える。ただし、第2フィルタ演算部54で用いるフィルタ演算用のフィルタ係数Kは、第1フィルタ演算部53で用いるフィルタ係数Kとは異なっている。   The second filter calculation unit 54 has the same configuration as the first filter calculation unit 53. However, the filter coefficient K for filter calculation used in the second filter calculation unit 54 is different from the filter coefficient K used in the first filter calculation unit 53.

図7は第2フィルタ演算部54で用いるフィルタ係数の一例を示す説明図である。図7に示すように、空間フィルタカーネルの大きさは、7画素×7画素の参照画素領域に対応して49個のフィルタ係数Kを有している。各参照画素に対して、正負混在の係数を持った係数組を用いてコンボリューション演算が施される。これにより、強調特性と平滑特性を併せ持った混合特性のフィルタ処理結果を得ることができる。なお、混合特性の例としては、これに限定されず、強調処理のみ、あるいは強い平滑化処理と弱い平滑化処理との組み合わせでもよい。   FIG. 7 is an explanatory diagram showing an example of filter coefficients used in the second filter calculation unit 54. As shown in FIG. 7, the size of the spatial filter kernel has 49 filter coefficients K corresponding to a reference pixel area of 7 pixels × 7 pixels. For each reference pixel, a convolution operation is performed using a coefficient set having mixed positive and negative coefficients. Thereby, it is possible to obtain a mixed characteristic filtering process result having both the emphasis characteristic and the smoothing characteristic. Note that examples of the mixing characteristics are not limited to this, but only enhancement processing or a combination of strong smoothing processing and weak smoothing processing may be used.

混合比算出部52は、局所濃度算出部51で算出した局所濃度値に応じて、重み付け係数(混合比)α、βを生成し、生成した重み付け係数α、βを重み付け処理部55へ出力する。   The mixing ratio calculation unit 52 generates weighting coefficients (mixing ratios) α and β according to the local concentration values calculated by the local concentration calculation unit 51, and outputs the generated weighting coefficients α and β to the weighting processing unit 55. .

重み付け処理部55は、第1フィルタ演算部53で演算した結果に対して乗算器551で重み付け係数αを乗算し、第2フィルタ演算部54で演算した結果に対して乗算器552で重み付け係数βを乗算し、乗算器551、552それぞれで乗算した値を加算器553で加算し、空間フィルタ処理部50の処理結果として出力する。   The weighting processing unit 55 multiplies the result calculated by the first filter calculating unit 53 by the weighting coefficient α by the multiplier 551 and the weighting coefficient β by the multiplier 552 for the result calculated by the second filter calculating unit 54. Are multiplied by the multipliers 551 and 552, added by the adder 553, and output as a processing result of the spatial filter processing unit 50.

図8は重み付け係数α、βの一例を示す説明図である。図8において、横軸は局所濃度算出部51で算出した局所濃度値であり、縦軸は重み付け値である。図8に示すように、局所濃度値が小さい領域(低濃度領域)では、重み付け係数αを0とし、重み付け係数βを1とする。この場合、空間フィルタ処理結果は、第2フィルタ演算部54の出力と同一、すなわち、図7の例で示す強調特性と平滑特性を併せ持った混合特性のフィルタ処理結果となる。   FIG. 8 is an explanatory diagram showing an example of the weighting coefficients α and β. In FIG. 8, the horizontal axis represents the local density value calculated by the local density calculation unit 51, and the vertical axis represents the weighting value. As shown in FIG. 8, in an area where the local density value is small (low density area), the weighting coefficient α is set to 0 and the weighting coefficient β is set to 1. In this case, the spatial filter processing result is the same as the output of the second filter calculation unit 54, that is, the mixed characteristic filtering process result having both the emphasis characteristic and the smoothing characteristic shown in the example of FIG.

また、局所濃度値が大きい領域(高濃度領域)では、重み付け係数αを1とし、重み付け係数βを0とする。この場合、空間フィルタ処理結果は、第1フィルタ演算部53の出力と同一、すなわち、図6の例で示す平滑特性のフィルタ処理結果となる。   In the region where the local density value is large (high density region), the weighting coefficient α is set to 1 and the weighting coefficient β is set to 0. In this case, the spatial filter processing result is the same as the output of the first filter arithmetic unit 53, that is, the smoothing filter processing result shown in the example of FIG.

局所濃度値が低濃度側から高濃度側に遷移する領域では、重み付け係数α、βは、例えば、α+β=1となるように連続的に変化させることができる。   In the region where the local density value transitions from the low density side to the high density side, the weighting coefficients α and β can be continuously changed so that, for example, α + β = 1.

図8に示すように、局所濃度値がD1のところで重み付け係数αを0から増加させている。この局所濃度値D1としては、例えば、視感度補正部30における入力値に対する出力値の増幅率(ゲイン)が1以上になる出力値よりも高濃度側を目安とすることができる。例えば、図31の例で示す特性の場合に、増幅率が1以上になる出力値が概略150とすると、D1の値を105(255−150)に設定することにより、例えば、視感度補正部30において増幅されて混入したノイズを平滑化によって打ち消すことができる。一方で平滑化によって、文字と文字の背景との境界(文字エッジ部)に鈍りが生じ、文字が不鮮明になるといった悪影響が出る恐れがあるため、この点を考慮すれば、重み付け係数αを0から増加させる点は高濃度側に近づけることが好ましい。そこで、ノイズによる画質低下と平滑化による文字エッジ部の鈍りとの両者を抑制すべく、局所濃度値D1を105から255の間で設定することができる。   As shown in FIG. 8, the weighting coefficient α is increased from 0 when the local density value is D1. As this local density value D1, for example, a higher density side than an output value at which an amplification factor (gain) of an output value with respect to an input value in the visibility correction unit 30 is 1 or more can be used as a guide. For example, in the case of the characteristics shown in the example of FIG. 31, if the output value at which the amplification factor is 1 or more is approximately 150, by setting the value of D1 to 105 (255-150), for example, the visibility correction unit The noise that has been amplified and mixed at 30 can be canceled out by smoothing. On the other hand, the smoothing may cause an adverse effect that the boundary (character edge portion) between the character and the character background becomes dull and the character becomes unclear. Therefore, if this point is taken into consideration, the weighting coefficient α is set to 0. It is preferable that the point to be increased is closer to the high concentration side. Therefore, the local density value D1 can be set between 105 and 255 in order to suppress both image quality degradation due to noise and dullness of the character edge due to smoothing.

一方、局所濃度値がD2のところで重み付け係数αを1にしている。この局所濃度値D2としては、例えば、文字エッジ部には生じないような高濃度値、例えば、250などの値に設定することができる。文字エッジ部は、下地濃度と画像領域の濃度とが存在する領域であるため、局所濃度値が250などのような高い濃度値は取り得ないからである。   On the other hand, the weighting coefficient α is set to 1 when the local density value is D2. As the local density value D2, for example, a high density value that does not occur in the character edge portion, for example, a value such as 250 can be set. This is because the character edge portion is an area where the background density and the density of the image area exist, and therefore, a high density value such as a local density value of 250 cannot be obtained.

局所濃度値がD1からD2までの間では、重み付け係数α、βは、α+β=1の関係を満たすように変化させる。これにより、入力値が連続的に変化した場合にも、出力値に急激な変化を起こさないようにすることができるとともに、高濃度域におけるノイズを、平滑特性を有するフィルタ演算を施すことで抑制しつつ、高濃度域以外の濃度域では混合特性のフィルタ演算を施すことで、エッジを保存して良好な画像処理結果を得ることができる。   When the local density value is between D1 and D2, the weighting coefficients α and β are changed so as to satisfy the relationship of α + β = 1. As a result, even when the input value changes continuously, it is possible to prevent a sudden change in the output value, and to suppress noise in the high concentration range by applying a filter operation having smoothing characteristics. However, it is possible to preserve the edges and obtain a good image processing result by performing the filter operation of the mixing characteristic in the density range other than the high density range.

図6の例のようなフィルタ係数を用いて第1フィルタ演算部53で行う演算により高濃度領域(暗部)で増幅されたノイズを抑制するための平滑特性は、上述の例に限定されるものではない。例えば、画像内の画素を主走査方向及び副走査方向をそれぞれ直交軸とした2次元の各基本周期として周波数成分で表した場合、外部から混入されるノイズの周波数特性が、より低次(低周波)の周波数までに分布しているため、これらのノイズの周波数帯域を減衰させるフィルタ特性を有するものであれば種々のフィルタ係数を用いることができる。   The smoothing characteristic for suppressing the noise amplified in the high density region (dark part) by the calculation performed by the first filter calculation unit 53 using the filter coefficient as in the example of FIG. 6 is limited to the above example. is not. For example, when the pixels in the image are expressed as frequency components as two-dimensional basic periods with the main scanning direction and the sub-scanning direction as orthogonal axes, the frequency characteristics of noise mixed from the outside are lower (low) Therefore, various filter coefficients can be used as long as they have filter characteristics for attenuating the frequency band of these noises.

また、上述の例では、フィルタ演算として主走査方向が7画素、副走査方向が7画素の計49画素を用いたFIR(Finite Impulse Response:有限インパルス応答)型のコンボリューション演算を用いたフィルタ処理方式にて例示しているが、所要の平滑化特性、あるいは特定の周波数域のみを増幅する強調特性、あるいは特定の周波数域は減衰、つまり平滑化特性を有し、また別の特定の周波数域は増幅、つまり強調特性を有するような混合特性を得るためのフィルタ演算としては、これに限定されるものではない。例えば、IIR(Infinite Impulse Response:無限インパルス応答)型のフィルタ演算形式を取ることもできる。このIIR型のフィルタ演算形式としては、例えば、前段で演算済みのフィルタ処理結果と入力画像データとを用いて、帰還フィルタを構成するような例が挙げられる。FIR型のフィルタ演算の場合でも、注目点を含む周辺画素の参照位置や参照画素数は上述の例のように、主走査方向が7画素、副走査方向が7画素の計49画素に限定されるものではなく、例えば、入力画像の主走査方向と副走査方向の解像度が異なる場合に、コンボリュージョン演算を行う際の主走査方向及び副走査方向それぞれの参照画素数と係数組を変えることもできる。対象とする周波数帯域が広ければ主走査方向の参照画素数と副走査方向の参照画素数は増えることとなる。この参照画素の参照位置と参照画素数及びフィルタ処理の形態は、目的とするフィルタ特性を得るための実装コスト(演算量、回路規模)と効果のトレードオフを鑑みて、適切な構成を決定することができる。   Further, in the above-described example, filter processing using FIR (Finite Impulse Response) type convolution calculation using a total of 49 pixels of 7 pixels in the main scanning direction and 7 pixels in the sub-scanning direction as the filter calculation. Although it is exemplified in the method, the required smoothing characteristic, or the emphasis characteristic that amplifies only a specific frequency range, or the specific frequency range has attenuation, that is, the smoothing characteristic, and another specific frequency range The filter operation for obtaining a mixing characteristic having amplification, that is, an emphasis characteristic is not limited to this. For example, an IIR (Infinite Impulse Response) type filter calculation format may be employed. As an example of the IIR type filter calculation format, there is an example in which a feedback filter is configured using the filter processing result calculated in the previous stage and the input image data. Even in the case of FIR type filter calculation, the reference position and the number of reference pixels of the peripheral pixels including the target point are limited to 49 pixels in total in the main scanning direction and 7 pixels in the sub-scanning direction as in the above example. For example, when the resolutions of the input image in the main scanning direction and the sub-scanning direction are different, the number of reference pixels and the coefficient pairs in the main scanning direction and the sub-scanning direction when performing the convolution calculation are changed. You can also. If the target frequency band is wide, the number of reference pixels in the main scanning direction and the number of reference pixels in the sub-scanning direction will increase. The reference position of the reference pixel, the number of reference pixels, and the form of filter processing are determined in consideration of a trade-off between mounting cost (computation amount, circuit scale) and effect for obtaining the target filter characteristics. be able to.

次に画像処理部100の動作について説明する。図9は画像処理部100の空間フィルタ処理の手順の一例を示すフローチャートである。空間フィルタ処理部50(以下、処理部50という)は、注目画素の局所濃度値を算出し(S11)、局所濃度値に応じた重み付け係数(混合比)α、βを設定する(S12)。   Next, the operation of the image processing unit 100 will be described. FIG. 9 is a flowchart illustrating an example of the procedure of the spatial filter processing of the image processing unit 100. The spatial filter processing unit 50 (hereinafter referred to as the processing unit 50) calculates a local density value of the target pixel (S11), and sets weighting coefficients (mixing ratios) α and β according to the local density value (S12).

処理部50は、入力画像データに対して第1フィルタ演算部53でフィルタ演算を行い(S13)、入力画像データに対して第2フィルタ演算部54でフィルタ演算を行う(S14)。なお、ステップS11、S12の処理、ステップS13の処理及びステップS14の処理は並列処理をすることができる。   The processing unit 50 performs a filter operation on the input image data by the first filter operation unit 53 (S13), and performs a filter operation on the input image data by the second filter operation unit 54 (S14). In addition, the process of step S11, S12, the process of step S13, and the process of step S14 can be processed in parallel.

処理部50は、第1フィルタ演算部53の演算結果に係数αを乗算し(S15)、第2フィルタ演算部54の演算結果に係数βを乗算し(S16)、係数αを乗算した演算結果と係数βを乗算した演算結果を加算し(S17)、処理を終了する。   The processing unit 50 multiplies the calculation result of the first filter calculation unit 53 by the coefficient α (S15), multiplies the calculation result of the second filter calculation unit 54 by the coefficient β (S16), and multiplies the calculation result by the coefficient α. And the result of multiplication by the coefficient β are added (S17), and the process is terminated.

以上説明したように、高濃度領域におけるノイズを抑制するとともに、ノイズを抑制することでノイズに起因するフィルタ処理後の平均濃度の増加を抑制することができ、画質劣化を防止することができる。また、低濃度領域(例えば、下地領域などの明部)についてはエッジの劣化を防止することができる。また、画素領域の濃度(局所濃度値)が低濃度側から高濃度側に遷移するにつれて重み付け係数(混合比)α、βを連続的に変化させることにより、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   As described above, noise in the high density region can be suppressed, and by suppressing the noise, an increase in the average density after filtering caused by the noise can be suppressed, and deterioration in image quality can be prevented. Further, edge deterioration can be prevented in a low density region (for example, a bright portion such as a base region). Also, when the density of the input image is changed by continuously changing the weighting coefficients (mixing ratios) α and β as the density (local density value) of the pixel region transitions from the low density side to the high density side. Even if it exists, it can suppress that the density | concentration of an output image produces a sudden change, and can further prevent deterioration of an image quality.

実施の形態2
実施の形態1では、局所濃度算出部51で算出した局所濃度値に基づいて、混合比算出部52で重み付け係数(混合比)α、βを算出し、第1フィルタ演算部53及び第2フィルタ演算部54の演算結果に重み付けする構成であったが、入力画像又は複数の画素で構成される画素ブロックの領域属性を示す領域分離信号に基づいて、係数(混合比)を算出することもできる。
Embodiment 2
In Embodiment 1, based on the local concentration value calculated by the local concentration calculation unit 51, the mixing ratio calculation unit 52 calculates the weighting coefficients (mixing ratios) α and β, and the first filter calculation unit 53 and the second filter Although the configuration is such that the calculation result of the calculation unit 54 is weighted, the coefficient (mixing ratio) can also be calculated based on the region separation signal indicating the region attribute of the pixel block composed of the input image or a plurality of pixels. .

図10は実施の形態2の画像処理装置を備える画像形成装置の構成を示すブロック図である。画像処理部100は、新たに領域分離処理部40を備えている。領域分離処理部40は、視感度補正部30から出力されたR、G、Bの信号より、入力画像中の各画素を文字エッジ領域、網点領域、その他領域の何れかに分離するものである。領域分離処理部40は、分離結果に基づき、画素がどの領域に属しているかを示す領域分離信号Aを、空間フィルタ処理部50、色補正部70及び中間調出力階調処理部80へと出力すると共に、視感度補正部30より出力された入力信号をそのまま後段の空間フィルタ処理部50へ出力する。   FIG. 10 is a block diagram illustrating a configuration of an image forming apparatus including the image processing apparatus according to the second embodiment. The image processing unit 100 is newly provided with a region separation processing unit 40. The region separation processing unit 40 separates each pixel in the input image into one of a character edge region, a halftone dot region, and other regions from the R, G, and B signals output from the visibility correction unit 30. is there. The region separation processing unit 40 outputs, to the spatial filter processing unit 50, the color correction unit 70, and the halftone output gradation processing unit 80, a region separation signal A indicating which region the pixel belongs to based on the separation result. In addition, the input signal output from the visibility correction unit 30 is output to the subsequent spatial filter processing unit 50 as it is.

領域分離処理部40にて文字に分離された領域は、特に文字の再現性を高めるために空間フィルタ処理部50において鮮鋭強調処理がなされ、色補正部70において黒文字の黒生成量が高くなるように処理がなされる。また、中間調出力階調処理部80においては高域周波数の再現に適した2値や多値のディザ法又は誤差拡散法が選択される。   The region separated into characters by the region separation processing unit 40 is subjected to sharp enhancement processing in the spatial filter processing unit 50 in order to improve the character reproducibility, and the black correction amount of the black character is increased in the color correction unit 70. Processing is performed. In the halftone output gradation processing unit 80, a binary or multi-value dither method or an error diffusion method suitable for reproduction of a high frequency is selected.

領域分離処理部40にて網点に分離された領域は、空間フィルタ処理部50において画素の局所濃度値に応じて、平滑化処理、強調特性と平滑特性を併せ持ったフィルタによる処理、平滑化特性と強調特性及び平滑特性を併せ持った特性とが混合された処理が施される。そして、中間調出力階調処理部80においては、階調再現性を重視した2値や多値のディザ法又は誤差拡散法を用いた処理がなされる。   The region separated into halftone dots by the region separation processing unit 40 is subjected to smoothing processing, processing by a filter having both enhancement characteristics and smoothing characteristics, and smoothing characteristics according to the local density value of the pixels in the spatial filter processing unit 50. And a process in which the characteristics having both the emphasis characteristic and the smoothing characteristic are mixed. In the halftone output tone processing unit 80, processing using a binary or multi-value dither method or an error diffusion method with an emphasis on tone reproducibility is performed.

図11は領域分離処理部40の構成を示すブロック図である。領域分離処理部40は、最小濃度値算出部41、最大濃度値算出部42、最大濃度差算出部43、総和濃度繁雑度算出部44、下地印画紙・文字網点判定部45、最大濃度差閾値設定部46、総和濃度繁雑度閾値設定部47、文字エッジ領域判定部48などを備えている。   FIG. 11 is a block diagram showing a configuration of the region separation processing unit 40. The area separation processing unit 40 includes a minimum density value calculation unit 41, a maximum density value calculation unit 42, a maximum density difference calculation unit 43, a total density busyness calculation unit 44, a background photographic paper / character halftone dot determination unit 45, and a maximum density difference. A threshold setting unit 46, a total density busyness threshold setting unit 47, a character edge region determination unit 48, and the like are provided.

最小濃度値算出部41は、注目画素を含むn×mの画素ブロック(例えば、15×15画素)における最小濃度値を算出し、最大濃度差算出部43は、注目画素を含むn×mの画素ブロック(例えば、15×15画素)における最大濃度値を算出する。最大濃度差算出部43は、算出された最大濃度値と最小濃度値との差分である最大濃度差を算出する。   The minimum density value calculation unit 41 calculates a minimum density value in an n × m pixel block (for example, 15 × 15 pixels) including the target pixel, and the maximum density difference calculation unit 43 calculates n × m including the target pixel. A maximum density value in a pixel block (for example, 15 × 15 pixels) is calculated. The maximum density difference calculation unit 43 calculates a maximum density difference that is a difference between the calculated maximum density value and the minimum density value.

総和濃度繁雑度算出部44は、注目画素を含むn×mの画素ブロック(例えば、15×15画素)における隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度を算出する。   The total density busyness calculation unit 44 calculates a total density busyness that is a sum of absolute values of density differences between adjacent pixels in an n × m pixel block including the target pixel (for example, 15 × 15 pixels).

下地領域の濃度分布は、濃度変化が少ないので最大濃度差及び総和濃度繁雑度ともに非常に小さくなる。また、印画紙写真領域(例えば、印画紙写真のような連続階調領域を印画紙写真領域と称する。)の濃度分布は、滑らかな濃度変化をしており、最大濃度差及び総和濃度繁雑度はともに小さく、かつ、下地領域よりは多少大きくなる。すなわち、下地領域及び印画紙写真領域(その他領域)においては、最大濃度差及び総和濃度繁雑度とも小さい値をとなる。   Since the density distribution of the base region is small in density change, both the maximum density difference and the total density busyness are very small. Further, the density distribution of the photographic paper photograph area (for example, a continuous tone area such as a photographic paper photograph is referred to as a photographic paper photograph area) has a smooth density change, and the maximum density difference and the total density busyness. Are both small and slightly larger than the underlying region. That is, in the background area and the photographic paper photograph area (other areas), the maximum density difference and the total density busyness are small values.

網点領域の濃度分布は、最大濃度差は網点によりさまざまであるが、総和濃度繁雑度が網点の数だけ濃度変化が存在するので、最大濃度差に対する総和濃度繁雑度の割合が大きくなる。したがって、最大濃度差と所定の文字・網点判定閾値との積よりも総和濃度繁雑度が大きい場合には、網点画素であると判別することが可能である。   In the density distribution of the halftone dot area, the maximum density difference varies depending on the halftone dot, but since the total density busyness varies by the number of halftone dots, the ratio of the total density busyness to the maximum density difference increases. . Therefore, when the total density busyness is larger than the product of the maximum density difference and a predetermined character / halftone determination threshold, it is possible to determine that the pixel is a halftone pixel.

文字エッジ領域の濃度分布は、最大濃度差が大きく、それに伴い総和濃度繁雑度も大きくなるが、網点領域よりも濃度変化が少ないため、網点領域よりも総和濃度繁雑度は小さくなる。したがって、最大濃度差と所定の文字・網点判定閾値との積よりも総和濃度繁雑度が小さい場合には、文字エッジ画素であると判別することが可能である。   In the density distribution of the character edge area, the maximum density difference is large and the total density busyness increases accordingly. However, since the density change is smaller than that of the halftone dot area, the total density busyness is smaller than that of the halftone dot area. Therefore, when the total density busyness is smaller than the product of the maximum density difference and the predetermined character / halftone dot determination threshold, it is possible to determine that the pixel is a character edge pixel.

下地印画紙・文字網点判定部45は、算出された最大濃度差と最大濃度差閾値設定部46で設定された最大濃度差閾値、及び算出された総和濃度繁雑度と総和濃度繁雑度閾値設定部47で設定された総和濃度繁雑度閾値の比較を行う。下地印画紙・文字網点判定部45は、最大濃度差が最大濃度差閾値よりも小さく、かつ、総和濃度繁雑度が総和濃度繁雑度閾値よりも小さい場合、注目画素はその他領域(下地・印画紙写真領域)であると判定し、最大濃度差が最大濃度差閾値よりも大きいか、又は総和濃度繁雑度が総和濃度繁雑度閾値よりも大きい場合、注目画素は文字・網点領域であると判定する。   The background photographic paper / character halftone dot determination unit 45 sets the calculated maximum density difference and the maximum density difference threshold set by the maximum density difference threshold setting unit 46, and sets the calculated total density busyness and total density busyness threshold. The total density busyness threshold set in the unit 47 is compared. When the maximum density difference is smaller than the maximum density difference threshold and the total density busyness is smaller than the total density busyness threshold, the background photographic paper / character halftone dot determination unit 45 sets the target pixel as the other region (background / printing). If the maximum density difference is larger than the maximum density difference threshold or the total density busyness is larger than the total density busyness threshold, the target pixel is a character / halftone dot area. judge.

文字エッジ領域判定部48は、下地印画紙・文字網点判定部45で注目画素が文字・網点領域であると判断された場合、算出された総和濃度繁雑度と最大濃度差に文字・網点判定閾値を掛けた値との比較を行い、総和濃度繁雑度の方が小さければ文字エッジ領域であると判定し、総和濃度繁雑度の方が大きければ、網点領域であると判定し、判定信号(領域分離信号)Aを出力する。以上の処理により、注目画素を文字エッジ領域、網点領域、その他領域に分離することができる。   When the background photographic paper / character halftone dot determination unit 45 determines that the pixel of interest is a character / halftone dot area, the character edge area determination unit 48 determines whether the calculated total density busyness and the maximum density difference have a character / halftone character difference. Compared with the value multiplied by the point determination threshold, if the total density busyness is smaller, it is determined as a character edge region, and if the total density busyness is higher, it is determined as a halftone dot region, A determination signal (region separation signal) A is output. Through the above processing, the target pixel can be separated into a character edge region, a halftone dot region, and other regions.

図12は実施の形態2の空間フィルタ処理部50の構成の一例を示すブロック図である。なお、局所濃度算出部51、第1フィルタ演算部53、重み付け処理部55は実施の形態1と同様であるので説明は省略する。   FIG. 12 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50 according to the second embodiment. Note that the local density calculation unit 51, the first filter calculation unit 53, and the weighting processing unit 55 are the same as those in the first embodiment, and thus description thereof is omitted.

係数組選択部56は、図7の例で示したような強調特性と平滑特性を併せ持った混合特性のフィルタ係数、後述する強調特性を有するフィルタ係数などを格納してある。係数組選択部56は、領域分離信号Aに応じたフィルタ係数を選択し、選択したフィルタ係数を第2フィルタ演算部54へ出力する。例えば、領域分離信号Aが文字エッジ領域の場合は強調特性を有するフィルタ係数が選択され、領域分離信号Aが網点領域又はその他領域(すなわち、文字エッジ領域以外)である場合は、強調特性と平滑特性を併せ持ったフィルタ係数が選択される。   The coefficient group selection unit 56 stores a filter coefficient having a mixed characteristic having both an emphasis characteristic and a smoothing characteristic as shown in the example of FIG. 7, a filter coefficient having an emphasis characteristic described later, and the like. The coefficient set selection unit 56 selects a filter coefficient corresponding to the region separation signal A, and outputs the selected filter coefficient to the second filter calculation unit 54. For example, when the region separation signal A is a character edge region, a filter coefficient having an enhancement characteristic is selected. When the region separation signal A is a halftone region or another region (that is, other than a character edge region), A filter coefficient having smoothing characteristics is selected.

図13は強調特性を有するフィルタ係数の一例を示す説明図である。強調特性、あるいは鮮鋭化特性を有するフィルタ係数は、低い空間周波数成分に比べて高い空間周波数成分が弱められることにより文字エッジ部にぼけが生じることを防止すべく、比較的高い空間周波数成分を強調するものである。なお、図13のフィルタ係数は、一例であって、これに限定されるものではない。   FIG. 13 is an explanatory diagram illustrating an example of a filter coefficient having enhancement characteristics. Filter coefficients with emphasis or sharpening characteristics emphasize relatively high spatial frequency components to prevent blurring at the character edge due to weakening of high spatial frequency components compared to low spatial frequency components To do. Note that the filter coefficients in FIG. 13 are examples, and the present invention is not limited to these.

混合比算出部52は、局所濃度算出部51で算出した局所濃度値と領域分離信号Aとに基づいて、重み付け係数(混合比)α、βを設定し、設定した重み付け係数α、βを重み付け処理部55へ出力する。   The mixing ratio calculation unit 52 sets weighting coefficients (mixing ratios) α and β based on the local density value calculated by the local density calculation unit 51 and the region separation signal A, and weights the set weighting coefficients α and β. Output to the processing unit 55.

図14は重み付け係数α、βの設定の一例を示す説明図である。図14に示すように、混合比算出部52は、領域分離信号Aが文字エッジ領域の場合は、局所濃度値に係わらず、重み付け係数α=0、重み付け係数β=1の如く設定する。領域分離信号Aが文字エッジ領域の場合、係数組選択部56は、強調特性を有するフィルタ係数を選択するので、空間フィルタ処理結果は、第2フィルタ演算部54の出力と同一、つまり強調特性のフィルタ処理結果を得ることになる。すなわち、文字エッジが強調された画像データが出力される。   FIG. 14 is an explanatory diagram showing an example of setting the weighting coefficients α and β. As shown in FIG. 14, when the region separation signal A is a character edge region, the mixture ratio calculation unit 52 sets the weighting coefficient α = 0 and the weighting coefficient β = 1 regardless of the local density value. When the region separation signal A is a character edge region, the coefficient set selection unit 56 selects a filter coefficient having an emphasis characteristic, so that the spatial filter processing result is the same as the output of the second filter operation unit 54, that is, the emphasis characteristic A filter processing result is obtained. That is, image data in which character edges are emphasized is output.

混合比算出部52は、領域分離信号Aが網点又はその他領域(すなわち、文字エッジ領域以外)で、局所濃度値が大きい(例えば、局所濃度値が250以上)場合、重み付け係数α=1、重み付け係数β=0の如く設定する。この場合、空間フィルタ処理結果は、第1フィルタ演算部53の出力と同一のフィルタ処理結果、すなわち、平滑化処理された画像データが得られる。   When the region separation signal A is a halftone dot or other region (that is, other than the character edge region) and the local density value is large (for example, the local density value is 250 or more), the mixing ratio calculation unit 52 has a weighting coefficient α = 1, The weighting coefficient β = 0 is set. In this case, as the spatial filter processing result, the same filter processing result as the output of the first filter calculation unit 53, that is, smoothed image data is obtained.

混合比算出部52は、領域分離信号Aが網点又はその他領域(すなわち、文字エッジ領域以外)で、局所濃度値が小さい(例えば、局所濃度値が105以下)場合、重み付け係数α=0、重み付け係数β=1の如く設定する。領域分離信号Aが網点又はその他領域である場合、係数組選択部56は、強調特性と平滑特性を併せ持ったフィルタ係数を選択するので、強調特性と平滑特性をもったフィルタ処理がなされる。   When the region separation signal A is a halftone dot or other region (that is, other than a character edge region) and the local density value is small (for example, the local density value is 105 or less), the mixture ratio calculation unit 52 has a weighting coefficient α = 0, The weighting coefficient β = 1 is set. When the region separation signal A is a halftone dot or other region, the coefficient group selection unit 56 selects a filter coefficient having both enhancement characteristics and smoothing characteristics, so that filter processing having enhancement characteristics and smoothing characteristics is performed.

混合比算出部52は、領域分離信号Aが網点又はその他領域(すなわち、文字エッジ領域以外)で、局所濃度値が中間値(例えば、局所濃度値が105〜250)場合、重み付け係数α=1−a、重み付け係数β=a(0<a<1)の如く設定する。領域分離信号Aが網点又はその他領域である場合、係数組選択部56は、強調特性と平滑特性を併せ持ったフィルタ係数を選択するので、濃度値に応じて、第2フィルタ演算部54で強調特性と平滑特性を併せ持ったフィルタ係数によるフィルタ演算と、第1フィルタ演算部53で平滑特性を有するフィルタ係数による演算結果とが混合された処理がなされる。   When the region separation signal A is a halftone dot or other region (that is, other than a character edge region) and the local density value is an intermediate value (for example, the local density value is 105 to 250), the mixture ratio calculation unit 52 calculates the weighting coefficient α = 1-a and weighting coefficient β = a (0 <a <1) are set. When the region separation signal A is a halftone dot or other region, the coefficient set selection unit 56 selects a filter coefficient having both enhancement characteristics and smoothing characteristics, so that the second filter calculation unit 54 enhances the density according to the density value. A process is performed in which the filter calculation using the filter coefficient having both characteristics and smoothing characteristics and the calculation result using the filter coefficient having the smoothing characteristic are mixed in the first filter calculation unit 53.

上述のように、網点領域やその他領域について、局所濃度値によって、フィルタ処理の方法を切り替えることにより、網点領域及びその他領域の高濃度域においては平滑化を施して入力画像データに含まれるノイズを増幅することを抑制し、網点領域及びその他領域の低濃度域においては、強調特性と平滑特性をもったフィルタ処理を行うことで、低周波成分に対するMTF特性を改善しつつ、不要な高周波成分を除去することができる。   As described above, the halftone dot region and other regions are included in the input image data by performing smoothing in the high density region of the halftone dot region and other regions by switching the filtering method according to the local density value. Amplification of noise is suppressed, and in the low density region of the halftone dot region and other regions, by performing filter processing with emphasis characteristics and smoothing characteristics, it is unnecessary while improving the MTF characteristics for low frequency components. High frequency components can be removed.

次に実施の形態2の画像処理部100の動作について説明する。図15は実施の形態2の画像処理部100の空間フィルタ処理の手順の一例を示すフローチャートである。空間フィルタ処理部50(以下、処理部50という)は、注目画素の局所濃度値を算出し(S21)、局所濃度値及び領域分離信号に応じた重み付け係数(混合比)α、βを設定する(S22)。   Next, the operation of the image processing unit 100 according to the second embodiment will be described. FIG. 15 is a flowchart illustrating an example of a spatial filter processing procedure of the image processing unit 100 according to the second embodiment. The spatial filter processing unit 50 (hereinafter referred to as the processing unit 50) calculates the local density value of the pixel of interest (S21), and sets weighting coefficients (mixing ratios) α and β according to the local density value and the region separation signal. (S22).

処理部50は、入力画像データに対して第1フィルタ演算部53でフィルタ演算を行い(S23)、領域分離信号に基づいてフィルタ係数を選択し(S24)、入力画像データに対して、選択したフィルタ係数を用いて第2フィルタ演算部54でフィルタ演算を行う(S25)。なお、ステップS21、S22の処理、ステップS23の処理及びステップS24、S25の処理は並列処理をすることができる。   The processing unit 50 performs a filter operation on the input image data by the first filter operation unit 53 (S23), selects a filter coefficient based on the region separation signal (S24), and selects the input image data. Using the filter coefficient, the second filter calculation unit 54 performs filter calculation (S25). In addition, the process of step S21, S22, the process of step S23, and the process of step S24, S25 can be processed in parallel.

処理部50は、第1フィルタ演算部53の演算結果に係数αを乗算し(S26)、第2フィルタ演算部54の演算結果に係数βを乗算し(S27)、係数αを乗算した演算結果と係数βを乗算した演算結果を加算し(S28)、処理を終了する。   The processing unit 50 multiplies the calculation result of the first filter calculation unit 53 by the coefficient α (S26), multiplies the calculation result of the second filter calculation unit 54 by the coefficient β (S27), and multiplies the calculation result by the coefficient α. And the result of multiplication of the coefficient β are added (S28), and the process is terminated.

以上説明したように、平滑化処理を施す場合に文字エッジ領域を除外することにより、文字エッジの劣化を防止しつつ、高濃度領域で増幅されたノイズを平滑化処理で抑制することができ、画質低下を防止することができる。また、文字エッジ領域に対して強調特性をもったフィルタ処理を施し、又は文字エッジ領域以外の領域であっては局所濃度値に応じて強調特性と平滑特性をもったフィルタ処理を施すことにより、エッジを保存してエッジの劣化を防止することができる。また、画素領域の濃度(局所濃度値)が低濃度側から高濃度側に遷移するにつれて重み付け係数(混合比)α、βを連続的に変化させることにより、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   As described above, by excluding the character edge region when performing the smoothing process, the noise amplified in the high density region can be suppressed by the smoothing process while preventing the deterioration of the character edge, Image quality deterioration can be prevented. In addition, by performing a filter process having an emphasis characteristic on the character edge area, or by applying a filter process having an emphasis characteristic and a smooth characteristic according to the local density value in an area other than the character edge area, Edges can be preserved to prevent edge degradation. Also, when the density of the input image is changed by continuously changing the weighting coefficients (mixing ratios) α and β as the density (local density value) of the pixel region transitions from the low density side to the high density side. Even if it exists, it can suppress that the density | concentration of an output image produces a sudden change, and can further prevent deterioration of an image quality.

実施の形態3
上述の実施の形態1、2では、空間フィルタ処理部50は、第1フィルタ演算部53、第2フィルタ演算部54の2つのフィルタ演算部を備える構成であったが、空間フィルタ処理部50の構成は、これに限定されるものではなく、複数のフィルタ係数を混合して1つのフィルタ係数を生成し、生成したフィルタ係数を用いることでフィルタ演算部を1つに共通化することもできる。
Embodiment 3
In the first and second embodiments described above, the spatial filter processing unit 50 is configured to include the two filter calculation units of the first filter calculation unit 53 and the second filter calculation unit 54. The configuration is not limited to this, and a plurality of filter coefficients can be mixed to generate one filter coefficient, and the generated filter coefficient can be used to share a single filter operation unit.

図16は実施の形態3の空間フィルタ処理部50の構成の一例を示すブロック図である。実施の形態3では、空間フィルタ処理部50は、局所濃度算出部51、混合比算出部52、第1係数組供与部57、第2係数組供与部58、重み付け処理部59、フィルタ演算部501などを備え、重み付け処理部59は、乗算器591、592、加算器593を備えている。なお、局所濃度算出部51、混合比算出部52は、実施の形態1、2と同様であるので説明は省略する。   FIG. 16 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50 according to the third embodiment. In the third embodiment, the spatial filter processing unit 50 includes a local density calculation unit 51, a mixture ratio calculation unit 52, a first coefficient set donating unit 57, a second coefficient set donating unit 58, a weighting processing unit 59, and a filter calculation unit 501. The weighting processing unit 59 includes multipliers 591 and 592 and an adder 593. The local concentration calculation unit 51 and the mixture ratio calculation unit 52 are the same as those in the first and second embodiments, and thus the description thereof is omitted.

第1係数組供与部57は、平滑特性を有するフィルタ係数を格納し、第2係数組供与部58は、第1係数組供与部57が格納するフィルタ係数とは異なるフィルタ係数であって、例えば、強調特性と平滑特性を併せ持った混合特性のフィルタ係数を格納する。   The first coefficient set providing unit 57 stores filter coefficients having smooth characteristics, and the second coefficient set providing unit 58 is a filter coefficient different from the filter coefficients stored in the first coefficient set providing unit 57, for example, The filter coefficient of the mixed characteristic having both the emphasis characteristic and the smoothing characteristic is stored.

重み付け処理部59は、第1係数組供与部57から取り出したフィルタ係数に混合比算出部52で算出された重み付け係数αを乗算し、第2係数組供与部58から取り出したフィルタ係数に混合比算出部52で算出された重み付け係数βを乗算し、重み付け係数α、βがそれぞれ乗算されたフィルタ係数を加算して1つのフィルタ係数(混合フィルタ係数)を生成し、生成したフィルタ係数をフィルタ演算部501へ出力する。   The weighting processing unit 59 multiplies the filter coefficient extracted from the first coefficient group providing unit 57 by the weighting coefficient α calculated by the mixing ratio calculating unit 52 and the filter coefficient extracted from the second coefficient group providing unit 58 to the mixing ratio. The weighting coefficient β calculated by the calculation unit 52 is multiplied, and the filter coefficients multiplied by the weighting coefficients α and β are added to generate one filter coefficient (mixed filter coefficient), and the generated filter coefficient is filtered. Output to the unit 501.

フィルタ演算部501は、2種類のフィルタ係数が混合されて生成されたフィルタ係数を用いて、入力画像データとのコンボリューション演算を行う。   The filter calculation unit 501 performs a convolution calculation with input image data using a filter coefficient generated by mixing two types of filter coefficients.

ここで、フィルタ係数の混合方法について説明する。図17は空間フィルタカーネルの構成例を示す説明図である。図17に示すように、空間フィルタカーネルは、参照画素領域に対応した大きさを有し、フィルタ演算用の係数L(−H、−V)、…、L(0、0)、…、L(H、V)を有する。   Here, a method of mixing filter coefficients will be described. FIG. 17 is an explanatory diagram showing a configuration example of the spatial filter kernel. As shown in FIG. 17, the spatial filter kernel has a size corresponding to the reference pixel region, and coefficients L (−H, −V),..., L (0, 0),. (H, V).

混合する2つのフィルタ係数の構成を、例えば、上述の図5の例及び図17の例であるとし、入力画像データI(i、j)に対して、フィルタ係数をα:β(α+β=1)の比率で適用してフィルタ処理を行うものとする。O(x、y)を注目画素に対するフィルタ処理結果であるとすると、O(x、y)は、式(2)で表わすことができる。   The configuration of the two filter coefficients to be mixed is, for example, the example of FIG. 5 and the example of FIG. 17 described above. ) To apply the filtering process. Assuming that O (x, y) is the filter processing result for the target pixel, O (x, y) can be expressed by Expression (2).

Figure 0004903254
Figure 0004903254

ここで、式(3)を満たすように予めフィルタ係数を正規化している場合には、O(x、y)は、式(4)で表わすことができる。   Here, when the filter coefficient is normalized in advance so as to satisfy Expression (3), O (x, y) can be expressed by Expression (4).

入力画像データI(i、j)に対して、フィルタ係数をα:β(α+β=1)の比率で適用してフィルタ処理を行う処理は、フィルタ係数をα:βで混合して新たなフィルタ係数を生成し、生成されたフィルタ係数を用いてフィルタ処理を行う場合と等価になる。   The process of applying the filter coefficient to the input image data I (i, j) at a ratio of α: β (α + β = 1) is performed by mixing the filter coefficient at α: β and creating a new filter. This is equivalent to a case where a coefficient is generated and filter processing is performed using the generated filter coefficient.

次に画像処理部100の動作について説明する。図18は実施の形態3の画像処理部100の空間フィルタ処理の手順の一例を示すフローチャートである。空間フィルタ処理部50(以下、処理部50という)は、注目画素の局所濃度値を算出し(S31)、局所濃度値に応じて重み付け係数(混合比)α、βを設定する(S32)。   Next, the operation of the image processing unit 100 will be described. FIG. 18 is a flowchart illustrating an example of the procedure of the spatial filter processing of the image processing unit 100 according to the third embodiment. The spatial filter processing unit 50 (hereinafter referred to as the processing unit 50) calculates a local density value of the pixel of interest (S31), and sets weighting coefficients (mixing ratios) α and β according to the local density value (S32).

処理部50は、第1係数組供与部57から取り出したフィルタ係数に係数αを乗算し(S33)、第2係数組供与部58から取り出したフィルタ係数に係数βを乗算する(S34)。処理部50は、係数αを乗算したフィルタ係数と係数βを乗算したフィルタ係数を加算し(S35)、加算されたフィルタ係数を用いてフィルタ演算を行い(S36)、処理を終了する。   The processing unit 50 multiplies the filter coefficient extracted from the first coefficient set providing unit 57 by the coefficient α (S33), and multiplies the filter coefficient extracted from the second coefficient set providing unit 58 by the coefficient β (S34). The processing unit 50 adds the filter coefficient multiplied by the coefficient α and the filter coefficient multiplied by the coefficient β (S35), performs a filter operation using the added filter coefficient (S36), and ends the process.

以上説明したように、フィルタ演算部を1つにし(共通化し)、画素領域の濃度(局所濃度値)に応じて、複数のフィルタ係数を混合して1つのフィルタ係数を生成しているので、例えば、複数のフィルタ演算部を設けて、それぞれのフィルタ演算部で処理する場合に比べて処理量を低減することができる。特に、フィルタのサイズ(フィルタマトリクスのサイズ)が大きい場合には処理量を一層低減することができる。また、フィルタ係数の係数値の種類が少ない場合には、処理量を最適化することができる。   As described above, a single filter operation unit is generated (shared) and a plurality of filter coefficients are mixed to generate one filter coefficient according to the density (local density value) of the pixel region. For example, it is possible to reduce the amount of processing compared to a case where a plurality of filter calculation units are provided and processing is performed by each filter calculation unit. In particular, when the filter size (filter matrix size) is large, the amount of processing can be further reduced. In addition, when the number of filter coefficient types is small, the processing amount can be optimized.

実施の形態4
上述の実施の形態3では、第2係数組供与部58は、第1係数組供与部57で格納した平滑特性を有するフィルタ係数とは異なるフィルタ係数を格納する構成であったが、これに限定されるものではなく、第2係数組供与部58で複数のフィルタ係数を格納しておき、領域分離信号Aに応じて、格納したフィルタ係数の中から1つのフィルタ係数を選択するとともに、混合比算出部52で算出する重み付け係数(混合比)α、βを領域分離信号Aに応じて設定することもできる。
Embodiment 4
In the third embodiment described above, the second coefficient group provision unit 58 is configured to store filter coefficients different from the filter coefficients having the smoothing characteristics stored in the first coefficient group provision unit 57. However, the present invention is not limited to this. The second coefficient set providing unit 58 stores a plurality of filter coefficients, and selects one filter coefficient from the stored filter coefficients in accordance with the region separation signal A, and the mixing ratio. The weighting coefficients (mixing ratios) α and β calculated by the calculation unit 52 can also be set according to the region separation signal A.

図19は実施の形態4の空間フィルタ処理部50の構成の一例を示すブロック図である。空間フィルタ処理部50の構成は、実施の形態3の場合と同様であるが、領域分離信号Aが、混合比算出部52及び第2係数組供与部58へ出力されている点が異なる。   FIG. 19 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50 according to the fourth embodiment. The configuration of the spatial filter processing unit 50 is the same as that of the third embodiment, except that the region separation signal A is output to the mixing ratio calculation unit 52 and the second coefficient group provision unit 58.

混合比算出部52は、局所濃度算出部51から出力される局所濃度値及び領域分離信号Aに基づいて、重み付け係数(混合比)α、βを算出する。なお、算出方法は実施の形態2と同様である。   The mixing ratio calculation unit 52 calculates weighting coefficients (mixing ratios) α and β based on the local concentration value and the region separation signal A output from the local concentration calculation unit 51. The calculation method is the same as in the second embodiment.

第2係数組供与部58は、実施の形態2(図12)の係数組選択部56と同様に、図7の例で示したような強調特性と平滑特性を併せ持った混合特性のフィルタ係数、図13の例で示したような強調特性を有するフィルタ係数などを格納してある。第2係数組供与部58は、領域分離信号Aに応じたフィルタ係数を選択し、選択したフィルタ係数を重み付け処理部59へ出力する。例えば、領域分離信号Aが文字エッジ領域の場合は強調特性を有するフィルタ係数が選択され、領域分離信号Aが網点領域又はその他領域(すなわち、文字エッジ領域以外)である場合は、強調特性と平滑特性を併せ持ったフィルタ係数が選択される。   Similar to the coefficient group selection unit 56 of the second embodiment (FIG. 12), the second coefficient group provision unit 58 is a mixed coefficient filter coefficient having both enhancement characteristics and smoothing characteristics as shown in the example of FIG. A filter coefficient having an emphasis characteristic as shown in the example of FIG. 13 is stored. The second coefficient set provision unit 58 selects a filter coefficient corresponding to the region separation signal A and outputs the selected filter coefficient to the weighting processing unit 59. For example, when the region separation signal A is a character edge region, a filter coefficient having an enhancement characteristic is selected. When the region separation signal A is a halftone region or another region (that is, other than a character edge region), A filter coefficient having smoothing characteristics is selected.

第1係数組供与部57、重み付け処理部59、フィルタ演算部501は、実施の形態3と同様であるので説明は省略する。   Since the first coefficient set provision unit 57, the weighting processing unit 59, and the filter calculation unit 501 are the same as those in the third embodiment, description thereof is omitted.

次に画像処理部100の動作について説明する。図20は実施の形態4の画像処理部100の空間フィルタ処理の手順の一例を示すフローチャートである。空間フィルタ処理部50(以下、処理部50という)は、注目画素の局所濃度値を算出し(S41)、局所濃度値及び領域分離信号に応じて重み付け係数(混合比)α、βを設定する(S42)。   Next, the operation of the image processing unit 100 will be described. FIG. 20 is a flowchart illustrating an example of the procedure of the spatial filter processing of the image processing unit 100 according to the fourth embodiment. The spatial filter processing unit 50 (hereinafter referred to as the processing unit 50) calculates the local density value of the target pixel (S41), and sets weighting coefficients (mixing ratios) α and β according to the local density value and the region separation signal. (S42).

処理部50は、第1係数組供与部57から取り出したフィルタ係数に係数αを乗算し(S43)、領域分離信号に応じて第2係数組供与部58のフィルタ係数を選択し(S44)、第2係数組供与部58から取り出した選択後のフィルタ係数に係数βを乗算する(S45)。処理部50は、係数αを乗算したフィルタ係数と係数βを乗算したフィルタ係数を加算し(S46)、加算されたフィルタ係数を用いてフィルタ演算を行い(S47)、処理を終了する。   The processing unit 50 multiplies the filter coefficient extracted from the first coefficient group providing unit 57 by the coefficient α (S43), and selects the filter coefficient of the second coefficient group providing unit 58 according to the region separation signal (S44). The selected filter coefficient taken out from the second coefficient set providing unit 58 is multiplied by a coefficient β (S45). The processing unit 50 adds the filter coefficient multiplied by the coefficient α and the filter coefficient multiplied by the coefficient β (S46), performs a filter operation using the added filter coefficient (S47), and ends the process.

以上説明したように、平滑化処理を施す場合に文字エッジ領域を除外することにより、文字エッジの劣化を防止しつつ、高濃度領域で増幅されたノイズを平滑化処理で抑制することができ、画質低下を防止することができる。また、文字エッジ領域に対して強調特性をもったフィルタ処理を施し、又は文字エッジ領域以外の領域であっては局所濃度値に応じて強調特性と平滑特性をもったフィルタ処理を施すことにより、エッジを保存してエッジの劣化を防止することができる。また、画素領域の濃度(局所濃度値)が低濃度側から高濃度側に遷移するにつれて重み付け係数(混合比)α、βを連続的に変化させることにより、入力画像の濃度が変化した場合であっても出力画像の濃度に急激な変化を生じさせることを抑制でき、画質の劣化をさらに防止することができる。   As described above, by excluding the character edge region when performing the smoothing process, the noise amplified in the high density region can be suppressed by the smoothing process while preventing the deterioration of the character edge, Image quality deterioration can be prevented. In addition, by performing a filter process having an emphasis characteristic on the character edge area, or by applying a filter process having an emphasis characteristic and a smooth characteristic according to the local density value in an area other than the character edge area, Edges can be preserved to prevent edge degradation. Also, when the density of the input image is changed by continuously changing the weighting coefficients (mixing ratios) α and β as the density (local density value) of the pixel region transitions from the low density side to the high density side. Even if it exists, it can suppress that the density | concentration of an output image produces a sudden change, and can further prevent deterioration of an image quality.

実施の形態5
上述の実施の形態では、局所濃度値がD2のところで混合比算出部52で算出する重み付け係数(混合比)α、βは、α=1、β=0とする構成であったが、これに限定されるものではない。
Embodiment 5
In the above-described embodiment, the weighting coefficients (mixing ratios) α and β calculated by the mixing ratio calculation unit 52 when the local density value is D2 are configured such that α = 1 and β = 0. It is not limited.

図21は重み付け係数α、βの他の例を示す説明図である。図21において、横軸は局所濃度算出部51で算出した局所濃度値であり、縦軸は重み付け値である。図21に示すように、局所濃度値がD2のところで、重み付け係数α<1、重み付け係数β>0としている。これにより、平滑化処理の結果である第1フィルタ演算部53での演算又は第1係数組供与部57のフィルタ係数を用いたフィルタ演算の処理結果と、第2フィルタ演算部54での演算又は第2係数組供与部58のフィルタ係数を用いたフィルタ演算の処理結果との混合出力が最大濃度でも行われる。   FIG. 21 is an explanatory diagram showing another example of the weighting coefficients α and β. In FIG. 21, the horizontal axis represents the local density value calculated by the local density calculation unit 51, and the vertical axis represents the weighting value. As shown in FIG. 21, when the local density value is D2, the weighting coefficient α <1 and the weighting coefficient β> 0 are set. As a result, the calculation result of the smoothing process in the first filter calculation unit 53 or the filter calculation process result using the filter coefficient of the first coefficient set providing unit 57 and the calculation in the second filter calculation unit 54 or The mixed output with the processing result of the filter calculation using the filter coefficient of the second coefficient group providing unit 58 is performed even at the maximum density.

この実施の形態5の構成における利点として、第1フィルタ演算部53での演算又は第1係数組供与部57のフィルタ係数を用いたフィルタ演算を簡易化できる場合がある点を挙げることができる。   As an advantage in the configuration of the fifth embodiment, it can be mentioned that the calculation in the first filter calculation unit 53 or the filter calculation using the filter coefficient of the first coefficient group providing unit 57 may be simplified.

図22は平滑特性を有するフィルタ係数の一例を示す説明図である。図22に示すようなフィルタ係数の場合、フィルタ係数の値は、1、0のみであり、係数値の種類が少ない。このため、フィルタ演算に要する処理量を少なくすることができる。図22の例のような強力な平滑特性を有するフィルタ係数を用いた第1フィルタ演算部53での演算又は第1係数組供与部57の図22の例のようなフィルタ係数を用いたフィルタ演算の処理結果と、第2フィルタ演算部54での演算又は第2係数組供与部58のフィルタ係数を用いたフィルタ演算の処理結果とを混合することで、強力な平滑化結果を弱め、適度な平滑化結果を得ることが出来る。   FIG. 22 is an explanatory diagram showing an example of a filter coefficient having smoothing characteristics. In the case of a filter coefficient as shown in FIG. 22, the filter coefficient values are only 1 and 0, and there are few types of coefficient values. For this reason, the processing amount required for the filter operation can be reduced. The calculation in the first filter calculation unit 53 using filter coefficients having strong smoothing characteristics as in the example of FIG. 22 or the filter calculation using the filter coefficients as in the example of FIG. And the processing result of the filter operation using the filter coefficient of the second coefficient set providing unit 58 are weakened by mixing the calculation result of the above and the result of the calculation by the second filter calculation unit 54 or the filter coefficient of the second coefficient set providing unit 58. Smoothing results can be obtained.

実施の形態6
上述の実施の形態では、R、G、Bの色毎に局所濃度値を算出して重み付け係数(混合比)α、βを算出する構成であったが、これに限定されるものではなく、R、G、Bの複数色の局所濃度値を算出し、算出した局所濃度値に基づいて各色に共通の重み付け係数α、βを算出する構成とすることもできる。
Embodiment 6
In the above-described embodiment, the local density value is calculated for each of R, G, and B to calculate the weighting coefficients (mixing ratios) α and β. However, the present invention is not limited to this. A configuration is also possible in which local density values of a plurality of colors of R, G, and B are calculated, and weighting coefficients α and β common to the respective colors are calculated based on the calculated local density values.

図23は実施の形態6の空間フィルタ処理部50の構成の一例を示すブロック図であり、図24は各色空間フィルタ部504、505、506の構成の一例を示すブロック図である。図23に示すように、実施の形態6の空間フィルタ処理部50は、共通局所濃度算出部502、共通混合比算出部503、各色空間フィルタ部504、505、506などを備えている。   FIG. 23 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50 according to the sixth embodiment, and FIG. 24 is a block diagram illustrating an example of the configuration of each of the color space filter units 504, 505, and 506. As shown in FIG. 23, the spatial filter processing unit 50 according to the sixth embodiment includes a common local density calculation unit 502, a common mixture ratio calculation unit 503, and color space filter units 504, 505, and 506.

共通局所濃度算出部502は、図3の例に示すように5画素×5画素の画素領域に対して、全て同じ重み係数(図3の例では、1)を付与した係数組を用いて色毎にコンボリューション演算を行った後、更に色毎に重みを加味して加重平均値を算出して局所濃度値を算出する。例えば、R、G、Bの三色の場合、R、G、Bの各色の重みをそれぞれ0.30、0.58、0.12として加重平均することにより、色毎の濃度ではなく光量に対応した濃度値を得ることが出来る。   As shown in the example of FIG. 3, the common local density calculation unit 502 uses a coefficient set in which all the same weighting coefficients (1 in the example of FIG. 3) are assigned to a pixel area of 5 pixels × 5 pixels. After the convolution calculation is performed every time, a weighted average value is calculated by adding a weight for each color to calculate a local density value. For example, in the case of three colors of R, G, and B, the weight of each color of R, G, and B is 0.30, 0.58, and 0.12, respectively. Corresponding density values can be obtained.

共通混合比算出部503は、共通局所濃度算出部502で算出した局所濃度値及び領域分離信号Aに応じて、各色に対して共通の重み付け係数(混合比)α、βを算出し、算出した重み付け係数α、βを各色空間フィルタ部504、505、506へ出力する。   The common mixture ratio calculation unit 503 calculates and calculates common weighting coefficients (mixing ratios) α and β for each color according to the local density value calculated by the common local density calculation unit 502 and the region separation signal A. The weighting coefficients α and β are output to the color space filter units 504, 505, and 506, respectively.

各色空間フィルタ部504は、第1フィルタ演算部53、第2フィルタ演算部54、係数組選択部56、重み付け処理部55を備えている。第1フィルタ演算部53、第2フィルタ演算部54、係数組選択部56、重み付け処理部55の構成は、図12の例と同様であるので説明は省略する。また、各色空間フィルタ部505、506は、各色空間フィルタ部504と同様の構成を有する。   Each color space filter unit 504 includes a first filter calculation unit 53, a second filter calculation unit 54, a coefficient set selection unit 56, and a weighting processing unit 55. The configurations of the first filter calculation unit 53, the second filter calculation unit 54, the coefficient group selection unit 56, and the weighting processing unit 55 are the same as those in the example of FIG. Each color space filter unit 505 and 506 has the same configuration as each color space filter unit 504.

以上の構成により、各色に対して、共通の重み付け係数(混合比)α、βを用いることで、全色に対して共通のフィルタ処理を施すことが出来る。これにより、混色時に色毎に異なったフィルタ処理が施されることがなく、混色時と非混色時の画質の違いを防止することができる。   With the above configuration, common filter processing can be applied to all colors by using common weighting coefficients (mixing ratios) α and β for each color. Thus, different filter processing is not performed for each color during color mixing, and a difference in image quality between color mixing and non-color mixing can be prevented.

実施の形態7
上述の実施の形態では、第1フィルタ演算部53、第2フィルタ演算部54を並列に設け、同じ入力画像データを入力して個々に演算する構成であったが、これに限定されるものではなく、第1フィルタ演算部53、第2フィルタ演算部54を直列に設けることもできる。
Embodiment 7
In the above-described embodiment, the first filter calculation unit 53 and the second filter calculation unit 54 are provided in parallel, and the same input image data is input and calculated individually. However, the present invention is not limited to this. Alternatively, the first filter calculation unit 53 and the second filter calculation unit 54 may be provided in series.

図25は実施の形態7の空間フィルタ処理部50の構成の一例を示すブロック図である。実施の形態7の空間フィルタ処理部50は、局所濃度算出部51、第1係数組選択部561、第2係数組選択部562、第1フィルタ演算部53、第2フィルタ演算部54などを備えている。   FIG. 25 is a block diagram illustrating an example of the configuration of the spatial filter processing unit 50 according to the seventh embodiment. The spatial filter processing unit 50 according to the seventh embodiment includes a local density calculation unit 51, a first coefficient group selection unit 561, a second coefficient group selection unit 562, a first filter calculation unit 53, a second filter calculation unit 54, and the like. ing.

第1係数組選択部561は、予め複数組のフィルタ係数を格納してあり、局所濃度算出部51で算出した局所濃度値及び領域分離信号Aに応じてフィルタ係数を選択し、選択したフィルタ係数を第1フィルタ演算部53へ出力する。   The first coefficient group selection unit 561 stores a plurality of sets of filter coefficients in advance, selects a filter coefficient according to the local density value calculated by the local density calculation unit 51 and the region separation signal A, and selects the selected filter coefficient. Is output to the first filter calculation unit 53.

図26はフィルタ係数の選択方法の一例を示す説明図であり、図27は第1フィルタ係数の一例を示す説明図であり、図28は第2フィルタ係数の一例を示す説明図であり、図29は第3フィルタ係数の一例を示す説明図である。図26に示すように、第1係数組選択部561は、領域分離信号Aが網点又はその他領域(すなわち、文字エッジ領域以外)である場合、局所濃度値に応じて、平滑化特性の平滑化の度合いが異なる第1フィルタ係数(図27参照)、第2フィルタ係数(図28参照)、第3フィルタ係数(図29参照)、第4フィルタ係数(図6参照)のいずれかを選択する。これにより、例えば、局所濃度値が大きく(高濃度)なるに応じて、平滑化の度合いを高くするようにする。これにより、高濃度領域におけるノイズを抑制するとともに、ノイズに起因するフィルタ処理後の平均濃度の増加を抑制することができ、画質劣化を防止することができる。   26 is an explanatory diagram illustrating an example of a filter coefficient selection method, FIG. 27 is an explanatory diagram illustrating an example of a first filter coefficient, and FIG. 28 is an explanatory diagram illustrating an example of a second filter coefficient. 29 is an explanatory diagram showing an example of the third filter coefficient. As shown in FIG. 26, when the region separation signal A is a halftone dot or other region (that is, other than the character edge region), the first coefficient set selection unit 561 smoothes the smoothing characteristic according to the local density value. The first filter coefficient (see FIG. 27), the second filter coefficient (see FIG. 28), the third filter coefficient (see FIG. 29), and the fourth filter coefficient (see FIG. 6) having different degrees of conversion are selected. . Thereby, for example, as the local density value increases (high density), the degree of smoothing is increased. Thereby, while suppressing the noise in a high density area | region, the increase in the average density after the filter process resulting from noise can be suppressed, and image quality degradation can be prevented.

また、第1係数組選択部561は、領域分離信号Aが文字エッジ領域である場合、局所濃度値に関わらず、第1フィルタ係数(図27参照)を選択し、平滑化処理を施さないようにする。   Further, when the region separation signal A is a character edge region, the first coefficient set selection unit 561 selects the first filter coefficient (see FIG. 27) regardless of the local density value, and does not perform the smoothing process. To.

第2係数組選択部562は、領域分離信号Aが網点又はその他領域(すなわち、文字エッジ領域以外)である場合、図7に示すような混合特性のフィルタ処理を行うためのフィルタ係数を選択し、領域分離信号Aが文字エッジ領域である場合、図13に示すような強調特性を有するフィルタ処理を行うためのフィルタ係数を選択し、選択したフィルタ係数を第2フィルタ演算部54へ出力する。   When the region separation signal A is a halftone dot or other region (that is, other than the character edge region), the second coefficient group selection unit 562 selects a filter coefficient for performing the filtering process of the mixed characteristic as shown in FIG. If the region separation signal A is a character edge region, a filter coefficient for performing filter processing having emphasis characteristics as shown in FIG. 13 is selected, and the selected filter coefficient is output to the second filter calculation unit 54. .

第1フィルタ演算部53は、第1係数組選択部561で選択したフィルタ係数を用いて、入力画像データに対してフィルタ演算を行い、演算後の画像データを第2フィルタ演算部54へ出力する。   The first filter calculation unit 53 performs a filter calculation on the input image data using the filter coefficient selected by the first coefficient set selection unit 561 and outputs the calculated image data to the second filter calculation unit 54. .

第2フィルタ演算部54は、第2係数組選択部562で選択したフィルタ係数を用いて、第1フィルタ演算部53から出力された画像データに対してフィルタ演算を行う。   The second filter calculation unit 54 performs a filter calculation on the image data output from the first filter calculation unit 53 using the filter coefficient selected by the second coefficient set selection unit 562.

上述のとおり、第1係数組選択部561は、平滑化特性を有する複数のフィルタ係数の中から、局所濃度値及び領域分離信号Aに応じて1つのフィルタ係数を選択し、第2係数組選択部562は、強調特性と平滑化特性とを組み合わせた混合特性を有する複数のフィルタ係数の中から、領域分離信号Aに応じて1つのフィルタ係数を選択する。これにより、前段のフィルタ処理部である第1フィルタ演算部53で、ある程度の周波数以上のノイズを除去した後、第2フィルタ演算部54で特定の画像領域に対応した最適なフィルタ処理を行うことができる。なお、第1フィルタ演算部53と第2フィルタ演算部54とを入れ替えて処理の順序を変更することもできる。   As described above, the first coefficient set selection unit 561 selects one filter coefficient according to the local density value and the region separation signal A from the plurality of filter coefficients having smoothing characteristics, and selects the second coefficient set. The unit 562 selects one filter coefficient according to the region separation signal A from among a plurality of filter coefficients having a mixing characteristic obtained by combining the enhancement characteristic and the smoothing characteristic. As a result, the first filter calculation unit 53, which is the preceding filter processing unit, removes noise having a certain frequency or higher, and then the second filter calculation unit 54 performs the optimum filter processing corresponding to a specific image region. Can do. Note that the order of processing can be changed by exchanging the first filter calculation unit 53 and the second filter calculation unit 54.

次に実施の形態7の画像処理部100の動作について説明する。図30は実施の形態7の画像処理部100の空間フィルタ処理の手順の一例を示すフローチャートである。空間フィルタ処理部50(以下、処理部50という)は、注目画素の局所濃度値を算出し(S51)、局所濃度値及び領域分離信号に応じて第1係数組のフィルタ係数を選択する(S52)。   Next, the operation of the image processing unit 100 according to the seventh embodiment will be described. FIG. 30 is a flowchart illustrating an example of a spatial filter processing procedure of the image processing unit 100 according to the seventh embodiment. The spatial filter processing unit 50 (hereinafter referred to as the processing unit 50) calculates a local density value of the target pixel (S51), and selects a filter coefficient of the first coefficient group according to the local density value and the region separation signal (S52). ).

処理部50は、選択されたフィルタ係数を用いて第1フィルタ演算部53で演算を行い(S53)、演算結果を第2フィルタ演算部54へ出力する。処理部50は、領域分離信号に応じて第2係数組のフィルタ係数を選択し(S54)、選択したフィルタ係数を用いて第1フィルタ演算部53の演算結果に対して第2フィルタ演算部54で演算を行い(S55)、処理を終了する。   The processing unit 50 performs calculation in the first filter calculation unit 53 using the selected filter coefficient (S53), and outputs the calculation result to the second filter calculation unit 54. The processing unit 50 selects a filter coefficient of the second coefficient group according to the region separation signal (S54), and uses the selected filter coefficient to perform the second filter calculation unit 54 on the calculation result of the first filter calculation unit 53. In step S55, the process is terminated.

実施の形態8
上述の実施の形態において、デジタルカラー複写機(又は複合機)に備えられた空間フィルタ処理部50及び制御部(不図示)を構成する各部(各機能ブロック)は、CPU等のプロセッサを用いてソフトウェアによって実現することもできる。すなわち、デジタル複写機(または複合機)は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラム及び各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。
Embodiment 8
In the above-described embodiment, each unit (each functional block) constituting the spatial filter processing unit 50 and the control unit (not shown) provided in the digital color copying machine (or multifunction machine) uses a processor such as a CPU. It can also be realized by software. That is, a digital copying machine (or a multifunction machine) includes a central processing unit (CPU) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and a RAM ( random access memory), a storage device (recording medium) such as a memory for storing the program and various data.

本発明は、上述した機能を実現するソフトウェアであるデジタル複写機(又は複合機)の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、デジタル複写機(又は複合機)に供給し、そのコンピュータ(又はCPU、MPUなど)が記録媒体に記録されたプログラムコードを読み出し実行することで達成することができる。   The present invention provides a recording medium in which a program code (execution format program, intermediate code program, source program) of a control program for a digital copying machine (or multifunction machine), which is software that realizes the above-described functions, is recorded in a computer-readable manner. This can be achieved by supplying the program to a digital copying machine (or a multifunction machine) and reading and executing the program code recorded on the recording medium by the computer (or CPU, MPU, etc.).

上記記録媒体としては、例えば、磁気テープ、カセットテープ等のテープ系、フレキシブルディスク若しくはハードディスク等の磁気ディスク、CD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk or a hard disk, a disk system including an optical disk such as a CD-ROM / MO / MD / DVD / CD-R, and an IC card. A card system such as an optical card (including a memory card) or a semiconductor memory system such as a mask ROM / EPROM / EEPROM / flash ROM can be used.

また、デジタル複写機(又は複合機)を通信ネットワークと接続可能に構成し、通信ネットワークを介して上記プログラムコードを供給してもよい。この通信ネットワークとしては、特に限定されるものではなく、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されるものではなく、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも利用可能であり、また、IrDA又はリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。   Further, a digital copying machine (or a multifunction machine) may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network Satellite communication networks can be used. In addition, the transmission medium constituting the communication network is not particularly limited, and for example, it can be used by wired lines such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, and IrDA. Alternatively, it can also be used by wireless such as infrared rays such as remote control, Bluetooth (registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network.

なお、本発明は上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。また、デジタル複写機(又は複合機)の各機能ブロックは、ソフトウェアを用いて実現されるものに限らず、ハードウェアロジックによって構成されるものであってもよく、処理の一部を行うハードウェアと当該ハードウェアの制御、残余の処理を行うソフトウェアを実行する演算手段とを組み合わせたものであってもよい。   The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission. In addition, each functional block of the digital copying machine (or multifunction device) is not limited to being realized using software, and may be configured by hardware logic, and hardware that performs a part of processing. And a calculation means for executing software for controlling the hardware and performing the remaining processing may be used.

本発明は、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上述の各処理を行うコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ又は液晶ディスプレイなどの画像表示装置、及びコンピュータの処理結果を紙などに出力するプリンタ等の画像形成装置により構成されてもよい。また、ネットワークを介してサーバーなどに接続するための通信手段としてのネットワークカードやモデムなどが備えることもできる。   The present invention includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs the above-described processes by loading a predetermined program, a CRT display or a liquid crystal display that displays the processing results of the computer, etc. The image forming apparatus may be configured by an image display apparatus and an image forming apparatus such as a printer that outputs the processing result of the computer to paper or the like. In addition, a network card, a modem, or the like as a communication means for connecting to a server or the like via a network can be provided.

上述の実施の形態で示したフィルタ係数は、一例であって、これに限定されるものではなく、異なる係数値を有するフィルタ係数、異なるサイズのフィルタ係数を適宜用いることができる。   The filter coefficients shown in the above-described embodiments are examples, and the present invention is not limited to this. Filter coefficients having different coefficient values and filter coefficients having different sizes can be used as appropriate.

10 A/D変換部
20 シェーディング補正部
30 視感度補正部
40 領域分離処理部
50 空間フィルタ処理部
51 局所濃度算出部
52 混合比算出部
53 第1フィルタ演算部
54 第2フィルタ演算部
55、59 重み付け処理部
551、552、591、592 乗算器
553、593 加算器
56 係数組選択部
561 第1係数組選択部
562 第2係数組選択部
57 第1係数組供与部
58 第2係数組供与部
501 フィルタ演算部
502 共通局所濃度算出部
503 共通混合比算出部
504、505、506 各色空間フィルタ部
60 変倍処理部
70 色補正部
80 中間調出力階調処理部
100 画像処理部
110 画像入力部
120 画像出力部
130 操作パネル
DESCRIPTION OF SYMBOLS 10 A / D conversion part 20 Shading correction | amendment part 30 Visibility correction | amendment part 40 Area | region separation process part 50 Spatial filter process part 51 Local density | concentration calculation part 52 Mixing ratio calculation part 53 1st filter calculation part 54 2nd filter calculation part 55, 59 Weighting processing unit 551, 552, 591, 592 Multiplier 553, 593 Adder 56 Coefficient group selection unit 561 First coefficient group selection unit 562 Second coefficient group selection unit 57 First coefficient group provision unit 58 Second coefficient group provision unit 501 Filter calculation unit 502 Common local density calculation unit 503 Common mixing ratio calculation unit 504, 505, 506 Each color space filter unit 60 Scaling processing unit 70 Color correction unit 80 Halftone output tone processing unit 100 Image processing unit 110 Image input unit 120 Image output unit 130 Operation panel

Claims (9)

入力画像データに対して画像処理を行う画像処理装置において、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、
該濃度算出手段で算出した濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理手段と、
前記濃度算出手段で算出した濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理手段と、
前記濃度算出手段で算出した濃度に応じて、前記第1処理手段及び第2処理手段それぞれで処理した画像データに対して重み付け処理を施す重み付け処理手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that performs image processing on input image data,
Density calculating means for calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image;
A first processing means for performing a smoothing process on input image data when the density calculated by the density calculation means is greater than a predetermined first density threshold;
When the density calculated by the density calculation unit is smaller than a predetermined second density threshold (<the first density threshold) , the input image data is enhanced, mixed with enhancement and smoothing, or strongly smoothed. A second processing means for performing any one of the processing combining the processing and the weak smoothing processing;
An image processing apparatus comprising: weighting processing means for performing weighting processing on image data processed by each of the first processing means and the second processing means in accordance with the density calculated by the density calculation means.
入力画像データに対してデジタルフィルタ演算処理を行う画像処理装置において、
入力画像データに対して平滑化処理を行うための第1フィルタ係数を記憶する記憶手段と、
入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数を記憶する記憶手段と、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、
該濃度算出手段で算出した濃度に応じて、前記第1フィルタ係数に対して重み付けを行う第1の係数と、前記第2フィルタ係数に対して重み付けを行う第2の係数とを設定する重み係数設定手段と
記重み係数設定手段で設定した第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を生成する重み付け処理手段と
入力画像データに対して、前記重み付け処理手段で生成した新たなフィルタ係数を用いてフィルタ演算を行う演算手段と
を備えることを特徴とする画像処理装置。
In an image processing apparatus that performs digital filter arithmetic processing on input image data,
Storage means for storing a first filter coefficient for performing smoothing processing on input image data;
Stores a second filter coefficient for performing any of enhancement processing, mixing processing of enhancement processing and smoothing processing, or processing combining strong smoothing processing and weak smoothing processing on input image data. Storage means for
Density calculating means for calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image;
A weighting coefficient for setting a first coefficient for weighting the first filter coefficient and a second coefficient for weighting the second filter coefficient in accordance with the density calculated by the density calculation means Setting means ;
Using the first coefficient set in the previous Kiomomi coefficient setting means, performs weighting on the first filter coefficients, performs weighting on the second filter coefficients using the second coefficient were performed respectively weighting Weighting processing means for adding filter coefficients to generate new filter coefficients ;
An image processing apparatus comprising: an operation unit that performs a filter operation on input image data using a new filter coefficient generated by the weighting processing unit .
前記濃度算出手段は、
複数の特定色それぞれの画素領域の画素値に基づいて、濃度を算出するように構成してあり、
前記重み付け処理手段は、
前記濃度算出手段で算出した濃度に応じて、前記特定色それぞれに対して共通の重み付け処理を施すように構成してあることを特徴とする請求項1又は請求項2に記載の画像処理装置。
The concentration calculating means includes
The density is calculated based on the pixel values of the pixel areas of each of the plurality of specific colors,
The weighting processing means includes
The image processing apparatus according to claim 1, wherein a common weighting process is performed on each of the specific colors according to the density calculated by the density calculation unit.
請求項1から請求項3までのいずれか1項に記載された画像処理装置と、該画像処理装置で処理された画像の形成を行う画像形成手段とを備えることを特徴とする画像形成装置。   An image forming apparatus comprising: the image processing apparatus according to claim 1; and an image forming unit that forms an image processed by the image processing apparatus. 入力画像データに対して画像処理を行う画像処理方法において、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出するステップと、
該濃度を算出するステップで算出された濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理ステップと、
前記濃度を算出するステップで算出された濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理ステップと、
前記濃度を算出するステップで算出された濃度に応じて、前記第1処理ステップ及び第2処理ステップそれぞれで処理した画像データに対して重み付け処理を施すステップと
を含むことを特徴とする画像処理方法。
In an image processing method for performing image processing on input image data,
Calculating the density of the pixel area based on the pixel value of the pixel area composed of a plurality of pixels of the input image;
A first processing step of performing a smoothing process on the input image data when the density calculated in the step of calculating the density is greater than a predetermined first density threshold;
When the density calculated in the step of calculating the density is smaller than a predetermined second density threshold (<the first density threshold) , the input image data is enhanced, mixed with enhancement and smoothing, Or a second processing step for performing any one of the processes of combining a strong smoothing process and a weak smoothing process;
And a step of weighting the image data processed in each of the first processing step and the second processing step according to the density calculated in the step of calculating the density. .
入力画像データに対してデジタルフィルタ演算処理を行う画像処理方法において、
入力画像データに対して平滑化処理を行うための第1フィルタ係数を記憶しておき、
入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数を記憶しておき、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出するステップと、
該濃度を算出するステップで算出された濃度に応じて、前記第1フィルタ係数に対して重み付けを行う第1の係数と、前記第2フィルタ係数に対して重み付けを行う第2の係数とを設定するステップと、
該設定するステップで設定された第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を作成するステップと、
該作成するステップで作成されたフィルタ係数を用いて入力画像データに対してフィルタ演算を行うステップと
を含むことを特徴とする画像処理方法。
In an image processing method for performing digital filter arithmetic processing on input image data,
A first filter coefficient for smoothing the input image data is stored;
Stores a second filter coefficient for performing any of enhancement processing, mixing processing of enhancement processing and smoothing processing, or processing combining strong smoothing processing and weak smoothing processing on input image data. Aside,
Calculating the density of the pixel area based on the pixel value of the pixel area composed of a plurality of pixels of the input image;
A first coefficient for weighting the first filter coefficient and a second coefficient for weighting the second filter coefficient are set according to the density calculated in the step of calculating the density. And steps to
A filter that weights the first filter coefficient using the first coefficient set in the setting step, weights the second filter coefficient using the second coefficient, and weights the second filter coefficient. Adding a coefficient to create a new filter coefficient;
An image processing method comprising: performing a filter operation on input image data using the filter coefficient created in the creating step.
コンピュータに、入力画像データに対して画像処理を行わせるためのコンピュータプログラムにおいて、
コンピュータを、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、
該濃度算出手段で算出した濃度が所定の第1濃度閾値より大きい場合、入力画像データに対して平滑化処理を施す第1処理手段と、
前記濃度算出手段で算出した濃度が所定の第2濃度閾値(<前記第1濃度閾値)より小さい場合、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を施す第2処理手段と、
前記濃度算出手段で算出した濃度に応じて、前記第1処理手段及び第2処理手段それぞれで処理した画像データに対して重み付け処理を施す重み付け処理手段と
して機能させること特徴とするコンピュータプログラム。
In a computer program for causing a computer to perform image processing on input image data,
Computer
Density calculating means for calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image;
A first processing means for performing a smoothing process on input image data when the density calculated by the density calculation means is greater than a predetermined first density threshold;
When the density calculated by the density calculation unit is smaller than a predetermined second density threshold (<the first density threshold) , the input image data is enhanced, mixed with enhancement and smoothing, or strongly smoothed. A second processing means for performing any one of the processing combining the processing and the weak smoothing processing;
A computer program that functions as weighting processing means for applying weighting processing to image data processed by each of the first processing means and the second processing means in accordance with the density calculated by the density calculation means.
コンピュータに、入力画像データに対してデジタルフィルタ演算処理を行わせるコンピュータプログラムにおいて、
コンピュータを、
入力画像の複数の画素により構成された画素領域の画素値に基づいて、該画素領域の濃度を算出する濃度算出手段と、
該濃度算出手段で算出した濃度に応じて、入力画像データに対して平滑化処理を行うための第1フィルタ係数に対して重み付けを行う第1の係数と、入力画像データに対して強調処理、強調処理と平滑化処理との混合処理、又は強い平滑化処理と弱い平滑化処理とを組み合わせた処理のいずれかの処理を行うための第2フィルタ係数に対して重み付けを行う第2の係数とを設定する重み係数設定手段と
記重み係数設定手段で設定した第1の係数を用いて、前記第1フィルタ係数に重み付けを行い、前記第2の係数を用いて前記第2フィルタ係数に重み付けを行い、それぞれ重み付けを行ったフィルタ係数を加算して新たなフィルタ係数を生成する重み付け処理手段と
入力画像データに対して、前記重み付け処理手段で生成した新たなフィルタ係数を用いてフィルタ演算を行う演算手段と
して機能させることを特徴とするコンピュータプログラム。
In a computer program that causes a computer to perform digital filter arithmetic processing on input image data,
Computer
Density calculating means for calculating the density of the pixel area based on the pixel value of the pixel area constituted by a plurality of pixels of the input image;
A first coefficient for weighting the first filter coefficient for smoothing the input image data according to the density calculated by the density calculation means, and an enhancement process for the input image data; A second coefficient for weighting the second filter coefficient for performing any one of the mixing process of the enhancement process and the smoothing process or the process combining the strong smoothing process and the weak smoothing process; a weighting factor setting means for setting a,
Using the first coefficient set in the previous Kiomomi coefficient setting means, performs weighting on the first filter coefficients, performs weighting on the second filter coefficients using the second coefficient were performed respectively weighting Weighting processing means for adding filter coefficients to generate new filter coefficients ;
The input image data, a computer program for causing to function as a calculating means for performing a filter operation using the new filter coefficients generated by the weighting processing means.
請求項7又は請求項8に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。   9. A computer-readable recording medium in which the computer program according to claim 7 or 8 is recorded.
JP2009289253A 2009-12-21 2009-12-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium Expired - Fee Related JP4903254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009289253A JP4903254B2 (en) 2009-12-21 2009-12-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009289253A JP4903254B2 (en) 2009-12-21 2009-12-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007291116A Division JP4431607B2 (en) 2007-11-08 2007-11-08 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Publications (2)

Publication Number Publication Date
JP2010124472A JP2010124472A (en) 2010-06-03
JP4903254B2 true JP4903254B2 (en) 2012-03-28

Family

ID=42325341

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009289253A Expired - Fee Related JP4903254B2 (en) 2009-12-21 2009-12-21 Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium

Country Status (1)

Country Link
JP (1) JP4903254B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5769295B2 (en) * 2011-03-28 2015-08-26 学校法人東京理科大学 Image quality improved image generating apparatus, image quality improving method, and program
JP5723249B2 (en) * 2011-09-13 2015-05-27 日本電子株式会社 Signal processing method and signal processing apparatus
WO2013047284A1 (en) * 2011-09-26 2013-04-04 シャープ株式会社 Image processing device, image processing method, image processing program, and recording medium storing image processing program
JP5872011B2 (en) * 2014-10-20 2016-03-01 キヤノン株式会社 Image processing apparatus and method, program, and storage medium
CN107431740B (en) * 2015-03-31 2019-04-26 京瓷办公信息系统株式会社 Image processing apparatus and image forming apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63156475A (en) * 1986-12-19 1988-06-29 Dainippon Screen Mfg Co Ltd Multi-gradation image reader
JP4065463B2 (en) * 1998-03-06 2008-03-26 キヤノン株式会社 Image processing apparatus, image processing method, and computer-readable recording medium

Also Published As

Publication number Publication date
JP2010124472A (en) 2010-06-03

Similar Documents

Publication Publication Date Title
JP4431607B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
US8259357B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US8463032B2 (en) Image compressing apparatus, compressed image outputting apparatus, image compression method, and recording medium
JP4331159B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4560564B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium thereof
JP5275325B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4903254B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP4079814B2 (en) Image processing method, image processing apparatus, image forming apparatus, imaging apparatus, and computer program
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP4112413B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium on which image processing program is recorded
JP2013074309A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP2010206725A (en) Image processor, image forming device, image processing method, program, and recording medium
JP4099366B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method
JP2010278924A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP4101741B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2007174243A (en) Image processor, image forming apparatus, image reader, image processing method, program, and recording medium
JPH11289468A (en) Picture processing method and picture processor
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2009159089A (en) Image processing device, image processing method, image forming apparatus, image reader, computer program and recording medium
JP2009212820A (en) Image processing device, image processing method, image forming device, program, and recording medium
JP2009267835A (en) Image processing device, image forming device, image processing method, computer program, and recording medium
JP2013157743A (en) Image processing device, image formation device, image processing method, computer program, and recording medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110927

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111121

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4903254

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150113

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees