JP2008086033A - Image processing apparatus, drawing data processing method, and program for executing the method - Google Patents

Image processing apparatus, drawing data processing method, and program for executing the method Download PDF

Info

Publication number
JP2008086033A
JP2008086033A JP2007279209A JP2007279209A JP2008086033A JP 2008086033 A JP2008086033 A JP 2008086033A JP 2007279209 A JP2007279209 A JP 2007279209A JP 2007279209 A JP2007279209 A JP 2007279209A JP 2008086033 A JP2008086033 A JP 2008086033A
Authority
JP
Japan
Prior art keywords
color
pixel
image
conversion
achromatic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007279209A
Other languages
Japanese (ja)
Other versions
JP4421646B2 (en
Inventor
Hiroshi Ishihara
博史 石原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007279209A priority Critical patent/JP4421646B2/en
Publication of JP2008086033A publication Critical patent/JP2008086033A/en
Application granted granted Critical
Publication of JP4421646B2 publication Critical patent/JP4421646B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable achromatic color processing without causing the deterioration of image quality in drawing data generation (conversion into CMYK) for a source image such as a scanner image constituted of only a full color image without an instruction of an image object type. <P>SOLUTION: An image color converting part 3 performs color conversion from RGB inputted from a host into CMYK for printing, a color conversion determining part 31 instructs for each pixel which of a K conversion part 33 (using only K) or a CMYK conversion part 32 should be employed. The color conversion determining part instructs the conversion part to be applied to achromatic/chromatic colors pixel determination and an achromatic color pixel. This instruction checks whether or not a chromatic color pixel exists in neighborhood pixels around a target pixel, regards the chromatic pixels as constituent pixels of a photographic image if any, and applies CMYK 4-color conversion. This leads to that gray pixels contained in the photographic image maintain gradation continuity with the neighborhood pixels, and that black characters and black ruled lines are clearly drawn in K monochrome. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、フルカラー画像データに基づく図形描画命令に従って図形を描画するために描画データを生成するプリンタ等の画像処理装置及び描画データ処理方法に関し、より特定すると、無彩色の色変換の際に、Kのみを使用するK単色変換条件及びCMYKを使用する通常変換条件を選択可能にして、印刷出力画像の高画質化を図る前記画像処理装置、描画データ処理方法、該方法を実行するためのプログラム及び該プログラムを搭載した印刷装置(例えばプリンタ)、ホスト装置に関する。   The present invention relates to an image processing apparatus such as a printer that generates drawing data in order to draw a figure in accordance with a figure drawing command based on full-color image data, and a drawing data processing method, and more specifically, at the time of achromatic color conversion, The image processing apparatus, the drawing data processing method, and the program for executing the method, which can select a K single color conversion condition using only K and a normal conversion condition using CMYK to improve the quality of a print output image Further, the present invention relates to a printing apparatus (for example, a printer) and a host apparatus on which the program is installed.

フルカラー画像データに基づく図形描画命令に従って図形を描画するために描画データを生成するプリンタ等の画像処理装置においては、RGBデータで表された原画像をもとに描画データを生成する処理の過程で、プリンタでカラー印刷用のCMYKデータへの色変換を行っている。
この色変換では、従来から無彩色(白、黒を含むグレイ)を対象にする変換処理として、次に示すような二種の描画法に対応する変換方法が適用されている。例えば、ビジネス文書に見られるような文字やグラフ、写真が混在したページをカラー印刷する場合、文字やグラフに用いられる無彩色(以下「グレイ」という場合、無彩色を指す)部分はK色材のみを用いて印刷し、写真画像のグレイ部分はCMYK4色材混色で印刷するのが望ましいとされており、これらの描画法に対応して、K単色変換、CMYK4色変換が行われている。
In an image processing apparatus such as a printer that generates drawing data in order to draw a figure in accordance with a figure drawing command based on full-color image data, in the process of generating drawing data based on an original image represented by RGB data The printer performs color conversion to CMYK data for color printing.
In this color conversion, conversion methods corresponding to the following two types of drawing methods are conventionally applied as conversion processing for achromatic colors (white and gray including black). For example, when color printing a page with mixed characters, graphs, and photographs as seen in a business document, the achromatic color (hereinafter referred to as “gray”) refers to the K color material. The gray portion of the photographic image is preferably printed with a mixed color of CMYK four color materials, and K single color conversion and CMYK four color conversion are performed corresponding to these drawing methods.

こうした対応をするのは、文字やグラフ部分のグレイに4色材を用いると厚ぼったくなり勝ちであり、例えばカラーレーザプリンタの場合であればトナーの散りによるにじみ、インクジェットプリンタの場合は多量のインクを用いることによる紙寄れ、てかりなどの弊害が発生する。また、逆に写真のような階調性が求められる場合にグレイ部分にのみK単色材を用いると、グレイ部分とほぼグレイに近い有彩色部分とは、それぞれK単色、CMYK4色という異なる描画法を用いたために、その境が目立ち、“まだら模様”となる場合があり、画質を劣化させる。   Such correspondence is likely to become thicker if four color materials are used for the gray of characters and graph parts. For example, in the case of a color laser printer, the ink bleeds due to scattering of toner, and in the case of an inkjet printer, a large amount of ink is used. Use of this will cause problems such as paper slipping and lighting. On the other hand, when a K single color material is used only in the gray portion when gradation like a photograph is required, the gray portion and the chromatic color portion that is almost similar to gray are different drawing methods of K single color and CMYK four colors, respectively. Because of this, the border is conspicuous and a “mottled pattern” may occur, degrading the image quality.

こうした画質の劣化を解決するために提案された従来例として、下記特許文献1,2を示すことができる。
下記特許文献1には、色変換の対象にする画像データにおける同色の画像領域の色成分からグレイを判定し、グレイ判定されたデータにK単色変換条件により色変換を行うグレイ処理を適用するといったこと、又前記画像領域の種類(描画オブジェクト)がテキストではないと判定された場合に、その領域には上記グレイ処理を適用しないといった動作条件に従った処理を行うこと、さらに前記領域の種類に応じてグレイ判定の基準を変更することが示されている。
The following patent documents 1 and 2 can be shown as conventional examples proposed for solving such image quality degradation.
In Patent Document 1 below, gray is determined from the color components of the image area of the same color in the image data to be subjected to color conversion, and gray processing is performed in which color conversion is performed on the gray-determined data using K single-color conversion conditions. In addition, when it is determined that the type (drawing object) of the image area is not text, processing according to an operation condition such as not applying the gray processing to the area is performed, and further, the type of the area is set. It is shown that the gray judgment standard is changed accordingly.

つまり、特許文献1に例示される方法は、対象画像データの領域の種類を知ることができれば、領域の種類に対応した処理として、文字のみにグレイ処理(K単色で印刷)を用いることを可能にするものである。即ち、従来のWindows(登録商標)GDIをベースとしたPostScriptなどの各社プリンタ用のPDL(プリンタ記述言語)では、ほぼ、文字、グラフ、写真の識別を言語レベルで行うことが可能であるから、こうした前提のもとに、識別された領域の種類に対応してK単色変換条件により色変換を行うグレイ処理を適用することにより、グレイ処理によって起きる上記画質劣化を回避することを可能にするものであると言える。
また、下記特許文献2には、特許文献1と同様の目的に利用し得るグレイ判定を行う際に、原稿の種類に最適な判定基準を用いるために、入力カラー画像の各成分データに対して行うグレイ判定の閾値を変更するようにし、高画質を得ることを可能にするものである。
In other words, the method exemplified in Patent Document 1 can use gray processing (printed in K single color) only for characters as processing corresponding to the type of region if the type of region of the target image data can be known. It is to make. That is, in the conventional PDL (printer description language) for printers such as PostScript based on Windows (registered trademark) GDI, characters, graphs, and photographs can be identified almost at the language level. Based on these assumptions, it is possible to avoid the image quality degradation caused by gray processing by applying gray processing that performs color conversion according to the K single color conversion condition corresponding to the type of the identified area. It can be said that.
Further, in Patent Document 2 below, in order to use a determination criterion optimum for the type of document when performing gray determination that can be used for the same purpose as Patent Document 1, each component data of the input color image is used. The threshold value of the gray determination to be performed is changed, and high image quality can be obtained.

特開平9−27915号公報JP 9-27915 A 特開平7−184075号公報JP-A-7-184075

しかしながら、特許文献1においては、画像データにおける同色の画像領域における色成分からグレイを判定し、そこにグレイ処理(K単色変換条件により色変換を行う)を適用する(主発明:請求項1)としており、グレイの判定とグレイ処理は、固定された対応関係に基づいており、グレイの判定がなされる写真画像に生じる上記した“まだら模様”などの劣化を防ぐことができない。また、領域の種類がテキストではないと判定された場合に、その領域にはグレイ処理を適用しないといった条件に従った処理を行うとしているが(請求項7)、この写真画像領域へのグレイ処理の適用除外は、写真画像に生じる“まだら模様”を生じることを防ぐことができるが、PDLデータに含まれるような領域識別データによる領域の種類の判定が必要であり、デジタルカメラ画像やスキャナ画像などのようなページ全体がフルカラーイメージのみで構成される画像データ(例えば、デジタルカメラ画像やスキャナ画像などの画像で、特に文字、写真、絵などの混在する原稿から読み取ったスキャナ画像データ)に対して、識別が容易ではなく、このような対象画像に対する画質の向上が難しい。   However, in Patent Document 1, gray is determined from the color components in the image area of the same color in the image data, and gray processing (color conversion is performed under K single color conversion conditions) is applied thereto (main invention: claim 1). The gray determination and the gray processing are based on a fixed correspondence relationship, and it is impossible to prevent the deterioration such as the “mottled pattern” generated in the photographic image for which the gray determination is made. Further, when it is determined that the type of the area is not text, the process is performed in accordance with the condition that the gray process is not applied to the area (Claim 7). However, it is necessary to determine the type of the area based on the area identification data included in the PDL data, and the digital camera image or the scanner image. For image data (for example, digital camera images and scanner images, especially scanner image data read from a manuscript that contains a mixture of characters, photos, pictures, etc.) consisting of full-color images. Thus, identification is not easy, and it is difficult to improve the image quality of such a target image.

この問題を解決する方法として、従来から例えば一部のコピー機に見られるようなハードウェアによる像域分離処理手段を用いて行うものがある(例えば、像域分離処理回路にASICチップを用いる)が、低コスト製品への搭載はコスト面から難しく、ソフトウェアでの解決が望まれる。また、同時に処理速度も求められるので、従来の像域分離処理をそのままソフトウェア上で実現するのも処理速度の面で困難である。
本発明は、フルカラー画像データに基づく図形描画命令に従って図形を描画するための描画データ生成過程で行なわれるグレイ処理によって起きる画質劣化を解決するために提案された上述の従来技術の問題点に鑑みてなされたもので、その目的(課題)は、写真画像などの対象画像の種類が指示されていない、例えば、スキャナ画像などのフルカラーイメージのみで構成される画像データに対する描画データ生成(CMYKへの変換)においても、画質劣化を生じることのない無彩色処理を可能にすることにある。また、こうした無彩色処理を上記した従来の像域分離処理回路におけるような特別なハードウェアを必要としない、より簡単な方法により実現することを更なる目的とする。
As a method for solving this problem, there is a conventional method that uses hardware image area separation processing means such as found in some copiers (for example, an ASIC chip is used for the image area separation processing circuit). However, mounting on low-cost products is difficult in terms of cost, and a software solution is desired. At the same time, since the processing speed is required, it is difficult in terms of processing speed to realize the conventional image area separation processing as it is on the software.
The present invention has been made in view of the above-described problems of the prior art proposed to solve image quality degradation caused by gray processing performed in a drawing data generation process for drawing a figure in accordance with a figure drawing command based on full-color image data. The purpose (problem) is to generate drawing data (convert to CMYK) for image data composed only of a full color image such as a scanner image, for example, where the type of target image such as a photographic image is not instructed. ) Also enables achromatic processing without image quality degradation. Another object of the present invention is to realize such achromatic processing by a simpler method that does not require special hardware as in the above-described conventional image area separation processing circuit.

請求項1の発明は、フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理手段を有する画像処理装置であって、前記描画データ処理手段は、フルカラーの原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手段と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手段と、前記原画像データをカラー印刷用のCMYKデータへ異なる変換条件で変換し得る色変換手段と、前記彩色判定手段により無彩色と判定された画素であって、前記画像特徴判定手段により写真画像を構成する画素の特徴を有すると判定された画素に対して、前記変換条件としてCMYKを使用する通常変換条件を前記色変換手段に指示する変換条件指示手段を備えたことを特徴とする画像処理装置である。
請求項2の発明は、フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理手段を有する画像処理装置であって、前記描画データ処理手段は、フルカラーの原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手段と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手段と、前記原画像データをカラー印刷用のCMYKデータへ異なる変換条件で変換し得る色変換手段と、前記彩色判定手段により無彩色と判定された画素であって、前記画像特徴判定手段により写真画像を構成する画素の特徴を有しないと判定された画素に対して、前記変換条件としてKのみを使用しCMYを使用しないK単色変換条件を前記色変換手段に指示する変換条件指示手段を備えたことを特徴とする画像処理装置である。
請求項3の発明は、請求項1又は2に記載された画像形成装置において、前記彩色判定手段は、RGBの各成分データ値が等しいときに無彩色と判定することを特徴とする。
請求項4の発明は、請求項1又は2に記載された画像処理装置において、前記彩色判定手段は、RGBの各成分データ値の差分がそれぞれ所定の閾値以内であるときに無彩色と判定することを特徴とする。
請求項5の発明は、請求項1乃至4のいずれかに記載された画像処理装置において、前記色変換手段における異なる変換条件を、Kのみを使用しCMYを使用しないK単色変換条件及びCMYKを使用する通常変換条件とし、これらを無彩色と判定された画素に適用する色変換条件としたことを特徴とする。
請求項6の発明は、フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理方法であって、フルカラー原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手順と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手順と、前記彩色判定手順で無彩色と判定された画素であって、前記画像特徴判定手順により写真画像を構成する画素の特徴を有すると判定された画素に対して、前記変換条件としてCMYKを使用する通常変換条件を前記色変換を指示する変換条件指示手順と、前記指示に従って前記原画像データを印刷用のCMYKデータへ変換する色変換手順と、を有することを特徴とする描画データ処理方法である。
請求項7の発明は、フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理方法であって、フルカラー原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手順と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手順と、前記彩色判定手順により無彩色と判定された画素であって、前記画像特徴判定手順により写真画像を構成する画素の特徴を有しないと判定された画素に対して、前記変換条件としてKのみを使用しCMYを使用しないK単色変換条件を前記色変換手段に指示する変換条件指示手順と、前記指示に従って前記原画像データを印刷用のKデータへ変換する色変換手順と、を有することを特徴とする描画データ処理方法である。
請求項8の発明は、請求項6又は7に記載された描画データ処理方法において、前記彩色判定手順は、RGBの各成分データ値が等しいときに無彩色と判定することを特徴とする。
請求項9の発明は、請求項6又は7に記載された描画データ処理方法において、前記彩色判定手順は、RGBの各成分データ値の差分がそれぞれ所定の閾値以内であるときに無彩色と判定することを特徴とする。
請求項10の発明は、請求項6乃至9のいずれかに記載された描画データ処理方法において、無彩色と判定された画素に適用する前記色変換条件を、Kのみを使用しCMYを使用しないK単色変換条件及びCMYKを使用する通常変換条件としたことを特徴とする。
請求項11の発明は、請求項6乃至10のいずれかに記載された描画データ処理方法の各処理手順をコンピュータに実行させるためのプログラムである。
請求項12の発明は、請求項11に記載されたプログラムを記録したコンピュータ読み取り可能な記録媒体である。
請求項13の発明は、プリンタコントローラに請求項11に記載されたプログラムを搭載したことを特徴とする印刷装置である。
請求項14の発明は、請求項11に記載されたプログラムを含むプリンタドライバを搭載したコンピュータよりなるホスト装置である。
The invention according to claim 1 is an image processing apparatus having drawing data processing means for generating graphic drawing data in accordance with a graphic drawing command based on full-color image data, wherein the drawing data processing means includes each pixel of full-color original image data. Chromatic determination means for determining whether a pixel is a chromatic color or an achromatic color, image feature determination means for determining whether each pixel of the original image data has a feature of a pixel constituting a photographic image, and A color conversion unit that can convert original image data into CMYK data for color printing under different conversion conditions, and a pixel that has been determined to be achromatic by the color determination unit, and a photographic image is configured by the image feature determination unit A conversion condition instruction for instructing the color conversion means a normal conversion condition using CMYK as the conversion condition for a pixel determined to have pixel characteristics. An image processing apparatus characterized by comprising a stage.
The invention according to claim 2 is an image processing apparatus having drawing data processing means for generating graphic drawing data in accordance with a graphic drawing command based on full-color image data, wherein the drawing data processing means includes each pixel of full-color original image data. Chromatic determination means for determining whether a pixel is a chromatic color or an achromatic color, image feature determination means for determining whether each pixel of the original image data has a feature of a pixel constituting a photographic image, and A color conversion unit that can convert original image data into CMYK data for color printing under different conversion conditions, and a pixel that has been determined to be achromatic by the color determination unit, and a photographic image is configured by the image feature determination unit For a pixel determined not to have pixel characteristics, K color conversion conditions that use only K and do not use CMY as the conversion condition are specified to the color conversion means. An image processing apparatus characterized by comprising a conversion condition instructing means for.
According to a third aspect of the present invention, in the image forming apparatus according to the first or second aspect, the color determining means determines that the color is achromatic when the RGB component data values are equal.
According to a fourth aspect of the present invention, in the image processing apparatus according to the first or second aspect, the color determining means determines that the color is achromatic when the difference between the RGB component data values is within a predetermined threshold value. It is characterized by that.
According to a fifth aspect of the present invention, in the image processing apparatus according to any one of the first to fourth aspects, the different conversion conditions in the color conversion means are a K single color conversion condition that uses only K and does not use CMY, and CMYK. The normal conversion conditions to be used are used, and these are the color conversion conditions to be applied to the pixels determined to be achromatic colors.
The invention of claim 6 is a drawing data processing method for generating graphic drawing data in accordance with a graphic drawing command based on full-color image data, and determines whether each pixel of the full-color original image data is chromatic or achromatic. A color determination procedure, an image feature determination procedure for determining whether or not each pixel of the original image data has a feature of a pixel constituting a photographic image, and a pixel determined as an achromatic color in the color determination procedure. A conversion condition instruction procedure for instructing the color conversion to a normal conversion condition using CMYK as the conversion condition for the pixel determined to have the characteristics of the pixels constituting the photographic image by the image feature determination procedure; And a color conversion procedure for converting the original image data into CMYK data for printing in accordance with the instruction.
The invention of claim 7 is a drawing data processing method for generating graphic drawing data in accordance with a graphic drawing command based on full-color image data, and determines whether each pixel of the full-color original image data is chromatic or achromatic. A color determination procedure, an image feature determination procedure for determining whether or not each pixel of the original image data has a feature of a pixel constituting a photographic image, and a pixel determined as an achromatic color by the color determination procedure. For the pixels determined not to have the characteristics of the pixels constituting the photographic image by the image feature determination procedure, K color conversion conditions that use only K and do not use CMY are used as the conversion conditions. And a conversion condition instruction procedure for instructing the drawing data, and a color conversion procedure for converting the original image data into K data for printing in accordance with the instruction. It is a method.
According to an eighth aspect of the present invention, in the drawing data processing method according to the sixth or seventh aspect, the coloring determination procedure determines that the color is achromatic when the RGB component data values are equal.
According to a ninth aspect of the present invention, in the drawing data processing method according to the sixth or seventh aspect, the coloring determination procedure determines that the color is achromatic when the difference between the RGB component data values is within a predetermined threshold value. It is characterized by doing.
A tenth aspect of the present invention is the drawing data processing method according to any one of the sixth to ninth aspects, wherein the color conversion condition applied to the pixel determined to be an achromatic color uses only K and does not use CMY. K single color conversion conditions and normal conversion conditions using CMYK are used.
The invention of claim 11 is a program for causing a computer to execute each processing procedure of the drawing data processing method according to any one of claims 6 to 10.
A twelfth aspect of the present invention is a computer-readable recording medium on which the program according to the eleventh aspect is recorded.
According to a thirteenth aspect of the present invention, there is provided a printing apparatus in which the program described in the eleventh aspect is installed in a printer controller.
According to a fourteenth aspect of the present invention, there is provided a host device comprising a computer equipped with a printer driver including the program according to the eleventh aspect.

(1)請求項1、2、6、7の発明に対応する効果
フルカラー画像データに基づく図形描画命令に従い該原画像データを色変換しカラー印刷用のCMYKの図形描画データを生成する描画データ処理において、画素ごとに無彩色であるか否かを判定し、無彩色と判定された画素に対して、CMYKへの色変換を行う際に、対象画素が写真画像を構成する画素の特徴を有するか否かに応じて色変換条件を指示するようにしたことにより、画像特徴を示す画像種類に適した変換条件を画素単位に適用することができるので、無彩色処理により従来生じることがあったグレイ部分とほぼグレイに近い有彩色部分との境に生じる“まだら模様”のような画質劣化を起こさず、画質の向上を図ることが可能になる。
(2)請求項3,4,8,9の発明に対応する効果
RGBの各成分データ値が等しいときに無彩色と判定するようにしたので、判定処理を簡単に行うことが可能になる。
また、RGBの各成分データ値の差分がそれぞれ所定の閾値以内であるときに無彩色と判定するようにしたので、人間の目では確認できない程度の微小彩度の色範囲も無彩色と判定させることにより、画質の劣化として顕在化することを回避し、高画質化を可能とする。
(3)請求項5,10の発明に対応する効果
無彩色と判定された画素に対して適用可能な色変換条件として、CMYを使用しないK単色変換条件及びCMYK4色を使用する通常変換条件を用いる様にしたので、写真画像の無彩色画素に対しては、CMYK4色による色変換条件を適用することにより、周辺の有彩色画素との階調連続性を保って、グレイ部分とほぼグレイに近い有彩色部分との境に生じる“まだら模様”の発生を防止し、黒文字やグラフの黒罫線などの無彩色画素に対しては、K単色ですっきりとした画像を形成することが可能になる。
(4)請求項11,12の発明に対応する効果
請求項6乃至10のいずれかに記載された描画データ処理方法の各処理手順をコンピュータに実行させるためのプログラムを画像処理装置のコンピュータに搭載することにより、上記(1)〜(3)のいずれかの効果を容易に実現することが可能になる。
(5)請求項13の発明に対応する効果
請求項6乃至10のいずれかに記載された描画データ処理方法の各処理手順をコンピュータに実行させるためのプログラムを印刷装置のプリンタコントローラに搭載することにより、上記(1)〜(3)のいずれかの効果を印刷装置において具現化することが可能になる。
(6)請求項14の発明に対応する効果
請求項6乃至10のいずれかに記載された描画データ処理方法の各処理手順をコンピュータに実行させるためのプログラムをホスト装置のコンピュータに搭載することにより、色変換処理機能を持たない印刷装置への描画命令を行うホスト装置において上記(1)〜(3)のいずれかの効果を具現化することが可能になる。
(1) Effects corresponding to the inventions of claims 1, 2, 6 and 7 Drawing data processing for generating CMYK figure drawing data for color printing by color-converting the original image data in accordance with a figure drawing command based on full-color image data , It is determined whether or not each pixel is an achromatic color, and the target pixel has a characteristic of a pixel constituting a photographic image when color conversion to CMYK is performed on the pixel determined to be an achromatic color. By specifying the color conversion condition depending on whether or not, it is possible to apply the conversion condition suitable for the image type indicating the image feature in units of pixels, and this has conventionally occurred due to achromatic processing. It is possible to improve the image quality without causing image quality degradation such as a “mottled pattern” that occurs at the boundary between the gray portion and the chromatic color portion that is almost gray.
(2) Effects corresponding to the inventions of claims 3, 4, 8, and 9 Since an achromatic color is determined when the RGB component data values are equal, the determination process can be easily performed.
Further, since the achromatic color is determined when the difference between the RGB component data values is within a predetermined threshold value, a color range of minute saturation that cannot be confirmed by human eyes is also determined as an achromatic color. As a result, it becomes possible to avoid the manifestation of image quality degradation and to improve image quality.
(3) Effects corresponding to the inventions of claims 5 and 10 As color conversion conditions applicable to pixels determined to be achromatic colors, K single color conversion conditions that do not use CMY and normal conversion conditions that use four colors of CMYK Since it is used, the gray color of the photographic image is made almost gray by maintaining the gradation continuity with the surrounding chromatic color pixels by applying the color conversion condition of CMYK 4 colors to the achromatic color pixel of the photographic image. Prevents the occurrence of a “mottled pattern” that occurs at the border with a nearby chromatic color part, and makes it possible to form a clear image with K single color for achromatic pixels such as black characters and black ruled lines in graphs. .
(4) Effects corresponding to inventions of claims 11 and 12 A program for causing a computer to execute each processing procedure of the drawing data processing method according to any one of claims 6 to 10 is installed in a computer of an image processing apparatus. By doing so, any one of the effects (1) to (3) can be easily realized.
(5) Effects corresponding to the invention of claim 13 A program for causing a computer to execute each processing procedure of the drawing data processing method according to any one of claims 6 to 10 is installed in a printer controller of a printing apparatus. Thus, any one of the effects (1) to (3) can be realized in the printing apparatus.
(6) Effect corresponding to invention of claim 14 By mounting a program for causing a computer to execute each processing procedure of the drawing data processing method according to any one of claims 6 to 10, the computer of the host device It is possible to realize any one of the effects (1) to (3) in the host apparatus that issues a drawing command to a printing apparatus that does not have a color conversion processing function.

本発明を添付する図面とともに示す以下の実施形態に基づき説明する。
以下の各実施形態には、ソースとなるフルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理における無彩色の画素に対する色変換の際に、Kのみを使用するK単色変換条件及びCMYKを使用する通常変換条件のいずれを用いるかを、原(ソース)画像データの各画素が属性として持つ画像特徴に応じて変換条件の設定を変更可能とし、出力画像の画質の向上を図ることを目的とする本発明の画像処理装置、描画データ処理方法に係わる実施形態を示す。
なお、ここでは、一般化したプリンタシステム(即ち、ホストコンピュータから受け取った印刷コマンドに従い印刷処理を行うプリンタからなるシステム)におけるプリンタに対し本発明に係わる描画データ処理を実施した例を示す。プリンタ側で本発明に係わる描画データ処理を実施する場合には、既存の一部のレーザプリンタにおけると同様に、プリンタに装備されるプリンタコントローラの処理として行うことが可能である。また、既存の一部のインクジェットプリンタにおけると同様に、ホストコンピュータ側の処理として行う場合には、プリンタドライバに、処理に必要な機能を搭載させることにより実施することができる。プリンタコントローラ或いはプリンタドライバで実施する場合には、これらを駆動するコンピュータ(CPU)に、以下の実施形態に示す描画処理方法の各処理手順を実行させるためのプログラムを搭載することにより、必要な機能を実現することが可能である。
The present invention will be described based on the following embodiments shown with the accompanying drawings.
In each of the following embodiments, a K single color conversion condition that uses only K when performing color conversion on achromatic pixels in drawing data processing for generating figure drawing data in accordance with a figure drawing command based on source full-color image data. In addition, it is possible to change the setting of the conversion condition according to the image feature that each pixel of the original (source) image data has as an attribute, which of the normal conversion conditions using CMYK and CMYK is used, and to improve the image quality of the output image An embodiment relating to an image processing apparatus and a drawing data processing method of the present invention for the purpose will be described.
Here, an example in which the drawing data processing according to the present invention is performed on a printer in a generalized printer system (that is, a system including a printer that performs a printing process according to a print command received from a host computer) will be described. When drawing data processing according to the present invention is performed on the printer side, it can be performed as processing of a printer controller provided in the printer, as in some existing laser printers. Further, as in the case of some existing ink jet printers, when processing is performed on the host computer side, it can be implemented by installing functions necessary for processing in the printer driver. When implemented by a printer controller or a printer driver, necessary functions are provided by installing a program for causing the computer (CPU) that drives them to execute each processing procedure of the drawing processing method described in the following embodiment. Can be realized.

「実施形態1」
この実施形態では、無彩色の色変換において、Kのみを使用するK単色変換条件及びCMYKを使用する通常変換条件のいずれを用いるかを、原(ソース)画像データの各画素が属性として持つ画像特徴に応じて指示し、印刷出力画像の高画質化を図るために必要となる基本的な手段を示す。本実施形態がねらいとする高画質化は、例えば、文字、グラフィックス、写真などの混在するビジネス文書に見られるような印刷物において、黒文字やグラフの黒罫線などはK単色ですっきりと、また、写真画像の一部に含まれるグレイ画素はCMYKを使って周辺の画素と階調連続性を保つことにある。
Embodiment 1”
In this embodiment, in the achromatic color conversion, an image that each pixel of the original (source) image data has as an attribute which one of the K single color conversion condition using only K and the normal conversion condition using CMYK is used. Instructions are given according to the characteristics, and the basic means necessary to improve the image quality of the printed output image are shown. The high image quality aimed at by this embodiment is, for example, in printed matter such as characters, graphics, photographs, etc. mixed in business documents, black characters and black ruled lines of graphs are clearly K single color, A gray pixel included in a part of a photographic image is to maintain gradation continuity with surrounding pixels using CMYK.

図1は、本実施形態のプリンタの概略構成を示す図であり、同図を参照して本実施形態を説明する。
図1に例示するプリンタ1は、ホスト装置としてのPC(パーソナルコンピュータ)7から受け取った印刷コマンドに従い印刷処理を行うために必要なデータを処理し、プリンタの各動作部を制御するプリンタコントローラ2と、プリンタコントローラ2からの描画データ出力により紙等の媒体に印字を行うプリンタエンジン4を有する。
プリンタコントローラ2内には、入力印刷コマンドからプリンタエンジン4に出力する描画データを生成するまでのデータ処理に必要な要素として、インタープリタ10、展開処理部11、イメージ色変換部3、図形描画処理部12、データの処理過程で用いるメモリとして、RGBイメージデータ用の画像メモリ(1)20、CMYKイメージデータ用の画像メモリ(2)34、ページメモリ23、及びCPU14を備える。なお、CPU14は、インタープリタ10、展開処理部11、イメージ色変換部3、図形描画処理部12をハードウェアで実現する場合、これらの各画像処理部を制御して処理・操作を行わせ、また、ソフトウェアで実現する場合、インタープリタ10、展開処理部11、イメージ色変換部3、図形描画処理部12をCPU14が駆動するソフトウェアにより実現する機能とする。
FIG. 1 is a diagram illustrating a schematic configuration of a printer according to the present embodiment. The present embodiment will be described with reference to the same drawing.
A printer 1 illustrated in FIG. 1 includes a printer controller 2 that processes data necessary for performing print processing in accordance with a print command received from a PC (personal computer) 7 serving as a host device, and controls each operation unit of the printer. The printer engine 4 performs printing on a medium such as paper by drawing data output from the printer controller 2.
The printer controller 2 includes an interpreter 10, a development processing unit 11, an image color conversion unit 3, and a graphic drawing processing unit as elements necessary for data processing from generation of an input print command to generation of drawing data to be output to the printer engine 4. 12. As memory used in the data processing process, an image memory (1) 20 for RGB image data, an image memory (2) 34 for CMYK image data, a page memory 23, and a CPU 14 are provided. When the interpreter 10, the development processing unit 11, the image color conversion unit 3, and the graphics drawing processing unit 12 are realized by hardware, the CPU 14 controls each of these image processing units to perform processing / operation. When implemented by software, the interpreter 10, the development processing unit 11, the image color conversion unit 3, and the graphic drawing processing unit 12 are functions implemented by software driven by the CPU.

図1に例示するプリンタの各要素部における動作を描画データの流れに沿って、以下に説明する。
ホストPC7は、カラーイメージデータを生成し、これをもとに例えばPDLデータの印刷コマンドとしてプリンタ1のプリンタコントローラ2に転送する。なお、本実施形態では、ホストPC7で原(ソース)画像データとして生成されたカラーイメージデータはRGBで表現され、ホスト側のプリンタドライバでは、印刷用のCMYKデータへの変換を行わずに、RGBのままでイメージデータをプリンタ側に送信する。
プリンタコントローラ2に印刷コマンドとして入力されたカラーイメージデータは、インタープリタ10に入力され、そこでフォーマットやPDLデータ等が解読され、展開処理部11に渡される。展開処理部11では、前段で得られた中間形式のデータを、必要に応じてカラーイメージのデータ圧縮のデコード処理などを経て、順に処理することによりビットマップデータに展開した後、RGBイメージデータ用の画像メモリ(1)20に格納する。
The operation of each element unit of the printer illustrated in FIG. 1 will be described below along the flow of drawing data.
The host PC 7 generates color image data and transfers it to the printer controller 2 of the printer 1 as a print command of PDL data, for example. In this embodiment, the color image data generated as original (source) image data by the host PC 7 is expressed in RGB, and the host-side printer driver does not convert it to CMYK data for printing, but does not convert it to RGB. The image data is transmitted to the printer side as it is.
The color image data input as a print command to the printer controller 2 is input to the interpreter 10, where the format, PDL data, etc. are decoded and passed to the expansion processing unit 11. The development processing unit 11 develops the intermediate format data obtained in the previous stage into bitmap data by sequentially processing the data through a compression process of color image data compression as necessary, and then for RGB image data. Are stored in the image memory (1) 20.

次いで、RGBイメージデータは、イメージ色変換部3に入力され、印刷用のCMYKデータに色変換される。イメージ色変換部3は、異なる変換条件を用いることが可能なもので、適用する変換条件を指示に従い変更するという方法により動作する。イメージ色変換部3では、画像メモリ(1)20に格納されているビットマップ展開されたRGBイメージデータに対し画素ごとに色変換判定部31によって色変換条件を定め、定めた条件を適用するための指示を行う。なお、色変換判定部31の動作の詳細は後述する。   Next, the RGB image data is input to the image color conversion unit 3 and color-converted into CMYK data for printing. The image color conversion unit 3 can use different conversion conditions, and operates by a method of changing the conversion condition to be applied according to the instruction. In the image color conversion unit 3, color conversion conditions are determined by the color conversion determination unit 31 for each pixel with respect to the RGB image data developed in the bitmap stored in the image memory (1) 20, and the determined conditions are applied. The instructions are given. Details of the operation of the color conversion determination unit 31 will be described later.

本実施形態において、異なる色変換条件は、K変換部33で行うKのみを使用しCMYを使用しないK単色変換、及びCMYK変換部32で行うCMYK4色を使用する通常変換の2条件とする。K単色条件による変換方法は、入力RGBを無彩色と判定したときに適用し得る方法で、K色材のみを使用し印刷するもので、例えば、「K=1.0−R、C=M=Y=0.0」、を変換条件とする。また、CMYK4色条件による変換方法は、CMYK4色材を使用し印刷するもので、一般的に知られている「BG/UCR(黒生成/下色除去)」によって各色を計算する方法を用いて実施することが可能である。無彩色と判定された画素に対する色変換の際には、K単色条件及びCMYK4色条件のいずれかを、色変換判定部31からの指示に従って適用する。   In the present embodiment, the different color conversion conditions are two conditions of K single color conversion using only K performed by the K conversion unit 33 without using CMY and normal conversion using CMYK four colors performed by the CMYK conversion unit 32. The conversion method based on the K single color condition is a method that can be applied when the input RGB is determined to be an achromatic color, and prints using only the K color material. For example, “K = 1.0−R, C = M = Y = 0.0 "as a conversion condition. Also, the conversion method based on the CMYK4 color condition is to print using the CMYK4 color material, and uses a generally known method of calculating each color by “BG / UCR (black generation / undercolor removal)”. It is possible to implement. At the time of color conversion for a pixel determined to be an achromatic color, either the K single color condition or the CMYK four color condition is applied in accordance with an instruction from the color conversion determination unit 31.

色変換後のCMYKイメージデータは、一旦画像メモリ(2)34に蓄積され、図形描画処理部12は、このメモリに蓄積されたデータをもとにCMYK毎にその図形をビットマップデータに展開しながらページメモリ23に描画する。このようにして行われる描画データの処理に従って1ページ分の描画命令に対する処理が終了したところで、ページメモリ23の内容を紙等の記録媒体に印刷するプリンタエンジン4に出力する。   The CMYK image data after color conversion is temporarily stored in the image memory (2) 34, and the graphic drawing processing unit 12 expands the graphic into bitmap data for each CMYK based on the data stored in the memory. The image is drawn in the page memory 23. When the processing for the drawing command for one page is completed according to the processing of the drawing data performed in this way, the contents of the page memory 23 are output to the printer engine 4 that prints on a recording medium such as paper.

ここで、色変換判定部31の動作について、より詳細に説明する。
色変換判定部31は、無彩色の色変換の際に、K単色条件及びCMYK4色条件のいずれを変換条件とするかを画素毎に定め、その指示に従ってK変換部33又はCMYK変換部32で変換動作を行わせる。
本実施形態の色変換判定部31では、無彩色/有彩色を判定する彩色判定を行い、無彩色と判定された画素については、画素が属性として持つ画像特徴が写真画像を構成する画素の持つ特徴を有するか否かを調べる、という2ステップの判断を行う。このようにして行う判断の結果、無彩色であり、かつ写真画像を構成する画素が持つ特徴を有する画素に対してCMYK4色条件による指示を行うが、それ以外の無彩色と判定された画素に対しては,K単色条件の指示を行う。
Here, the operation of the color conversion determination unit 31 will be described in more detail.
The color conversion determination unit 31 determines, for each pixel, which one of the K single color condition and the CMYK four color condition is to be used as the conversion condition when the achromatic color is converted, and the K conversion unit 33 or the CMYK conversion unit 32 determines the conversion condition. Perform conversion operation.
The color conversion determination unit 31 according to the present embodiment performs chromatic determination to determine an achromatic color / chromatic color. For pixels determined to be an achromatic color, an image feature that the pixel has as an attribute has a pixel constituting the photographic image. A two-step decision is made to check whether or not the feature is present. As a result of the determination made in this way, an instruction is given according to the CMYK four-color condition for pixels that are achromatic and have the characteristics of the pixels constituting the photographic image. On the other hand, the K single color condition is instructed.

なお、有彩色の画素に対しては、当然、CMYK4色条件による描画データの処理を適用する。また、無彩色の判定は画素ごとに判定処理操作を行う必要があるので、デジタルカメラ画像やスキャナ画像などのイメージデータのように本来各画素データに対応したRGBを持つ場合には画素毎の対応に問題ないが、入力データがPDL形式のテキストデータ或いはグラフィックスデータである場合のように、画素ごとにデータを持たない場合には、即対応できない。従って、上記に示した様に、図形描画命令に示されたテキスト,グラフィックスの描画オブジェクトに対しては、オブジェクトに指示された色指定データをもとに展開処理を行うことによりビットマップデータに展開した後に、各画素に対する彩色判定処理を適用するという対応によって、実施を可能にする。   Of course, the drawing data processing based on the CMYK four-color condition is applied to the chromatic color pixel. In addition, since it is necessary to perform a determination processing operation for each pixel for the determination of achromatic color, if there is RGB that originally corresponds to each pixel data, such as image data such as a digital camera image or a scanner image, the corresponding processing for each pixel However, if the input data does not have data for each pixel as in the case where the input data is text data or graphics data in the PDL format, it cannot be dealt with immediately. Therefore, as described above, for the text and graphics drawing objects indicated in the graphic drawing command, the expansion processing is performed on the basis of the color designation data instructed by the objects, so that the bitmap data is obtained. After the expansion, the implementation is enabled by the correspondence of applying the color determination processing to each pixel.

無彩色/有彩色の判定処理は、無彩色(白、黒を含むグレイ)の判定基準を設け、この判定基準を満たす場合に無彩色を判定し、無彩色と判定できない画素を有彩色とみなす、という方法による。
この実施形態では、無彩色の判定条件は、入力RGBにおける各成分のデータ値が等しい、即ちR=G=Bという条件を満たす場合に、その画素を無彩色と判定する。
また、R=G=Bを満たし、無彩色と判定された画素については、写真画像を構成する画素が持つ特徴を有する画素であるか否かを調べる。この処理は、処理対象となる原画像データに対して画像データの種類として写真画像であることが指示されている場合に、この指示の有無を調べることにより、簡易にこの情報を得ることが可能である。
例えば,画像データの種類の指示は、ユーザがキー等の入力操作により指示するような方法をとることができ、この場合には操作入力の有無により、写真画像であることを知ることができる。
In the achromatic / chromatic color determination process, a standard for determining achromatic colors (white and gray including black) is set. If this criterion is satisfied, the achromatic color is determined, and pixels that cannot be determined as achromatic are regarded as chromatic colors. , By the method.
In this embodiment, the achromatic color determination condition determines that the pixel is an achromatic color when the data values of the respective components in the input RGB are equal, that is, when the condition R = G = B is satisfied.
Further, for pixels that satisfy R = G = B and are determined to be achromatic, it is checked whether or not the pixels constituting the photographic image have the characteristics of the pixels. In this process, when it is instructed that the original image data to be processed is a photographic image as the type of image data, it is possible to easily obtain this information by checking the presence or absence of this instruction. It is.
For example, the image data type can be instructed by a user through an input operation such as a key. In this case, it can be known that the image is a photographic image by the presence or absence of an operation input.

また、図形描画命令に示された描画オブジェクトに指定された領域情報を調べることによっても、写真画像として扱うべき画素であることを知ることができる。一般的に利用されているPDLによる図形描画命令には、テキスト、グラフィックス、イメージ(ここに示す「イメージ」は、写真画像に相当する)の各描画オブジェクトを設定することが予定されているので、この描画命令の解析結果として得られる写真(イメージ)オブジェクトの指定に基づいて調べることが可能である。   Further, it is possible to know that the pixel is to be handled as a photographic image by examining the area information specified for the drawing object indicated by the graphic drawing command. Since it is planned to set each drawing object of text, graphics, and image (the “image” shown here corresponds to a photographic image) in a PDL drawing command generally used. It is possible to check based on the designation of a photo (image) object obtained as a result of analysis of the drawing command.

「実施形態2」
上記「実施形態1」では、彩色判定において、各成分のデータ値がR=G=Bである、つまり色合い(彩度)の全くないときに無彩色と判定するとしているが、このような判定基準によると、人間の目では確認できないほどのごく少ない彩度がある場合には無彩色と判定されないことになる。
その一例として、本来、無彩色であるはずでも、色計算に誤差が生じる場合を挙げることができ、こうした誤差により生じた微小彩度がグレイのグラデーションの一部に存在した場合、そこが無彩色と判定されず、その部分のみ有彩色となり、グラデーションがまだら模様になるという現象が起きる場合がある。また、JPEGのような非可逆圧縮形式を適用したデータにおいても、圧縮、伸張の計算過程で無彩色が微小有彩色になる場合を、こうした画像劣化を起こす例として挙げることができる。さらに、スキャナ読み取り画像、デジタルカメラ撮影画像などで、例えばデバイスの特性に依存するRGBを0〜255の整数値に正規化する場合等において、無彩色部分が微小有彩色になる場合も考えられる。
そこで、無彩色判定では、人間の目では確認できない程度の微小彩度の色範囲も無彩色と判定させることにより、画質の劣化として顕在化することを回避し、高画質化を可能とする。つまり、人間の目では判定できない程度の微小に有彩色を含む色であるR≒G≒Bも、グレイ画素と判定するような無彩色判定を行う。
Embodiment 2”
In the “embodiment 1”, in the chromatic determination, the data value of each component is R = G = B, that is, when there is no hue (saturation), the achromatic color is determined. According to the standard, if there is very little saturation that cannot be confirmed by human eyes, it will not be determined as an achromatic color.
An example of this is when there is an error in the color calculation even though it should originally be an achromatic color. If the minute saturation caused by such an error exists in a part of the gray gradation, that is the achromatic color. In some cases, a phenomenon in which only that portion becomes chromatic color and the gradation becomes a mottled pattern occurs. In addition, even in data to which an irreversible compression format such as JPEG is applied, a case where an achromatic color becomes a minute chromatic color in a compression / decompression calculation process can be cited as an example of causing such image degradation. Furthermore, in the case of normalizing RGB, which depends on the characteristics of the device, to an integer value of 0 to 255 in a scanner read image, a digital camera photographed image, etc., a case where the achromatic color portion becomes a minute chromatic color may be considered.
Therefore, in the achromatic color determination, a color range of minute saturation that cannot be confirmed by human eyes is also determined as an achromatic color, thereby avoiding the manifestation as deterioration of the image quality and enabling high image quality. That is, achromatic color determination is performed so that R≈G≈B, which is a color that includes a minute chromatic color that cannot be determined by human eyes, is also determined as a gray pixel.

この判定を行うための方法としては、RGBにおける任意の2色の色差に対して閾値処理を行う方法を用いることにより、その実施が可能である。
つまり、閾値をTとすると、次の不等式、
|R−G|≦Trg、|G−B|≦Tgb、|B−R|≦Tbr
を満足するRGBを無彩色と判定する。
なお、上記不等式は一般式とし、デバイスの特性に応じて、Trg,Tgb,Tbrがそれぞれ異なる値をとるという前提をおいた実施形態の例を示したが、もちろん、簡単のためにTrg=Tgb=Tbrとしてもよい。
As a method for performing this determination, the method can be implemented by using a method of performing threshold processing on a color difference between two arbitrary colors in RGB.
That is, if the threshold is T, the following inequality:
| RG | ≦ Trg, | GB | ≦ Tgb, | BR | ≦ Tbr
RGB satisfying the above is determined as an achromatic color.
The above inequality is a general expression, and an example of an embodiment assuming that Trg, Tgb, and Tbr have different values according to the characteristics of the device has been shown. Of course, for simplicity, Trg = Tgb = Tbr.

「実施形態3」
上記「実施形態1」では、無彩色と判定された画素であって、かつ写真画像を構成する画素が持つ特徴を有する画素である場合には、この画素に対してCMYK4色条件を指示するとし、写真画像を構成する画素が持つ特徴を有するか否かを図形描画命令に示された描画オブジェクトをチェックすることにより検知することによっても可能であるとした。しかしながら、この方法は、図形描画命令に描画オブジェクトが指示されていることを前提としており、この前提がなければ適用ができない。
Embodiment 3”
In the “embodiment 1”, if the pixel is determined to be an achromatic color and has the characteristics of the pixel constituting the photographic image, the CMYK four-color condition is designated for this pixel. It is also possible to detect whether or not a pixel constituting a photographic image has a characteristic by checking a drawing object indicated by the graphic drawing command. However, this method is based on the premise that a drawing object is specified in the graphic drawing command, and cannot be applied without this premise.

そこで、本実施形態では、描画オブジェクトの指示がない、デジタルカメラ画像やスキャナ画像などのようなページ全体がフルカラーイメージのみで構成される画像データに対して適用可能な手段により、写真画像を構成する画素であるか否かを調べる方法を提示するものである。
この実施形態では、原(ソース)画像データの注目画素(対象画素)より前の主走査方向に連なる所定の画素範囲(n画素)に有彩色画素が有れば、この画像特徴により、この注目画素を写真画像の構成画素とみなす、という原理に従う方法を用いる。従って、注目画素を対象にこのような有彩色画素の有無を調べる。この方法は、原(ソース)画像がラスタデータである場合に適した手法である。即ち、ラスタ画像として主走査方向に連なって入力されてくる画素に対し描画データを生成する処理を順次行っていくという手順をとる場合に、簡単な操作により写真画像の構成画素とみなせるか否かをチェックするという目的を実現可能とするために有効な方法である。
Therefore, in this embodiment, a photographic image is formed by means applicable to image data in which the entire page is composed of only a full color image, such as a digital camera image or a scanner image, without a drawing object instruction. A method for checking whether or not the pixel is a pixel is presented.
In this embodiment, if there is a chromatic color pixel in a predetermined pixel range (n pixels) continuous in the main scanning direction before the target pixel (target pixel) of the original (source) image data, this image feature causes this attention. A method according to the principle that a pixel is regarded as a constituent pixel of a photographic image is used. Therefore, the presence / absence of such a chromatic color pixel is examined for the target pixel. This method is suitable when the original (source) image is raster data. That is, whether or not it can be regarded as a constituent pixel of a photographic image by a simple operation when taking a procedure of sequentially performing drawing data generation processing on pixels input continuously in the main scanning direction as a raster image This is an effective method for realizing the purpose of checking.

図2は、本実施形態の原理に従って原(ソース)画像データの各画素に適用する変換条件を定める方法を具体例により説明する図である。図2に示す例は、画素番号1〜8に示す主走査方向に連なる8画素のデータを例示するものである。上段に入力RGBを示すが、ここでは各画素に対し無彩色/有彩色の判定を行った結果を表し、図中のGは無彩色(即ち、R=G=B或いはR≒G≒B)を、Cは有彩色(即ち、無彩色Gと判定されたもの以外)を示す。下段に決定原理に従って上段の各画素に対する色変換条件を定めた結果を表し、図中のK1はK単色条件(例えば、K=1.0−R、C=M=Y=0.0とする)を、4CはCMYK4色条件(例えば、BG/UCRによって4色を算出する)を示す。   FIG. 2 is a diagram illustrating a method for determining a conversion condition to be applied to each pixel of original (source) image data according to a principle of the present embodiment. The example shown in FIG. 2 exemplifies data of 8 pixels continuous in the main scanning direction indicated by pixel numbers 1 to 8. The input RGB is shown in the upper part. Here, the result of the determination of achromatic / chromatic color for each pixel is shown, and G in the figure is an achromatic color (that is, R = G = B or R≈G≈B). , C indicates a chromatic color (that is, a color other than that determined as an achromatic color G). The lower part shows the result of defining the color conversion condition for each pixel in the upper part according to the determination principle, and K1 in the figure is a K single color condition (for example, K = 1.0−R, C = M = Y = 0.0). 4C indicates a CMYK four-color condition (for example, four colors are calculated by BG / UCR).

本実施形態では、有彩色画素の有無を調べる範囲、即ち注目画素より前の(過去の)主走査方向に連なる画素数:n=4とするので、図2においては注目画素の左方向の4画素に有彩色画素があれば4C色変換を、なければK1色変換を行うという規則に従う。具体的には、画素番号1は入力RGBがG(無彩色)画素で、かつ、過去4画素(画素番号の小さい方向)にC(有彩色)画素がないのでK1条件により変換する。画素番号2は入力がC画素なので無条件に4C条件により変換する。画素番号3はG画素であるが、過去4画素以内に含まれる画素番号2にC画素があるので、4C条件により変換する。画素番号4,5,6も画素番号3と同様になる。画素番号7はG画素で、かつ、過去4画素にC画素がないのでK1条件により変換する。画素番号8も画素番号7と同様になる。
上記のような規則に従い、写真画像を構成する画素とみなされた画素(上記の例では、画素番号3,4,5,6)に対しては、CMYK4色条件で変換することを指示する。なお、この規則を入力RGBが全てG画素のデータに適用すると、出力CMYKも全ての画素がK1条件により変換される。
In the present embodiment, the range in which the presence / absence of a chromatic color pixel is examined, that is, the number of pixels connected in the main scanning direction (previous) before the target pixel: n = 4. Therefore, in FIG. The rule is that if the pixel has a chromatic color pixel, 4C color conversion is performed, and if not, K1 color conversion is performed. Specifically, pixel number 1 is converted according to the K1 condition because the input RGB is a G (achromatic) pixel and there are no C (chromatic) pixels in the past four pixels (in the smaller pixel number direction). Since the pixel number 2 is an input C pixel, it is unconditionally converted according to the 4C condition. Pixel number 3 is a G pixel, but since there is a C pixel in pixel number 2 included within the past four pixels, conversion is performed according to the 4C condition. Pixel numbers 4, 5, and 6 are the same as pixel number 3. Pixel number 7 is a G pixel, and since there are no C pixels in the past four pixels, conversion is performed according to the K1 condition. Pixel number 8 is the same as pixel number 7.
In accordance with the rules as described above, it is instructed that the pixels (pixel numbers 3, 4, 5, and 6 in the above example) regarded as the pixels constituting the photographic image are converted under the CMYK four-color condition. Note that if this rule is applied to data of all G pixels of the input RGB, all the pixels of the output CMYK are converted according to the K1 condition.

「実施形態4」
本実施形態は、描画オブジェクトの指示がない、ページ全体がフルカラーイメージのみで構成される画像データ(デジタルカメラ画像やスキャナ画像など)に対して、無彩色と判定された画素であって、かつ写真画像を構成する画素とみなせる画素である場合にCMYK4色条件を指示するために、写真画像を構成する画素が持つ特徴を有する画素であるか否かをチェックするための手法を提供するもので、この点で上記「実施形態3」と同様の目的を有する。
Embodiment 4”
In the present embodiment, pixels that are determined to be achromatic with respect to image data (such as a digital camera image or a scanner image) in which a drawing object is not specified and the entire page is composed of only a full-color image, and a photograph In order to indicate the CMYK four color conditions when the pixel can be regarded as a pixel constituting an image, a method for checking whether or not the pixel constituting the photo image has a characteristic of the pixel is provided. This point has the same purpose as that of the above-described “Embodiment 3”.

本実施形態では、上記「実施形態3」と同様に、注目画素(対象画素)の持つ画像特徴として、原(ソース)画像データの注目画素の主走査方向に連なる所定の画素範囲(n画素)における有彩色画素の有無を調べるという方法をとるが、チェックに用いる画素範囲を「実施形態3」では注目画素より前の画素としたのに対して、本実施形態では、注目画素から後の画素とすることを特徴とする。
本実施形態によると、有彩色画素の有無を調べる画素範囲を注目画素から後の画素としたことにより、先読みを必要とするものの、「実施形態3」と同様に、原画像がラスタデータである場合に適した手法で、簡単な操作により目的とするチェックを行うことを可能とし、入力画像の条件によっては、より有効な結果が得られる方法である。
In the present embodiment, as in the above “Embodiment 3”, a predetermined pixel range (n pixels) continuous in the main scanning direction of the target pixel of the original (source) image data as the image feature of the target pixel (target pixel). The pixel range used for the check is the pixel before the pixel of interest in “Embodiment 3”, whereas in this embodiment, the pixel after the pixel of interest is checked. It is characterized by.
According to the present embodiment, the pixel range for checking the presence / absence of a chromatic color pixel is set to the pixel after the target pixel, so that prefetching is required, but the original image is raster data as in “Embodiment 3”. This is a method suitable for the case, and enables a target check to be performed by a simple operation, and a more effective result can be obtained depending on the conditions of the input image.

図3は、本実施形態の原理に従って原(ソース)画像データの各画素に適用する変換条件を定める方法を具体例により説明する図である。図3に示す例は、画素番号1〜8に示す主走査方向に連なる8画素のデータを例示するものである。上段に入力RGBを示すが、ここでは各画素に対し無彩色/有彩色の判定を行った結果を表し、図中のGは無彩色(即ち、R=G=B或いはR≒G≒B)を、Cは有彩色(即ち、無彩色Gと判定されたもの以外)を示す。下段に決定原理に従って上段の各画素に対する色変換条件を定めた結果を表し、図中のK1はK単色条件(例えば、K=1.0−R、C=M=Y=0.0とする)を、4CはCMYK4色条件(例えば、BG/UCRによって4色を算出する)を示す。   FIG. 3 is a diagram illustrating a method for determining a conversion condition to be applied to each pixel of original (source) image data in accordance with the principle of the present embodiment. The example shown in FIG. 3 exemplifies data of 8 pixels connected in the main scanning direction indicated by pixel numbers 1 to 8. The input RGB is shown in the upper part. Here, the result of the determination of achromatic / chromatic color for each pixel is shown, and G in the figure is an achromatic color (that is, R = G = B or R≈G≈B). , C indicates a chromatic color (that is, a color other than that determined as an achromatic color G). The lower part shows the result of defining the color conversion condition for each pixel in the upper part according to the determination principle, and K1 in the figure is a K single color condition (for example, K = 1.0−R, C = M = Y = 0.0). 4C indicates a CMYK four-color condition (for example, four colors are calculated by BG / UCR).

本実施形態では、有彩色画素の有無を調べる範囲、即ち注目画素から後の(前方の)主走査方向に連なる画素数:n=4とするので、図3においては注目画素に対し画素番号が大きくなる方向の4画素に有彩色画素があれば4C色変換を、なければK1色変換を行うという規則に従う。具体的には、画素番号1は入力RGBがG(無彩色)画素で、かつ、前方4画素(画素番号の大きい方向)にC(有彩色)画素がないのでK1条件により変換する。画素番号2も画素番号1と同様になる。
画素番号3はG画素であるが、前方4画素以内に含まれる画素番号7にC画素があるので、4C条件により変換する。画素番号4,5,6も画素番号3と同様になる。画素番号7は入力がC画素なので無条件に4C条件により変換する。画素番号8はG画素で、かつ、前方4画素にC画素がないとして、K1条件を用いこととする。
In the present embodiment, the range in which the presence / absence of a chromatic color pixel is checked, that is, the number of pixels connected in the main scanning direction (forward) after the target pixel: n = 4. Therefore, in FIG. The rule is that 4C color conversion is performed if there are chromatic color pixels in the four pixels in the increasing direction, and K1 color conversion is performed if there is no chromatic color pixel. Specifically, pixel number 1 is converted according to the K1 condition because the input RGB is a G (achromatic) pixel and there are no C (chromatic) pixels in the front four pixels (in the larger pixel number direction). Pixel number 2 is the same as pixel number 1.
Pixel number 3 is a G pixel, but since there is a C pixel at pixel number 7 included within the front four pixels, conversion is performed according to the 4C condition. Pixel numbers 4, 5, and 6 are the same as pixel number 3. Pixel number 7 is unconditionally converted under the 4C condition because the input is a C pixel. Pixel number 8 is a G pixel, and the K1 condition is used on the assumption that there are no C pixels in the front four pixels.

上記のような規則に従い、写真画像を構成する画素とみなされた画素(上記の例では、画素番号3,4,5,6)に対しては、CMYK4色条件で変換することを指示する。なお、この規則を入力RGBが全てG画素のデータに適用すると、出力CMYKも全ての画素がK1条件により変換される。
なお、本実施形態を「実施形態3」と組み合わせることにより、有彩色画素の有無を調べる画素範囲を注目画素前後の主走査方向に連なる所定の画素範囲とする形態で実施することができる。画素毎に変換条件を定める手順は、上記した本実施形態及び「実施形態3」と同様の手順を用いる。
In accordance with the rules as described above, it is instructed that the pixels (pixel numbers 3, 4, 5, and 6 in the above example) regarded as the pixels constituting the photographic image are converted under the CMYK four-color condition. Note that if this rule is applied to data of all G pixels of the input RGB, all the pixels of the output CMYK are converted according to the K1 condition.
By combining this embodiment with “Embodiment 3”, the pixel range for checking the presence or absence of a chromatic color pixel can be implemented as a predetermined pixel range continuous in the main scanning direction before and after the pixel of interest. The procedure for determining the conversion condition for each pixel uses the same procedure as in the above-described embodiment and “Embodiment 3”.

「実施形態5」
本実施形態は、描画オブジェクトの指示がない、ページ全体がフルカラーイメージのみで構成される画像データ(デジタルカメラ画像やスキャナ画像など)に対して、無彩色であり、かつ写真画像の構成画素とみなせる場合にCMYK4色条件を指示するために、写真画像を構成する画素が持つ特徴を有する画素であるか否かをチェックするための手法を提供するもので、この点で上記「実施形態3」、「実施形態4」と同様の目的を有する。
Embodiment 5”
In the present embodiment, image data (such as a digital camera image or a scanner image) in which a drawing object is not specified and the entire page is composed of only a full color image is achromatic and can be regarded as a constituent pixel of a photographic image. In order to indicate the CMYK four color condition in this case, a method for checking whether or not the pixel constituting the photographic image is a pixel having a characteristic is provided. It has the same purpose as “Embodiment 4.”

本実施形態では、上記「実施形態3」、「実施形態4」と同様に、注目画素(対象画素)の持つ画像特徴として、原(ソース)画像データの注目画素に連なる所定の画素範囲(n画素)における有彩色画素の有無を調べるという方法をとるが、調べる画素範囲を「実施形態3」では注目画素より前の画素、また「実施形態4」では注目画素から後ろの画素としたのに対して、本実施形態では、注目画素の周囲に隣接する所定の画素範囲(例えば5×3画素など)とすることを特徴とし、この画素範囲に1画素でもC(有彩色)画素があれば、4C(CMYK4色)条件を出力とする。   In the present embodiment, as in the above “Embodiment 3” and “Embodiment 4”, a predetermined pixel range (n) connected to the target pixel of the original (source) image data as the image feature of the target pixel (target pixel). The pixel range to be examined is a pixel before the pixel of interest in “Embodiment 3”, and a pixel behind the pixel of interest in “Embodiment 4”. On the other hand, the present embodiment is characterized by a predetermined pixel range (for example, 5 × 3 pixels) adjacent to the periphery of the target pixel, and if there is even one C (chromatic color) pixel in this pixel range. 4C (CMYK 4 colors) condition is output.

本実施形態によると、有彩色画素の有無を調べる画素範囲として注目画素を中心とする隣接する所定の画素範囲としたことにより、「実施形態3」、「実施形態4」に比べて、より適正な判断結果が得られる方法である。   According to the present embodiment, the pixel range for checking the presence / absence of a chromatic pixel is set to a predetermined adjacent pixel range centered on the pixel of interest, so that it is more appropriate than “third embodiment” and “fourth embodiment”. It is a method that can obtain a correct judgment result.

図4は、本実施形態の原理に従って原(ソース)画像データの各画素に適用する変換条件を定める方法を具体例により説明する図である。図4に示す例は、X=1〜8、Y=1〜3として示す主・副走査方向に連なる画素(X,Y)のデータを例示するものである。上段に入力RGBを示すが、ここでは各画素に対し無彩色/有彩色の判定を行った結果を表し、図中のGは無彩色(即ち、R=G=B或いはR≒G≒B)を、Cは有彩色(即ち、無彩色Gと判定されたもの以外で、図中にはハッチングで示した(X,Y)=(5,2)にのみ存在する)を示す。下段に決定原理に従って上段の各画素に対する色変換条件を定めた結果を表し、図中のK1はK単色条件(例えば、K=1.0−R、C=M=Y=0.0とする)を、4CはCMYK4色条件(例えば、BG/UCRによって4色を算出する)を示す。   FIG. 4 is a diagram illustrating a method for determining a conversion condition to be applied to each pixel of original (source) image data according to a principle of the present embodiment. The example shown in FIG. 4 exemplifies data of pixels (X, Y) connected in the main / sub-scanning direction shown as X = 1-8 and Y = 1-3. The input RGB is shown in the upper part. Here, the result of the determination of achromatic / chromatic color for each pixel is shown, and G in the figure is an achromatic color (that is, R = G = B or R≈G≈B). , C indicates a chromatic color (that is, a color other than that determined to be an achromatic color G and exists only in (X, Y) = (5, 2) shown by hatching in the figure). The lower part shows the result of defining the color conversion condition for each pixel in the upper part according to the determination principle, and K1 in the figure is a K single color condition (for example, K = 1.0−R, C = M = Y = 0.0). 4C indicates a CMYK four-color condition (for example, four colors are calculated by BG / UCR).

本実施形態では、注目画素を中心とする5×3画素を有彩色画素の有無を調べる範囲として、その範囲に有彩色画素があれば4C色変換を、なければK1色変換を行うという規則に従う。具体的には、(X,Y)=(5,2)がC(有彩色)であり、その他は、G(無彩色)画素であるから、注目画素を中心とする5×3画素の範囲内にC画素(5,2)を含むことになる画素、即ち4C条件を用いる画素範囲は、図中に破線で囲まれた画素群(X,Y)=(3〜7,1〜3)となる。また、これ以外の画素範囲は、5×3画素の範囲内にC(有彩色)画素を含まないのでK1条件を用いことになる。
なお、この規則を入力RGBが全てG画素のデータに適用すると、出力CMYKも全ての画素がK1条件により変換される。
In the present embodiment, a 5 × 3 pixel centered on the target pixel is used as a range for checking the presence or absence of a chromatic color pixel, and a 4C color conversion is performed if a chromatic color pixel exists in the range, and a K1 color conversion is performed if there is no chromatic color pixel. . Specifically, since (X, Y) = (5, 2) is C (chromatic color) and the others are G (achromatic) pixels, a range of 5 × 3 pixels centering on the pixel of interest. The pixel range including the C pixel (5, 2), that is, the pixel range using the 4C condition is a pixel group (X, Y) = (3-7, 1-3) surrounded by a broken line in the drawing. It becomes. Further, since the other pixel ranges do not include C (chromatic color) pixels within the 5 × 3 pixel range, the K1 condition is used.
Note that if this rule is applied to data of all G pixels of the input RGB, all the pixels of the output CMYK are converted according to the K1 condition.

「実施形態6」
上記した画像処理装置により実現される一連の描画データの処理手順を下記に例示する実施形態に基づいて説明する。
図5は、この実施形態に係わる描画データの処理手順の1例を示すフローチャートである。
図5に示すフローチャートを参照して、本実施形態の描画データの処理について、手順を追って説明すると、ホストPC7とプリンタ1が通信インターフェースを介して通信状態を確立した後、プリンタコントローラ2は、描画データ処理のプログラムを起動し、先ず、ホストPC7から送信されてくる図形描画命令を受け取り、データ入力を行う(S101)。
Embodiment 6”
A processing procedure of a series of drawing data realized by the above-described image processing apparatus will be described based on an embodiment exemplified below.
FIG. 5 is a flowchart showing an example of a drawing data processing procedure according to this embodiment.
With reference to the flowchart shown in FIG. 5, the processing of the drawing data according to the present embodiment will be described step by step. After the host PC 7 and the printer 1 establish a communication state via the communication interface, the printer controller 2 A data processing program is started, and first, a graphic drawing command transmitted from the host PC 7 is received and data is input (S101).

次に、入力された図形描画命令は所定のフォーマットやPDL等の言語により記述されたデータであるから、この入力データを解読し、ビットマップデータに展開する前段階の中間形式の描画データを生成し、得られた中間形式のデータに基づいてRGBのビットマップデータに展開する処理(必要に応じてカラーイメージのデータ圧縮のデコード処理など)を行って、展開されたRGBデータを一旦画像メモリに格納する(S102)。なお、このビットマップデータへの展開は、後段で画素ごとに色変換条件を指示する,という本実施形態に特有の手順を行うために必要な処理である。   Next, since the input graphic drawing command is data described in a predetermined format or language such as PDL, the input data is decoded and intermediate drawing data is generated before being expanded into bitmap data. Then, based on the obtained intermediate format data, a process of developing the RGB bitmap data (decoding process of color image data compression as necessary) is performed, and the developed RGB data is temporarily stored in the image memory. Store (S102). This development to bitmap data is a process necessary for performing a procedure peculiar to the present embodiment in which a color conversion condition is designated for each pixel in the subsequent stage.

この後、展開されたRGBのビットマップデータの各画素に対して彩色判定を行う(S103)。彩色判定は、次の不等式、
|R−G|≦Trg、|G−B|≦Tgb、|B−R|≦Tbr
が成立するRGBを無彩色と判定し、それ以外を有彩色と判定する。ここに、閾値Tは、0以上の所定値とし、人間の目では判定できない程度の微小に有彩色を含む色を無彩色と判定する様な対応が可能であるが、勿論Trg=Tgb=Tbr=0(つまり、R=G=B)とする形態をとることも可能である。
Thereafter, the color determination is performed on each pixel of the developed RGB bitmap data (S103). The coloring judgment is the following inequality:
| RG | ≦ Trg, | GB | ≦ Tgb, | BR | ≦ Tbr
R, G, and B that are satisfied are determined to be achromatic colors, and other colors are determined to be chromatic colors. Here, the threshold T is set to a predetermined value of 0 or more, and it is possible to cope with such a case that a color including a chromatic color that is so minute that it cannot be determined by the human eye is determined to be an achromatic color. Of course, Trg = Tgb = Tbr It is also possible to take the form of = 0 (that is, R = G = B).

図6は、この彩色判定サブルーチンのフローチャートを示すものである。このフローでは、上記不等式が成り立つか否かをチェックし(S301)、成り立てば、無彩色と判定し(S302)、それ以外を有彩色と判定する(S303)。   FIG. 6 shows a flowchart of the coloring determination subroutine. In this flow, it is checked whether or not the above inequality holds (S301). If it is established, it is determined as an achromatic color (S302), and the other is determined as a chromatic color (S303).

次に、前段の彩色判定で無彩色と判定された画素が、写真画像を構成する画素が持つ特徴を有するか否かを調べる写真画像特徴チェックを行う(S104)。このチェックは、無彩色と判定された画素で、かつ写真画像を構成する画素とみなせる画素である場合に色変換の際にCMYK4色条件を指示するために、その前段において行うものである。
図7は、この写真画像特徴チェックサブルーチンのフローチャートを示すものである。このフローでは、先ず、チェックの対象とする注目画素が、無彩色であるか否かを調べる(S401)。これは前段で行った彩色判定の結果を引くことにより画素ごとに無彩色であるか否かを調べ、無彩色でなければ(S401−NO)、このフローを抜ける。
Next, a photographic image feature check is performed to check whether or not the pixels determined as achromatic in the previous chromatic determination have the characteristics of the pixels constituting the photographic image (S104). This check is performed in the preceding stage in order to indicate the CMYK four color conditions at the time of color conversion when the pixel is determined to be an achromatic color and can be regarded as a pixel constituting a photographic image.
FIG. 7 is a flowchart of this photographic image feature check subroutine. In this flow, first, it is checked whether or not the target pixel to be checked is an achromatic color (S401). In this process, it is checked whether or not each pixel is an achromatic color by subtracting the result of the color determination performed in the previous stage. If it is not an achromatic color (S401-NO), this flow is exited.

他方、無彩色の場合には(S401−YES)、注目画素に隣接する所定の画素範囲に有彩色画素があるか否かをチェックする(S402)。
この写真画像特徴チェックは、注目画素に隣接する所定の画素範囲の設定方法により異なる実施形態をとることが可能であり、次に示す(1)〜(4)の方法をとることができる。
(1)注目画素より前の主走査方向に連なる所定の画素範囲(例えば、図2に関する説明参照)
(2)注目画素から後の主走査方向に連なる所定の画素範囲(例えば、図3に関する説明参照)
(3)注目画素前後の主走査方向に連なる所定の画素範囲(上記(1),(2)を併用する方法である)
(4)注目画素の周囲に隣接する所定の画素範囲(例えば、図4に関する説明参照)
On the other hand, in the case of an achromatic color (S401-YES), it is checked whether or not there is a chromatic color pixel in a predetermined pixel range adjacent to the target pixel (S402).
This photographic image feature check can take different embodiments depending on the method of setting a predetermined pixel range adjacent to the pixel of interest, and can take the following methods (1) to (4).
(1) A predetermined pixel range that continues in the main scanning direction before the target pixel (for example, see the description regarding FIG. 2).
(2) A predetermined pixel range that continues in the main scanning direction after the target pixel (for example, see the description regarding FIG. 3).
(3) Predetermined pixel range in the main scanning direction before and after the target pixel (this is a method using (1) and (2) in combination)
(4) A predetermined pixel range adjacent to the periphery of the pixel of interest (for example, see the description regarding FIG. 4)

ところで、上記したような(1)〜(4)の画素範囲の設定のバリエーションでは、注目画素より前の画素範囲とする(1)が、最も処理を簡略化できる方法で、次に注目画素前後の画素範囲とする(3)、注目画素から後の画素範囲とする(2)、注目画素の周囲を画素範囲とする(4)の順になる。これは、描画データの処理は基本的に入力順、即ち主走査方向に連なる画素の順に処理を行っていく方法によるので、先読みを必要とする上記(2),(3)の方法、しかも後のラインの画素に対する先読みも必要とする上記(4)の方法は、より処理手順を複雑化するからである。また、上記(1)〜(4)の画素範囲の設定のバリエーションにおいて、写真画像を構成する画素とみなせるか否かの判定精度は、上記した処理の簡略化と逆の順になり、注目画素の周囲を画素範囲とする(4)が、最も精度を上げることが可能な方法となる。   By the way, in the variation of the pixel range setting of (1) to (4) as described above, the pixel range before the target pixel (1) is the method that can simplify the processing most easily, and next (3), the pixel range after the pixel of interest (2), and the pixel range around the pixel of interest (4). This is because the drawing data is processed basically in the order of input, that is, in the order of pixels that are continuous in the main scanning direction. Therefore, the above methods (2) and (3) that require pre-reading, and later This is because the method (4), which also requires pre-reading for the pixels of this line, complicates the processing procedure. In addition, in the pixel range setting variations (1) to (4) described above, the determination accuracy as to whether or not the pixel can be regarded as a pixel constituting the photographic image is in the reverse order of the simplification of the processing described above. The periphery (4) is the method that can increase the accuracy most.

なお、画素範囲の設定を上記(2)〜(4)とする場合には、その前提として設定された範囲の画素のうち必要な画素に対して先読みを行い、彩色判定ステップ(S103)において無彩色/有彩色を判定し、予め彩色の判定結果を取得しておくことが必要になる。   When the pixel range is set to (2) to (4) above, pre-reading is performed on necessary pixels among the pixels in the range set as the premise, and there is no processing in the coloring determination step (S103). It is necessary to determine chromatic color / chromatic color and obtain a chromatic determination result in advance.

図7のフローでは、画素範囲の設定を異にする上記のような方法のいずれかを用い、設定画素範囲に有彩色画素があるか否かをチェックした結果、ある場合には(S402−YES)、写真画像の特徴を持つ、即ち写真画像を構成する画素とみなせる画素であるという判定結果を得(S403)、このフローを抜ける。チェックの結果、有彩色画素がない場合には(S402−NO)、何もしないでこのフローを抜ける。   In the flow of FIG. 7, if any of the above-described methods with different pixel range settings is used to check whether there is a chromatic color pixel in the set pixel range, if any (S402—YES) ), A determination result indicating that the pixel has the characteristics of a photographic image, that is, a pixel that can be regarded as a pixel constituting the photographic image is obtained (S403), and this flow is exited. As a result of the check, if there is no chromatic color pixel (S402-NO), this flow is exited without doing anything.

次に、前段で写真画像特徴がチェックされた画素に対して、チェック結果に従った色変換を行わせるために色変換条件の指示を行う(S105)。本実施形態では、無彩色と判定された画素に対して、Kのみを使用しCMYを使用しないK単色変換、或いはCMYK4色を使用する変換のいずれかを適用可能とする。ここでは、この異なる2つの色変換条件を、写真画像の特徴を持つ、即ち写真画像を構成する画素とみなせる画素であるか否かによって使い分ける。   Next, a color conversion condition is instructed in order to perform color conversion according to the check result for the pixel whose photographic image feature is checked in the previous stage (S105). In the present embodiment, any one of K single color conversion using only K and not using CMY or conversion using four colors of CMYK can be applied to a pixel determined to be an achromatic color. Here, the two different color conversion conditions are selectively used depending on whether or not the pixel has the characteristics of a photographic image, that is, is a pixel that can be regarded as a pixel constituting the photographic image.

従って、写真画像の無彩色画素に対しては、その画像を構成する有彩色画素と同じCMYK4色による色変換条件を適用することにより、周辺の画素と階調連続性を保ち、グレイ部分とほぼグレイに近い有彩色部分との境に生じる“まだら模様”の発生を防止し、黒文字やグラフの黒罫線などの無彩色画素に対しては、K単色ですっきりとした画像を形成することを可能にする。   Therefore, by applying the same color conversion conditions based on the four CMYK colors as the chromatic pixels constituting the image to the achromatic color pixel of the photographic image, the gradation continuity with the surrounding pixels is maintained, and the gray portion is almost the same. Prevents the occurrence of "mottled patterns" that occur at the border with chromatic parts close to gray, and can form a clear image with K single color for achromatic pixels such as black characters and black ruled lines in graphs. To.

図8は、この色変換条件の指示を行うためのサブルーチンのフローチャートを示すものである。このフローでは、先ず、チェックの対象とする画素が、無彩色であるか否かを調べる(S501)。これは前段(S103)で行った彩色判定の結果を引用することにより画素ごとに無彩色であるか否かを調べ、無彩色でなければ(S501−NO)、有彩色として扱うので、フルカラーのイメージデータに対して通常用いるCMYK4色による色変換条件の適用を指示した後(S504)、このフローを抜ける。   FIG. 8 shows a flowchart of a subroutine for instructing the color conversion condition. In this flow, first, it is checked whether or not the pixel to be checked is an achromatic color (S501). This is done by quoting the result of the color determination performed in the previous stage (S103) to check whether or not each pixel is an achromatic color. If it is not an achromatic color (S501-NO), it is treated as a chromatic color. After instructing the application of the color conversion conditions using the CMYK four colors that are normally used for the image data (S504), this flow is exited.

他方、無彩色であるか否かを調べた結果、無彩色であれば(S501−YES)、前段(S104)で行った写真画像特徴チェックによる判定の結果を引用することにより写真画像を構成する画素とみなせる画素であるか否かを調べ(S502)、YESであれば、写真画像の無彩色画素として扱うので、CMYK4色による色変換条件の適用を指示した後(S504)、このフローを抜ける。また、写真画像を構成する画素とみなせる画素でなければ(S502−NO)、黒文字やグラフの黒罫線などの無彩色画素として扱うので、K単色による色変換条件の適用を指示した後(S503)このフローを抜ける。   On the other hand, as a result of examining whether or not the color is achromatic, if it is achromatic (S501-YES), a photographic image is constructed by quoting the result of the photographic image feature check performed in the previous stage (S104). Whether or not the pixel can be regarded as a pixel is checked (S502). If YES, it is treated as an achromatic pixel of the photographic image, so that the application of the color conversion condition using CMYK four colors is instructed (S504), and then this flow is exited. . If it is not a pixel that can be regarded as a pixel constituting a photographic image (NO in S502), it is treated as an achromatic pixel such as a black character or a black ruled line of a graph. Exit this flow.

次に、前段で色変換条件の指示された画素に対して、指示結果に従った色変換を行わせる(S106)。本実施形態では、K単色変換条件を指示された画素に対しては、例えば、「K=1.0−R、C=M=Y=0.0」、を変換条件として、Kのみを使用しCMYを使用しない色変換を行う。また、CMYK4色変換条件を指示された画素に対しては、例えば、一般的に使用されているBG/UCR変換の色変換を行う。
次いで、前段で画素毎に色変換を施して得たCMYKイメージデータに対して図形描画処理を行う(S107)。ここでは、CMYKイメージデータをもとにCMYK毎にその図形をビットマップデータに展開しながら、ページメモリに描画データを生成する処理を行い、擬似階調処理としてディザパターンを用いてビットマップ展開する処理を含む。
このようにして行われる描画データの一連の処理に従って、1ページ分の描画命令に対する処理が終了したところで、CMYK各色のページメモリの内容を紙等の記録媒体に印刷するプリンタエンジンに出力し(S108)、描画データの処理フローを終了する。
Next, color conversion according to the instruction result is performed on the pixel for which the color conversion condition is specified in the previous stage (S106). In the present embodiment, for a pixel for which the K monochrome conversion condition is instructed, for example, “K = 1.0−R, C = M = Y = 0.0” is used as the conversion condition, and only K is used. Then, color conversion without using CMY is performed. In addition, for pixels for which CMYK four-color conversion conditions are instructed, for example, commonly used BG / UCR conversion color conversion is performed.
Next, graphic drawing processing is performed on the CMYK image data obtained by performing color conversion for each pixel in the previous stage (S107). Here, the drawing data is generated in the page memory while developing the figure into bitmap data for each CMYK based on the CMYK image data, and the bitmap is developed using the dither pattern as the pseudo gradation processing. Includes processing.
When the processing for the drawing command for one page is completed according to the series of processing of drawing data performed in this way, the contents of the page memory for each color of CMYK are output to a printer engine that prints on a recording medium such as paper (S108). ), The drawing data processing flow ends.

本発明の実施形態に係わるプリンタの概略構成を示す図である。1 is a diagram illustrating a schematic configuration of a printer according to an embodiment of the present invention. 写真画像を構成する画素が持つ画像特徴を有するか否かをチェックし、変換条件を定める方法の原理(その1)を説明する図である。It is a figure explaining the principle (the 1) of the method which checks whether it has the image characteristic which the pixel which comprises a photograph image has, and defines conversion conditions. 写真画像を構成する画素が持つ画像特徴を有するか否かをチェックし、変換条件を定める方法の原理(その2)を説明する図である。It is a figure explaining the principle (the 2) of the method which checks whether it has the image characteristic which the pixel which comprises a photograph image has, and determines conversion conditions. 写真画像を構成する画素が持つ画像特徴を有するか否かをチェックし、変換条件を定める方法の原理(その3)を説明する図である。It is a figure explaining the principle (the 3) of the method which checks whether it has the image characteristic which the pixel which comprises a photograph image has, and determines conversion conditions. 本発明の実施形態に係わる描画データの処理手順の1例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the drawing data concerning embodiment of this invention. 図5の描画データの処理手順に示される「彩色判定」サブルーチンのフローチャートを示す。6 is a flowchart of a “coloration determination” subroutine shown in the drawing data processing procedure of FIG. 5. 図5の描画データの処理手順に示される「写真画像特徴チェック」サブルーチンのフローチャートを示す。6 is a flowchart of a “photo image feature check” subroutine shown in the drawing data processing procedure of FIG. 5. 図5の描画データの処理手順に示される「色変換条件の指示」サブルーチンのフローチャートを示す。6 is a flowchart of a “color conversion condition instruction” subroutine shown in the drawing data processing procedure of FIG. 5.

符号の説明Explanation of symbols

1・・・プリンタ、2・・・プリンタコントローラ、3・・・イメージ色変換部、31・・・色変換判定部、32・・・CMYK変換部、33・・・K変換部、34・・・画像メモリ(2)、10・・・インタープリタ、11・・・展開処理部、12・・・図形描画処理部、14・・・CPU、20・・・画像メモリ(1)、23・・・ページメモリ、4・・・プリンタエンジン、7・・・ホストPC。 DESCRIPTION OF SYMBOLS 1 ... Printer, 2 ... Printer controller, 3 ... Image color conversion part, 31 ... Color conversion determination part, 32 ... CMYK conversion part, 33 ... K conversion part, 34 ... Image memory (2), 10 ... interpreter, 11 ... development processing unit, 12 ... graphic drawing processing unit, 14 ... CPU, 20 ... image memory (1), 23 ... Page memory, 4 ... printer engine, 7 ... host PC.

Claims (14)

フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理手段を有する画像処理装置であって、
前記描画データ処理手段は、フルカラーの原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手段と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手段と、前記原画像データをカラー印刷用のCMYKデータへ異なる変換条件で変換し得る色変換手段と、前記彩色判定手段により無彩色と判定された画素であって、前記画像特徴判定手段により写真画像を構成する画素の特徴を有すると判定された画素に対して、前記変換条件としてCMYKを使用する通常変換条件を前記色変換手段に指示する変換条件指示手段を備えたことを特徴とする画像処理装置。
An image processing apparatus having drawing data processing means for generating graphic drawing data according to a graphic drawing command based on full-color image data,
The drawing data processing means includes color determination means for determining whether each pixel of full-color original image data is a chromatic color or an achromatic color, and features of pixels in which each pixel of the original image data constitutes a photographic image An image feature determining unit that determines whether or not the image data includes color conversion unit that can convert the original image data into CMYK data for color printing under different conversion conditions, and pixels that are determined to be achromatic by the chromatic determination unit A conversion condition for instructing the color conversion unit to perform a normal conversion condition using CMYK as the conversion condition for a pixel determined by the image feature determination unit to have a feature of a pixel constituting a photographic image. An image processing apparatus comprising an instruction unit.
フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理手段を有する画像処理装置であって、
前記描画データ処理手段は、フルカラーの原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手段と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手段と、前記原画像データをカラー印刷用のCMYKデータへ異なる変換条件で変換し得る色変換手段と、前記彩色判定手段により無彩色と判定された画素であって、前記画像特徴判定手段により写真画像を構成する画素の特徴を有しないと判定された画素に対して、前記変換条件としてKのみを使用しCMYを使用しないK単色変換条件を前記色変換手段に指示する変換条件指示手段を備えたことを特徴とする画像処理装置。
An image processing apparatus having drawing data processing means for generating graphic drawing data according to a graphic drawing command based on full-color image data,
The drawing data processing means includes color determination means for determining whether each pixel of full-color original image data is a chromatic color or an achromatic color, and features of pixels in which each pixel of the original image data constitutes a photographic image An image feature determining unit that determines whether or not the image data includes color conversion unit that can convert the original image data into CMYK data for color printing under different conversion conditions, and pixels that are determined to be achromatic by the chromatic determination unit And a color conversion condition that uses only K as the conversion condition and does not use CMY as the conversion condition for the pixel determined not to have the characteristics of the pixels constituting the photographic image by the image feature determination means. An image processing apparatus comprising conversion condition instruction means for instructing the conversion means.
請求項1又は2に記載された画像形成装置において、前記彩色判定手段は、RGBの各成分データ値が等しいときに無彩色と判定することを特徴とする画像処理装置。   3. The image processing apparatus according to claim 1, wherein the color determination unit determines an achromatic color when the RGB component data values are equal. 4. 請求項1又は2に記載された画像処理装置において、前記彩色判定手段は、RGBの各成分データ値の差分がそれぞれ所定の閾値以内であるときに無彩色と判定することを特徴とする画像処理装置。   3. The image processing apparatus according to claim 1, wherein the color determining unit determines that the color is achromatic when the difference between the RGB component data values is within a predetermined threshold value. 4. apparatus. 請求項1乃至4のいずれかに記載された画像処理装置において、前記色変換手段における異なる変換条件を、Kのみを使用しCMYを使用しないK単色変換条件及びCMYKを使用する通常変換条件とし、これらを無彩色と判定された画素に適用する色変換条件としたことを特徴とする画像処理装置。   5. The image processing apparatus according to claim 1, wherein the different conversion conditions in the color conversion means are a K single color conversion condition that uses only K and does not use CMY, and a normal conversion condition that uses CMYK, An image processing apparatus characterized in that these are color conversion conditions to be applied to pixels determined to be achromatic colors. フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理方法であって、
フルカラー原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手順と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手順と、前記彩色判定手順で無彩色と判定された画素であって、前記画像特徴判定手順により写真画像を構成する画素の特徴を有すると判定された画素に対して、前記変換条件としてCMYKを使用する通常変換条件を前記色変換を指示する変換条件指示手順と、前記指示に従って前記原画像データを印刷用のCMYKデータへ変換する色変換手順と、を有することを特徴とする描画データ処理方法。
A drawing data processing method for generating graphic drawing data according to a graphic drawing command based on full-color image data,
A chromatic determination procedure for determining whether each pixel of the full-color original image data is a chromatic color or an achromatic color, and determining whether each pixel of the original image data has the characteristics of the pixels constituting the photographic image An image feature determination procedure, and a pixel that has been determined to be an achromatic color in the chromatic determination procedure and that has been determined to have a feature of a pixel that constitutes a photographic image by the image feature determination procedure, the conversion condition A rendering condition comprising: a conversion condition instruction procedure for instructing the color conversion as a normal conversion condition using CMYK as a color conversion procedure; and a color conversion procedure for converting the original image data into CMYK data for printing in accordance with the instruction. Data processing method.
フルカラー画像データに基づく図形描画命令に従い図形描画データを生成する描画データ処理方法であって、
フルカラー原画像データの各画素が有彩色・無彩色のいずれであるかを判定する彩色判定手順と、前記原画像データの各画素が写真画像を構成する画素の特徴を有するか否かを判定する画像特徴判定手順と、前記彩色判定手順により無彩色と判定された画素であって、前記画像特徴判定手順により写真画像を構成する画素の特徴を有しないと判定された画素に対して、前記変換条件としてKのみを使用しCMYを使用しないK単色変換条件を前記色変換手段に指示する変換条件指示手順と、前記指示に従って前記原画像データを印刷用のKデータへ変換する色変換手順と、を有することを特徴とする描画データ処理方法。
A drawing data processing method for generating graphic drawing data according to a graphic drawing command based on full-color image data,
A chromatic determination procedure for determining whether each pixel of the full-color original image data is a chromatic color or an achromatic color, and determining whether each pixel of the original image data has the characteristics of the pixels constituting the photographic image An image feature determination procedure and a pixel that has been determined to be achromatic by the chromatic determination procedure and that has been determined not to have a feature of a pixel that constitutes a photographic image by the image feature determination procedure. A conversion condition instruction procedure for instructing the color conversion means to use a K single color conversion condition without using CMY as a condition, and a color conversion procedure for converting the original image data into K data for printing according to the instruction; A drawing data processing method characterized by comprising:
請求項6又は7に記載された描画データ処理方法において、前記彩色判定手順は、RGBの各成分データ値が等しいときに無彩色と判定することを特徴とする描画データ処理方法。   8. The drawing data processing method according to claim 6, wherein the coloring determination procedure determines that the color is achromatic when the RGB component data values are equal. 請求項6又は7に記載された描画データ処理方法において、前記彩色判定手順は、RGBの各成分データ値の差分がそれぞれ所定の閾値以内であるときに無彩色と判定することを特徴とする描画データ処理方法。   8. The drawing data processing method according to claim 6, wherein the coloring determination procedure determines an achromatic color when a difference between RGB component data values is within a predetermined threshold value. Data processing method. 請求項6乃至9のいずれかに記載された描画データ処理方法において、無彩色と判定された画素に適用する前記色変換条件を、Kのみを使用しCMYを使用しないK単色変換条件及びCMYKを使用する通常変換条件としたことを特徴とする描画データ処理方法。   10. The drawing data processing method according to claim 6, wherein the color conversion condition to be applied to a pixel determined to be an achromatic color is a K single color conversion condition that uses only K and does not use CMY, and CMYK. A drawing data processing method, characterized in that the normal conversion conditions are used. 請求項6乃至10のいずれかに記載された描画データ処理方法の各処理手順をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute each processing procedure of the drawing data processing method according to claim 6. 請求項11に記載されたプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 11 is recorded. プリンタコントローラに請求項11に記載されたプログラムを搭載したことを特徴とする印刷装置。   A printing apparatus comprising the program according to claim 11 installed in a printer controller. 請求項11に記載されたプログラムを含むプリンタドライバを搭載したコンピュータよりなるホスト装置。   A host device comprising a computer on which a printer driver including the program according to claim 11 is mounted.
JP2007279209A 2007-10-26 2007-10-26 Image processing apparatus, drawing data processing method, and program for executing the method Expired - Fee Related JP4421646B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007279209A JP4421646B2 (en) 2007-10-26 2007-10-26 Image processing apparatus, drawing data processing method, and program for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007279209A JP4421646B2 (en) 2007-10-26 2007-10-26 Image processing apparatus, drawing data processing method, and program for executing the method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003108018A Division JP4148511B2 (en) 2003-04-11 2003-04-11 Image processing apparatus, drawing data processing method, and program for executing the method

Publications (2)

Publication Number Publication Date
JP2008086033A true JP2008086033A (en) 2008-04-10
JP4421646B2 JP4421646B2 (en) 2010-02-24

Family

ID=39356329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007279209A Expired - Fee Related JP4421646B2 (en) 2007-10-26 2007-10-26 Image processing apparatus, drawing data processing method, and program for executing the method

Country Status (1)

Country Link
JP (1) JP4421646B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011077697A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Image processing device, image forming device, and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011077697A (en) * 2009-09-29 2011-04-14 Brother Industries Ltd Image processing device, image forming device, and image processing program
US8792135B2 (en) 2009-09-29 2014-07-29 Brother Kogyo Kabushiki Kaisha Image processing device, computer program product including image processing program embodied on computer readable medium, and image forming apparatus

Also Published As

Publication number Publication date
JP4421646B2 (en) 2010-02-24

Similar Documents

Publication Publication Date Title
JP4148511B2 (en) Image processing apparatus, drawing data processing method, and program for executing the method
US7940425B2 (en) Image processing apparatus and method controlling the amount of transparent ink for recording
US8724173B2 (en) Control apparatus, controlling method, program and recording medium
JP4366089B2 (en) Image forming apparatus and method
JP2008108006A (en) Print control device, print control method, program and storage medium
US8610957B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable medium
US20130057881A1 (en) Image processing device and image processing method
US9124732B2 (en) Image processing apparatus, image processing method, and program for the same
EP2429173B1 (en) Image forming apparatus, printing control terminal apparatus, and image forming method thereof
JP4421646B2 (en) Image processing apparatus, drawing data processing method, and program for executing the method
JP2009071695A (en) Image processor, image processing method, program, and storage medium
JP6558888B2 (en) Apparatus, printing apparatus, printing control method, and program
JP2012249171A (en) Image forming apparatus, drawing processing method, program and recording medium
US8004718B2 (en) Post RIP trapping
JP4404016B2 (en) Driver program
JP2018107649A (en) Image processing device and computer program
JP2004174964A (en) Printing control device, method for processing data thereof, and memory medium housing computer readable program
JP2006270567A (en) Image forming apparatus, and image forming method
JP2010178012A (en) Image processing system, and image processing method
JP2006135395A (en) Image forming device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090714

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090910

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091111

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091202

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

Free format text: PAYMENT UNTIL: 20121211

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4421646

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20131211

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees