JP2006191294A - Image processor, program and image-processing method - Google Patents
Image processor, program and image-processing method Download PDFInfo
- Publication number
- JP2006191294A JP2006191294A JP2005000768A JP2005000768A JP2006191294A JP 2006191294 A JP2006191294 A JP 2006191294A JP 2005000768 A JP2005000768 A JP 2005000768A JP 2005000768 A JP2005000768 A JP 2005000768A JP 2006191294 A JP2006191294 A JP 2006191294A
- Authority
- JP
- Japan
- Prior art keywords
- type information
- object type
- threshold
- image
- pixel
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、特にラスタライズされたデジタル画像データの出力画像の画質向上処理を行う画像処理装置、プログラムおよび画像処理方法に関する。 The present invention relates to an image processing apparatus, a program, and an image processing method that perform image quality improvement processing of an output image of rasterized digital image data.
パーソナルコンピュータにインストールされているワードプロセッサなどのアプリケーションを用いて作成されるページ記述言語(page-description language:PDL)をプリンタへと出力する際には、PDLコマンドで表現されている文字や図形などは、プリンタへ出力するための2次元のビットマップイメージに展開されてメモリに一時的に格納される。 When a page-description language (PDL) created using an application such as a word processor installed in a personal computer is output to a printer, characters and graphics expressed by PDL commands The image is expanded into a two-dimensional bitmap image for output to a printer and temporarily stored in the memory.
近年においては、このようにPDLコマンドで表現されている文字や図形などを2次元のビットマップイメージに展開・格納する際に、同時に画素毎にオブジェクト種類情報を対応させて格納し、オブジェクト種類情報に基づいて画像データの文字/写真それぞれの領域に適した中間調処理や色補正を切り替えて実施することにより、自然画像等のハーフトーン画像と文字等のバイナリ画像とが混在している画像データに対して高画質な画像を得るための技術が開示されている。 In recent years, when characters and figures represented by PDL commands are expanded and stored in a two-dimensional bitmap image, object type information is stored corresponding to each pixel at the same time. Based on the image data, halftone images such as natural images and binary images such as characters are mixed by switching halftone processing and color correction suitable for each character / photo area of the image data. In contrast, a technique for obtaining a high-quality image is disclosed.
特許文献1には、展開されたビットマップイメージに対し、主にカラー複写機に搭載される像域分離処理を施すことにより、文字及び写真が混在する画像から文字領域を分離し、文字/写真それぞれの領域に適した処理を切り替えて実施することにより高画質な画像を得る技術が開示されている。このとき、像域分離処理では文字領域をすべて検出できるとは限らず、また自然画像領域でも誤って文字領域として検出されてしまうなど信頼性が低いため、オブジェクト種類情報データを参照して像域分離処理を施すことで信頼性の向上を図っている。 In Japanese Patent Laid-Open No. 2004-228867, the developed bitmap image is subjected to an image area separation process mainly mounted in a color copying machine, thereby separating a character area from an image in which characters and photographs are mixed. A technique for obtaining a high-quality image by switching and executing processing suitable for each region is disclosed. At this time, the image area separation process does not necessarily detect all the character areas, and the natural image area is erroneously detected as a character area. Therefore, the image area is referred to by referring to the object type information data. Reliability is improved by performing separation processing.
特許文献2には、上記特許文献1で用いている像域分離を画像全体に施す場合に多大な時間がかかってしまう欠点と、もともとの画像データが文字である画素において誤判定により文字ではないと判定されてしまう可能性があるという問題点を補うべく、予めオブジェクト種類情報データに基づいて像域分離処理を施す範囲を決定してから像域分離を実行する技術が開示されている。
In
ところが、特許文献1および特許文献2に開示されている技術によれば、オブジェクト種類情報と像域分離結果に基づき中間調処理の切り替えを行い、文字領域/写真領域についてそれぞれ適した鮮鋭性重視/粒状性・階調性重視の処理を適用することが可能となるが、一方でこのような異なる性質の中間調処理の切り替えを行った場合に、境界部分で発生する画質劣化に対する対応は考慮されていない。より具体的には、例えば文字領域と判定された領域用には高線数のディザ処理、写真領域と判定された領域用には低線数のディザ処理を適用する場合には、両者の処理切替接点において、ドットピッチがいずれのディザより密となるか連結してしまう部分では、濃度が高く表現され縁取りのような画像として表れ、ドットピッチがいずれのディザより粗なる部分では、濃度が低く白抜けのような画像として現れてしまうという問題点がある。
However, according to the techniques disclosed in
そこで、この問題点を解決すべく、MFP(Multi Function Peripheral)機における文字及び写真が混在している入力画像に対し、文字領域では鮮鋭性に優れた処理結果、写真領域では粒状性・階調性に優れた処理結果が得られる中間調処理方式に関する技術が特許文献3に開示されている。より詳細には、入力画像のエッジ度合いの算出を行い、エッジ量算出結果に基づいて、エッジ量が大きい場合には固定閾値の誤差拡散処理、エッジ量が小さい場合にはディザ閾値誤差拡散処理を行うことで、中間調処理の切り替えを行うことなく、文字及び写真が混在する画像に対しても高画質な処理結果を得る事を可能としている。このような特許文献3の中間調処理方式によれば、領域毎の中間調処理切替を行なわずに閾値の切り替えだけで文字領域では鮮鋭性に優れた処理結果、写真領域では粒状性・階調性に優れた処理結果が得られるため、上記のような処理の切り替わり部における画質劣化なく文字及び写真が混在する画像に対しても高画質な画像を得る事が可能である。 Therefore, in order to solve this problem, processing results with excellent sharpness in the character area for the input image in which characters and photographs are mixed in an MFP (Multi Function Peripheral) machine. Patent Document 3 discloses a technique related to a halftone processing method capable of obtaining a processing result with excellent performance. More specifically, the edge degree of the input image is calculated, and based on the edge amount calculation result, error diffusion processing with a fixed threshold is performed when the edge amount is large, and dither threshold error diffusion processing is performed when the edge amount is small. By doing so, it is possible to obtain a high-quality processing result even for an image in which characters and photographs are mixed without switching halftone processing. According to the halftone processing method of Patent Document 3 described above, processing results that are excellent in sharpness in the character area only by switching the threshold value without switching the halftone process for each area, and the graininess and gradation in the photographic area. Therefore, it is possible to obtain a high-quality image even for an image in which characters and photographs are mixed without deterioration in image quality in the above-described process switching portion.
しかしながら、上述したような特許文献3の中間調処理方式では、入力画像に対してエッジ量の算出を行い、エッジ量算出結果に基づいて閾値の切り替えを行うために、エッジ量が算出されにくい小文字や低コントラスト文字等に対しては文字領域として検出できずに写真用の処理が行われるため、処理画像の品質の低下を招いてしまうという問題がある。また、エッジ量算出結果に基づいて閾値の切り替えを行うため、太文字に対して文字の縁のみが文字領域として検出され、文字内部が文字領域として検出されない場合もある。 However, in the halftone processing method of Patent Document 3 as described above, the edge amount is calculated for the input image, and the threshold value is switched based on the edge amount calculation result. For low-contrast characters and the like, since the processing for a photograph is performed without being detected as a character region, there is a problem that the quality of the processed image is deteriorated. In addition, since the threshold value is switched based on the edge amount calculation result, only the character edge may be detected as a character region for a thick character, and the inside of the character may not be detected as a character region.
本発明は、上記に鑑みてなされたものであって、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができ、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができる画像処理装置、プログラムおよび画像処理方法を実現することを目的とする。 The present invention has been made in view of the above, and can achieve a processing result suitable for each of an area in which sharpness is to be emphasized and an area in which granularity / gradation is to be emphasized. A processing result suitable for each of the character area and the photographic area can be obtained without deterioration in image quality, and processing with excellent sharpness for the character area even for lowercase letters, low-contrast characters, etc. An object is to realize an image processing apparatus, a program, and an image processing method capable of obtaining a result.
また、本発明は、オブジェクト種類情報がイメージオブジェクトであった場合のイメージ内に含まれる線や文字等のように鮮鋭性が良い方が好ましい領域についても、解像性(鮮鋭性)を重視した処理を行うことができる画像処理装置、プログラムおよび画像処理方法を実現することを目的とする。 In addition, the present invention places importance on resolution (sharpness) even for regions where sharpness is preferable, such as lines and characters included in an image when the object type information is an image object. An object is to realize an image processing apparatus, a program, and an image processing method capable of performing processing.
上述した課題を解決し、目的を達成するために、請求項1にかかる発明の画像処理装置は、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶手段と、描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶手段と、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理手段と、を備える。 In order to solve the above-described problems and achieve the object, an image processing apparatus according to a first aspect of the present invention develops an image expressed by a drawing command into two-dimensional bitmap data and stores it in a bitmap memory. Data storage means, and object type information storage means for storing the object type information of the image expressed by the rendering command in the object type information memory in association with each pixel of the image developed into the bitmap data, The quantization threshold is switched according to whether the object type information of the pixel of interest stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation, and Halftone processing for performing quantization processing on bitmap data stored in the bitmap memory in consideration of quantization error It includes a stage, a.
また、請求項2にかかる発明の画像処理装置は、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶手段と、描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶手段と、前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出手段と、この特徴量算出手段により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成手段と、この判定信号生成手段により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理手段と、を備える。 According to a second aspect of the present invention, there is provided an image processing apparatus comprising: data storage means for expanding an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory; Object type information storage means for storing object type information of an image stored in the object type information memory in association with each pixel of the image developed into the bitmap data, and bitmap data stored in the bitmap memory A feature amount calculation means for calculating the feature amount of the bitmap data, a feature amount of the bitmap data stored in the bitmap memory calculated by the feature amount calculation means, and a pixel of interest stored in the object type information memory. From the object type information, the pixel of interest emphasizes sharpness, or the pixel emphasizes graininess and gradation A determination signal generation unit that generates a threshold determination signal of some, and a quantization threshold is switched according to the threshold determination signal generated by the determination signal generation unit, the quantization error from the surrounding pixel of the pixel of interest Halftone processing means for performing quantization processing on the bitmap data stored in the bitmap memory.
また、請求項3にかかる発明は、請求項2記載の画像処理装置において、前記特徴量算出手段において算出されるビットマップデータの特徴量は、画素毎のエッジ度合いを示す値であるエッジ量である。 According to a third aspect of the present invention, in the image processing apparatus according to the second aspect, the feature amount of the bitmap data calculated by the feature amount calculating means is an edge amount that is a value indicating an edge degree for each pixel. is there.
また、請求項4にかかる発明は、請求項3記載の画像処理装置において、前記特徴量算出手段は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じてエッジ量算出方法を切り替える。 According to a fourth aspect of the present invention, in the image processing apparatus according to the third aspect, the feature quantity calculating means determines whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness. Alternatively, the edge amount calculation method is switched according to whether the graininess / gradation is important.
また、請求項5にかかる発明は、請求項1ないし4のいずれか一記載の画像処理装置において、前記中間調処理手段は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画素位置によらず一定の値を持つ閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。 According to a fifth aspect of the present invention, in the image processing device according to any one of the first to fourth aspects, the halftone processing means stores the object type information of the pixel of interest stored in the object type information memory. Switching between at least the first quantization threshold and the second quantization threshold depending on whether sharpness is important or granularity / gradation is important, the first quantization threshold is: The threshold value has a constant value regardless of the pixel position and corresponds to the object type information that emphasizes sharpness, and the second quantization threshold value is a threshold value that vibrates periodically in the image space, and has granularity and gradation. It corresponds to the object type information that emphasizes the nature.
また、請求項6にかかる発明は、請求項1ないし4のいずれか一記載の画像処理装置において、前記中間調処理手段は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は前記第1の閾値よりも画像空間上で大きな振幅幅で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。 According to a sixth aspect of the present invention, in the image processing apparatus according to any one of the first to fourth aspects, the halftone processing means stores the object type information of the target pixel stored in the object type information memory. Switching between at least the first quantization threshold and the second quantization threshold depending on whether sharpness is important or granularity / gradation is important, the first quantization threshold is: Corresponding to object type information that is a threshold that periodically vibrates on the image space and emphasizes sharpness, the second quantization threshold is periodically larger in amplitude width on the image space than the first threshold. It corresponds to object type information that is a threshold value for vibration and emphasizes granularity and gradation.
また、請求項7にかかる発明は、請求項1ないし4のいずれか一記載の画像処理装置において、前記中間調処理手段は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は前記第1の閾値よりも大きな画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。 According to a seventh aspect of the present invention, in the image processing apparatus according to any one of the first to fourth aspects, the halftone processing means stores the object type information of the pixel of interest stored in the object type information memory. Switching between at least the first quantization threshold and the second quantization threshold depending on whether sharpness is important or granularity / gradation is important, the first quantization threshold is: A threshold that periodically oscillates in the image space, corresponds to object type information that emphasizes sharpness, and the second quantization threshold is a threshold that oscillates periodically in the image space larger than the first threshold. It corresponds to object type information that places importance on graininess and gradation.
また、請求項8にかかる発明は、請求項1ないし7のいずれか一記載の画像処理装置において、前記中間調処理手段により量子化処理されたビットマップデータに基づく画像を記録媒体上に形成する画像形成手段を有する。 According to an eighth aspect of the present invention, in the image processing apparatus according to any one of the first to seventh aspects, an image based on the bitmap data quantized by the halftone processing unit is formed on a recording medium. Image forming means is included.
また、請求項9にかかる発明のプログラムは、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶機能と、描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶機能と、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理機能と、をコンピュータに実行させる。 According to a ninth aspect of the present invention, there is provided a data storage function for expanding an image expressed by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory, and an image expressed by a drawing command. Object type information storage function for storing the object type information in the object type information memory in association with each pixel of the image developed into the bitmap data, and the object of the target pixel stored in the object type information memory The quantization threshold is switched depending on whether the type information emphasizes sharpness or whether graininess / gradation is emphasized, and is stored in the bitmap memory in consideration of quantization errors from pixels around the pixel of interest. And a halftone processing function for performing a quantization process on the current bitmap data.
また、請求項10にかかる発明のプログラムは、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶機能と描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶機能と、前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出機能と、この特徴量算出機能により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成機能と、この判定信号生成機能により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理機能と、をコンピュータに実行させる。 According to a tenth aspect of the present invention, there is provided a data storage function for developing an image expressed by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory, and an image expressed by the drawing command. Object type information storage function for storing object type information in the object type information memory in association with each pixel of the image developed into the bitmap data, and feature quantity of the bitmap data stored in the bitmap memory The feature amount calculation function for calculating the feature amount, the feature amount of the bitmap data stored in the bitmap memory calculated by the feature amount calculation function, and the object type information of the target pixel stored in the object type information memory Therefore, the pixel of interest emphasizes sharpness or is a pixel that emphasizes graininess and gradation. A determination signal generation function for generating a threshold determination signal, and a quantization threshold is switched according to the threshold determination signal generated by the determination signal generation function, and the quantization error from the surrounding pixels of the target pixel is taken into account A computer is caused to execute a halftone processing function for performing quantization processing on bitmap data stored in the bitmap memory.
また、請求項11にかかる発明の画像処理方法は、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶工程と、描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶工程と、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理工程と、を含む。 An image processing method according to an eleventh aspect of the present invention is a data storage step of expanding an image expressed by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory, and the image processing method expressed by the drawing command. Object type information storage step for storing object type information of an image in the object type information memory in association with each pixel of the image developed into the bitmap data, and a target pixel stored in the object type information memory The quantization threshold is switched according to whether the object type information emphasizes sharpness, or emphasizes graininess / gradation, and the bitmap memory is added to the bitmap memory in consideration of the quantization error from the surrounding pixels of the target pixel. A halftone processing step of performing a quantization process on the stored bitmap data.
また、請求項12にかかる発明の画像処理方法は、描画命令で表現されている画像を2次元のビットマップデータに展開してビットマップメモリに記憶するデータ記憶工程と、描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶工程と、前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出工程と、この特徴量算出工程により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成工程と、この判定信号生成工程により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理工程と、を含む。 According to a twelfth aspect of the present invention, there is provided an image processing method comprising: a data storage step of developing an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory; Object type information storing step of storing object type information of an image stored in the object type information memory in association with each pixel of the image developed into the bitmap data, and bitmap data stored in the bitmap memory A feature amount calculation step of calculating the feature amount of the image, a feature amount of the bitmap data stored in the bitmap memory calculated by the feature amount calculation step, and a target pixel stored in the object type information memory Based on the object type information, whether the pixel of interest emphasizes sharpness or an image that emphasizes graininess and gradation A threshold value determination signal for generating a threshold value determination signal and a threshold value determination signal generated by the determination signal generation step, and a quantization threshold value is switched. A halftone processing step of performing a quantization process on the bitmap data stored in the bitmap memory.
また、請求項13にかかる発明は、請求項12記載の画像処理方法において、前記特徴量算出工程において算出されるビットマップデータの特徴量は、画素毎のエッジ度合いを示す値であるエッジ量である。 According to a thirteenth aspect of the present invention, in the image processing method according to the twelfth aspect, the feature amount of the bitmap data calculated in the feature amount calculation step is an edge amount that is a value indicating an edge degree for each pixel. is there.
また、請求項14にかかる発明は、請求項13記載の画像処理方法において、前記特徴量算出工程は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じてエッジ量算出方法を切り替える。
The invention according to claim 14 is the image processing method according to
また、請求項15にかかる発明は、請求項11ないし14のいずれか一記載の画像処理方法において、前記中間調処理工程は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画素位置によらず一定の値を持つ閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。
The invention according to
また、請求項16にかかる発明は、請求項11ないし14のいずれか一記載の画像処理方法において、前記中間調処理工程は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は前記第1の閾値よりも画像空間上で大きな振幅幅で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。 According to a sixteenth aspect of the present invention, in the image processing method according to any one of the eleventh to fourteenth aspects, in the halftone processing step, the object type information of the pixel of interest stored in the object type information memory is stored. Switching between at least the first quantization threshold and the second quantization threshold depending on whether sharpness is important or granularity / gradation is important, the first quantization threshold is: Corresponding to object type information that is a threshold that periodically vibrates on the image space and emphasizes sharpness, the second quantization threshold is periodically larger in amplitude width on the image space than the first threshold. It corresponds to object type information that is a threshold value for vibration and emphasizes granularity and gradation.
また、請求項17にかかる発明は、請求項11ないし14のいずれか一記載の画像処理方法において、前記中間調処理工程は、前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値と第2の量子化閾値とを切り替えて適用し、前記第1の量子化閾値は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、前記第2の量子化閾値は前記第1の閾値よりも大きな画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。 According to a seventeenth aspect of the present invention, in the image processing method according to any one of the eleventh to fourteenth aspects, in the halftone processing step, the object type information of the pixel of interest stored in the object type information memory is stored. Switching between at least the first quantization threshold and the second quantization threshold depending on whether sharpness is important or granularity / gradation is important, the first quantization threshold is: A threshold that periodically oscillates in the image space, corresponds to object type information that emphasizes sharpness, and the second quantization threshold is a threshold that oscillates periodically in the image space larger than the first threshold. It corresponds to object type information that places importance on graininess and gradation.
請求項1にかかる発明によれば、中間調処理手段における中間調処理では、オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。 According to the first aspect of the invention, in the halftone processing in the halftone processing means, the object type information of the pixel of interest stored in the object type information memory places importance on sharpness, or graininess / gradation The quantization threshold is switched according to whether or not importance is placed on the image, and quantization processing is performed in consideration of the quantization error from the surrounding pixels of the target pixel. As a result, even when the quantization threshold is switched based on the object type information, image quality deterioration does not occur at the switching portion between the area where the sharpness is to be emphasized and the area where the granularity / gradation is emphasized, and the sharpness is improved. Since it is possible to achieve both processing results suitable for the area that you want to emphasize and the area that you want to emphasize graininess and gradation, the character area, without image quality degradation, for input images that contain both characters and photos A processing result suitable for each photographic area can be obtained, and a processing result excellent in sharpness for a character area can be obtained even for small letters and low contrast characters.
また、請求項2にかかる発明によれば、中間調処理手段における中間調処理では、ビットマップメモリに記憶されているビットマップデータの特徴量とオブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号が生成され、生成された閾値判定信号に応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報及び特徴量に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。
According to the invention of
また、請求項3にかかる発明によれば、特徴量算出手段において算出されるビットマップデータの特徴量は、画素毎のエッジ度合いを示す値であるエッジ量であることにより、オブジェクト種類情報がイメージオブジェクトであった場合のイメージ内に含まれる線や文字等のように鮮鋭性が良い方が好ましい領域についても、鮮鋭性を重視した処理を行うことができるという効果を奏する。 According to the invention of claim 3, the feature amount of the bitmap data calculated by the feature amount calculating means is an edge amount that is a value indicating the edge degree for each pixel, so that the object type information is imaged. Even in a region where it is preferable that the sharpness is preferable, such as a line or a character included in an image in the case of an object, there is an effect that processing that emphasizes sharpness can be performed.
また、請求項4にかかる発明によれば、特徴量算出手段は、オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じてエッジ量算出方法を切り替えることにより、複数色の版から構成される線、グラフ等のエッジ部において、版によって太さが異なったり、色が異なる問題を解決することができるという効果を奏する。
According to the invention of
また、請求項5にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 Further, according to the invention according to claim 5, there is an effect that it is possible to surely achieve both the processing results suitable for the area where the sharpness is important and the area where the graininess / gradation is important.
また、請求項6にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 Further, according to the invention of claim 6, there is an effect that it is possible to surely achieve both the processing results suitable for the area where the sharpness is important and the area where the graininess and gradation are important.
また、請求項7にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 Further, according to the invention of claim 7, there is an effect that it is possible to surely achieve both processing results suitable for the region where sharpness is important and the region where granularity / gradation is important.
また、請求項8にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化を生じずに、記録媒体上に画像を形成することができるという効果を奏する。 According to the eighth aspect of the present invention, an image is formed on a recording medium without causing image quality deterioration at a switching portion between a region where sharpness is important and a region where granularity / gradation is important. There is an effect that can be.
また、請求項9にかかる発明によれば、中間調処理機能における中間調処理では、オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。 According to the ninth aspect of the present invention, in the halftone processing in the halftone processing function, the object type information of the target pixel stored in the object type information memory places importance on sharpness, or the graininess / gradation level. The quantization threshold is switched according to whether tonality is important, and a quantization process is performed in consideration of quantization errors from pixels around the target pixel. As a result, even when the quantization threshold is switched based on the object type information, image quality deterioration does not occur at the switching portion between the area where the sharpness is to be emphasized and the area where the granularity / gradation is emphasized, and the sharpness is improved. Since it is possible to achieve both processing results suitable for the area that you want to emphasize and the area that you want to emphasize graininess and gradation, the character area, without image quality degradation, for input images that contain both characters and photos A processing result suitable for each photographic area can be obtained, and a processing result excellent in sharpness for a character area can be obtained even for small letters and low contrast characters.
また、請求項10にかかる発明によれば、中間調処理機能における中間調処理では、ビットマップメモリに記憶されているビットマップデータの特徴量とオブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号が生成され、生成された閾値判定信号に応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報及び特徴量に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。 According to the invention of claim 10, in the halftone processing in the halftone processing function, the feature value of the bitmap data stored in the bitmap memory and the object of the pixel of interest stored in the object type information memory From the type information, a threshold determination signal is generated as to whether the pixel of interest is a pixel that emphasizes sharpness or a pixel that emphasizes graininess / gradation, and the quantization threshold is switched according to the generated threshold determination signal. At the same time, a quantization process is performed in consideration of quantization errors from pixels around the target pixel. Thereby, even when the quantization threshold is switched based on the object type information and the feature amount, image quality deterioration does not occur in a switching portion between an area where sharpness is important and an area where granularity / gradation is important, Since it is possible to achieve both processing results suitable for areas that want to emphasize sharpness and areas that want to emphasize graininess and gradation, there is no deterioration in image quality for input images that contain both text and photos. The processing result suitable for each of the character region and the photographic region can be obtained, and the processing result excellent in sharpness for the character region can be obtained even for small letters and low contrast characters.
また、請求項11にかかる発明によれば、中間調処理工程における中間調処理では、オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。
According to the invention of
また、請求項12にかかる発明によれば、中間調処理工程における中間調処理では、ビットマップメモリに記憶されているビットマップデータの特徴量とオブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号が生成され、生成された閾値判定信号に応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報及び特徴量に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができるという効果を奏する。
According to the invention of
また、請求項13にかかる発明によれば、特徴量算出工程において算出されるビットマップデータの特徴量は、画素毎のエッジ度合いを示す値であるエッジ量であることにより、オブジェクト種類情報がイメージオブジェクトであった場合のイメージ内に含まれる線や文字等のように鮮鋭性が良い方が好ましい領域についても、鮮鋭性を重視した処理を行うことができるという効果を奏する。 According to the thirteenth aspect of the present invention, the feature amount of the bitmap data calculated in the feature amount calculation step is an edge amount that is a value indicating the edge degree for each pixel, so that the object type information is an image. Even in a region where it is preferable that the sharpness is preferable, such as a line or a character included in an image in the case of an object, there is an effect that processing that emphasizes sharpness can be performed.
また、請求項14にかかる発明によれば、特徴量算出工程は、オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じてエッジ量算出方法を切り替えることにより、複数色の版から構成される線、グラフ等のエッジ部において、版によって太さが異なったり、色が異なる問題を解決することができるという効果を奏する。 According to the fourteenth aspect of the present invention, in the feature amount calculation step, the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. By switching the edge amount calculation method according to whether or not the edge portion of a line, graph, or the like composed of a plurality of color plates can solve the problem of different thicknesses or colors depending on the plates. There is an effect.
また、請求項15にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 Further, according to the fifteenth aspect of the present invention, there is an effect that it is possible to surely achieve both the processing results suitable for the region where sharpness is important and the region where granularity / gradation is important.
また、請求項16にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 Further, according to the sixteenth aspect of the present invention, there is an effect that it is possible to surely achieve both processing results suitable for the region where sharpness is important and the region where granularity / gradation is important.
また、請求項17にかかる発明によれば、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を確実に両立することができるという効果を奏する。 According to the seventeenth aspect of the invention, there is an effect that it is possible to surely achieve both the processing results suitable for the region where sharpness is important and the region where granularity / gradation is important.
以下に添付図面を参照して、この発明にかかる画像処理装置の最良な実施の形態を詳細に説明する。 Exemplary embodiments of an image processing apparatus according to the present invention will be explained below in detail with reference to the accompanying drawings.
(第1の実施の形態)
本発明の第1の実施の形態を図1ないし図7に基づいて説明する。本実施の形態は、画像処理装置として、モノクロレーザプリンタに適用した例を示す。
(First embodiment)
A first embodiment of the present invention will be described with reference to FIGS. This embodiment shows an example in which the present invention is applied to a monochrome laser printer as an image processing apparatus.
図1は、本発明の第1の実施の形態にかかるプリンティングシステムの構築例を示す模式図である。本実施の形態のプリンティングシステムでは、画像処理装置であるモノクロレーザプリンタP1にLAN(Local Area Network)等のネットワークNを介してコンピュータ1が複数台接続されたシステムを想定しており、コンピュータ1上で作成されたデジタル文書データがネットワークNを介してモノクロレーザプリンタP1に送信され、送信されたデジタル文書データがモノクロレーザプリンタP1よりハードコピー出力されるものである。
FIG. 1 is a schematic diagram showing a construction example of a printing system according to the first embodiment of the present invention. The printing system according to the present embodiment assumes a system in which a plurality of
まず、コンピュータ1について簡単に説明する。コンピュータ1は、一般的又は標準的なパーソナルコンピュータであり、オペレーティングシステム(OS)上で動作するアプリケーションプログラムとして、マイクロソフト社のワード(登録商標)のようなワードプロセッサソフトやアドビ社のページメーカ(登録商標)のようなページレイアウトソフト、ワードプロセッサソフトやページレイアウトソフトの印刷指示に合わせて印字を行うためにモノクロレーザプリンタP1を制御するプリンタドライバなどをHDD(図示せず)に記憶している。
First, the
ワードプロセッサソフトやページレイアウトソフトで作成されたデジタル文書データは、オペレーティングシステム(OS)を介してプリンタドライバに受け渡される。プリンタドライバに受け渡されるデジタル文書データは、一般にページ記述言語(PDL:Page-Description Language)で記述された文書内容に対応したPDLコマンド(描画命令)である。このPDLコマンドは、通常次の3種類のオブジェクト種類から構成される。文字を示す文字オブジェクト、線、グラフ、図形、グラデーション等ベクトル情報で記述が可能な電子的画像を示すグラフィックオブジェクト、そしてスキャナ等で読み込まれる写真等の自然画像を示すイメージオブジェクトの3種類である。ページ記述言語(PDL)は、特定のプリンタのみに依存しない形式でプリンタ出力用のデータを記述することを目的として設計された言語処理系、またはプリンタ制御コードである。代表的なページ記述言語(PDL)としては、GDI(登録商標)やポストスクリプト(登録商標)などが挙げられる。 Digital document data created by word processor software or page layout software is transferred to a printer driver via an operating system (OS). Digital document data delivered to the printer driver is generally a PDL command (rendering command) corresponding to document contents described in a page description language (PDL). This PDL command is usually composed of the following three types of objects. There are three types: a character object indicating a character, a graphic object indicating an electronic image that can be described by vector information such as a line, a graph, a figure, and a gradation, and an image object indicating a natural image such as a photograph read by a scanner or the like. The page description language (PDL) is a language processing system or printer control code designed for the purpose of describing data for printer output in a format independent of only a specific printer. Typical page description languages (PDL) include GDI (registered trademark) and Postscript (registered trademark).
PDLコマンドを受け渡されたプリンタドライバは、当該PDLコマンドをネットワークNを介してモノクロレーザプリンタP1に送信する。 The printer driver that has received the PDL command transmits the PDL command to the monochrome laser printer P1 via the network N.
次に、モノクロレーザプリンタP1の制御系の概略構成例を図2に示すブロック図を参照して説明する。この制御系としては、ROM(Read Only Memory)11及びRAM(Random Access Memory)12とともにマイクロコンピュータを構成するCPU(Central Processing Unit)13が設けられている。このCPU13はROM11内に格納された制御プログラムに従い、用紙搬送用のモータ14や、周知の電子写真方式により画像を記録媒体上に形成する画像形成手段であるプリンタエンジン15の駆動制御を始めとして、当該モノクロレーザプリンタP1全体の制御を受け持つ。RAM12には各種処理を行う上で必要なデータ等を一時格納するための等の作業領域(例えば、ビットマップメモリ22やオブジェクト種類情報メモリ23(図3参照))として使われる。また、ROM11内には、画像処理プログラムを始め、その他の各種プログラムが格納されている。また、I/Oインターフェース16を介し、モータ14やプリンタエンジン15を始めとし、当該モノクロレーザプリンタP1を制御する上で必要なその他の入出力装置が接続されている。CPU13、ROM11、RAM12、I/Oインターフェース16は、アドレスバス17及びデータバス18にて接続されており、アドレスの指定及びデータの入出力を行っている。
Next, a schematic configuration example of the control system of the monochrome laser printer P1 will be described with reference to the block diagram shown in FIG. As this control system, a CPU (Central Processing Unit) 13 constituting a microcomputer is provided together with a ROM (Read Only Memory) 11 and a RAM (Random Access Memory) 12. In accordance with a control program stored in the
図3は、モノクロレーザプリンタP1の機能構成を示すブロック図である。図3に示すように、モノクロレーザプリンタP1は、CPU13がROM11内に格納された画像処理プログラムに従うことにより、PDL解釈手段21と、ビットマップメモリ22と、オブジェクト種類情報メモリ23と、中間調処理手段24とを実現する。
FIG. 3 is a block diagram showing a functional configuration of the monochrome laser printer P1. As shown in FIG. 3, in the monochrome laser printer P1, the
PDL解釈手段21は、コンピュータ1のプリンタドライバから送信されたPDLコマンドで表現されている文字、線、図形、写真等の内容を解釈し、2次元のビットマップデータにして、文字や図形などのページの構成要素の各モジュールをページ単位の出力サイズに合わせてラスタ化して、ビットマップメモリ22に一時的に記憶する(データ記憶手段)。同時に、PDL解釈手段21は、PDLコマンドで表現されている画像が、文字オブジェクトであったか、グラフィックオブジェクトであったか、イメージオブジェクトであったかのオブジェクト種類情報を、ビットマップデータに展開された画像の各画素毎に対応付けて生成して、オブジェクト種類情報メモリ23に一時的に記憶する(オブジェクト種類情報記憶手段)。なお、PDLコマンドで表現されている画像では、文字オブジェクトであるか、グラフィックオブジェクトであるか、イメージオブジェクトであるかを、コマンドによって容易に区別できる。
The PDL interpretation means 21 interprets the contents of characters, lines, figures, photographs, etc. expressed by the PDL commands transmitted from the printer driver of the
中間調処理手段24は、ビットマップメモリ22に記憶されていたビットマップデータを入力画像データとして受け、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報に基づいて量子化閾値の選択を行い、少値化処理を行う。
The halftone processing means 24 receives the bitmap data stored in the
ここで、中間調処理手段24の構成・動作について図4を参照しつつ詳述する。図4に示すように、中間調処理手段24は、閾値選択部31と、修正入力値算出部32と、出力階調値決定部33と、誤差算出部34と、誤差バッファ35と、誤差和算出部36とで構成されている。
Here, the configuration and operation of the halftone processing means 24 will be described in detail with reference to FIG. As shown in FIG. 4, the
閾値選択部31では、オブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、注目画素が文字オブジェクトである場合、すなわち解像性(鮮鋭性)を重視した処理を行うことが望ましい場合は、注目画素の画素位置によって閾値を変化させない固定閾値を用い、注目画素がグラフィックオブジェクトもしくはイメージオブジェクトである場合、すなわち粒状性・階調性を重視した処理を行うことが望ましい場合は、図5に示すような閾値マトリクスM1を用いて量子化を行うことを決定して、決定した閾値情報を出力階調値決定部33へ送る。
In the
修正入力値算出部32では、ビットマップメモリ22から受けた入力画像データ中の注目画素における画素データと、後述する誤差和算出部36から得られた周辺画素における誤差和との和である修正入力値を算出して後段の出力階調値決定部33に送る。
In the corrected input
出力階調値決定部33では、閾値選択部31から受けた閾値情報(固定閾値または閾値マトリクスM1)から注目画素に対応する閾値と修正入力値算出部32から受けた修正入力値との大小関係を比較して、出力階調値を決定する。
In the output tone
ここで、閾値選択部31が固定閾値を用いることを決定した場合についての処理例について説明する。なお、本実施の形態では、入力階調値、出力階調値とも“0”以上“255”以下の整数値を取り、“0”は最も濃度が低く、“255”は最も濃度が高いとする。閾値選択部31が固定閾値を用いることを決定した場合、例えば出力階調値“255”に相当するドットを出すか否かを決定するための閾値を“128”としておき、注目画素の修正入力値が“128”以下であれば出力階調値は“0”、注目画素の修正入力値が“128”より大きければ出力階調値は“255”とする。
Here, a processing example when the
次に、閾値選択部31が図5に示す閾値マトリクスM1を用いることを決定した場合についての処理例について説明する。図5に示す閾値マトリクスM1は、出力階調値“255”に相当するドットを出すか否かを決定する閾値であり、600dpiの出力解像度において約212線、45度の網点スクリーンを表現する2値出力用の閾値マトリクスである。閾値マトリクス上で注目画素に対応する位置は、出力画像のサイズにタイル状に繰り返し敷き詰めたとき、注目画素が閾値マトリクス中のどの位置に相当するかにより決定する。すなわち、閾値マトリクスのサイズが横w画素、縦h画素である場合、出力画像座標で横X、縦Yの位置の注目画素に対しては、閾値マトリクス座標で横(X−mw)、縦(Y−nh)の位置の閾値を用いる。ここで、n及びmは座標が最も小さくなる数である。図5に示す閾値マトリクスM1においては、w=h=4であり、例えば出力画像座標で(X,Y)=(9,6)である注目画素に対しては、閾値マトリクス座標で(x,y)=(1,2)の位置の閾値を用いて出力画素値を求める。すなわち、注目画素の修正入力値が出力階調値“255”に相当するドットを出すか否かを決定するための閾値“176”以下であれば出力階調値は“0”、“176”より大きければ出力階調値は“255”となる。
Next, a processing example when the
誤差算出部34では、修正入力値算出部32で算出された修正入力値から出力階調値決定部33で決定した出力階調値を減じた値を量子化誤差値として算出し、算出した量子化誤差値を誤差バッファ35に格納する。
The
一方、誤差和算出部36は、図6に示すような誤差マトリクスM2を用いて注目画素に関与する誤差の和を算出する。図6において、×印で示した位置が注目画素を意味する。例えば、注目画素の1ライン真上の画素の量子化誤差値が“32”であった場合、図6に示す誤差マトリクスM2中のその画素に対応する値は“4/32”であるから、その画素から注目画素に関与する誤差値は両者の積である4となる。このようにして、1つの注目画素に対して2ライン上の7画素、1ライン上の7画素、同一ラインの3画素の計17画素における量子化誤差値を誤差バッファ35から読み出し、図6に示す誤差マトリクスM2と積和演算を行うことで注目画素に関与する誤差和を算出して、その誤差和を修正入力値算出部32へ送る。なお、図6に示す誤差マトリクスM2は全ての要素を加算したとき“1”となるように設計している。これは、発生した誤差値を過不足なく周囲の画素で用いるためである。
On the other hand, the error
なお、誤差値を算出するために、図7に示すような誤差マトリクスM3を利用しても良い。図7に示す誤差マトリクスM3は、図6に示す誤差マトリクスM2中の各値を32倍したものである。例えば、注目画素の1ライン真上の画素の量子化誤差値が“32”であった場合、図7に示す誤差マトリクスM3中のその画素に対応する値は“4”であるから、その画素から注目画素に関与する誤差値はひとまず両者の積である“128”とする。このようにして、1つの注目画素に対して2ライン上の7画素、1ライン上の7画素、同一ラインの3画素の計17画素における量子化誤差値を誤差バッファ35から読み出し、図7に示す誤差マトリクスM3と演算を行うことで注目画素に関与する誤差和を算出する。このような方法をとることにより、高速なシフト演算や整数演算で注目画素に関与する誤差和を算出することができる。その後、誤差マトリクス中の各値は32倍にしているため、前記誤差和を32で除算する。
In order to calculate the error value, an error matrix M3 as shown in FIG. 7 may be used. The error matrix M3 shown in FIG. 7 is obtained by multiplying each value in the error matrix M2 shown in FIG. 6 by 32 times. For example, when the quantization error value of a pixel immediately above the target pixel is “32”, the value corresponding to that pixel in the error matrix M3 shown in FIG. 7 is “4”. Therefore, the error value related to the pixel of interest is “128” which is the product of both. In this manner, the quantization error values of a total of 17 pixels, that is, 7 pixels on 2 lines, 7 pixels on 1 line, and 3 pixels on the same line, are read from the
以上が中間調処理手段24の構成・動作についての説明である。上記のような中間調処理手段24における中間調処理では、注目画素周辺画素からの量子化誤差を加味した量子化処理を行うため、オブジェクト種類情報に基づき閾値を切り替えた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じない。 The above is the description of the configuration and operation of the halftone processing means 24. In the halftone processing in the halftone processing means 24 as described above, the quantization processing is performed in consideration of the quantization error from the surrounding pixel of the target pixel. Therefore, even when the threshold value is switched based on the object type information, the sharpness is emphasized. The image quality deterioration does not occur at the switching portion between the desired area and the area where the graininess and gradation are important.
このようにして中間調処理手段24で少値化されたデータは、その後プリンタエンジン15へと送られ、プリンタエンジン15における記憶媒体に対する画像形成が実行される。
The data that has been reduced in value by the
このように本実施の形態によれば、中間調処理手段24における中間調処理では、オブジェクト種類情報メモリ23に記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができる。
As described above, according to the present embodiment, in the halftone processing in the halftone processing means 24, the object type information of the target pixel stored in the object
ここでは、中間調処理手段24は、オブジェクト種類情報メモリ23に記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値(固定閾値)と第2の量子化閾値(閾値マトリクスM1)とを切り替えて適用し、第1の量子化閾値(固定閾値)は画素位置によらず一定の値を持つ閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、第2の量子化閾値(閾値マトリクスM1)は画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。
In this case, the halftone processing means 24 at least in accordance with whether the object type information of the target pixel stored in the object
なお、本実施の形態では、中間調処理手段24の出力階調値決定部33における固定閾値の出力階調値が“0”、“255”の2値のいずれかを取る例を示したが、本発明に基づく構成としてはこれに限るものではなく、例えば、3値、4値、8値や16値などの多値の出力階調値を持つ構成であっても良く、また、出力階調値も例えば4値出力では“0”、“128”、“192”、“255”のように不均等な値のいずれかを取る構成であっても良い。さらに、閾値マトリクスを用いた量子化を行う場合についても同様に、本実施の形態では出力階調値が“0”、“255”の2値のいずれかを取る例を示したが、多値の出力階調値を持つ構成であっても良く、例えば4値出力で出力階調値“85”,“170”,“255”に相当するドットを出すか否かを決定するための閾値マトリクスを、
(1)出力階調値“255”用
(2)出力階調値“170”用
(3)出力階調値“85”用
の計3枚をそれぞれ用意しておき、(1)→(2)→(3)の順に大きな出力階調値に対応する閾値マトリクスの方から順次比較していき、注目画素の修正入力値が閾値以上の場合に該当する出力階調値を出力すればよい。
In the present embodiment, the output gradation value of the fixed threshold value in the output gradation
(1) For output gradation value “255” (2) For output gradation value “170” (3) Prepare a total of three sheets for output gradation value “85”, respectively (1) → (2 ) → (3) in order from the threshold matrix corresponding to the larger output gradation value, the corresponding output gradation value may be output when the corrected input value of the pixel of interest is greater than or equal to the threshold value.
また、本実施の形態では、中間調処理手段24の閾値選択部31において、オブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、注目画素が文字オブジェクトである場合に鮮鋭性を重視する、画素位置によって閾値を変化させない固定閾値を用い、注目画素がグラフィックオブジェクトもしくはイメージオブジェクトである場合に階調性を重視する閾値マトリクスを用いて量子化を行う例を示しているが、必ずしもこの組合せである必要はない。例えば、線やグラフのようなグラフィックオブジェクトの場合には鮮鋭性を重視した方が好ましい場合もあるため、文字オブジェクトとグラフィックオブジェクトに対して固定閾値を用い、イメージオブジェクトについてだけ閾値マトリクスを用いるような組合せとしても良い。どちらの組合せを採用するかについて、コンピュータ1のプリンタドライバ上、もしくはモノクロレーザプリンタP1に設けられるパネル(図示せず)等でユーザに選択の場を提供することにより、ユーザにとって望ましい画像出力が可能となる。
In the present embodiment, the threshold
(第2の実施の形態)
本発明の第2の実施の形態を図8および図9に基づいて説明する。なお、前述した第1の実施の形態と同一部分は同一符号で示し説明も省略する。
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIGS. The same parts as those in the first embodiment described above are denoted by the same reference numerals, and the description thereof is also omitted.
第1の実施の形態における中間調処理手段24の閾値選択部31では、オブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、注目画素が解像性(鮮鋭性)を重視した処理を行うことが望ましい場合は、注目画素の画素位置によって閾値を変化させない固定閾値を用いるようにした。これに対し、本実施の形態においては、オブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、注目画素が解像性(鮮鋭性)を重視した処理を行うことが望ましい場合には、図8に示すような閾値マトリクスM4を用いる点が、前述した第1の実施の形態とは異なるものである。
In the
図8に示す閾値マトリクスM4は、図5に示した閾値マトリクスM1と比較してディザ振幅幅の小さい閾値マトリクスとなっている。このようにディザ振幅幅を小さくすることにより、量子化を行った場合に、閾値マトリクスM4は閾値マトリクスM1と比較して解像性(鮮鋭性)を向上させることができる。 The threshold value matrix M4 shown in FIG. 8 is a threshold value matrix having a smaller dither amplitude width than the threshold value matrix M1 shown in FIG. By reducing the dither amplitude width in this way, when quantization is performed, the threshold matrix M4 can improve resolution (sharpness) compared to the threshold matrix M1.
すなわち、閾値選択部31では、オブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、注目画素が文字オブジェクトである場合、すなわち解像性(鮮鋭性)を重視した処理を行うことが望ましい場合は、図8に示すような閾値マトリクスM4を用いて量子化を行うことを決定し、注目画素がグラフィックオブジェクトもしくはイメージオブジェクトである場合、すなわち粒状性・階調性を重視した処理を行うことが望ましい場合は、図5に示すような閾値マトリクスM1を用いて量子化を行うことを決定して、決定した閾値情報(閾値マトリクスM4または閾値マトリクスM1)を出力階調値決定部33へ送る。
That is, in the
このようにオブジェクト種類情報メモリ23から受けたオブジェクト種類情報に基づき、異なるディザ振幅を持つ閾値マトリクスM4、M1の切り替えを実施する場合においても、第1の実施の形態の場合と同様に、注目画素周辺画素からの量子化誤差を加味した量子化処理を行うため、解像性(鮮鋭性)を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じない。
As described above, in the case of switching between the threshold matrixes M4 and M1 having different dither amplitudes based on the object type information received from the object
このように本実施の形態によれば、中間調処理手段24における中間調処理では、オブジェクト種類情報メモリ23に記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値が切り替えられるとともに、注目画素周辺画素からの量子化誤差を加味した量子化処理が行われる。これにより、オブジェクト種類情報に基づき量子化閾値が切り替えられた場合でも、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域との切り替わり部での画質劣化は生じず、鮮鋭性を重視したい領域と粒状性・階調性を重視したい領域とのそれぞれに適した処理結果を両立することができるので、文字及び写真が混在している入力画像に対し、画質劣化なしに文字領域、写真領域それぞれに適した処理結果が得られ、かつ小文字や低コントラスト文字等に対しても文字領域用の鮮鋭性に優れた処理結果を得ることができる。
As described above, according to the present embodiment, in the halftone processing in the halftone processing means 24, the object type information of the target pixel stored in the object
ここで、中間調処理手段24は、オブジェクト種類情報メモリ23に記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値(閾値マトリクスM4)と第2の量子化閾値(閾値マトリクスM1)とを切り替えて適用し、第1の量子化閾値(閾値マトリクスM4)は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、第2の量子化閾値(閾値マトリクスM1)は第1の閾値よりも画像空間上で大きな振幅幅で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。
Here, the halftone processing means 24 at least in accordance with whether the object type information of the target pixel stored in the object
また、本実施の形態においては、ディザ振幅幅の異なる閾値マトリクスM4、M1を切り替えて用いることで、解像性(鮮鋭性)を重視した処理と粒状性・階調性を重視した処理の両立を実現しているが、特にディザ振幅の強弱による切り替わりだけに限定する必要はない。例えば、図8に示すような閾値マトリクスM4に代えて図9に示すような閾値マトリクスM5を用いるようにしても良い。図9に示す閾値マトリクスM5は、図5に示した閾値マトリクスM1のディザの振幅が同じであるが、マトリクスサイズを小さくしたものである。このようにマトリクスサイズを小さくすることにより、量子化を行った場合に、閾値マトリクスM5は閾値マトリクスM1と比較して解像性(鮮鋭性)を向上させることができるので、マトリクスサイズの異なる閾値マトリクスM5、M1を切り替えて用いることで、同様の目的を達成することができる。 In the present embodiment, the threshold matrixes M4 and M1 having different dither amplitude widths are switched and used so that processing that emphasizes resolution (sharpness) and processing that emphasizes graininess and gradation are compatible. However, it is not necessary to limit the switching to the dither amplitude. For example, a threshold value matrix M5 as shown in FIG. 9 may be used instead of the threshold value matrix M4 as shown in FIG. The threshold value matrix M5 shown in FIG. 9 has the same dither amplitude as the threshold value matrix M1 shown in FIG. 5, but has a smaller matrix size. By reducing the matrix size in this way, when quantization is performed, the threshold value matrix M5 can improve resolution (sharpness) as compared with the threshold value matrix M1, so that threshold values having different matrix sizes can be obtained. The same purpose can be achieved by switching between the matrices M5 and M1.
ここで、中間調処理手段24は、オブジェクト種類情報メモリ23に記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて少なくとも第1の量子化閾値(閾値マトリクスM5)と第2の量子化閾値(閾値マトリクスM1)とを切り替えて適用し、第1の量子化閾値(閾値マトリクスM5)は画像空間上で周期的に振動する閾値であり鮮鋭性を重視するオブジェクト種類情報に対応し、第2の量子化閾値(閾値マトリクスM1)は第1の閾値よりも大きな画像空間上で周期的に振動する閾値であり粒状性・階調性を重視するオブジェクト種類情報に対応する。
Here, the halftone processing means 24 at least in accordance with whether the object type information of the target pixel stored in the object
(第3の実施の形態)
本発明の第3の実施の形態を図10ないし図13に基づいて説明する。なお、前述した第1の実施の形態と同一部分は同一符号で示し説明も省略する。
(Third embodiment)
A third embodiment of the present invention will be described with reference to FIGS. The same parts as those in the first embodiment described above are denoted by the same reference numerals, and the description thereof is also omitted.
第1の実施の形態の中間調処理手段24においては、ビットマップメモリ22に記憶されていたビットマップデータを入力画像データとして受け、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報に基づいて閾値の選択を行い、少値化処理を行うようにしていた。これに対し、本実施の形態においては、ビットマップメモリ22から受けた入力画像データから算出されるエッジ量を加味して閾値の選択を行う点が、前述した第1の実施の形態とは異なるものである。
In the
図10は、第3の実施の形態にかかるモノクロレーザプリンタP1の機能構成を示すブロック図である。図10に示すように、モノクロレーザプリンタP1は、CPU13がROM11内に格納された画像処理プログラムに従うことにより、PDL解釈手段21と、ビットマップメモリ22と、オブジェクト種類情報メモリ23と、中間調処理手段24と、エッジ量算出手段25と、判定信号生成手段26とを実現する。
FIG. 10 is a block diagram illustrating a functional configuration of a monochrome laser printer P1 according to the third embodiment. As shown in FIG. 10, in the monochrome laser printer P1, the
まず、エッジ量算出手段25について説明する。エッジ量算出手段25は、特徴量算出手段として機能するものであって、概略的には、ビットマップメモリ22に記憶されていたビットマップデータを入力画像データとして受け、受けた入力画像データからエッジ量を算出する。
First, the edge amount calculation means 25 will be described. The edge
ここで、エッジ量算出手段25の構成・動作について図11を参照しつつ詳述する。図11に示すように、エッジ量算出手段25は、1次微分フィルタ部41と、絶対値算出部42と、最大値選択部43とで構成されている。
Here, the configuration and operation of the edge amount calculation means 25 will be described in detail with reference to FIG. As shown in FIG. 11, the edge amount calculation means 25 includes a primary
1次微分フィルタ部41は、ビットマップメモリ22から受けた入力画像データに対して、1次微分フィルタ演算を行う。より具体的には、1次微分フィルタ部41は、縦横斜めの4方向の傾斜を検出するために図12に示す1001から1004の1次微分フィルタを用いてそれぞれ入力階調値と積和演算を行い、4種類の1次微分値を得て、絶対値算出部42へ送る。
The primary
絶対値算出部42は、1次微分フィルタ部41から受けた1次微分値の絶対値をそれぞれ求め、最大値選択部43へ送る。
The
最大値選択部43は、絶対値算出部42から受けた4種類の1次微分値の絶対値のうち最大の値を注目画素のエッジ量として次の判定信号生成手段26へ送る。
The maximum
次に、判定信号生成手段26について説明する。判定信号生成手段26では、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報と、ビットマップメモリ22から受けた入力画像データからエッジ量算出手段25で算出されるエッジ量とを入力し、注目画素が解像性(鮮鋭性)重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成し、生成した閾値判定信号を中間調処理手段24に送る。図13は、閾値判定信号の生成方法の一例を示す説明図である。図13に示すように、エッジ量が予め定めた一定値(th1)以上もしくはオブジェクト種類情報が文字オブジェクトである場合には解像性(鮮鋭性)重視、いずれにも該当しない場合には粒状性・階調性重視との閾値判定信号を生成する。
Next, the determination
そして、中間調処理手段24の閾値選択部31においては、判定信号生成手段26から受けた閾値判定信号に基づいて、量子化に用いる閾値を決定する。例えば、解像性(鮮鋭性)重視の閾値判定信号を受けた場合には、固定閾値等の解像性(鮮鋭性)を重視する閾値を用い、粒状性・階調性重視の信号を受けた場合には、閾値マトリクス等の粒状性・階調性を重視する閾値を用いるよう決定する。以降の処理は、第1の実施の形態と同様である。
Then, the
このように本実施の形態によれば、オブジェクト種類情報だけでなく、入力画像データから算出したエッジ量にも基づいて閾値の切り替えを行うことにより、オブジェクト種類の情報に基づいた時の解像性(鮮鋭性)を重視した処理と粒状性・階調性を重視した処理の両立を実現しつつ、両者の切り替わり部での画質劣化は生じないと同時に、例えばオブジェクト種類情報がイメージオブジェクトであった場合のイメージ内に含まれる線や文字等のように鮮鋭性が良い方が好ましい領域についても、解像性(鮮鋭性)を重視した処理を行うことができる。 As described above, according to the present embodiment, the threshold value is switched based not only on the object type information but also on the edge amount calculated from the input image data, so that the resolution based on the object type information is achieved. While realizing both processing that emphasizes (sharpness) and processing that emphasizes graininess and gradation, image quality deterioration does not occur at the switching part between them, and at the same time, for example, the object type information is an image object Even in a region where better sharpness is preferable, such as a line or a character included in an image in the case, processing that emphasizes resolution (sharpness) can be performed.
なお、本実施の形態では、エッジ量算出手段25から送られたエッジ量を判定信号生成手段26では、一定値(th1)以上であるか否かの2値的な判定を行っているが、特に2値的判定である必要はなく、th1,th2,th3・・・というように複数の閾値を用意しておき、多値的判定として、閾値判定信号も2値ではなく多値的なデータを出力するようにして、中間調処理手段24の閾値選択部31に渡しても良い。この場合、最も大きな閾値以上のエッジ量と判定されるか、オブジェクト種類情報で文字オブジェクトと判定された場合の何れかに該当する場合に、閾値判定信号を最も解像性(鮮鋭性)を重視する旨の信号が生成されるようにするのが自然である。
In this embodiment, the determination
また、本実施の形態では、1次微分値に基づいてエッジ量を算出しているが、これに限らず、例えば、細線の内部を検知する目的で、図12に示す1001から1004のフィルタに代えて2次微分フィルタを用いたり、前景か背景かを判断するために入力階調値の大小に基づいて特徴量を算出する構成や、これらを複合して用いて特徴量を算出する構成であっても良い。
In the present embodiment, the edge amount is calculated based on the first-order differential value. However, the present invention is not limited to this. For example, for the purpose of detecting the inside of the thin line, the
なお、本実施の形態においても第1の実施の形態と同様に、固定閾値を用いた場合の出力階調値、閾値マトリクスを用いた場合の出力階調値は必ずしも2値である必要はなく、多値でも良い。また、必ずしも文字オブジェクトのみを解像性(鮮鋭性)重視の処理と限定する必要はなく、文字オブジェクトとグラフィックオブジェクトを解像性(鮮鋭性)重視の処理にしても差し支えない。 In the present embodiment as well, as in the first embodiment, the output gradation value when a fixed threshold is used and the output gradation value when a threshold matrix is used are not necessarily binary. Multi-valued. In addition, it is not always necessary to limit only the character object to processing that emphasizes resolution (sharpness), and the character object and graphic object may be processed to emphasize resolution (sharpness).
(第4の実施の形態)
本発明の第4の実施の形態を図14ないし図16に基づいて説明する。なお、前述した第1の実施の形態ないし第3の実施の形態と同一部分は同一符号で示し説明も省略する。
(Fourth embodiment)
A fourth embodiment of the present invention will be described with reference to FIGS. The same parts as those in the first to third embodiments described above are denoted by the same reference numerals, and description thereof is also omitted.
第1の実施の形態ないし第3の実施の形態においては、画像処理装置としてモノクロレーザプリンタP1を想定したが、本実施の形態においては、画像処理装置としてカラーレーザプリンタP2を想定する。ただし、画像データと画像形成装置とのいずれもが複数色カラーである場合を想定すると、第3の実施の形態で説明した中間調処理手段24における中間調処理を出力画像のデータ色版分だけ実施することになる。例えば、カラーレーザプリンタP2がCMYKのプリンタである場合は、C、M、Y、K4色のいずれか単色データを入力画像データとし、該当色についてエッジ量算出手段25においてエッジ量算出を行い、該当色について単色画像データで出力まで行い、最終的にカラーレーザプリンタP2において全色を重ね合わせることになる。このような構成を採用した場合、例えば赤い線を処理するとM版に対してはエッジ量が大きく取れ解像性(鮮鋭性)を重視した処理を行い、Y版に対してはエッジ量が大きく取れず粒状性・階調性を重視した処理と言ったように、異なる処理方式が行われることがある。その結果として、M版とY版との線の太さが異なってしまい、得たい色と異なった色で再現することがある。そこで、本実施の形態においては、画像処理装置としてカラーレーザプリンタP2を想定するとともに、このような問題を解決したものである。
In the first to third embodiments, the monochrome laser printer P1 is assumed as the image processing apparatus. However, in the present embodiment, the color laser printer P2 is assumed as the image processing apparatus. However, assuming that both the image data and the image forming apparatus have a plurality of colors, the halftone processing in the
図14は、第4の実施の形態にかかるカラーレーザプリンタP2の機能構成を示すブロック図である。図14に示すように、カラーレーザプリンタP2は、CPU13がROM11内に格納された画像処理プログラムに従うことにより、PDL解釈手段21と、ビットマップメモリ22と、オブジェクト種類情報メモリ23と、中間調処理手段24と、エッジ量算出手段40とを実現する。
FIG. 14 is a block diagram illustrating a functional configuration of a color laser printer P2 according to the fourth embodiment. As shown in FIG. 14, in the color laser printer P2, the
第3の実施の形態では、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報と、ビットマップメモリ22から受けた入力画像データからエッジ量算出手段25で算出されるエッジ量に基づいて閾値判定信号を判定信号生成手段26にて生成し、判定信号生成手段26にて生成された閾値判定信号に基づいて量子化に用いる閾値を決定する構成となっていた。これに対し、本実施の形態においては、図14に示すように、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報を参照しながら、エッジ量算出手段40でビットマップメモリ22から受ける入力画像データからエッジ量を算出し、算出したエッジ量に基づいて量子化に用いる閾値を中間調処理手段24において決定する構成となっている。ここで本実施の形態のエッジ量算出手段40が第3の実施の形態のエッジ量算出手段25と異なる点は、オブジェクト種類情報によってエッジ量算出方法を切り替える点である。以下において、エッジ量算出手段40においてエッジ量算出方法を切り替える方法について説明する。
In the third embodiment, the threshold determination signal is generated based on the object type information received from the object
本実施の形態のエッジ量算出手段40は、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報が文字オブジェクトあるいはグラフィックオブジェクトである場合には、図15に示すように、C、M、Y、Kの各色毎にエッジ量を算出した後、各色毎に算出したエッジ量の最大値を抽出する。このようにして抽出された最大のエッジ量は各色のエッジ量とされ、判定信号生成手段26に送られる。判定信号生成手段26においては、エッジ量算出手段40で抽出された最大のエッジ量に基づいて閾値判定信号を生成し、中間調処理手段24の各色用の閾値選択部31に送る。
When the object type information received from the object
一方、エッジ量算出手段40は、オブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報がイメージオブジェクトである場合には、図16に示すように、C、M、Y、Kの各色毎にエッジ量が算出され、各色毎に算出したエッジ量をそのまま独立に各色のエッジ量とされ、判定信号生成手段26に送られる。判定信号生成手段26においては、エッジ量算出手段40で算出された、C、M、Y、Kの各色毎のエッジ量に基づいて閾値判定信号を生成し、中間調処理手段24の各色用の閾値選択部31にそれぞれ送る。
On the other hand, when the object type information received from the object
以上のように、エッジ量算出手段40がオブジェクト種類情報メモリ23から受け取ったオブジェクト種類情報によってエッジ量算出方法の切り替えを行うことにより、複数色の版から構成される線、グラフ等のエッジ部において、版によって太さが異なったり、色が異なる問題を解決することができる。
As described above, the edge amount calculation means 40 switches the edge amount calculation method according to the object type information received from the object
なお、各実施の形態の画像処理装置であるモノクロレーザプリンタP1やカラーレーザプリンタP2で実行されるプログラムは、ROM11に予め組み込まれて提供されるものとしたが、これに限るものではなく、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。
The programs executed by the monochrome laser printer P1 and the color laser printer P2 that are the image processing apparatuses according to the embodiments are provided in the
さらに、各実施の形態の画像処理装置であるモノクロレーザプリンタP1やカラーレーザプリンタP2で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、各実施の形態の画像処理装置であるモノクロレーザプリンタP1やカラーレーザプリンタP2で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。 Furthermore, the programs executed by the monochrome laser printer P1 and the color laser printer P2 that are the image processing apparatuses according to the embodiments are stored on a computer connected to a network such as the Internet, and are provided by being downloaded via the network. You may comprise so that it may do. The program executed by the monochrome laser printer P1 or the color laser printer P2 that is the image processing apparatus of each embodiment may be provided or distributed via a network such as the Internet.
22 ビットマップメモリ
23 オブジェクト種類情報メモリ
24 中間調処理手段
25 特徴量算出手段
26 判定信号生成手段
P1,P2 画像処理装置
22
Claims (17)
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶手段と、
前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理手段と、
を備えることを特徴とする画像処理装置。 Data storage means for expanding an image represented by a drawing command into two-dimensional bitmap data and storing it in a bitmap memory;
Object type information storage means for storing object type information of an image expressed by a drawing command in an object type information memory in association with each pixel of the image developed into the bitmap data;
The quantization threshold is switched according to whether the object type information of the pixel of interest stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation, and Halftone processing means for performing quantization processing on the bitmap data stored in the bitmap memory in consideration of quantization error;
An image processing apparatus comprising:
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶手段と、
前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出手段と、
この特徴量算出手段により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成手段と、
この判定信号生成手段により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理手段と、
を備えることを特徴とする画像処理装置。 Data storage means for expanding an image represented by a drawing command into two-dimensional bitmap data and storing it in a bitmap memory;
Object type information storage means for storing object type information of an image expressed by a drawing command in an object type information memory in association with each pixel of the image developed into the bitmap data;
A feature amount calculating means for calculating a feature amount of bitmap data stored in the bitmap memory;
The attention pixel emphasizes sharpness from the feature amount of the bitmap data stored in the bitmap memory calculated by the feature amount calculation means and the object type information of the attention pixel stored in the object type information memory. Determination signal generating means for generating a threshold determination signal as to whether the pixel is a pixel with emphasis on graininess and gradation,
Quantization processing for the bitmap data stored in the bitmap memory taking into account the quantization error from the surrounding pixels of the pixel of interest by switching the quantization threshold according to the threshold determination signal generated by the determination signal generation means Halftone processing means for performing
An image processing apparatus comprising:
ことを特徴とする請求項2記載の画像処理装置。 The feature amount of the bitmap data calculated by the feature amount calculating means is an edge amount that is a value indicating the edge degree for each pixel.
The image processing apparatus according to claim 2.
ことを特徴とする請求項3記載の画像処理装置。 The feature amount calculation means uses an edge amount calculation method according to whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. Switch,
The image processing apparatus according to claim 3.
ことを特徴とする請求項1ないし4のいずれか一記載の画像処理装置。 The halftone processing means includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation. The first quantization threshold is a threshold having a constant value regardless of the pixel position and corresponds to object type information that emphasizes sharpness, The second quantization threshold is a threshold that periodically oscillates in the image space, and corresponds to object type information that emphasizes granularity and gradation.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
ことを特徴とする請求項1ないし4のいずれか一記載の画像処理装置。 The halftone processing means includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation. The first quantization threshold is a threshold that periodically oscillates in the image space, corresponds to object type information that places importance on sharpness, and is applied to the first quantization threshold and the second quantization threshold. The quantization threshold of 2 is a threshold that periodically vibrates with a larger amplitude width in the image space than the first threshold, and corresponds to object type information that places importance on graininess and gradation.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
ことを特徴とする請求項1ないし4のいずれか一記載の画像処理装置。 The halftone processing means includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation. The first quantization threshold is a threshold that periodically oscillates in the image space, corresponds to object type information that places importance on sharpness, and is applied to the first quantization threshold and the second quantization threshold. The quantization threshold of 2 is a threshold that periodically oscillates in an image space larger than the first threshold, and corresponds to object type information that places importance on granularity and gradation.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
ことを特徴とする請求項1ないし7のいずれか一記載の画像処理装置。 Image forming means for forming an image based on the bitmap data quantized by the halftone processing means on a recording medium;
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶機能と、
前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理機能と、
をコンピュータに実行させることを特徴とするプログラム。 A data storage function for expanding an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory;
An object type information storage function for storing object type information of an image expressed by a rendering command in an object type information memory in association with each pixel of the image developed into the bitmap data;
The quantization threshold is switched according to whether the object type information of the pixel of interest stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation, and A halftone processing function for performing quantization processing on bitmap data stored in the bitmap memory in consideration of quantization error;
A program that causes a computer to execute.
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶機能と、
前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出機能と、
この特徴量算出機能により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成機能と、
この判定信号生成機能により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理機能と、
をコンピュータに実行させることを特徴とするプログラム。 A data storage function for expanding an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory;
An object type information storage function for storing object type information of an image expressed by a rendering command in an object type information memory in association with each pixel of the image developed into the bitmap data;
A feature amount calculation function for calculating a feature amount of bitmap data stored in the bitmap memory;
The attention pixel emphasizes sharpness from the feature amount of the bitmap data stored in the bitmap memory calculated by the feature amount calculation function and the object type information of the attention pixel stored in the object type information memory. A determination signal generation function for generating a threshold determination signal as to whether the pixel is a pixel with emphasis on graininess or gradation, and
Quantization processing for bitmap data stored in the bitmap memory by switching the quantization threshold according to the threshold determination signal generated by the determination signal generation function and taking into account the quantization error from the surrounding pixels of the target pixel Halftone processing function
A program that causes a computer to execute.
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶工程と、
前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報が鮮鋭性を重視するか、または粒状性・階調性を重視するかに応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理工程と、
を含むことを特徴とする画像処理方法。 A data storage step of expanding an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory;
An object type information storage step of storing object type information of an image expressed by a drawing command in an object type information memory in association with each pixel of the image developed into the bitmap data;
The quantization threshold is switched according to whether the object type information of the pixel of interest stored in the object type information memory emphasizes sharpness, or emphasizes graininess / gradation, and A halftone processing step for performing quantization processing on the bitmap data stored in the bitmap memory in consideration of quantization error;
An image processing method comprising:
描画命令で表現されている画像のオブジェクト種類情報を前記ビットマップデータに展開された画像の各画素毎に対応付けてオブジェクト種類情報メモリに記憶するオブジェクト種類情報記憶工程と、
前記ビットマップメモリに記憶されているビットマップデータの特徴量を算出する特徴量算出工程と、
この特徴量算出工程により算出された前記ビットマップメモリに記憶されているビットマップデータの特徴量と前記オブジェクト種類情報メモリに記憶されている注目画素のオブジェクト種類情報とから、注目画素が鮮鋭性重視であるか、粒状性・階調性重視の画素であるかの閾値判定信号を生成する判定信号生成工程と、
この判定信号生成工程により生成された閾値判定信号に応じて量子化閾値を切り替え、注目画素周辺画素からの量子化誤差を加味して前記ビットマップメモリに記憶されているビットマップデータに対する量子化処理を行う中間調処理工程と、
を含むことを特徴とする画像処理方法。 A data storage step of expanding an image represented by a drawing command into two-dimensional bitmap data and storing the data in a bitmap memory;
An object type information storage step of storing object type information of an image expressed by a drawing command in an object type information memory in association with each pixel of the image developed into the bitmap data;
A feature amount calculating step of calculating a feature amount of bitmap data stored in the bitmap memory;
The pixel of interest emphasizes sharpness from the feature amount of the bitmap data stored in the bitmap memory calculated in the feature amount calculation step and the object type information of the pixel of interest stored in the object type information memory. A determination signal generation step for generating a threshold determination signal as to whether the pixel is a pixel with emphasis on graininess or gradation,
Quantization processing for the bitmap data stored in the bitmap memory taking into account the quantization error from the surrounding pixels of the pixel of interest by switching the quantization threshold according to the threshold determination signal generated by this determination signal generation step A halftone processing step,
An image processing method comprising:
ことを特徴とする請求項12記載の画像処理方法。 The feature amount of the bitmap data calculated in the feature amount calculation step is an edge amount that is a value indicating an edge degree for each pixel.
The image processing method according to claim 12.
ことを特徴とする請求項13記載の画像処理方法。 The feature amount calculating step uses an edge amount calculation method depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. Switch,
The image processing method according to claim 13.
ことを特徴とする請求項11ないし14のいずれか一記載の画像処理方法。 The halftone processing step includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. The first quantization threshold is a threshold having a constant value regardless of the pixel position and corresponds to object type information that emphasizes sharpness, The second quantization threshold is a threshold that periodically oscillates in the image space, and corresponds to object type information that emphasizes granularity and gradation.
The image processing method according to claim 11, wherein the image processing method is an image processing method.
ことを特徴とする請求項11ないし14のいずれか一記載の画像処理方法。 The halftone processing step includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. The first quantization threshold is a threshold that periodically oscillates in the image space, corresponds to object type information that places importance on sharpness, and is applied to the first quantization threshold and the second quantization threshold. The quantization threshold of 2 is a threshold that periodically vibrates with a larger amplitude width in the image space than the first threshold, and corresponds to object type information that places importance on graininess and gradation.
The image processing method according to claim 11, wherein the image processing method is an image processing method.
ことを特徴とする請求項11ないし14のいずれか一記載の画像処理方法。 The halftone processing step includes at least the first quantum depending on whether the object type information of the target pixel stored in the object type information memory emphasizes sharpness, or emphasizes graininess and gradation. The first quantization threshold is a threshold that periodically oscillates in the image space, corresponds to object type information that places importance on sharpness, and is applied to the first quantization threshold and the second quantization threshold. The quantization threshold of 2 is a threshold that periodically oscillates in an image space larger than the first threshold, and corresponds to object type information that places importance on granularity and gradation.
The image processing method according to claim 11, wherein the image processing method is an image processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005000768A JP2006191294A (en) | 2005-01-05 | 2005-01-05 | Image processor, program and image-processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005000768A JP2006191294A (en) | 2005-01-05 | 2005-01-05 | Image processor, program and image-processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006191294A true JP2006191294A (en) | 2006-07-20 |
Family
ID=36798012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005000768A Pending JP2006191294A (en) | 2005-01-05 | 2005-01-05 | Image processor, program and image-processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006191294A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012098605A (en) * | 2010-11-04 | 2012-05-24 | Ricoh Co Ltd | Image forming apparatus |
JP2012118496A (en) * | 2010-11-04 | 2012-06-21 | Ricoh Co Ltd | Image forming apparatus |
-
2005
- 2005-01-05 JP JP2005000768A patent/JP2006191294A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012098605A (en) * | 2010-11-04 | 2012-05-24 | Ricoh Co Ltd | Image forming apparatus |
JP2012118496A (en) * | 2010-11-04 | 2012-06-21 | Ricoh Co Ltd | Image forming apparatus |
US9235170B2 (en) | 2010-11-04 | 2016-01-12 | Ricoh Company, Ltd. | Image forming apparatus capable of obtaining good fixed condition regardless of type of gradation sequence processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9734439B2 (en) | Image processing apparatus and method thereof | |
KR100647765B1 (en) | Image processing method, image processing device and recording medium thereof | |
US8237727B2 (en) | Image processing apparatus and method | |
JP4498233B2 (en) | Image processing apparatus and image processing method | |
US8237985B2 (en) | Softproofing via modeling print engine rendering characteristics | |
JP2009069680A (en) | Image processor and program | |
JP2009278363A (en) | Image processor and image processing method | |
JP4564986B2 (en) | Image processing apparatus, image processing method, and image processing program | |
EP2429173B1 (en) | Image forming apparatus, printing control terminal apparatus, and image forming method thereof | |
EP2429166B1 (en) | Image forming apparatus and image forming method thereof | |
JP4525916B2 (en) | Image forming apparatus, image forming method, image processing apparatus, and image processing method | |
JP2006191294A (en) | Image processor, program and image-processing method | |
JP4514168B2 (en) | Image processing system and image processing method | |
JP4492090B2 (en) | Image forming apparatus and image forming method | |
JP2019121870A (en) | Image processing apparatus, control method of the same, and program | |
JP2009232369A (en) | Image processing method | |
JP4426486B2 (en) | Image processing apparatus and program | |
JP2007087190A (en) | Image processing device and program | |
JP6413783B2 (en) | Printing instruction apparatus, printing system, and program | |
JP2007088968A (en) | Output system | |
JP2010187177A (en) | Image forming apparatus and control program | |
JP4673920B2 (en) | Image processing apparatus and image processing method | |
JP2006115369A (en) | Image processing apparatus, image processing method, image processing program, recording medium with the program recorded thereon | |
JP2000261670A (en) | Image processing unit, its method and memory computer- readable | |
JP2006179998A (en) | Image processor, image processing method and program |