JP6024363B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP6024363B2
JP6024363B2 JP2012224022A JP2012224022A JP6024363B2 JP 6024363 B2 JP6024363 B2 JP 6024363B2 JP 2012224022 A JP2012224022 A JP 2012224022A JP 2012224022 A JP2012224022 A JP 2012224022A JP 6024363 B2 JP6024363 B2 JP 6024363B2
Authority
JP
Japan
Prior art keywords
block
image
zigzag
sum
absolute values
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.)
Active
Application number
JP2012224022A
Other languages
Japanese (ja)
Other versions
JP2014078786A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2012224022A priority Critical patent/JP6024363B2/en
Publication of JP2014078786A publication Critical patent/JP2014078786A/en
Application granted granted Critical
Publication of JP6024363B2 publication Critical patent/JP6024363B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、DCT(Discrete Cosine Transform)変換を用いた像域分離を行う画像処理装置に関するものである。DCT変換は、離散コサイン変換とも称され、画像信号の空間的な冗長成分を取り除いて画像信号を圧縮する直交変換の一手法である。 The present invention, DCT is relates to an image processing apparatus which performs image area separation using (Discrete Cosine Transform) transformation. The DCT transform is also called a discrete cosine transform, and is a method of orthogonal transform that compresses an image signal by removing spatial redundant components of the image signal.

ディジタル複写機などの画像処理装置で取り扱われる原稿には、文字原稿、網点原稿、写真原稿などがある。そして、これら原稿を画像処理装置によって再生処理する場合、それぞれに要求される画質評価が異なるため、像域分離処理によって各領域に最適な処理が施される。このような像域分離処理としては、従来から種々の方法が提案されている。例えば、特許文献1では、画像をブロックに分割し、DCT変換を用いて網点と文字の像域分離を精度よく行う像域分離方法を提供する。   Documents handled by an image processing apparatus such as a digital copying machine include character originals, halftone originals, and photo originals. When these originals are reproduced by the image processing apparatus, the image quality required for the respective documents is different, so that each region is optimally processed by the image region separation processing. Various methods have been proposed for such image area separation processing. For example, Patent Document 1 provides an image area separation method that divides an image into blocks and performs image area separation of halftone dots and characters with high accuracy using DCT conversion.

しかしながら、従来の像域分離処理では、文字と網点の2つしか分離できない。一方、最近では、写真と文字が混在している画像も多い。写真には、クリアトナーで光沢感を出す方法が最近よく用いられる。   However, the conventional image area separation process can separate only two characters and halftone dots. On the other hand, recently, there are many images in which photographs and characters are mixed. Recently, a method of giving glossiness with a clear toner is often used for photographs.

本発明の課題は、画像をブロックに分割し、DCT変換を用いて網点と文字と写真の像域分離を精度よく行うことにある。   An object of the present invention is to divide an image into blocks and to perform image area separation of halftone dots, characters, and photographs with high accuracy using DCT transform.

上記課題を解決するために、画像を入力する画像入力手段と、入力した画像を処理する画像処理手段と、処理した画像を出力する画像出力手段とを有する画像処理装置にして、前記画像処理手段に、前記画像入力手段から入力された画像データをブロック単位に分割する分割部と、各ブロックの画素をDCT変換するDCT変換部と、DCT変換された周波数成分のうちDC成分を除く周波数成分をジグザグスキャンするジグザグスキャン部と、スキャンされたデータのピークを調べるために注目データを2倍し、その前後のデータを引いた値をジグザグレートとして算出するジグザグレート算出部と、前記分割部により分割されたブロックの輝度の平均を算出する平均輝度算出部と、前記ジグザグレート算出部により算出された各ブロックの低周波帯域、高周波帯域及び全周波帯域におけるジグザグレートの絶対値の和と、前記平均輝度算出部により算出された各ブロックの輝度の平均とを用いて各ブロックを文字ブロック、網点ブロック又は写真ブロックのいずれかと判定する判定部と、判定された各ブロックに対して文字、網点、写真のいずれかであるかに応じて平滑化若しくはエッジ強調する処理部とを備える。ここで、低周波帯域は例えばDC成分を除く全周波帯域の低周波1/4の部分(図4〜6のグラフにおける横軸での番号2〜16程度)で、高周波帯域は例えば全周波帯域の1/2から高周波方向に全周波帯域の1/4の間の周波数(図4〜6のグラフにおける横軸での番号33〜48程度)であると規定することができる。 In order to solve the above-mentioned problems, an image processing apparatus comprising an image input means for inputting an image, an image processing means for processing the input image, and an image output means for outputting the processed image is provided. Further, a dividing unit that divides the image data input from the image input unit into blocks, a DCT converting unit that performs DCT conversion on the pixels of each block, and a frequency component excluding the DC component among the DCT converted frequency components. The zigzag scan unit that performs zigzag scanning, the zigzag rate calculation unit that calculates the value obtained by doubling the data of interest and subtracting the data before and after it to check the peak of the scanned data, and the division unit Average luminance calculation unit for calculating the average of the luminance of the blocks obtained, and each block calculated by the zigzag rate calculation unit A low frequency band, high-frequency band and the absolute value of the sum and the character blocks each block by using the average luminance of each block calculated by the average luminance calculator of the zigzag rate in all frequency bands, screen dot block or photo A determination unit that determines one of the blocks, and a processing unit that performs smoothing or edge enhancement according to whether each of the determined blocks is a character, a halftone dot, or a photograph. Here, the low frequency band is, for example, the low frequency quarter portion of the entire frequency band excluding the DC component (about 2 to 16 on the horizontal axis in the graphs of FIGS. 4 to 6), and the high frequency band is, for example, the entire frequency band. It can be defined that the frequency is between 1/2 and 1/4 of the entire frequency band in the high frequency direction (about 33 to 48 on the horizontal axis in the graphs of FIGS. 4 to 6).

本発明によれば、画像を小ブロックに分割し、各ブロックをDCT変換して出力される64個の係数をジグザグスキャンして、低周波成分と高周波成分におけるジグザグレートを求め、その特徴から網点画像部分と文字画像部分と写真部分を分離するので、高精度に像域分離することができる。   According to the present invention, an image is divided into small blocks, and 64 coefficients output by DCT conversion of each block are zigzag scanned to obtain zigzag rates in low frequency components and high frequency components. Since the point image portion, the character image portion, and the photograph portion are separated, the image area can be separated with high accuracy.

本発明の実施例に係るブロック構成図である。It is a block block diagram concerning the Example of this invention. DCT変換を説明する図である。It is a figure explaining DCT conversion. DCT変換された係数ブロックをジグザグスキャンする図である。It is a figure which carries out the zigzag scan of the coefficient block by which DCT conversion was carried out. 文字画像の周波数特性を示す図である。It is a figure which shows the frequency characteristic of a character image. 網点画像の周波数特性を示す図である。It is a figure which shows the frequency characteristic of a halftone image. 写真画像の周波数特性を示す図である。It is a figure which shows the frequency characteristic of a photograph image. 本発明の前提構成における像域分離処理のフローチャートである。It is a flowchart of the image area separation process in the premise structure of this invention . 本発明の実施例における像域分離処理のフローチャートである。It is a flowchart of the image area separation process in the Example of this invention . 周囲のブロックを見て分離結果を補正する例を示す図である。It is a figure which shows the example which corrects a separation result by seeing a surrounding block.

先ず、本発明の前提構成を図面により具体的に説明する
図1は、本発明の実施例にも共通するブロック構成図であり、上段は像域分離結果を算出する部分で、下段は像域分離結果を受けて、結果に応じた画像をブロック単位で画像出力部に送る部分である。図1において、画像入力部1は、CCD素子等の光電変換素子を有し、画像情報である原稿を読み取ってRGBの3色に色分解し、8ビットのディジタル信号を出力する。DCT変換部8では、画像入力部1から出力された8×8画素の画像データ(G成分)をDCT変換する。本例では、G成分を用いたが、RGB画像をL*a*b変換して、L*成分(明度成分:人間の視覚特性を考慮した明るさ)など、画像の明るさを表すデータを用いてもよい。ジグザグスキャン部3では、DC成分を除いた63個の周波数成分をスキャンする(詳細は後述)。ジグザグレート算出部4で、前記63個のデータのピーク度合いを算出する(詳細は後述)。像域分離部5で、ジグザグレート算出部4で算出されたジグザグレートに基づいて、前記8×8画素のブロック単位で、文字ブロック・網点ブロック・写真ブロックに分離し、判定結果を後段に渡す。
First, the premise structure of this invention is concretely demonstrated with drawing .
FIG. 1 is a block diagram common to the embodiments of the present invention. The upper part is a part for calculating an image area separation result, and the lower part receives an image area separation result, and an image corresponding to the result is obtained in block units. This is the part sent to the image output unit. In FIG. 1, an image input unit 1 has a photoelectric conversion element such as a CCD element, reads a document as image information, separates it into three colors of RGB, and outputs an 8-bit digital signal. The DCT conversion unit 8 performs DCT conversion on the image data (G component) of 8 × 8 pixels output from the image input unit 1. In this example , the G component is used. However, the RGB image is subjected to L * a * b conversion, and data representing the brightness of the image such as the L * component (brightness component: brightness considering human visual characteristics) is used. It may be used. The zigzag scanning unit 3 scans 63 frequency components excluding DC components (details will be described later). The zigzag rate calculation unit 4 calculates the peak degree of the 63 pieces of data (details will be described later). Based on the zigzag rate calculated by the zigzag rate calculation unit 4, the image area separation unit 5 separates the block of 8 × 8 pixels into character blocks, halftone blocks, and photo blocks, and the determination result is sent to the subsequent stage. hand over.

ガンマ補正部6a〜6cは画像入力部1でずれたRGB画像を、画素毎にそれぞれ予め用意してあるテーブルで本来のRGBに補正する。CCD素子などの光電変換素子により原稿を読み取る際に、高周波成分が小さくなってしまい、ぼやけた画像になってしまうので、それを補正するために、MTF補正部7a〜7cにおいて、高周波成分を元に戻すべくハイパスフィルタにかける。色補正部8では、入力RGBを出力装置に合ったYMCKに変換する。平滑化処理部9で、モアレを抑制するためにローパスフィルタをかける。網点ブロック用のデータを作成する部分である。符号10aはエッジ強調部1で、文字部分のエッジを強調するための強いハイパスフィルタをかける。これによって文字の鮮鋭性が向上する。文字ブロック用のデータを作成する部分である。符号10bはエッジ強調部2で、写真部分の鮮鋭性を再現するために、エッジ強調部1(10a)よりも高周波成分を持ち上げる度合いの弱いハイパスフィルタを掛ける。符号11a〜11dはディザ処理部で、擬似階調が出るように変換処理する。セレクタ12では、像域分離部5からの判定結果に応じて、網点ブロック用データ、文字ブロック用データ、写真ブロック用データの何れかを選択して、ブロック単位のYMCK画像データを出力する。なお、像域分離結果で、文字・網点・写真の何れにも判定されなかったときには、色補正部からフィルタをかける(文字・網点・写真ブロック特有の処理)ことなくディザ処理部に送られたデータを選択し出力する。このようにフィルタ処理することなく出力することで、誤判定による画像の劣化を防止することができる。符号13はカラープリンタなどの画像出力部である。   The gamma correction units 6a to 6c correct the RGB images shifted by the image input unit 1 to the original RGB using a table prepared in advance for each pixel. When a document is read by a photoelectric conversion element such as a CCD element, the high-frequency component becomes small and the image becomes blurred. In order to correct it, the MTF correction units 7a to 7c restore the original high-frequency component. Apply high-pass filter to return to. The color correction unit 8 converts the input RGB into YMCK suitable for the output device. The smoothing processing unit 9 applies a low-pass filter to suppress moire. This is the part that creates data for halftone dots. Reference numeral 10a denotes an edge emphasizing unit 1, which applies a strong high-pass filter for emphasizing the edge of a character part. This improves the sharpness of the characters. This is the part that creates data for character blocks. Reference numeral 10b denotes an edge emphasizing unit 2, which applies a high-pass filter having a higher degree of raising a high frequency component than the edge emphasizing unit 1 (10a) in order to reproduce the sharpness of a photograph portion. Reference numerals 11a to 11d denote dither processing units that perform conversion processing so as to produce pseudo gradations. The selector 12 selects halftone dot block data, character block data, or photographic block data in accordance with the determination result from the image area separation unit 5, and outputs YMCK image data in units of blocks. If the image area separation result does not indicate any character, halftone dot, or photograph, the image is sent from the color correction unit to the dither processing unit without applying a filter (processing specific to the character, halftone dot, or photo block). Select and output the selected data. By outputting without performing the filtering process in this way, it is possible to prevent image deterioration due to erroneous determination. Reference numeral 13 denotes an image output unit such as a color printer.

DCT変換部2では、画像を構成する画素を8×8画素のブロックに分割し、8×8画素のブロックを階調(輝度)から、周波数に変換する。それぞれの画素の値をf(i,j)と表す(但し、i=0〜7、j=0〜7)と、DCTによる写像F(u,v)は、
F(u,v)=(2・C(u)・C(v)/N)ΣΣf(i,j)・cos{(2i+1)uπ/2N}・cos{(2j+1)vπ/2N}
と表される。この2次元DCTの結果をDCT係数と呼び、8×8の係数マトリックスで与えられる(図2)。但し、積和演算は、i、j=0から7まで行う。また、N=8、u,v=0,1〜7、C(w)=1/√2(w=0のとき)または1(w=1,2〜7のとき)である。
The DCT converter 2 divides the pixels constituting the image into 8 × 8 pixel blocks, and converts the 8 × 8 pixel blocks from gradation (luminance) to frequency. The value of each pixel is expressed as f (i, j) (where i = 0 to 7, j = 0 to 7), and the mapping F (u, v) by DCT is
F (u, v) = (2 · C (u) · C (v) / N) ΣΣf (i, j) · cos {(2i + 1) uπ / 2N} · cos {(2j + 1) vπ / 2N}
It is expressed. The result of this two-dimensional DCT is called a DCT coefficient and is given by an 8 × 8 coefficient matrix (FIG. 2). However, the product-sum operation is performed from i, j = 0 to 7. Further, N = 8, u, v = 0, 1-7, C (w) = 1 / √2 (when w = 0) or 1 (when w = 1, 2-7).

ジグザグスキャン部3において、DCT変換された結果は、8×8からなる水平/垂直の空間周波数係数の2次元マトリックスであるので、ジグザグスキャンという方法で1次元に変換する。図3に示すように、DC成分を除いた63個の周波数成分を低周波部分から始めて高周波成分の方向に、斜めにスキャンしていく。2次元マトリックスの周囲にきたら一つ高周波部分に移動して、再び斜めにスキャンする(図中の番号は、スキャン順を表す)。   Since the result of DCT conversion in the zigzag scanning unit 3 is a two-dimensional matrix of 8 × 8 horizontal / vertical spatial frequency coefficients, it is converted into one dimension by a method called zigzag scanning. As shown in FIG. 3, the 63 frequency components excluding the DC component are scanned obliquely in the direction of the high frequency component starting from the low frequency portion. When it comes to the periphery of the two-dimensional matrix, it moves to one high frequency portion and scans again obliquely (numbers in the figure indicate the scan order).

そして、ジグザグレートという概念を導入し、文字ブロックと網点ブロックと写真ブロックの判定に用いる。すなわち、ジグザグスキャンして得られた63個のデータのピークを調べるためにジグザグレート算出部4で操作するもので、次の手順で行う。   Then, the concept of zigzag rate is introduced and used for determination of character blocks, halftone blocks, and photo blocks. That is, the operation is performed by the zigzag rate calculation unit 4 in order to examine the peaks of 63 data obtained by the zigzag scan, and is performed according to the following procedure.

ピークであるか否かを調べる部分のデータを2倍し、その前後のデータを引いた値(ジグザグレート)を求める。このデータを、(u,v)=(0,0)と(7,7)の点を除いた61個求める。つまり、ジグザグレート[i]=ジグザグ[i]×2−ジグザグ[i−1]−ジグザグ[i+1]で(1≦i≦63)   The value (zigzag rate) obtained by doubling the data of the portion to be checked whether or not it is a peak and subtracting the data before and after that is obtained. 61 pieces of data excluding the points (u, v) = (0, 0) and (7, 7) are obtained. That is, zigzag rate [i] = zigzag [i] × 2-zigzag [i−1] −zigzag [i + 1] (1 ≦ i ≦ 63)

像域分離部5は、ジグザグレート算出部4からのデータを用いて、文字ブロック・網点ブロック・写真ブロックの何れかを判定し、判定結果をセレクタ12と画像出力部13に送る部分である。写真ブロックと判定された場合は画像出力部13でCMYKトナーも加えて光沢をもたせる。文字ブロック・網点ブロック・写真ブロックの何れとも判定されなかった場合には、不明ブロックとして、画像出力部13とセレクタ12に判定結果を送る。   The image area separation unit 5 is a part that uses the data from the zigzag rate calculation unit 4 to determine one of a character block, a halftone dot block, and a photo block, and sends the determination result to the selector 12 and the image output unit 13. . If it is determined that the block is a photographic block, the image output unit 13 adds CMYK toner to give gloss. If no character block, halftone block, or photo block is determined, the determination result is sent to the image output unit 13 and the selector 12 as an unknown block.

ジグザグレートを用いた文字、網点、写真ブロックの像域分離は、次のようにして行う。すなわち、ブロック単位でDCT変換したとき、文字画像と網点画像と写真画像とでは、図4、図5、図6に示すように異なる周波数特性を有する。図4は文字画像の周波数特性を示し、図5は網点画像の周波数特性を示し、図6は写真画像の周波数特性を示す(横軸はスキャン位置、縦軸はDCT係数である)。つまり、文字画像では低周波成分にピークが多く現れ易く、網点画像では高周波成分にピークが多く現れ易く、写真画像ではピークが現れない。したがって、ジグザグレートの絶対値の和において、文字画像と網点画像と写真画像とでは異なり、文字画像においては低周波の部分で高い値を示し、高周波の部分で低い値を示す。一方、網点画像はその逆で、低周波の部分ではその値が小さく、高周波の部分ではその値が大きい。写真画像では、全周波数帯域でのジグザグレートの和が文字画像や写真画像に比べて小さい。   The image area separation of characters, halftone dots, and photographic blocks using zigzag rate is performed as follows. That is, when DCT conversion is performed in block units, the character image, the halftone dot image, and the photographic image have different frequency characteristics as shown in FIGS. 4 shows the frequency characteristics of the character image, FIG. 5 shows the frequency characteristics of the halftone dot image, and FIG. 6 shows the frequency characteristics of the photographic image (the horizontal axis is the scan position, and the vertical axis is the DCT coefficient). That is, many peaks are likely to appear in the low frequency component in the character image, many peaks are likely to appear in the high frequency component in the halftone image, and no peak appears in the photographic image. Therefore, in the sum of absolute values of zigzag rate, the character image, the halftone dot image, and the photographic image are different, and the character image shows a high value in the low frequency portion and a low value in the high frequency portion. On the other hand, the halftone image is the opposite, and its value is small in the low-frequency part and large in the high-frequency part. In a photographic image, the sum of zigzag rates in all frequency bands is smaller than that of a character image or a photographic image.

そこで、DC成分を除いた63個の周波数成分を低周波部分から始めて高周波成分の方向に斜めにスキャンする。このようにして得られた63個のデータのピークを調べるために、ピークであるか否かを調べる部分のデータを2倍し、その前後のデータを引いた値(ジグザグレート)を求める。文字ブロック、網点ブロック、写真ブロックにおける各ジグザグレートの絶対値の和に関する特徴を取り込める条件を設定し、各ブロックの判定を行う。このような、像域分離処理を、分割されたブロックにDCT変換を施すことで行うのである。   Therefore, the 63 frequency components excluding the DC component are scanned obliquely in the direction of the high frequency component starting from the low frequency portion. In order to examine the peaks of the 63 data obtained in this way, the data of the portion to be examined whether or not it is a peak is doubled, and a value (zigzag rate) obtained by subtracting the data before and after that is obtained. Conditions for capturing the features related to the sum of absolute values of zigzag rates in the character block, halftone dot block, and photo block are set, and each block is determined. Such image area separation processing is performed by performing DCT conversion on the divided blocks.

図7は、本前提構成の像域分離処理の一例を示すフローチャートである。先ず、8画素×8画素のブロックを取り込む(S1)。次に、取り込んだブロックをDCT変換して8×8=64係数の周波数成分に変換する(S2)。次いで、DC成分を除く63係数の周波数成分をジグザグスキャンし、ジグザグスキャンデータから61個のジグザグレートを求める(S3)。次に、低周波帯域のジグザグレートの絶対値の和SumZrateLowを算出し(S4)、高周波帯域のジグザグレートの絶対値の和SumZrateHighを算出し(S5)、全周波帯域のジグザグレートの絶対値の和SumZrateAllを算出する(S6)。 FIG. 7 is a flowchart showing an example of the image area separation processing of the present configuration . First, an 8 × 8 pixel block is captured (S1). Next, the fetched block is DCT-converted into frequency components of 8 × 8 = 64 coefficients (S2). Next, the 63 coefficient frequency components excluding the DC component are zigzag scanned to obtain 61 zigzag rates from the zigzag scan data (S3). Next, the sum SumZrateLow of the absolute value of the zigzag rate in the low frequency band is calculated (S4), the sum SumZrateHigh of the absolute value of the zigzag rate in the high frequency band is calculated (S5), and the absolute value of the zigzag rate in the entire frequency band is calculated. Sum Sumrate All is calculated (S6).

次いで、低周波部分におけるジグザグレートの絶対値の和が所定値th1より小さいか否かを判定し、また高周波部分におけるジグザグレートの絶対値の和が所定値th2より大きいか否かを判定し(S7)、低周波部分におけるジグザグレートの絶対値の和が所定値th1より小さく、かつ高周波部分におけるジグザグレートの絶対値の和が所定値th2より大きいとき、該ブロックは網点ブロックと判定し、平滑化フィルタをかけたブロックをセレクタで選択する指示を出す(S8)。   Next, it is determined whether or not the sum of the absolute values of the zigzag rate in the low frequency portion is smaller than a predetermined value th1, and whether or not the sum of the absolute values of the zigzag rate in the high frequency portion is larger than a predetermined value th2 ( S7) When the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th1, and the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th2, the block is determined to be a halftone block, An instruction to select the block to which the smoothing filter has been applied by the selector is issued (S8).

網点ブロックと判定されなかった場合、高周波部分におけるジグザグレートの絶対値の和が所定値th3より大きいか否かを判定し、低周波部分におけるジグザグレートの絶対値の和が所定値th4より小さいか否かを判定し(S9)、高周波部分におけるジグザグレートの絶対値の和が所定値th3より大きく、かつ低周波部分におけるジグザグレートの絶対値の和が所定値th4より小さいとき、該ブロックは文字ブロックと判定し、強くエッジ強調されたブロックをセレクタで選択する指示を出す(S10)。   If it is not determined as a halftone dot block, it is determined whether or not the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th3, and the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th4. (S9), when the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th3 and the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th4, the block It is determined that the block is a character block, and an instruction to select a block with strong edge emphasis is issued by the selector (S10).

文字ブロックとも網点ブロックとも判定されなかった場合、該ブロックは写真ブロックと判定し、弱くエッジ強調されたブロックをセレクタで選択する指示を出す(S11)。また、画像出力部においてクリアトナーを施す指示を出す(S12)。クリアトナーを施すことで光沢感のある写真画像を出力できる。   If neither the character block nor the halftone dot block is determined, the block is determined to be a photographic block, and an instruction to select a weakly edge-enhanced block with a selector is issued (S11). In addition, the image output unit issues an instruction to apply clear toner (S12). Glossy photographic images can be output by applying clear toner.

本例では、網点ブロック→文字ブロック→写真ブロックの順に判定したが、それに限られず、文字ブロック→網点ブロック→写真ブロックの順で判定してもよい。 In this example , the determination is made in the order of halftone dot block → character block → photograph block.

(実施例1)
判定結果が不明である場合の態様も加えた例である。図1〜図6に関する説明は前提構成の場合と同じである。ところで、分離誤りが起こる原因の一つとして、文字部分と網点部分と写真部分の3つに分けることが挙げられる。つまり、何れかに判定することが困難な部分に対しても分離処理するからである。判定困難な部分は、何れかに分離するよりも、フィルタ処理することなく、入力画像をそのまま出力させた方が致命的な誤りは減少する。そこで、本実施例では、分離が難しいブロックに対しては、エッジ強調や平滑化フィルタ処理を行わない指示を与える。
Example 1
This is an example in which an aspect when the determination result is unknown is also added. The description regarding FIGS. 1 to 6 is the same as that of the premise configuration . By the way, one of the causes of the separation error is to divide it into three parts: a character part, a halftone part and a photograph part. In other words, it is because the separation process is performed even on a portion that is difficult to determine. The fatal error is reduced by outputting the input image as it is without performing the filtering process, rather than separating the difficult part. Therefore, in this embodiment, an instruction not to perform edge enhancement or smoothing filter processing is given to blocks that are difficult to separate.

図8は、本実施例の像域分離処理の一例を示すフローチャートである。先ず、8画素×8画素のブロックを取り込む(S1’)。ブロックの平均輝度値AveKidoを算出する(S2’)。次に、取り込んだブロックをDCT変換して8×8=64係数の周波数成分に変換する(S3’)。次いで、DC成分を除く63係数の周波数成分をジグザグスキャンし、ジグザグスキャンデータから61個のジグザグレートを求める(S4’)。次に、低周波帯域のジグザグレートの絶対値の和SumZrateLowを算出し(S5’)、高周波帯域のジグザグレートの絶対値の和SumZrateHighを算出し(S6’)、全周波帯域のジグザグレートの絶対値の和SumZrateAllを算出する(S7’)。   FIG. 8 is a flowchart illustrating an example of image area separation processing according to the present exemplary embodiment. First, an 8 × 8 pixel block is captured (S1 ′). An average luminance value AveKido of the block is calculated (S2 '). Next, the fetched block is DCT-converted to a frequency component of 8 × 8 = 64 coefficients (S3 ′). Next, the 63 coefficient frequency components excluding the DC component are zigzag scanned to obtain 61 zigzag rates from the zigzag scan data (S4 '). Next, the sum SumZrateLow of the absolute value of the zigzag rate in the low frequency band is calculated (S5 ′), the sum SumZrateHigh of the absolute value of the zigzag rate in the high frequency band is calculated (S6 ′), and the absolute zigzag rate of the entire frequency band is calculated. The sum SumZrateAll of values is calculated (S7 ′).

次いで、低周波部分におけるジグザグレートの絶対値の和が所定値th1より小さいか否かを判定し、高周波部分におけるジグザグレートの絶対値の和が所定値th2より大きいか否かを判定し(S8’)、低周波部分におけるジグザグレートの絶対値の和が所定値th1より小さく、かつ高周波部分におけるジグザグレートの絶対値の和が所定値th2より大きいとき、該ブロックは網点ブロックと判定し、平滑化フィルタをかけたブロックをセレクタで選択する指示を出す(S9’)。   Next, it is determined whether or not the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th1, and it is determined whether or not the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th2 (S8). ') When the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th1 and the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th2, the block is determined as a halftone block, An instruction to select the block to which the smoothing filter has been applied by the selector is issued (S9 ′).

網点ブロックと判定されなかった場合、高周波部分におけるジグザグレートの絶対値の和が所定値th3より大きいか否かを判定し、低周波部分におけるジグザグレートの絶対値の和が所定値th4より小さいか否かを判定し(S10’)、高周波部分におけるジグザグレートの絶対値の和が所定値th3より大きく、かつ低周波部分におけるジグザグレートの絶対値の和が所定値th4より小さいとき、該ブロックは文字ブロックと判定し、強くエッジ強調されたブロックをセレクタで選択する指示を出す(S11’)。   If it is not determined as a halftone dot block, it is determined whether or not the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th3, and the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th4. If the sum of the absolute values of the zigzag rate in the high frequency part is larger than the predetermined value th3 and the sum of the absolute values of the zigzag rate in the low frequency part is smaller than the predetermined value th4, the block Determines that the block is a character block, and issues an instruction to select a strongly edge-enhanced block with a selector (S11 ′).

文字ブロックとも網点ブロックとも判定されなかった場合、8×8画素の平均輝度AveKidoが所定の値th5よりも小さく、かつ全周波帯域のジグザグレートの絶対値の和が所定の値th6よりも小さいとき、該ブロックは写真ブロックと判定し(S12’)、弱くエッジ強調されたブロックをセレクタで選択する指示を出す(S13’)。また、画像出力部においてクリアトナーを施す指示を出す(S14’)。   If neither the character block nor the halftone dot block is determined, the average luminance AveKido of 8 × 8 pixels is smaller than the predetermined value th5, and the sum of the absolute values of the zigzag rate in all frequency bands is smaller than the predetermined value th6. At this time, the block is determined to be a photograph block (S12 ′), and an instruction to select a weakly edge-enhanced block with a selector is issued (S13 ′). In addition, the image output unit issues an instruction to apply clear toner (S14 ').

文字ブロックとも網点ブロックとも写真ブロックとも判定されなかったブロックは、判定不能ブロックとして、フィルタ処理をしないブロックをセレクタで選択する指示を出す(S15’)。   A block that has not been determined to be a character block, halftone block, or photographic block issues an instruction to select a block that is not subjected to filter processing with a selector as a block that cannot be determined (S15 ').

本実施例でも、網点ブロック→文字ブロック→写真ブロックの順に判定したが、それに限られず、網点ブロック・文字ブロック・写真ブロックを任意の順で判定してもよい。
本実施例では、第1から第6の所定値を決め、夫々の条件で文字ブロックと網点ブロックと写真ブロックの判定を行い、セレクタ12に夫々の判定画像の選択信号を出力するものである。
In this embodiment, the determination is made in the order of halftone dot block → character block → photograph block. However, the present invention is not limited to this, and halftone dot block / character block / photograph block may be determined in any order.
In this embodiment, the first to sixth predetermined values are determined, the character block, the halftone block, and the photo block are determined under the respective conditions, and selection signals for the respective determination images are output to the selector 12. .

(実施例
周囲のブロック情報を参照して判定結果を補正する例である。周囲のブロック情報を参照して像域分離するので、或るブロックから急に誤判定するという分離誤りを防止でき、高精度な判定が実現する。図1〜図6、図8に関する説明は実施例1と同じである。本実施例では、周囲の4ブロック(注目ブロックの上、左、2つ左、斜め上のブロック)の情報を、上記した判定条件の定数部分にkeyとして組み込む。なお、ブロックの判定をラスター順に行うため、注目ブロックの右ブロックや下のブロックはまだ判定されていないので、使えない。
key=0.25(flag(上)+flag(左))+0.125(flag(2つ左)+flag(斜め右上)+flag(斜め左上))
ここで、flagは、文字ならば−1、網点ならば1、写真ならば0の値をとるようにする(図9)。
(Example 2 )
This is an example of correcting the determination result with reference to surrounding block information. Since image area separation is performed with reference to surrounding block information, it is possible to prevent a separation error that abruptly makes an erroneous determination from a certain block, thereby realizing a highly accurate determination. 1 to 6 and 8 are the same as those in the first embodiment . In this embodiment, information on the surrounding four blocks (upper, left, two left, and diagonally upper blocks of the target block) is incorporated as a key in the constant part of the above-described determination condition. Since the blocks are determined in raster order, the right block and the lower block of the block of interest have not been determined yet and cannot be used.
key = 0.25 (flag (upper) + flag (left)) + 0.125 (flag (two left) + flag (diagonally upper right) + flag (diagonally upper left))
Here, flag takes a value of -1 for characters, 1 for halftone dots, and 0 for photographs (FIG. 9).

keyを条件に組み込むことによって、周囲が文字のブロックは、文字と判定され易くなり、周囲が網点のブロックは網点と判定され易くなり、周囲が写真のブロックは写真と判定され易くなる。   By incorporating the key into the condition, a block with a surrounding character is easily determined as a character, a block with a halftone dot is easily determined as a halftone dot, and a block with a surrounding photo is easily determined as a photograph.

前述したジグザグレートを用いた判定にkeyを組み込んだ場合は、以下のようになる。すなわち、低周波部分におけるジグザグレートの絶対値の和<th1+key×定数aで、かつ高周波部分におけるジグザグレートの絶対値の和>th2+key×定数bのとき、網点画像と判定する。定数aは、正の定数で絶対値がth1よりも小さい値にする。定数bは、負の定数であり、絶対値がth2よりも小さい値にする。高周波部分におけるジグザグレートの絶対値の和<th3+key×定数cで、かつ低周波部分におけるジグザグレートの絶対値の和>th4+key×定数dのとき、文字画像と判定する。定数cは、負の定数で絶対値がth3よりも小さい値にする。対数dは正の整数であり、絶対値がth4よりも小さい値にする。   When the key is incorporated in the determination using the zigzag rate described above, the result is as follows. That is, when the sum of the absolute values of the zigzag rate in the low frequency portion <th1 + key × constant a and the sum of the absolute values of the zigzag rate in the high frequency portion> th2 + key × constant b, it is determined as a halftone image. The constant a is a positive constant and has an absolute value smaller than th1. The constant b is a negative constant and has an absolute value smaller than th2. When the sum of absolute values of zigzag rate in the high frequency part <th3 + key × constant c and the sum of absolute values of zigzag rate in the low frequency part> th4 + key × constant d, it is determined as a character image. The constant c is a negative constant whose absolute value is smaller than th3. The logarithm d is a positive integer and has an absolute value smaller than th4.

8×8画素の平均輝度AveKido<th5、かつ全周波帯域におけるジグザグレートの絶対値の和≦th6+key×定数eのとき、写真画像と判定する。定数eは正の定数であり、絶対値はth6よりも小さい値にする。   When the average luminance AveKido <th5 of 8 × 8 pixels and the sum of absolute values of zigzag rate in all frequency bands ≦ th6 + key × constant e, it is determined as a photographic image. The constant e is a positive constant and the absolute value is smaller than th6.

定数a,b,c,d,eは、上記条件のもと、分離精度が向上するように設定する。絶対値の大きさについては、定数a,b,c,dはほぼ同じ値を設定し、定数eの絶対値は定数a,b,c,dよりも小さな値に設定する。   The constants a, b, c, d, and e are set so that the separation accuracy is improved under the above conditions. About the magnitude | size of an absolute value, the constants a, b, c, and d set the substantially same value, and the absolute value of the constant e is set to a value smaller than the constants a, b, c, and d.

なお、以上のような画像処理方法を独立して記録媒体に記録し、複写機、ファクシミリ、プリンタなどの画像形成装置画像におけるCPUで読み取るように構成することも考えられる。   It is also conceivable that the above image processing method is independently recorded on a recording medium and read by a CPU in an image forming apparatus image such as a copying machine, a facsimile, or a printer.

1 画像入力部
2 DCT変換部
3 ジグザグスキャン部
4 ジグザグレート算出部
5 像域分離部
6 ガンマ補正部
7 MTF補正部
8 色補正部
9 平滑化処理部
10 エッジ強調部
11 ディザ処理部
12 セレクタ
13 画像出力部
DESCRIPTION OF SYMBOLS 1 Image input part 2 DCT conversion part 3 Zigzag scanning part 4 Zigzag rate calculation part 5 Image area separation part 6 Gamma correction part 7 MTF correction part 8 Color correction part 9 Smoothing processing part 10 Edge emphasis part 11 Dither processing part 12 Selector 13 Image output unit

特開平6−303425号公報JP-A-6-303425

Claims (5)

画像を入力する画像入力手段と、入力した画像を処理する画像処理手段と、処理した画像を出力する画像出力手段とを有する画像処理装置にして、前記画像処理手段に、前記画像入力手段から入力された画像データをブロック単位に分割する分割部と、各ブロックの画素をDCT変換するDCT変換部と、DCT変換された周波数成分のうちDC成分を除く周波数成分をジグザグスキャンするジグザグスキャン部と、スキャンされたデータのピークを調べるために注目データを2倍し、その前後のデータを引いた値をジグザグレートとして算出するジグザグレート算出部と、前記分割部により分割されたブロックの輝度の平均を算出する平均輝度算出部と、前記ジグザグレート算出部により算出された各ブロックの低周波帯域、高周波帯域及び全周波帯域におけるジグザグレートの絶対値の和と、前記平均輝度算出部により算出された各ブロックの輝度の平均とを用いて各ブロックを文字ブロック、網点ブロック又は写真ブロックのいずれかと判定する判定部と、判定された各ブロックに対して文字、網点、写真のいずれかであるかに応じて平滑化若しくはエッジ強調する処理部とを備える、画像処理装置。 An image processing apparatus having an image input means for inputting an image, an image processing means for processing the input image, and an image output means for outputting the processed image is input to the image processing means from the image input means. A division unit that divides the image data into blocks, a DCT conversion unit that performs DCT conversion on the pixels of each block, a zigzag scanning unit that performs zigzag scanning of frequency components excluding the DC component among the DCT converted frequency components, In order to examine the peak of the scanned data, the attention data is doubled, and a zigzag rate calculation unit that calculates a value obtained by subtracting data before and after that as a zigzag rate, and an average of the luminance of the blocks divided by the division unit An average luminance calculation unit to calculate, and a low frequency band, a high frequency band and a block of each block calculated by the zigzag rate calculation unit The sum of the absolute values of the zigzag rate in all frequency bands, determining determines that one of the average character block of each block by using the average luminance of each block calculated by the luminance calculation unit, screen dot block or photo block And a processing unit that smoothes or edge-enhances each determined block depending on whether it is a character, a halftone dot, or a photograph. 低周波帯域におけるジグザグレートの絶対値の和が第1所定値より小さく且つ高周波帯域におけるジグザグレートの絶対値の和が第2所定値より大きい場合に注目ブロックを網点ブロックと判定し、高周波帯域におけるジグザグレートの絶対値の和が第3所定値より小さく且つ低周波帯域におけるジグザグレートの絶対値の和が第4所定値より大きい場合に注目ブロックを文字ブロックと判定することを特徴とする請求項1に記載の画像処理装置。   When the sum of absolute values of zigzag rate in the low frequency band is smaller than the first predetermined value and the sum of absolute values of zigzag rate in the high frequency band is larger than the second predetermined value, the target block is determined as a halftone block, and the high frequency band The block of interest is determined to be a character block when the sum of the absolute values of zigzag rate in is lower than a third predetermined value and the sum of the absolute values of zigzag rate in the low frequency band is greater than a fourth predetermined value. Item 8. The image processing apparatus according to Item 1. ブロックの平均輝度が第5所定値より小さく且つ全周波帯域におけるジグザグレートの絶対値の和が第6所定値より小さい場合に注目ブロックを写真ブロックと判定し、網点ブロック、文字ブロック、写真ブロックの何れにも判定できない場合には判定不能として、平滑化もエッジ強調も行わないことを特徴とする請求項2に記載の画像処理装置。   When the average luminance of the block is smaller than the fifth predetermined value and the sum of the absolute values of the zigzag rate in all frequency bands is smaller than the sixth predetermined value, the target block is determined as a photo block, and a halftone dot block, a character block, and a photo block The image processing apparatus according to claim 2, wherein neither of smoothing nor edge enhancement is performed because the determination is impossible when neither of the determinations can be made. 写真ブロックと判定した場合に当該ブロックにクリアトナーを施すことを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein when it is determined that the block is a photograph block, clear toner is applied to the block. 注目ブロックの周囲のブロックの判定情報を参照して、注目ブロックの判定結果を補正することを特徴とする請求項1〜4のいずれか一項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the determination result of the target block is corrected with reference to determination information of blocks around the target block.
JP2012224022A 2012-10-09 2012-10-09 Image processing device Active JP6024363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012224022A JP6024363B2 (en) 2012-10-09 2012-10-09 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012224022A JP6024363B2 (en) 2012-10-09 2012-10-09 Image processing device

Publications (2)

Publication Number Publication Date
JP2014078786A JP2014078786A (en) 2014-05-01
JP6024363B2 true JP6024363B2 (en) 2016-11-16

Family

ID=50783784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012224022A Active JP6024363B2 (en) 2012-10-09 2012-10-09 Image processing device

Country Status (1)

Country Link
JP (1) JP6024363B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102321434B1 (en) 2019-11-15 2021-11-04 정나래 Gargle liquid container

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6626258B2 (en) 2014-04-07 2019-12-25 昭和電工パッケージング株式会社 Manufacturing method of laminate exterior material

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3358027B2 (en) * 1992-03-18 2002-12-16 コニカ株式会社 Color image forming equipment
JPH06303425A (en) * 1993-04-15 1994-10-28 Ricoh Co Ltd Image area separating method
JP3733161B2 (en) * 1995-08-01 2006-01-11 キヤノン株式会社 Image processing apparatus and method
JP2002171406A (en) * 2000-09-21 2002-06-14 Matsushita Electric Ind Co Ltd Image processing apparatus, image processing method, and image processing program
JP2002262081A (en) * 2001-03-06 2002-09-13 Matsushita Electric Ind Co Ltd Image processor and image processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102321434B1 (en) 2019-11-15 2021-11-04 정나래 Gargle liquid container

Also Published As

Publication number Publication date
JP2014078786A (en) 2014-05-01

Similar Documents

Publication Publication Date Title
US7227990B2 (en) Color image processing device and color image processing method
JP4145665B2 (en) Image processing apparatus and image processing method
JP3759761B2 (en) Method and apparatus for changing sharpness
JP4668185B2 (en) Image processing method
JPH07170420A (en) Color image processing system
JP4097587B2 (en) Image processing apparatus and image processing method
US8532373B2 (en) Joint color channel image noise filtering and edge enhancement in the Bayer domain
JP6757407B2 (en) Image processing equipment, image processing method and image processing program
JP6024363B2 (en) Image processing device
JP7296745B2 (en) Image processing device, image processing method, and program
JP2003123063A (en) Image processor
JP2003283835A (en) Image processor
JP4053460B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP4040528B2 (en) Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image forming apparatus including image processing apparatus
JP5494249B2 (en) Image processing apparatus, imaging apparatus, and image processing program
JP2001197321A (en) Color picture processing method and picture processor
JP4792893B2 (en) Image processing apparatus and program
JP2008192011A (en) Difference extracting device, image reader, difference extracting method, program and recording medium thereof
JPH06303425A (en) Image area separating method
JP2001352453A (en) Image-reproducing device
JP4176053B2 (en) Image processing method, image processing apparatus, image forming apparatus, and computer program
JP2007174243A (en) Image processor, image forming apparatus, image reader, image processing method, program, and recording medium
JP2015049631A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JPS6356064A (en) Picture processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160623

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160705

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160810

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160824

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160926

R151 Written notification of patent or utility model registration

Ref document number: 6024363

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151