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

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

Info

Publication number
JP2015049631A
JP2015049631A JP2013180104A JP2013180104A JP2015049631A JP 2015049631 A JP2015049631 A JP 2015049631A JP 2013180104 A JP2013180104 A JP 2013180104A JP 2013180104 A JP2013180104 A JP 2013180104A JP 2015049631 A JP2015049631 A JP 2015049631A
Authority
JP
Japan
Prior art keywords
unit
character size
image
image data
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013180104A
Other languages
Japanese (ja)
Inventor
寺本 高広
Takahiro Teramoto
高広 寺本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2013180104A priority Critical patent/JP2015049631A/en
Publication of JP2015049631A publication Critical patent/JP2015049631A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Input (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately determine characters regardless of their small size.SOLUTION: An image processing apparatus includes a frequency conversion unit (302), a frequency analysis unit (303) that determines the intensities of spatial frequency components, and a determination unit (304) that compares, of the intensities of the spatial frequency components, the intensity of a high frequency component with a threshold, determines that the character size is small when the intensity is larger than the threshold, and determines that the character size is large when the intensity of the high frequency component is equal to or smaller than the threshold.

Description

本発明は、画像データに含まれる文字のサイズを判定する画像処理装置、画像形成装置、画像処理方法、プログラムおよび記録媒体に関する。   The present invention relates to an image processing apparatus, an image forming apparatus, an image processing method, a program, and a recording medium that determine the size of characters included in image data.

原稿を読み取って画像データを取得するスキャナ、スキャナを備えた複写機および複合機等の画像形成装置は、原稿を読み取って得られた画像データを出力または印刷する際に、画像データにおけるエッジ領域を検出し、検出したエッジ領域に対して強調処理を行う。このような強調処理を行うことは、出力画像におけるエッジ領域の再現性が向上するので、出力画像の画質を向上させることができる。   An image forming apparatus such as a scanner that scans a document and acquires image data, a copying machine equipped with a scanner, and a multifunction peripheral outputs an edge region in the image data when outputting or printing the image data obtained by scanning the document. Detect and perform enhancement processing on the detected edge region. By performing such enhancement processing, the reproducibility of the edge region in the output image is improved, so that the image quality of the output image can be improved.

しかしながら、文字は、その言語体系、字体、サイズ、色あるいは濃度によって様々な特徴があり、このように種々の特徴を有する文字の中には、エッジとして検出しにくいものもあれば、エッジ強調により却って画質が劣化してしまうものもある。   However, characters have various characteristics depending on their language system, font, size, color, or density. Some of these characters with various characteristics are difficult to detect as edges. On the other hand, some image quality deteriorates.

文字の処理にフィルタを使う場合、解像力を上げるために高周波数で文字を強調するフィルタでは文字が細くなる。逆に文字を太くすると解像力は弱くなる。   When a filter is used for character processing, the character is thinned by a filter that emphasizes the character at a high frequency in order to increase resolution. Conversely, if the characters are made thicker, the resolution becomes weaker.

そこで、特許文献1には、下地領域に分離された画像データに含まれる薄い文字を効果的に強調できるようにした技術が開示されている。具体的には、特許文献1の装置は、入力された領域識別信号に基づいて、入力されたRGB信号から下地領域のRGB信号を抽出し、抽出したRGB信号中に薄い文字が含まれている領域が存在するか否かを検出する。次に、検出した薄い文字の領域に対して空間周波数変換を行い、得られた空間周波数成分を解析して文字に相当する周波数領域を検出する。さらに、文字に相当する周波数領域に対して強調処理を行い、空間周波数の逆変換を行って画像データに戻し出力する。これにより、エッジとして検出できないような濃度の薄い文字が存在する領域についても、文字のみを効果的に強調できるようにしている。   Therefore, Patent Document 1 discloses a technique that can effectively emphasize thin characters included in image data separated into a base region. Specifically, the apparatus of Patent Document 1 extracts an RGB signal of a background area from an input RGB signal based on the input area identification signal, and a thin character is included in the extracted RGB signal. Detect whether a region exists. Next, spatial frequency conversion is performed on the detected thin character region, and the obtained spatial frequency component is analyzed to detect a frequency region corresponding to the character. Further, the emphasis processing is performed on the frequency region corresponding to the character, the spatial frequency is inversely transformed, and the image data is output again. This makes it possible to effectively emphasize only the character even in a region where a character with a low density that cannot be detected as an edge exists.

特開2009−159089号公報(2009年7月16日公開)JP 2009-159089 A (published July 16, 2009)

しかしながら、特許文献1に開示された技術では、薄い文字については、文字として検知し、エッジを強調することができても、小さい文字については、依然として網点などに誤検知される虞がある。   However, with the technique disclosed in Patent Document 1, even if a thin character can be detected as a character and an edge can be emphasized, a small character may still be erroneously detected as a halftone dot.

したがって、本発明は、画像データに含まれる文字がサイズの小さいものであっても、その文字を正確に文字として判定することができる画像処理装置、画像形成装置、画像処理方法、プログラムおよび記録媒体の提供を目的としている。   Therefore, the present invention provides an image processing apparatus, an image forming apparatus, an image processing method, a program, and a recording medium capable of accurately determining a character as a character even if the character included in the image data is small in size. The purpose is to provide.

上記の課題を解決するために、本発明の一態様に係る画像処理装置は、画像データを空間周波数成分に変換する周波数変換部と、前記空間周波数成分の強度を求める周波数解析部と、前記空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、前記高域周波数成分の強度が前記所定の閾値よりも大きい場合に、前記画像データに含まれる文字サイズを相対的に大サイズと判定する一方、前記高域周波数成分の強度が前記所定の閾値以下である場合に、前記画像データに含まれる文字サイズを相対的に小サイズと判定する判定部とを備えていることを特徴としている。   In order to solve the above problems, an image processing apparatus according to an aspect of the present invention includes a frequency conversion unit that converts image data into a spatial frequency component, a frequency analysis unit that obtains the intensity of the spatial frequency component, and the spatial Of the intensities of the frequency components, the intensities of the high frequency components belonging to the relatively high frequencies are compared with a predetermined threshold, and the intensity of the high frequency components is greater than the predetermined threshold. While the character size included is determined to be a relatively large size, the character size included in the image data is determined to be a relatively small size when the intensity of the high frequency component is equal to or less than the predetermined threshold. And a determination unit.

本発明の一態様によれば、画像データに含まれる文字がサイズの小さいものであっても、その文字を正確に文字として判定することができる。   According to one embodiment of the present invention, even if a character included in image data has a small size, the character can be accurately determined as a character.

本発明の第1実施形態の画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus according to a first embodiment of the present invention. 図1に示した文字サイズ判定部の構成を示すブロック図である。It is a block diagram which shows the structure of the character size determination part shown in FIG. 図1に示した文字サイズ判定部による文字サイズ判定動作を示すフローチャートである。It is a flowchart which shows the character size determination operation | movement by the character size determination part shown in FIG. 図3に続く、文字サイズ判定部による文字サイズ判定動作を示すフローチャートである。FIG. 4 is a flowchart illustrating a character size determination operation performed by a character size determination unit following FIG. 3. 図2に示した対角方向判定部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the diagonal direction determination part shown in FIG. 図2に示した濃度判定部および隣接画素判定部の動作を示すフローチャートである。3 is a flowchart illustrating operations of a density determination unit and an adjacent pixel determination unit illustrated in FIG. 2. 本発明の第2実施形態の画像形成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image forming apparatus of 2nd Embodiment of this invention.

<第1実施形態>
本発明の第1実施形態を図面に基づいて以下に説明する。
<First Embodiment>
A first embodiment of the present invention will be described below with reference to the drawings.

(画像形成装置100の概要)
図1は、本発明の第1実施形態の画像形成装置100の構成を示すブロック図である。
(Outline of image forming apparatus 100)
FIG. 1 is a block diagram showing a configuration of an image forming apparatus 100 according to the first embodiment of the present invention.

図1に示すように、画像形成装置(例えば、デジタルカラー複写機)100は、カラー画像入力装置1、カラー画像処理装置(画像処理装置)2、カラー画像出力装置(画像形成部)3、各種操作を行うための操作パネル4、および上記各部を制御する制御部7を備える。   As shown in FIG. 1, an image forming apparatus (for example, a digital color copying machine) 100 includes a color image input apparatus 1, a color image processing apparatus (image processing apparatus) 2, a color image output apparatus (image forming unit) 3, and various types. An operation panel 4 for performing an operation and a control unit 7 for controlling the above-described units are provided.

画像形成装置100では、カラー画像入力装置1で原稿を読み込むことにより得られたRGB(R:赤、G:緑、B:青)のアナログ信号の画像データは、カラー画像処理装置2へ出力され、カラー画像処理装置2で所定の処理が行われ、CMYK(C:シアン、M:マゼンダ、Y:イエロー、K:黒)のデジタルカラー信号としてカラー画像出力装置3へ出力される。   In the image forming apparatus 100, RGB (R: red, G: green, B: blue) analog signal image data obtained by reading a document with the color image input apparatus 1 is output to the color image processing apparatus 2. The color image processing device 2 performs predetermined processing and outputs the digital color signal of CMYK (C: cyan, M: magenta, Y: yellow, K: black) to the color image output device 3.

カラー画像入力装置1は、例えば、CCD(Charged Coupled Device)を備えたスキャナであり、原稿に光を照射し、原稿画像からの反射光像をRGBのアナログ信号として読み取る。さらに、読み取ったRGB信号をカラー画像処理装置2へ出力する。   The color image input device 1 is, for example, a scanner including a CCD (Charged Coupled Device), irradiates light on a document, and reads a reflected light image from the document image as RGB analog signals. Further, the read RGB signal is output to the color image processing apparatus 2.

カラー画像出力装置3は、カラー画像処理装置2にて処理された原稿の画像データに基づいて、記録紙上に原稿の画像を出力する。カラー画像出力装置3は、例えば電子写真方式またはインクジェット方式などのプリンタである。また、カラー画像出力装置3は、ディスプレイ等の表示装置であってもよい。   The color image output device 3 outputs an image of a document on recording paper based on the document image data processed by the color image processing device 2. The color image output device 3 is a printer such as an electrophotographic system or an inkjet system. The color image output device 3 may be a display device such as a display.

(カラー画像処理装置2の概要)
カラー画像処理装置2は、A/D変換部20、シェーディング補正部21、入力階調補正部22、領域分離処理部23、色補正部24、黒生成下色除去部25、空間フィルタ処理部26、変倍部27、出力階調補正部28、階調再現処理部29、および文字サイズ判定部30を備えている。上記各部の動作は制御部7によって制御される。制御部7は、CPU(Central Processing Unit )またはDSP(Digital Signal Processor)等を備え、ASIC(Application Specific Integrated Circuit)などにより構成されている。
(Outline of color image processing device 2)
The color image processing apparatus 2 includes an A / D conversion unit 20, a shading correction unit 21, an input tone correction unit 22, a region separation processing unit 23, a color correction unit 24, a black generation and under color removal unit 25, and a spatial filter processing unit 26. A zoom unit 27, an output tone correction unit 28, a tone reproduction processing unit 29, and a character size determination unit 30. The operation of each part is controlled by the control unit 7. The control unit 7 includes a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or the like, and is configured by an ASIC (Application Specific Integrated Circuit) or the like.

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

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

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

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

(文字サイズ判定部30)
文字サイズ判定部30は、入力階調補正部22より入力されたRGB信号から、原稿画像(画像データ)における文字の有無および文字のサイズを判定する。文字サイズ判定部30は、文字サイズを判定した場合、その判定結果を示す文字サイズ判定信号を色補正部24、黒生成下色除去部25、空間フィルタ処理部26および階調再現処理部29へ出力する。なお、文字のサイズは、空間フィルタ処理部26での文字サイズに応じたフィルタ処理の使い分けに必要な、少なくとも大小の2段階に判定される。
(Character size determination unit 30)
The character size determination unit 30 determines the presence / absence of characters and the character size in the document image (image data) from the RGB signals input from the input tone correction unit 22. When the character size determination unit 30 determines the character size, the character size determination signal indicating the determination result is sent to the color correction unit 24, the black generation and under color removal unit 25, the spatial filter processing unit 26, and the gradation reproduction processing unit 29. Output. It should be noted that the character size is determined in at least two levels, which are necessary for properly using the filtering process according to the character size in the spatial filter processing unit 26.

文字サイズ判定部30は、さらにフィルタ処理を行ってもよい。このフィルタ処理では、文字が存在すると判定され、かつ文字サイズが判定された場合に、文字サイズに応じた強調または平滑処理を行う。また、文字が存在しないと判定した場合に、フィルタ処理を行うことなく、RGB信号をそのまま次の処理へ出力する。また、上記フィルタ処理は、文字サイズ判定部30では行わず、後段の空間フィルタ処理部26にて行ってもよい。なお、文字サイズ判定部30の詳細は後述する。   The character size determination unit 30 may further perform filter processing. In this filter processing, when it is determined that a character exists and the character size is determined, enhancement or smoothing processing according to the character size is performed. If it is determined that there is no character, the RGB signal is output as it is to the next process without performing the filter process. Further, the filtering process may be performed not by the character size determination unit 30 but by the subsequent spatial filter processing unit 26. Details of the character size determination unit 30 will be described later.

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

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

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

(空間フィルタ処理部26)
空間フィルタ処理部26は、黒生成下色除去部25によって黒生成処理が施されたCMYK信号に対して、領域分離処理部23から入力された領域識別信号が示す各領域に応じて、デジタルフィルタ(フィルタ係数セット)による空間フィルタ処理を行う。これにより、画像データの空間周波数特性が補正され、カラー画像出力装置3における出力画像のぼやけ、または粒状性劣化を防止する。空間フィルタ処理部26は、フィルタ処理を行った画像データ(CMYK信号)を変倍部27へ出力する。
(Spatial filter processing unit 26)
The spatial filter processing unit 26 applies a digital filter to the CMYK signal that has been subjected to black generation processing by the black generation and under color removal unit 25 according to each region indicated by the region identification signal input from the region separation processing unit 23. Spatial filter processing is performed using (filter coefficient set). Thereby, the spatial frequency characteristics of the image data are corrected, and blurring of the output image in the color image output device 3 or deterioration of graininess is prevented. The spatial filter processing unit 26 outputs the filtered image data (CMYK signal) to the scaling unit 27.

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

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

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

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

なお、上記の説明では、変倍部27の処理は、空間フィルタ処理部26の処理よりも後に行われるものとした。しかしながら、変倍部27の処理は、空間フィルタ処理部26の処理よりも前に行われてもよい。   In the above description, the processing of the scaling unit 27 is performed after the processing of the spatial filter processing unit 26. However, the processing of the scaling unit 27 may be performed before the processing of the spatial filter processing unit 26.

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

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

また、階調再現処理部29は、領域分離処理部23において網点領域に分離された領域に対して、最終的に画像を画素に分離して、それぞれの階調を再現できるように階調再現処理(中間調生成)を行う。さらに、階調再現処理部29は、領域分離処理部23において写真領域に分離された領域に対して、カラー画像出力装置3における階調再現性を重視したスクリーンでの二値化処理または多値化処理を行う。   Further, the gradation reproduction processing unit 29 finally separates the image into pixels for the region separated into the halftone dot regions in the region separation processing unit 23, and reproduces the respective gradations. Performs reproduction processing (halftone generation). Further, the gradation reproduction processing unit 29 performs binarization processing or multi-value processing on the screen with an emphasis on gradation reproducibility in the color image output apparatus 3 for the region separated into the photographic region by the region separation processing unit 23. Process.

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

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

(文字サイズ判定部30の詳細)
次に、文字サイズ判定部30の構成について詳細に説明する。図2は、文字サイズ判定部30の構成を示すブロック図である。
(Details of character size determination unit 30)
Next, the configuration of the character size determination unit 30 will be described in detail. FIG. 2 is a block diagram illustrating a configuration of the character size determination unit 30.

図2に示すように、文字サイズ判定部30は、記憶部300、画素値読取部(分割処理部)301、周波数変換部302、周波数解析部303、判定部304および補正部305を備えている。補正部305は、濃度判定部306、隣接画素補正部307、対角方向判定部308およびマスク処理部309を備えている。さらに、マスク処理部309は、周波数別強度補正部(周波数成分調整部)310、周波数逆変換部311および出力決定部312を備えている。   As shown in FIG. 2, the character size determination unit 30 includes a storage unit 300, a pixel value reading unit (division processing unit) 301, a frequency conversion unit 302, a frequency analysis unit 303, a determination unit 304, and a correction unit 305. . The correction unit 305 includes a density determination unit 306, an adjacent pixel correction unit 307, a diagonal direction determination unit 308, and a mask processing unit 309. Further, the mask processing unit 309 includes a frequency-specific intensity correction unit (frequency component adjustment unit) 310, a frequency inverse conversion unit 311, and an output determination unit 312.

(画素値読取部301)
画素値読取部301は、画像データから、主走査方向および副走査方向の各々指定された数の画素を1ブロックの画素とし、それら画素の濃度値を読み取り、記憶部300に記憶させる。1ブロックの画素数は、任意ではあるが、望ましくは2の冪乗である。また、1ブロックの画素数は、多過ぎると計算に多くの時間を要するため、望ましくは主走査方向および副走査方向とも8から16である。なお、記憶部300に記憶された画素データは、周波数変換部302や補正部305以降の処理に進んだところで消去される。
(Pixel value reading unit 301)
The pixel value reading unit 301 reads the designated number of pixels in the main scanning direction and the sub-scanning direction from the image data as one block pixel, reads the density values of these pixels, and stores them in the storage unit 300. The number of pixels in one block is arbitrary, but is preferably a power of 2. Further, if the number of pixels in one block is too large, it takes a lot of time for calculation. Therefore, it is preferably 8 to 16 in both the main scanning direction and the sub-scanning direction. Note that the pixel data stored in the storage unit 300 is deleted when the processing proceeds to the processing after the frequency conversion unit 302 and the correction unit 305.

上記の読取処理は、色成分毎に行われ、また、上記のように画像データに設定された各ブロックを順次読み取ることにより行われる。なお、各ブロックの読み取り順序については、特に限定されない。通常は、主走査方向に並んだブロックを端のブロックから端のブロックへ順次読み取り、次にこの読み取り動作を副走査方向の端のブロックから端のブロックへ順次行う。また、主走査方向に並んだブロックの左または右のどちらから読み取るかについては、どのラインについても左または右から読み取ってもよい。例えば、1ライン目は左から、2ライン目は右から、というようにジグザグに読み取ってもよい。   The reading process is performed for each color component, and is performed by sequentially reading each block set in the image data as described above. The order of reading each block is not particularly limited. Normally, the blocks arranged in the main scanning direction are sequentially read from the end block to the end block, and then this reading operation is sequentially performed from the end block to the end block in the sub-scanning direction. Further, as to whether to read from the left or right of the blocks arranged in the main scanning direction, any line may be read from the left or right. For example, the first line may be read zigzag from the left and the second line from the right.

(周波数変換部302)
周波数変換部302は、上記の各ブロックに属する画素の値について、色成分毎に主走査方向および副走査方向の離散フーリエ変換を行うことにより、画像データを空間周波数成分に変換する。離散フーリエ変換の演算は理論上は式(1)によって行われる。ここで、fは離散フーリエ変換後の値であり、u,vは主走査方向、副走査方向の周波数であり、m,sは主走査方向、副走査方向上のブロックの位置であり、M,Sはブロックの主走査方向、副走査方向の画素数である。
(Frequency converter 302)
The frequency conversion unit 302 converts the image data into a spatial frequency component by performing discrete Fourier transform in the main scanning direction and the sub-scanning direction for each color component for the pixel values belonging to each of the blocks. The operation of the discrete Fourier transform is theoretically performed by the equation (1). Here, f is a value after the discrete Fourier transform, u and v are frequencies in the main scanning direction and the sub scanning direction, m and s are block positions in the main scanning direction and the sub scanning direction, and M , S is the number of pixels in the main scanning direction and sub-scanning direction of the block.

f(u,v,m,s,c)=αl*Σp(x,y,m,s)*exp(-2πi*u*x/M) *exp(-2πi*v*y/S)…(1)
また、式(1)において、p(x,y,m,s)は、ブロックB(m,s)の成分cのXY座標系における座標(x,y)の位置にある画素の画素値である。M,SはブロックのX軸方向、Y軸方向の画素数である。f(u,v,m,s,c)は、p(x,y,m,s)をフーリエ変換した値であり、主走査方向および副走査方向の周波数、並びに色成分毎に、一般に複素数の値をとる。u,vは、X軸方向、Y軸方向の周波数である。αlはスケーリング用の係数であり、例えば1あるいは1/(M*S)が使われる。なお、式(1)は理論上のものであり、実際には処理速度を速めるために高速フーリエ変換(FFT)のアルゴリズムが適用されうる。
f (u, v, m, s, c) = αl * Σp (x, y, m, s) * exp (−2πi * u * x / M) * exp (−2πi * v * y / S) (1)
In equation (1), p (x, y, m, s) is the pixel value of the pixel at the position of the coordinate (x, y) in the XY coordinate system of the component c of the block B (m, s). is there. M and S are the number of pixels in the X-axis direction and Y-axis direction of the block. f (u, v, m, s, c) is a value obtained by Fourier transforming p (x, y, m, s), and is generally a complex number for each frequency and color component in the main scanning direction and sub-scanning direction. Takes the value of u and v are frequencies in the X-axis direction and the Y-axis direction. αl is a scaling coefficient, and for example, 1 or 1 / (M * S) is used. Note that equation (1) is theoretical, and in fact, a fast Fourier transform (FFT) algorithm can be applied to increase the processing speed.

次に、式(2)を用いて、fの絶対値Fを算出する。   Next, the absolute value F of f is calculated using Expression (2).

F(u,v,m,s,c)=|f(u,v,m,s,c)| ……(2)
但し、実際の回路では、Exp関数のかわりに実部はCos関数、虚部はSin関数によって変換される。Cos, Sinはブロックのサイズに応じて式(3),(4)の形をとる。
F (u, v, m, s, c) = | f (u, v, m, s, c) | (2)
However, in an actual circuit, the real part is converted by the Cos function and the imaginary part by the Sin function instead of the Exp function. Cos and Sin take the form of equations (3) and (4) according to the block size.

Ref(u,v,m,s,c)=αl*Σp(x,y,m,s,c)*[cos(-2π*u*x/M) *cos(-2π*v*y/S)−sin(-2π*u*x/M) *sin(-2π*v*y/S)] ……(3)
Imf(u,v,m,s,c)=αl*Σp(x,y,m,s,c)*[sin (-2π*u*x/M) *cos(-2π*v*y/S)+cos(-2π*u*x/M) *sin(-2π*v*y/S)] ……(4)
さらに式(5)を用いてFを算出する。
Ref (u, v, m, s, c) = αl * Σp (x, y, m, s, c) * [cos (-2π * u * x / M) * cos (-2π * v * y / S) −sin (−2π * u * x / M) * sin (−2π * v * y / S)] (3)
Imf (u, v, m, s, c) = αl * Σp (x, y, m, s, c) * [sin (-2π * u * x / M) * cos (-2π * v * y / S) + cos (-2π * u * x / M) * sin (-2π * v * y / S)] (4)
Further, F is calculated using equation (5).

F(u,v,m,s,c)=(Ref(u,v,m,s,c)^2+Imf(u,v,m,s,c)^2)^0.5 ……(5) これらの数値は、処理が終了し、算出されたfまたはFを記憶部300に記憶した後に記憶部300から消去される。なお、離散フーリエ変換の他に、離散コサイン変換、あるいは離散サイン変換を用いてもよい。   F (u, v, m, s, c) = (Ref (u, v, m, s, c) ^ 2 + Imf (u, v, m, s, c) ^ 2) ^ 0.5 (5 These numerical values are erased from the storage unit 300 after the processing is completed and the calculated f or F is stored in the storage unit 300. In addition to discrete Fourier transform, discrete cosine transform or discrete sine transform may be used.

(周波数解析部303)
周波数解析部303は、周波数変換部302により画素が周波数に変換された各ブロックに対し、特定の方向(例えば主走査方向方向または副走査方向)の周波数(但し直流成分は除く)について、所定の閾値により低域および高域、または低域、中域および高域というように、複数の区分に分ける。さらに、各区分について周波数を解析して特徴を抽出する。
(Frequency analysis unit 303)
For each block in which pixels are converted to a frequency by the frequency conversion unit 302, the frequency analysis unit 303 performs predetermined frequency (excluding the DC component) in a specific direction (for example, main scanning direction or sub-scanning direction). It is divided into a plurality of categories such as a low band and a high band, or a low band, a middle band and a high band according to a threshold value. Further, the characteristics are extracted by analyzing the frequency for each section.

具体的には、各区分において、最も強度の大きい周波数を選択する、特定の周波数の強度を抽出する、あるいは周波数をさらにいくつかの区分に分け、強度の和が最も大きい区分を選択する、というような処理が行われる。また、方向に関しては、少なくとも主走査方向および副走査方向において上述のような解析が行われる。また、色成分については、各色成分について各々同じような解析が行われる。あるいは、全ての色成分についての解析結果の総和を用いることにより解析が行われる。以上の解析結果は記憶部300に記憶される。   Specifically, in each section, select the frequency with the highest intensity, extract the intensity of a specific frequency, or further divide the frequency into several sections and select the section with the highest sum of intensity. Such processing is performed. Regarding the direction, the above-described analysis is performed at least in the main scanning direction and the sub-scanning direction. For the color component, the same analysis is performed for each color component. Alternatively, the analysis is performed by using the sum of the analysis results for all the color components. The above analysis results are stored in the storage unit 300.

(判定部304)
判定部304は、記憶部300から呼び出した強度に関する周波数解析部303の解析結果を、周波数(周波数の区分)毎、方向(例えば主走査方向方向および副走査方向)毎および色成分毎に所定の閾値と比較し、それら比較結果に基づいて、文字のサイズを上記のブロック毎に判定する。このとき、画素毎の文字サイズの判定結果は、当該画素が属するブロックでの判定結果に従うものとする。判定に用いる方向については、主走査方向および副走査方向のみに限定してもよい。判定結果は記憶部300に記憶される。
(Determination unit 304)
The determination unit 304 determines the analysis result of the frequency analysis unit 303 related to the intensity called from the storage unit 300 for each frequency (frequency division), for each direction (for example, the main scanning direction and the sub-scanning direction), and for each color component. The character size is determined for each block based on the comparison result based on the comparison result. At this time, the determination result of the character size for each pixel follows the determination result in the block to which the pixel belongs. The direction used for the determination may be limited to only the main scanning direction and the sub-scanning direction. The determination result is stored in the storage unit 300.

(補正部305)
補正部305は、判定部304にて判定された文字のサイズに基づいて、画素毎の文字サイズを決定する。このために、補正部305は、濃度判定部306、隣接画素補正部307、対角方向判定部308およびマスク処理部309を備えている。さらに、マスク処理部309は、周波数別強度補正部310、周波数逆変換部311および出力決定部312を備えている。以下に、補正部305での処理の詳細について述べる。
(Correction unit 305)
The correction unit 305 determines the character size for each pixel based on the character size determined by the determination unit 304. For this purpose, the correction unit 305 includes a density determination unit 306, an adjacent pixel correction unit 307, a diagonal direction determination unit 308, and a mask processing unit 309. Further, the mask processing unit 309 includes a frequency-specific intensity correction unit 310, a frequency inverse conversion unit 311, and an output determination unit 312. Details of the processing in the correction unit 305 will be described below.

(濃度判定部306)
濃度判定部306は、文字サイズ判定部30に入力された画像データの行および列毎の濃度値の合計値、標準偏差または最大値と最小値の差を算出し、記憶する。次に、上記の合計値、標準偏差または最大値と最小値の差を所定の閾値と比較し、その結果に応じて列または行に属する画素についての、判定部304での判定結果を補正する。補正結果は、記憶部300に記憶される。例えば、最大値と最小値の差が閾値以下であればその行または列に属する画素については、文字サイズは0、即ち文字なしと判定する。なお、判定部304での判定結果の補正方法はこれに限定されない。
(Density determination unit 306)
The density determination unit 306 calculates and stores the total density value, standard deviation, or difference between the maximum value and the minimum value for each row and column of the image data input to the character size determination unit 30. Next, the total value, the standard deviation or the difference between the maximum value and the minimum value is compared with a predetermined threshold value, and the determination result in the determination unit 304 for the pixel belonging to the column or row is corrected according to the result. . The correction result is stored in the storage unit 300. For example, if the difference between the maximum value and the minimum value is less than or equal to the threshold value, the character size of the pixel belonging to the row or column is determined to be 0, that is, no character. Note that the correction method of the determination result in the determination unit 304 is not limited to this.

(隣接画素補正部307)
隣接画素補正部307は、記憶部300に記憶された判定済の画素、即ち判定部304にて判定され、濃度判定部306にて補正された画素に対して注目画素を設定し、注目画素に隣接した画素の判定結果と注目画素の判定結果とを比較して、注目画素の判定結果を補正する。例えば、注目画素の文字サイズが大、隣接画素の文字サイズが小であれば、注目画素の文字サイズを大に書き換える。なお、判定結果の補正方法はこれに限定されない。
(Adjacent pixel correction unit 307)
The adjacent pixel correction unit 307 sets a target pixel for the determined pixel stored in the storage unit 300, that is, the pixel determined by the determination unit 304 and corrected by the density determination unit 306. The determination result of the target pixel is corrected by comparing the determination result of the adjacent pixel and the determination result of the target pixel. For example, if the character size of the pixel of interest is large and the character size of the adjacent pixel is small, the character size of the pixel of interest is rewritten to be large. Note that the determination result correction method is not limited to this.

(対角方向判定部308)
対角方向判定部308は、各ブロックの主走査方向および副走査方向について、所定の閾値(周波数)よりも高周波数となるような帯域における強度または強度の和を算出する。次に、算出した強度値を所定の閾値と比較することで、各ブロックについて文字か文字以外の点かを判定する。ブロックを文字以外の点と判定した場合には、判定部304での判定結果を補正する。
(Diagonal direction determination unit 308)
The diagonal direction determination unit 308 calculates the intensity or the sum of the intensity in a band where the frequency is higher than a predetermined threshold (frequency) in the main scanning direction and the sub-scanning direction of each block. Next, by comparing the calculated intensity value with a predetermined threshold value, it is determined whether each block is a character or a point other than a character. When it is determined that the block is a point other than the character, the determination result in the determination unit 304 is corrected.

(マスク処理部309)
周波数別強度補正部310は、周波数変換部302から取得した空間周波数成分に対して、判定部304での文字サイズの判定結果に基づき、所定の倍率にて強度の増幅・低減を行う。上記の倍率については、周波数変換部302にて設定された高域周波数の区分および低域周波数の区分毎に指定された数値が使用される。これにより、サイズの大きい文字については文を太くすることにより文字を見やすくし、サイズの小さい文字については、線の振幅を増幅を増幅して、細い線を濃く見せるように処理される。
(Mask processing unit 309)
The frequency-specific intensity correction unit 310 amplifies and reduces the intensity at a predetermined magnification based on the character size determination result of the determination unit 304 for the spatial frequency component acquired from the frequency conversion unit 302. For the above magnification, the numerical values specified for each of the high frequency range and low frequency set by the frequency converter 302 are used. As a result, a large-size character is processed to make the character easy to see by making the sentence thick, and a small-size character is processed so that the amplitude of the line is amplified to make the thin line appear dark.

周波数逆変換部311は、周波数別強度補正部310にて強度が補正された後の周波数特性に対して逆離散フーリエ変換等を行い、画像データを画素値分布の形に戻す。   The frequency inverse transform unit 311 performs inverse discrete Fourier transform or the like on the frequency characteristic after the intensity is corrected by the frequency-specific intensity correction unit 310, and returns the image data to the pixel value distribution form.

出力決定部312は、文字サイズ判定部30の出力として、補正部305にて補正された画素データを出力するか、あるいは補正部305にて補正されていない画像データを出力するかを決定し、その決定に基づいていずれかの画像データを出力する。なお、出力決定部312での出力画像データについての上記決定は、例えばユーザの選択によって行われる。   The output determination unit 312 determines whether to output the pixel data corrected by the correction unit 305 or the image data not corrected by the correction unit 305 as the output of the character size determination unit 30, One of the image data is output based on the determination. Note that the above-described determination of the output image data in the output determination unit 312 is performed, for example, by user selection.

以上の処理に用いた各閾値は、画像形成装置100の製造者や使用者が任意に指定可能な値である。なお、文字サイズ判定部30での文字サイズの判定は、閾値として、文字種毎の文字の使用頻度を考慮した値を用いることにより、特にアルファベットや仮名のように、使う文字数が漢字より限定されている文字種を使うことにより、精度の高い判定が可能になる。   Each threshold used in the above processing is a value that can be arbitrarily designated by the manufacturer or user of the image forming apparatus 100. Note that the character size determination in the character size determination unit 30 uses a value that considers the frequency of use of characters for each character type as a threshold value, so that the number of characters to be used is limited to kanji, particularly alphabets and kana. By using the character type, it is possible to determine with high accuracy.

上記の構成において、文字サイズ判定部30の動作を以下に説明する。まず、文字サイズ判定部30での文字サイズ判定の考え方の一例について簡単に説明する。   In the above configuration, the operation of the character size determination unit 30 will be described below. First, an example of the concept of character size determination in the character size determination unit 30 will be briefly described.

文字を構成する線は、一般に縦線や横線の数が斜め線よりも多い傾向にある。その傾向は漢字において特に顕著である。したがって、周波数特性に基づいて文字を判定するにあたっては、主走査方向や副走査方向の特徴を用いることができる。また、仮名やアルファベットについては縦線や横線の数は漢字ほど多くはない。したがって、仮名やアルファベットは、周波数特性において、漢字よりも線数が少ない文字として扱うことができる。   The lines constituting the characters generally tend to have more vertical and horizontal lines than diagonal lines. This tendency is particularly remarkable in kanji. Therefore, in determining characters based on the frequency characteristics, characteristics in the main scanning direction and the sub-scanning direction can be used. Also, for kana and alphabet, the number of vertical and horizontal lines is not as many as kanji. Therefore, kana and alphabets can be handled as characters having fewer lines than kanji in frequency characteristics.

また、文字のサイズと周波数特性との関係は、文字のサイズの大小によって大きく2つの場合に分けられる。   Further, the relationship between the character size and the frequency characteristic is roughly divided into two cases depending on the size of the character.

文字のサイズが大きい場合は、主走査方向および副走査方向に所定数の画素を含むブロックにおいて、線が1本だけ含まれる場合が多く、2本以上含まれる場合は稀である。また、文字を構成する線は、数画素分の太さを有するので、上記ブロックに占める面積が大きい。このような場合、フーリエ変換後の強度のピークは、1本目が最も大きく、2本目以降は1本目よりもかなり小さくなる傾向がある。   When the character size is large, a block including a predetermined number of pixels in the main scanning direction and the sub-scanning direction often includes only one line, and rarely includes two or more lines. Moreover, since the line which comprises a character has the thickness for several pixels, the area which occupies for the said block is large. In such a case, the first intensity peak after Fourier transform is the largest, and the second and subsequent peaks tend to be considerably smaller than the first.

一方、文字のサイズが小さい場合は、ブロック毎に線が複数本含まれる場合がしばしば見られ、線がブロックの一辺を構成する画素数の半分を占めることが多い。このような場合、フーリエ変換後の強度のピークは、線数が多い場合はその多い線の本数分が最も大きい。   On the other hand, when the character size is small, there are often cases where a plurality of lines are included in each block, and the lines often occupy half the number of pixels constituting one side of the block. In such a case, when the number of lines is large, the intensity peak after Fourier transformation is the largest for the number of lines.

また、文字のサイズが小さい場合であっても、ブロック毎に線が1本だけ含まれる場合も多く見られる。このような場合、文字を構成する線は、1画素分程度の太さしかなく、ブロックに占める線の面積が小さい。したがって、このような場合、1本目と2本目以降との強度差は、文字のサイズが大きくて線が太い場合よりも小さい。   Even when the character size is small, there are many cases where only one line is included in each block. In such a case, the line constituting the character is only about one pixel thick, and the area of the line occupying the block is small. Therefore, in such a case, the intensity difference between the first and the second and subsequent lines is smaller than when the character size is large and the line is thick.

いずれにしても、高域周波数成分は、文字のサイズが大きいときにより大きくなる。したがって、フーリエ変換後に例えばナイキスト周波数の半分を境に高域周波数の区分と低域周波数の区分とに分け、各々の区分で最も強い成分を選び、それら成分の強度の比率を算出すれば、その算出結果に基づいて、文字サイズを求めることができる。   In any case, the high frequency component becomes larger when the character size is larger. Therefore, after Fourier transform, for example, if the frequency is divided into a high frequency range and a low frequency range at the half of the Nyquist frequency, the strongest component is selected in each category, and the intensity ratio of those components is calculated. The character size can be obtained based on the calculation result.

次に、図3および図4に基づいて、文字サイズ判定部30の動作を説明する。図3は、文字サイズ判定部30による文字サイズ判定動作を示すフローチャートである。図4は、図3に続く、文字サイズ判定部30による文字サイズ判定動作を示すフローチャートである。なお、図3および図4に示す動作は、図2に示した文字サイズ判定部30の記憶部300、画素値読取部301、周波数変換部302、周波数解析部303および判定部304により行われるものである。   Next, the operation of the character size determination unit 30 will be described with reference to FIGS. FIG. 3 is a flowchart showing the character size determination operation by the character size determination unit 30. FIG. 4 is a flowchart illustrating the character size determination operation performed by the character size determination unit 30 following FIG. 3 and 4 are performed by the storage unit 300, the pixel value reading unit 301, the frequency conversion unit 302, the frequency analysis unit 303, and the determination unit 304 of the character size determination unit 30 illustrated in FIG. It is.

文字サイズ判定部30は、画像データを取得し(S1)、取得した画像データを所定のサイズの複数のブロックに分割する(S2)。次に、各ブロックについて以下の処理を順次行い、全てのブロックについての処理が完了すると(S3)、処理を終了する。   The character size determination unit 30 acquires image data (S1), and divides the acquired image data into a plurality of blocks having a predetermined size (S2). Next, the following processing is sequentially performed for each block, and when the processing for all the blocks is completed (S3), the processing ends.

S3において、全てのブロックについての処理が完了していなければ、各ブロックに属する画素の値について、色成分毎に周波数変換を行う(S4)。   If the processing for all the blocks is not completed in S3, frequency conversion is performed for each color component for the values of the pixels belonging to each block (S4).

次に、主走査方向および副走査方向の各々の周波数領域を第1の閾値(1つの閾値)によって2つの区分に分割する。すなわち主走査方向の周波数領域を高域周波数の区分と低域周波数の区分に分割し、副走査方向の周波数領域を高域周波数の区分と低域周波数の区分に分割する(S5)。   Next, each frequency region in the main scanning direction and the sub-scanning direction is divided into two sections by a first threshold value (one threshold value). That is, the frequency region in the main scanning direction is divided into a high frequency region and a low frequency region, and the sub scanning frequency region is divided into a high frequency region and a low frequency region (S5).

次に、主走査方向の高域周波数の区分および低域周波数の区分、並びに副走査方向の高域周波数の区分および低域周波数の区分の各区分について、最大値となる強度を算出する(S6)。   Next, the maximum intensity is calculated for each of the high-frequency and low-frequency divisions in the main scanning direction and the high-frequency and low-frequency divisions in the sub-scanning direction (S6). ).

次に、主走査方向または副走査方向の直流成分の強度を第2の閾値(1つの閾値)と比較する(S7)。S7での比較の結果、直流成分の強度が第2の閾値よりも大きければ(S8)、さらに主走査方向および副走査方向の高域周波数の区分の最大値を第3の閾値(1つの閾値)と比較する(S9)。   Next, the intensity of the DC component in the main scanning direction or the sub-scanning direction is compared with a second threshold value (one threshold value) (S7). As a result of the comparison in S7, if the intensity of the DC component is larger than the second threshold value (S8), the maximum value of the high frequency division in the main scanning direction and the sub-scanning direction is set to the third threshold value (one threshold value). (S9).

S9での比較の結果、高域周波数の区分の最大値が第3の閾値よりも大きければ(S10)、文字サイズは小と判定する(S11)。ここでは、文字サイズは小であるとの判定結果として、主走査方向の高域周波数の区分の最大値が第3の閾値よりも大きい場合の第1の判定結果、および副走査方向の高域周波数の区分の最大値が第3の閾値よりも大きい場合の第2の判定結果が得られる。   As a result of the comparison in S9, if the maximum value of the high frequency segment is larger than the third threshold (S10), it is determined that the character size is small (S11). Here, as the determination result that the character size is small, the first determination result when the maximum value of the high frequency division in the main scanning direction is larger than the third threshold, and the high frequency in the sub scanning direction A second determination result is obtained when the maximum value of the frequency category is larger than the third threshold value.

一方、S10において、高域周波数の区分の最大値が第3の閾値以下であれば、文字サイズは大と判定する(S12)。ここでは、文字サイズは大であるとの判定結果として、主走査方向の高域周波数の区分の最大値が第3の閾値以下である場合の第3の判定結果、および副走査方向の高域周波数の区分の最大値が第3の閾値以下である場合の第4の判定結果が得られる。   On the other hand, in S10, if the maximum value of the high-frequency classification is equal to or smaller than the third threshold value, it is determined that the character size is large (S12). Here, as the determination result that the character size is large, the third determination result when the maximum value of the high frequency range in the main scanning direction is equal to or smaller than the third threshold, and the high frequency in the sub scanning direction A fourth determination result is obtained when the maximum value of the frequency division is equal to or less than the third threshold value.

また、S8の判定において、直流成分の強度が第2の閾値以下であれば、主走査方向および副走査方向のそれぞれについて、高域周波数の区分の強度の最大値と低域周波数の区分の強度の最大値との比率(以下、最大強度比率と称する)を求める(S13)。そして、求めた最大強度比率を第4の閾値と比較する(S14)。   In the determination of S8, if the intensity of the DC component is equal to or less than the second threshold value, the maximum intensity of the high frequency section and the intensity of the low frequency section for each of the main scanning direction and the sub-scanning direction. A ratio with the maximum value (hereinafter referred to as the maximum intensity ratio) is obtained (S13). Then, the obtained maximum intensity ratio is compared with the fourth threshold value (S14).

S14での比較の結果、上記の最大強度比率が第4の閾値よりも大きければ(S15)、文字サイズは小と判定する(S16)。ここでは、文字サイズは小であるとの判定結果として、主走査方向の最大強度比率が第4の閾値よりも大きい場合の第5の判定結果、および副走査方向の最大強度比率が第4の閾値よりも大きい場合の第6の判定結果が得られる。   As a result of the comparison in S14, if the maximum intensity ratio is larger than the fourth threshold (S15), it is determined that the character size is small (S16). Here, as the determination result that the character size is small, the fifth determination result when the maximum intensity ratio in the main scanning direction is larger than the fourth threshold, and the maximum intensity ratio in the sub-scanning direction are the fourth. A sixth determination result in the case of being larger than the threshold value is obtained.

一方、S15において、上記の最大強度比率が第4の閾値以下であれば、文字サイズは大と判定する(S17)。ここでは、文字サイズは大であるとの判定結果として、主走査方向の最大強度比率が第4の閾値以下である場合の第7の判定結果、および副走査方向の最大強度比率が第4の閾値以下である場合の第8の判定結果が得られる。なお、第1〜第8の判定結果には、色成分毎の判定結果が含まれている。   On the other hand, if the maximum intensity ratio is equal to or smaller than the fourth threshold in S15, it is determined that the character size is large (S17). Here, as a determination result that the character size is large, the seventh determination result when the maximum intensity ratio in the main scanning direction is equal to or smaller than the fourth threshold value, and the maximum intensity ratio in the sub-scanning direction are the fourth. An eighth determination result in the case of being equal to or less than the threshold value is obtained. Note that the first to eighth determination results include determination results for each color component.

最後に、色成分毎の第1〜第8の判定結果に基づいて、文字のサイズを大または小のいずれかに決定する(S18)。この場合の文字サイズの決定は、例えば主走査方向のS10,S15および副走査方向のS10,S15における判定結果を参照し、そのうちのいずれかひとつまたは二つ以上の所定の判定結果で文字サイズ小と判定された場合に文字サイズを小とする、といった形で行われる。   Finally, the character size is determined to be either large or small based on the first to eighth determination results for each color component (S18). In this case, the character size is determined by referring to the determination results in S10 and S15 in the main scanning direction and S10 and S15 in the sub-scanning direction. If the character size is determined, the character size is reduced.

なお、上記の説明では、文字サイズを大小の2段階としたが、文字サイズは3段階以上であってもよい。例えば、文字サイズを大中小の3段階とする場合には、文字サイズ判定の閾値を一つ増やすことにより対応可能である。   In the above description, the character size is two levels, large and small, but the character size may be three or more. For example, when the character size is set to three levels of large, medium and small, it can be dealt with by increasing the character size determination threshold by one.

次に、文字サイズ判定部30の補正部305の動作について説明する。図5は、図2に示した対角方向判定部308の動作を示すフローチャートである。図6は、図2に示した濃度判定部306および隣接画素補正部307の動作を示すフローチャートである。   Next, the operation of the correction unit 305 of the character size determination unit 30 will be described. FIG. 5 is a flowchart showing the operation of the diagonal direction determination unit 308 shown in FIG. FIG. 6 is a flowchart illustrating operations of the density determination unit 306 and the adjacent pixel correction unit 307 illustrated in FIG.

補正部305は、判定部304での文字サイズの判定結果を補正する。この場合に、対角方向判定部308は、図5に示すように、周波数変換部302にて行われた各ブロックの周波数変換の結果を取得し、ブロック毎に対角方向の周波数成分の強度の和を算出する(S31)。この処理は、ブロックが複数の画素を含む例えば長方形の領域である場合、その長方形の対角線上の画素の周波数成分の強度の和を算出するものである。   The correction unit 305 corrects the character size determination result in the determination unit 304. In this case, as shown in FIG. 5, the diagonal direction determination unit 308 obtains the result of frequency conversion of each block performed by the frequency conversion unit 302, and the intensity of the frequency component in the diagonal direction for each block. Is calculated (S31). In this process, when the block is a rectangular region including a plurality of pixels, for example, the sum of the frequency component intensities of the pixels on the diagonal of the rectangle is calculated.

次に、S31において算出した対角方向の周波数成分の強度の和を第5の閾値と比較する(S32)。この比較の結果、上記和が第5の閾値よもも大きければ(S33)、そのブロックの文字サイズの判定結果を0とする(S34)。   Next, the sum of the intensities of the diagonal frequency components calculated in S31 is compared with a fifth threshold value (S32). If the sum is larger than the fifth threshold value as a result of this comparison (S33), the character size determination result of the block is set to 0 (S34).

また、上記処理とは別に、濃度判定部306は、図6に示すように、画像データの上記ブロック毎に、行の画素値(濃度値)の総和、標準偏差または最大値と最小値の差および列の画素値(濃度値)の総和、標準偏差または最大値と最小値の差を算出する(S41)。この処理は、例えば、ブロックに含まれる各行毎に画素値の最大値と最小値の差を算出し、かつ各列毎に画素値の最大値と最小値の差を算出するものである。   In addition to the above processing, as shown in FIG. 6, the density determination unit 306 performs, for each block of image data, the sum of pixel values (density values) of rows, the standard deviation, or the difference between the maximum value and the minimum value. Then, the sum, standard deviation, or difference between the maximum value and the minimum value of the pixel values (density values) of the column is calculated (S41). In this process, for example, the difference between the maximum and minimum pixel values is calculated for each row included in the block, and the difference between the maximum and minimum pixel values is calculated for each column.

次に、算出した行の画素値の最大値と最小値の差および列の画素値の最大値と最小値の差を第6の閾値と比較する(S42)。なお、第6の閾値は、行用と列用とで異なるものであってもよい。S42での比較の結果、画素値の最大値と最小値の差が第6の閾値よりも小さい行に属する画素、および画素値の最大値と最小値の差が第6の閾値よりも小さい列に属する画素については(S43)、それぞれ文字サイズの判定結果を0とする(S44)。   Next, the difference between the maximum value and the minimum value of the pixel values in the calculated row and the difference between the maximum value and the minimum value in the column are compared with the sixth threshold value (S42). Note that the sixth threshold value may be different for rows and columns. As a result of the comparison in S42, the pixels belonging to the row where the difference between the maximum value and the minimum value of the pixel values is smaller than the sixth threshold value, and the column where the difference between the maximum value and the minimum value of the pixel values is smaller than the sixth threshold value. For the pixels belonging to (S43), the character size determination result is set to 0 (S44).

上記の濃度判定部306の処理により、画素毎の文字サイズの判定結果が得られる。次に、この判定結果をさらに隣接画素補正部307によって補正する。この場合、隣接画素補正部307は、注目画素に隣接し、注目画素の周りの所定範囲の画素の判定結果と注目画素の判定結果とを比較し、その比較結果に基づいて注目画素の判定結果を補正する(S45)。この補正は例えば文字サイズ大とされた画素の周囲に文字サイズ小または文字なしとされた画素が所定の個数以上ある場合、あるいは文字サイズ小とされた画素の周囲に文字サイズ大または文字なしとされた画素が所定の個数以上ある場合に、文字サイズの判定を周囲の判定結果に書き換える等といった形で行われる。   The determination result of the character size for each pixel is obtained by the processing of the density determination unit 306 described above. Next, this determination result is further corrected by the adjacent pixel correction unit 307. In this case, the adjacent pixel correction unit 307 compares the determination result of the pixels in the predetermined range around the target pixel with the determination result of the target pixel, and determines the target pixel determination result based on the comparison result. Is corrected (S45). This correction is performed, for example, when there are a predetermined number or more of pixels with a small character size or no character around a pixel with a large character size, or with a large character size or no character around a pixel with a small character size. When there are a predetermined number of pixels or more, the determination of the character size is rewritten to the surrounding determination result.

上記のような処理により、画像データの画素毎に文字サイズを判定することができる。このようにして得た文字サイズの判定結果は、領域分離処理部23での領域分離結果と組み合わせて、空間フィルタ処理部26でのフィルタの切り替え(選択)に使用することができる。   With the above processing, the character size can be determined for each pixel of the image data. The character size determination result obtained in this way can be used for filter switching (selection) in the spatial filter processing unit 26 in combination with the region separation result in the region separation processing unit 23.

すなわち、空間フィルタ処理部26では、文字のサイズに応じたフィルタ処理を行う。文字サイズが小さい場合には、高域周波数の振幅を上げるために強調フィルタが使用される。一方、文字サイズが大きい場合には、文字の線を太くするために平滑フィルタを選ぶことができる。但し、ユーザの希望に応じて、小さい文字サイズの場合と同様のフィルタを選ぶことも可能であり、また、それらとは別のフィルタを選ぶこともできる。   That is, the spatial filter processing unit 26 performs filter processing according to the character size. When the character size is small, an emphasis filter is used to increase the amplitude of the high frequency. On the other hand, when the character size is large, a smoothing filter can be selected to thicken the character line. However, according to the user's desire, it is possible to select a filter similar to the case of a small character size, and it is also possible to select a filter different from them.

また、ブロック単位での文字サイズの判定結果は、JPEF圧縮の設定の切り替えに使用することができる。   The character size determination result in block units can be used for switching the setting of JPEF compression.

カラー画像出力装置6に含まれる圧縮部(図示せず)では、文字の有無、および文字サイズによって圧縮の設定を切り替えることができる。例えば、文字が存在しない領域では、通常よりも高い圧縮率にすることにより、画像データの保存効率および送信効率を向上することができる。一方、文字が存在する領域では、文字サイズに応じて圧縮率を低くすることにより、文字画質を維持しあるいは向上させることができる。   A compression unit (not shown) included in the color image output device 6 can switch the compression setting depending on the presence / absence of characters and the character size. For example, in an area where no character exists, the image data storage efficiency and transmission efficiency can be improved by setting a higher compression ratio than usual. On the other hand, in a region where characters are present, character image quality can be maintained or improved by reducing the compression rate in accordance with the character size.

また、マスク処理部309の周波数別強度補正部310は、周波数変換部302にて変換した周波数成分の強度分布に対して、判定部304または対角方向判定部308にて判定したブロック毎の文字サイズに応じた補正を行う。周波数逆変換部311は、周波数別強度補正部310にて処理されたデータを逆変換する。   Further, the frequency-specific intensity correction unit 310 of the mask processing unit 309 performs the character for each block determined by the determination unit 304 or the diagonal direction determination unit 308 with respect to the intensity distribution of the frequency component converted by the frequency conversion unit 302. Perform correction according to the size. The frequency reverse conversion unit 311 performs reverse conversion on the data processed by the frequency-specific intensity correction unit 310.

これにより、周波数逆変換部311にて逆変換して得られた画像データを、以降の画像処理に用いることができる。例えば、文字サイズが大きいと判定されたブロックについては高域周波数成分を弱め、文字サイズが小さいと判定されたブロックについては低域周波数成分を弱めるといった処理を行うことにより、以降のフィルタ処理を容易にすることができる。   Thereby, the image data obtained by performing the inverse transform in the frequency inverse transform unit 311 can be used for the subsequent image processing. For example, by performing processing such as weakening the high-frequency component for blocks that are determined to have a large character size and weakening the low-frequency component for blocks that are determined to have a small character size, the subsequent filter processing can be facilitated. Can be.

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

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

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

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

<第2実施形態>
本発明の第2実施形態を図面に基づいて以下に説明する。
図7は本発明の第2実施形態の画像形成装置101の構成を示すブロック図である。画像形成装置(例えば、デジタルカラー複写機)101は、カラー画像入力装置1、カラー画像処理装置(画像処理装置)5、画像形成手段としてのカラー画像出力装置6、および操作パネル4を備える。
Second Embodiment
A second embodiment of the present invention will be described below with reference to the drawings.
FIG. 7 is a block diagram showing the configuration of the image forming apparatus 101 according to the second embodiment of the present invention. An image forming apparatus (for example, a digital color copying machine) 101 includes a color image input apparatus 1, a color image processing apparatus (image processing apparatus) 5, a color image output apparatus 6 as image forming means, and an operation panel 4.

カラー画像処理装置5の基本的な構成はカラー画像処理装置2とほぼ同じである。但し、カラー画像処理装置5は、黒生成下色除去部25が存在しないこと、色補正部24以降もRGBの信号が流れることがカラー画像処理装置2と異なる。また、カラー画像出力装置6は、既知の画像圧縮処理を行う画像圧縮処理部(画像データ処理部)41を備えている。ここでは、一例として、画像圧縮処理部41が行うJPEG圧縮処理について述べる。   The basic configuration of the color image processing apparatus 5 is almost the same as that of the color image processing apparatus 2. However, the color image processing apparatus 5 is different from the color image processing apparatus 2 in that the black generation and under color removal unit 25 does not exist and that RGB signals also flow after the color correction unit 24. The color image output apparatus 6 includes an image compression processing unit (image data processing unit) 41 that performs a known image compression process. Here, as an example, JPEG compression processing performed by the image compression processing unit 41 will be described.

JPEG圧縮処理には、直交画像符号化および可変長符号化を組み合わせた符号化方式が従来から用いられている。JPEG圧縮処理では、上記画像データ符号化方式に基づき、画像データの各画素値を色成分変換によって輝度成分と色差成分とに変換する。   For JPEG compression processing, an encoding method combining orthogonal image encoding and variable length encoding has been conventionally used. In JPEG compression processing, each pixel value of image data is converted into a luminance component and a color difference component by color component conversion based on the image data encoding method.

次に、輝度成分および色差成分について、所定の大きさのブロックに対応するように分割して処理を行う。ブロックは、輝度であれば例えば8画素×8画素分である。画像圧縮処理部41は、分割したブロック毎に、ジグザグスキャンの順に直交変換として2次元のDCT(Discrete Cosine Translation:離散コサイン変換)を行う。これにより、画像データを周波数変換である直流成分と交流成分に変換する。画像圧縮処理部41は、周波数成分を設定してある周波数成分毎の量子化幅で除算を行う。これにより、各周波数成分に応じた線形量子化が行われる。次に、量子化後の値に応じたハフマン符号化による可変長符号化を行い、符号化データを生成する。   Next, the luminance component and the color difference component are divided and processed so as to correspond to a predetermined size block. A block is, for example, 8 pixels × 8 pixels for luminance. The image compression processing unit 41 performs two-dimensional DCT (Discrete Cosine Translation) as orthogonal transform in the order of zigzag scanning for each divided block. As a result, the image data is converted into a DC component and an AC component, which are frequency conversions. The image compression processing unit 41 performs division by the quantization width for each frequency component for which frequency components are set. Thereby, linear quantization according to each frequency component is performed. Next, variable length coding is performed by Huffman coding according to the value after quantization to generate encoded data.

符号化データのサイズは、線形量子化によってゼロとなる周波数成分が増えるほど、小さくなる。これにより、データの送信効率および保存効率が向上する。また、符号化データを復号し、画素値で構成される画像データに復元する場合、符号化データには符号化とは逆の処理が行われる。この場合、線形量子化でゼロとなった周波数成分、その他の演算の過程で丸められた端数は完全に復元しない。このため、符号化データを復号した後の画像には、モスキートノイズまたはブロックノイズといったノイズが発生し、画質が劣化する。以上により、データの送信効率および保存効率と、符号化後に復号された画像の画質、即ち上述のモスキートノイズまたはブロックノイズの発生度合いとは、画像の周波数特性により変化する。   The size of the encoded data becomes smaller as the frequency component that becomes zero by linear quantization increases. Thereby, data transmission efficiency and storage efficiency are improved. In addition, when the encoded data is decoded and restored to image data composed of pixel values, the encoded data is subjected to processing opposite to the encoding. In this case, the frequency component that has become zero by linear quantization and the fraction rounded off during other operations are not completely restored. For this reason, noise such as mosquito noise or block noise occurs in the image after decoding the encoded data, and the image quality deteriorates. As described above, the data transmission efficiency and the storage efficiency and the image quality of the image decoded after encoding, that is, the degree of occurrence of the mosquito noise or block noise described above vary depending on the frequency characteristics of the image.

<第3実施形態>
カラー画像処理装置2,5は、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。
<Third Embodiment>
The color image processing apparatuses 2 and 5 may be configured by hardware logic, or may be realized by software using a CPU as follows.

すなわち、カラー画像処理装置2,5は、各機能を実現する制御プログラムの命令を実行するCPU(Central Processing Unit )、コンピュータプログラムを格納したROM(read only memory)、各種の制御プログラムを展開するRAM(random access memory)、各種の制御プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。   In other words, the color image processing apparatuses 2 and 5 include a CPU (Central Processing Unit) that executes instructions of a control program for realizing each function, a ROM (read only memory) that stores a computer program, and a RAM that develops various control programs. (Random access memory), various control programs, and a storage device (recording medium) such as a memory for storing various data.

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

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

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

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスク並びにCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory、登録商標)、フラッシュROM等による半導体メモリを含めた固定的にコンピュータプログラムを担持する媒体であってもよい。   Here, the program medium is a recording medium configured to be separable from the main body, and includes a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk and a hard disk, and a CD-ROM / MO / MD / DVD / Disk systems including optical disks such as CD-R, card systems such as IC cards (including memory cards) / optical cards, mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), registration Trademark), a medium that carries a computer program fixedly, including a semiconductor memory such as a flash ROM.

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

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

〔まとめ〕
本発明の態様1に係る画像処理装置は、画像データを空間周波数成分に変換する周波数変換部302と、前記空間周波数成分の強度を求める周波数解析部303と、前記空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、前記高域周波数成分の強度が前記所定の閾値よりも大きい場合に、前記画像データに含まれる文字サイズを相対的に小サイズと判定する一方、前記高域周波数成分の強度が前記所定の閾値以下である場合に、前記画像データに含まれる文字サイズを相対的に大サイズと判定する判定部304とを備えている。
[Summary]
The image processing apparatus according to the first aspect of the present invention includes a frequency conversion unit 302 that converts image data into a spatial frequency component, a frequency analysis unit 303 that obtains the intensity of the spatial frequency component, and the intensity of the spatial frequency component. The intensity of the high frequency component belonging to the relatively high frequency is compared with a predetermined threshold, and when the intensity of the high frequency component is larger than the predetermined threshold, the character size included in the image data is relative A determination unit 304 that determines that the character size included in the image data is a relatively large size when the intensity of the high-frequency component is equal to or less than the predetermined threshold. Yes.

上記の構成によれば、周波数変換部302は、画像データを空間周波数成分に変換し、周波数解析部303は、前記空間周波数成分の強度を求める。判定部304は、空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、高域周波数成分の強度が所定の閾値よりも大きい場合に、画像データに含まれる文字サイズを相対的に小サイズと判定する一方、高域周波数成分の強度が所定の閾値以下である場合に、画像データに含まれる文字サイズを相対的に大サイズと判定する。   According to the above configuration, the frequency conversion unit 302 converts the image data into a spatial frequency component, and the frequency analysis unit 303 obtains the intensity of the spatial frequency component. The determination unit 304 compares the intensity of the high frequency component belonging to the relatively high frequency out of the intensity of the spatial frequency component with a predetermined threshold, and when the intensity of the high frequency component is larger than the predetermined threshold, While the character size included in the image data is determined to be relatively small, the character size included in the image data is determined to be relatively large when the intensity of the high frequency component is equal to or less than a predetermined threshold. .

これにより、画像データに含まれる文字がサイズの小さいものであっても、その文字を正確に文字として判定することができる。   Thereby, even if the character contained in image data is a small size, the character can be correctly determined as a character.

したがって、文字サイズ判定結果に基づいて、文字のサイズ毎に文字に対するフィルタや圧縮率等の処理を切り替えることができる。例えば、小さい文字は、解像力を高めたり、線の振幅を増幅を増幅して細い線を濃く見せるようにしたり、圧縮率を低めたりするような処理、大きい文字は線を太めにしたり、圧縮率をやや高めにしたりするような処理、さらに文字が存在しない場合は圧縮率を高めるような処理を行うようにすることができる。この結果、各々のサイズで文字を見やすくすることができ、出力画像の画質を向上させることができる。   Therefore, based on the character size determination result, it is possible to switch processing such as a filter for a character and a compression rate for each character size. For example, processing for increasing the resolution of small characters, amplifying the line amplitude to make thin lines appear darker, or reducing the compression rate, and increasing the compression rate for large characters. It is possible to perform processing such as raising the compression rate slightly, and further processing such as increasing the compression rate when there is no character. As a result, it is possible to make the characters easier to see at each size, and the image quality of the output image can be improved.

本発明の態様2に係る画像処理装置は、上記態様1において、前記判定部304は、前記高域周波数成分の主走査方向および副走査方向の各々について文字サイズを判定し、それら判定結果に基づいて文字サイズを決定する構成としてもよい。   In the image processing apparatus according to aspect 2 of the present invention, in the above aspect 1, the determination unit 304 determines a character size for each of the main scanning direction and the sub-scanning direction of the high-frequency component, and based on the determination results. The character size may be determined.

上記の構成によれば、判定部304は、高域周波数成分の主走査方向および副走査方向の各々ついて文字サイズを判定し、それら判定結果に基づいて文字サイズを決定するので、画像データに含まれる文字サイズを正確に判定することができる。   According to the above configuration, the determination unit 304 determines the character size for each of the high-frequency component in the main scanning direction and the sub-scanning direction, and determines the character size based on the determination result. The character size to be determined can be accurately determined.

本発明の態様3に係る画像処理装置は、上記態様1または2において、前記周波数変換部302の前段に分割処理部(画素値読取部301)を備え、前記分割処理部は、画像データを複数のブロックに分割し、前記ブロックの各々は主走査方向および副走査方向に各々複数の画素を含み、前記判定部304は、前記ブロック毎に文字サイズを判定し、前記ブロック毎の文字サイズの判定結果に基づいて、画像データの文字サイズを決定する構成としてもよい。   The image processing apparatus according to aspect 3 of the present invention includes the division processing unit (pixel value reading unit 301) in the preceding stage of the frequency conversion unit 302 in the above aspect 1 or 2, and the division processing unit stores a plurality of pieces of image data. Each block includes a plurality of pixels in the main scanning direction and the sub-scanning direction, and the determination unit 304 determines a character size for each block, and determines a character size for each block. The character size of the image data may be determined based on the result.

上記の構成によれば、分割処理部(画素値読取部301)は、画像データを複数のブロックに分割し、ブロックの各々は主走査方向および副走査方向に各々複数の画素を含み、判定部304は、ブロック毎に文字サイズを判定し、ブロック毎の文字サイズの判定結果に基づいて、画像データの文字サイズを決定する。これにより、判定部304は、文字サイズの判定を容易かつ正確に行うことができる。   According to the above configuration, the division processing unit (pixel value reading unit 301) divides the image data into a plurality of blocks, and each of the blocks includes a plurality of pixels in the main scanning direction and the sub-scanning direction. 304 determines the character size for each block, and determines the character size of the image data based on the determination result of the character size for each block. Accordingly, the determination unit 304 can easily and accurately determine the character size.

本発明の態様4に係る画像処理装置は、上記態様1から3のいずれかにおいて、前記周波数変換部302から取得した空間周波数成分に対して、前記判定部304での文字サイズの判定結果に基づき、強度の増幅または低減を行う周波数成分調整部(周波数別強度補正部310)と、前記周波数成分調整部にて処理された空間周波数成分を画素値の画像データに逆変換して出力する周波数逆変換部311と、前記周波数逆変換部311から出力される画像データを処理する画像データ処理部とを備えている構成としてもよい。   The image processing apparatus according to aspect 4 of the present invention is the image processing apparatus according to any one of aspects 1 to 3, based on a character size determination result in the determination unit 304 for the spatial frequency component acquired from the frequency conversion unit 302. A frequency component adjustment unit (intensity correction unit 310 for each frequency) that performs amplification or reduction of intensity, and a frequency inverse unit that inversely converts the spatial frequency component processed by the frequency component adjustment unit into image data of a pixel value and outputs it. It is good also as a structure provided with the conversion part 311 and the image data process part which processes the image data output from the said frequency reverse conversion part 311. FIG.

上記の構成によれば、周波数成分調整部(周波数別強度補正部310)は、周波数変換部302から取得した空間周波数成分に対して、判定部304での文字サイズの判定結果に基づき、強度の増幅または低減を行う。周波数逆変換部311は、周波数成分調整部(周波数別強度補正部310)にて処理された空間周波数成分を画素値の画像データに逆変換して出力する。画像データ処理部は、周波数逆変換部311から出力される画像データを処理する。なお、画像データ処理部は、画像処理装置が備える周波数逆変換部311の後段の処理部である。   According to the above configuration, the frequency component adjustment unit (frequency-specific intensity correction unit 310) applies the intensity of the spatial frequency component acquired from the frequency conversion unit 302 based on the character size determination result in the determination unit 304. Amplify or reduce. The frequency inverse transform unit 311 inversely transforms the spatial frequency component processed by the frequency component adjustment unit (frequency-specific intensity correction unit 310) into image data of a pixel value and outputs the image data. The image data processing unit processes the image data output from the frequency inverse transform unit 311. The image data processing unit is a subsequent processing unit of the frequency inverse transform unit 311 included in the image processing apparatus.

上記の構成によれば、周波数逆変換部311の後段の画像データ処理部では、判定部304による文字サイズの判定結果を反映して、画像データに含まれる文字のサイズの応じた良好な画像処理が可能となる。例えば、周波数成分調整部(周波数別強度補正部310)では、文字サイズが大きいと判定されている場合には高域周波数成分を弱め、文字サイズが小さいと判定されている場合には低域周波数成分を弱めるといった処理を行うことにより、以降のフィルタ処理を容易にすることができる。   According to the above configuration, the subsequent image data processing unit of the frequency inverse transform unit 311 reflects the determination result of the character size by the determination unit 304 and performs good image processing according to the size of the characters included in the image data. Is possible. For example, the frequency component adjustment unit (frequency-specific intensity correction unit 310) weakens the high frequency component when it is determined that the character size is large, and the low frequency when it is determined that the character size is small. By performing processing such as weakening the components, subsequent filter processing can be facilitated.

本発明の態様5に係る画像処理装置は、上記態様4において、前記画像データ処理部は、前記判定部304での文字サイズの判定結果に応じて、画像データに対する処理を切り替える構成としてもよい。   The image processing apparatus according to aspect 5 of the present invention may be configured such that, in the above aspect 4, the image data processing unit switches processing on image data in accordance with a character size determination result in the determination unit 304.

上記の構成によれば、画像データ処理部では、判定部304による文字サイズの判定結果を反映して、画像データに含まれる文字のサイズの応じた良好な画像処理が可能となる。   According to the above configuration, the image data processing unit can perform favorable image processing according to the size of characters included in the image data, reflecting the character size determination result by the determination unit 304.

本発明の態様6に係る画像処理装置は、上記態様5において、前記画像データ処理部は、画像データを圧縮する圧縮部(画像圧縮処理部41)を備え、前記圧縮部は、前記判定部304での文字サイズの判定結果に応じて、画像の圧縮の設定を切り替える構成としてもよい。   The image processing apparatus according to aspect 6 of the present invention is the image processing apparatus according to aspect 5, wherein the image data processing unit includes a compression unit (image compression processing unit 41) that compresses image data, and the compression unit includes the determination unit 304. The image compression setting may be switched according to the determination result of the character size.

上記の構成によれば、圧縮部(画像圧縮処理部41)は、判定部304での文字サイズの判定結果に応じて、画像の圧縮の設定を切り替える。圧縮部は、例えば、文字が存在しない場合には、通常よりも高い圧縮率にて画像データの圧縮処理を行うことにより、画像データの保存効率および送信効率を向上することができる。一方、文字が存在する場合には、文字サイズに応じて圧縮率を低くすることにより、文字を含む画像データの画質を維持しあるいは向上させることができる。   According to the above configuration, the compression unit (image compression processing unit 41) switches the setting of image compression according to the determination result of the character size in the determination unit 304. For example, when there is no character, the compression unit can improve the storage efficiency and transmission efficiency of image data by performing compression processing of image data at a higher compression rate than usual. On the other hand, when a character exists, the image quality of image data including the character can be maintained or improved by reducing the compression rate according to the character size.

本発明の画像処理方法は、画像データを空間周波数成分に変換する周波数変換工程と、
前記空間周波数成分の強度を求める周波数解析工程と、前記空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、前記高域周波数成分の強度が前記所定の閾値よりも大きい場合に、前記画像データに含まれる文字サイズを相対的に小サイズと判定する一方、前記高域周波数成分の強度が前記所定の閾値以下である場合に、前記画像データに含まれる文字サイズを相対的に大サイズと判定する判定工程とを備えている構成である。
The image processing method of the present invention includes a frequency conversion step of converting image data into a spatial frequency component;
A frequency analysis step for obtaining the intensity of the spatial frequency component, and comparing the intensity of the high frequency component belonging to a relatively high frequency out of the intensity of the spatial frequency component with a predetermined threshold, and the intensity of the high frequency component Is larger than the predetermined threshold, the character size included in the image data is determined to be a relatively small size, and the intensity of the high frequency component is equal to or lower than the predetermined threshold. And a determination step of determining a character size included in the data as a relatively large size.

上記構成によれば、態様1の画像処理装置と同様の作用、効果を奏する。   According to the said structure, there exists an effect | action similar to the image processing apparatus of aspect 1, and an effect.

本発明の各態様に係る画像処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記画像処理装置が備える各部として動作させることにより上記画像処理装置をコンピュータにて実現させるプログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The image processing apparatus according to each aspect of the present invention may be realized by a computer. In this case, a program that causes the computer to realize the image processing apparatus by causing the computer to operate as each unit included in the image processing apparatus. And a computer-readable recording medium on which it is recorded also fall within the scope of the present invention.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。   The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and embodiments obtained by appropriately combining technical means disclosed in different embodiments. Is also included in the technical scope of the present invention. Furthermore, a new technical feature can be formed by combining the technical means disclosed in each embodiment.

本発明は、文字を含む画像データを処理する処理部を含む装置、例えばプリンタ、複写機および複合機等に利用することができる。   The present invention can be used in an apparatus including a processing unit that processes image data including characters, such as a printer, a copier, and a multifunction peripheral.

1 カラー画像入力装置
2 カラー画像処理装置(画像処理装置)
3 カラー画像出力装置
4 操作パネル
5 カラー画像処理装置(画像処理装置)
6 カラー画像出力装置
7 制御部
30 文字サイズ判定部
41 画像圧縮処理部(画像データ処理部)
100 画像形成装置
101 画像形成装置
300 記憶部
301 画素値読取部(分割処理部)
302 周波数変換部
303 周波数解析部
304 判定部
305 補正部
306 濃度判定部
307 隣接画素補正部
308 対角方向判定部
309 マスク処理部
310 周波数別強度補正部(周波数成分調整部)
311 周波数逆変換部
312 出力決定部
1 color image input device 2 color image processing device (image processing device)
3 Color image output device 4 Operation panel 5 Color image processing device (image processing device)
6 Color image output device 7 Control unit 30 Character size determination unit 41 Image compression processing unit (image data processing unit)
DESCRIPTION OF SYMBOLS 100 Image forming apparatus 101 Image forming apparatus 300 Memory | storage part 301 Pixel value reading part (division | segmentation process part)
302 Frequency conversion unit 303 Frequency analysis unit 304 Determination unit 305 Correction unit 306 Density determination unit 307 Adjacent pixel correction unit 308 Diagonal direction determination unit 309 Mask processing unit 310 Frequency-specific intensity correction unit (frequency component adjustment unit)
311 Frequency inverse transform unit 312 Output determination unit

Claims (10)

画像データを空間周波数成分に変換する周波数変換部と、
前記空間周波数成分の強度を求める周波数解析部と、
前記空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、前記高域周波数成分の強度が前記所定の閾値よりも大きい場合に、前記画像データに含まれる文字サイズを相対的に小サイズと判定する一方、前記高域周波数成分の強度が前記所定の閾値以下である場合に、前記画像データに含まれる文字サイズを相対的に大サイズと判定する判定部とを備えていることを特徴とする画像処理装置。
A frequency converter that converts image data into spatial frequency components;
A frequency analysis unit for obtaining the intensity of the spatial frequency component;
Of the intensities of the spatial frequency components, the intensities of the high frequency components belonging to a relatively high frequency are compared with a predetermined threshold, and the intensity of the high frequency components is greater than the predetermined threshold. While determining the character size included in the data as a relatively small size, when the intensity of the high frequency component is equal to or less than the predetermined threshold, the character size included in the image data is set as a relatively large size An image processing apparatus comprising: a determination unit for determining.
前記判定部は、前記高域周波数成分の主走査方向および副走査方向の各々について文字サイズを判定し、それら判定結果に基づいて文字サイズを決定することを特徴とする請求項1に記載の画像処理装置。   2. The image according to claim 1, wherein the determination unit determines a character size for each of a main scanning direction and a sub-scanning direction of the high-frequency component and determines a character size based on the determination result. Processing equipment. 前記周波数変換部の前段に分割処理部を備え、前記分割処理部は、画像データを複数のブロックに分割し、前記ブロックの各々は主走査方向および副走査方向に各々複数の画素を含み、
前記判定部は、前記ブロック毎に文字サイズを判定し、前記ブロック毎の文字サイズの判定結果に基づいて、画像データの文字サイズを決定することを特徴とする請求項1または2に記載の画像処理装置。
A division processing unit is provided in front of the frequency conversion unit, and the division processing unit divides the image data into a plurality of blocks, each of the blocks includes a plurality of pixels in the main scanning direction and the sub-scanning direction,
The image according to claim 1, wherein the determination unit determines a character size for each block, and determines a character size of image data based on a determination result of the character size for each block. Processing equipment.
前記周波数変換部から取得した空間周波数成分に対して、前記判定部での文字サイズの判定結果に基づき、強度の増幅または低減を行う周波数成分調整部と、
前記周波数成分調整部にて処理された空間周波数成分を画素値の画像データに逆変換して出力する周波数逆変換部と、
前記周波数逆変換部から出力される画像データを処理する画像データ処理部とを備えていることを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。
A frequency component adjustment unit that amplifies or reduces intensity based on the determination result of the character size in the determination unit with respect to the spatial frequency component acquired from the frequency conversion unit,
A frequency inverse transform unit that inversely transforms and outputs the spatial frequency component processed by the frequency component adjustment unit to image data of pixel values;
The image processing apparatus according to claim 1, further comprising: an image data processing unit that processes image data output from the frequency inverse transform unit.
前記画像データ処理部は、前記判定部での文字サイズの判定結果に応じて、前記データに対する処理を切り替えることを特徴とする請求項4に記載の画像処理装置。   The image processing apparatus according to claim 4, wherein the image data processing unit switches processing for the data in accordance with a character size determination result in the determination unit. 前記画像データ処理部は、画像データを圧縮する圧縮部を備え、
前記圧縮部は、前記判定部での文字サイズの判定結果に応じて、画像の圧縮の設定を切り替えることを特徴とする請求項5に記載の画像処理装置。
The image data processing unit includes a compression unit that compresses image data,
The image processing apparatus according to claim 5, wherein the compression unit switches setting of image compression according to a determination result of the character size in the determination unit.
請求項1から6のいずれか1項に記載の画像処理装置を備えることを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1. 画像データを空間周波数成分に変換する周波数変換工程と、
前記空間周波数成分の強度を求める周波数解析工程と、
前記空間周波数成分の強度のうち、相対的に高域に属する高域周波数成分の強度を所定の閾値と比較し、前記高域周波数成分の強度が前記所定の閾値よりも大きい場合に、前記画像データに含まれる文字サイズを相対的に小サイズと判定する一方、前記高域周波数成分の強度が前記所定の閾値以下である場合に、前記画像データに含まれる文字サイズを相対的に大サイズと判定する判定工程とを備えていることを特徴とする画像処理方法。
A frequency conversion step of converting image data into a spatial frequency component;
A frequency analysis step for determining the intensity of the spatial frequency component;
Of the intensities of the spatial frequency components, the intensities of the high frequency components belonging to a relatively high frequency are compared with a predetermined threshold, and the intensity of the high frequency components is greater than the predetermined threshold. While determining the character size included in the data as a relatively small size, when the intensity of the high frequency component is equal to or less than the predetermined threshold, the character size included in the image data is set as a relatively large size An image processing method comprising: a determination step of determining.
請求項1から6のいずれか1項に記載の画像処理装置としてコンピュータを機能させるためのプログラムであって、コンピュータを上記の各部として機能させるためのプログラム。   A program for causing a computer to function as the image processing apparatus according to claim 1, wherein the program causes the computer to function as each of the above-described units. 請求項9に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 9 is recorded.
JP2013180104A 2013-08-30 2013-08-30 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium Pending JP2015049631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013180104A JP2015049631A (en) 2013-08-30 2013-08-30 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013180104A JP2015049631A (en) 2013-08-30 2013-08-30 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Publications (1)

Publication Number Publication Date
JP2015049631A true JP2015049631A (en) 2015-03-16

Family

ID=52699616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013180104A Pending JP2015049631A (en) 2013-08-30 2013-08-30 Image processing apparatus, image forming apparatus, image processing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP2015049631A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10587775B2 (en) 2018-03-15 2020-03-10 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium for edge enhancement based on plural conditions

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10587775B2 (en) 2018-03-15 2020-03-10 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium for edge enhancement based on plural conditions

Similar Documents

Publication Publication Date Title
US8792735B2 (en) Image compressing apparatus which extracts black text edge pixels from an image and compresses a layer with black text edge pixels extracted
JP5089713B2 (en) Image compression apparatus, compressed image output apparatus, image compression method, computer program, and recording medium
JP5220828B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, program, and recording medium
JP4549418B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
JP4176114B2 (en) Image compression apparatus, image reading apparatus including the same, image processing apparatus including the image compression apparatus, image forming apparatus including the same, and image compression processing method
JP4707751B2 (en) Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium
US8547595B2 (en) Image forming apparatus for performing a process of superimposing pixel data based on pixel direction
JP4749476B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2009100121A (en) Image processing method, image processing apparatus, image forming apparatus, computer program and recording medium
JP2017130811A (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP4731595B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2004312387A (en) Image processing method, image processing device, image forming device, image pickup device, and computer program
JP2010278933A (en) Image processing device, image forming device, image processing method, program and recording medium
JP2015049631A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP6262102B2 (en) Image processing apparatus, image processing system, computer 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
JP6024363B2 (en) Image processing device
JP2014143512A (en) Image processing device and image processing method
JP4926128B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2010278924A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4334498B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program
JP5011223B2 (en) Image processing apparatus, image forming apparatus including the same, image processing program, and recording medium
JP2004235743A (en) Picture processor, picture processing method, program and recording medium
JP4166733B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image processing program, and recording medium
JP2009159089A (en) Image processing device, image processing method, image forming apparatus, image reader, computer program and recording medium