JP2008177882A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2008177882A JP2008177882A JP2007009798A JP2007009798A JP2008177882A JP 2008177882 A JP2008177882 A JP 2008177882A JP 2007009798 A JP2007009798 A JP 2007009798A JP 2007009798 A JP2007009798 A JP 2007009798A JP 2008177882 A JP2008177882 A JP 2008177882A
- Authority
- JP
- Japan
- Prior art keywords
- color space
- image
- data
- attribute
- unit
- 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)
- Color Image Communication Systems (AREA)
Abstract
【課題】オブジェクトに応じて適切に画像処理を行う。
【解決手段】ページ記述言語で記述された印刷データからラスタデータを判定するコマンド解析部202と、ラスタデータがRGB色空間で構成されているかどうかを判定する色空間判定部203と、RGB色空間と判定されたとき、ラスタデータをYCbCr色空間に変換する色空間変換部204と、YCbCr色空間で構成されたラスタデータの各画素から画像データの属性を判定する属性判定部205と、判定された属性に基づいてRGB色空間で構成されたラスタデータを処理する中間データ生成部206およびレンダリング部207を備えている。
【選択図】図5Image processing is appropriately performed according to an object.
A command analysis unit 202 that determines raster data from print data described in a page description language, a color space determination unit 203 that determines whether raster data is configured in an RGB color space, and an RGB color space Are determined, a color space conversion unit 204 that converts raster data into a YCbCr color space, and an attribute determination unit 205 that determines image data attributes from each pixel of raster data configured in the YCbCr color space. An intermediate data generation unit 206 and a rendering unit 207 that process raster data configured in an RGB color space based on the attribute.
[Selection] Figure 5
Description
本発明は、複数色による画像形成を行う複写機、プリンタ、印刷機等の画像処理装置に関する。 The present invention relates to an image processing apparatus such as a copying machine, a printer, or a printing machine that performs image formation with a plurality of colors.
現在、多くのプリンタは、印刷対象であるオブジェクト(テキスト、グラフィックス、ラスタ等)の種類に応じて色変換処理やハーフトーンパターン等を切り替え、最適な印刷結果を得る技術を備えている。例えば、文字、グラフィックス等のベクタオブジェクトは、スクリーンの線数を高い解像度に設定し、文字のエッジをはっきりさせたり、グラデーションのパターンを目立たなくさせるようにしている。また、写真等のラスタデータは、スクリーン線数を低めの設定とし、色の変化を滑らかにした階調性を重視したものになっている。さらに、色変換処理についても、テキストやグラフィックスは、彩度を重視したカラーテーブルを使用し、写真については、自然な色が表現できるような階調性を重視したカラーテーブルを使用して、色変換を行っている。 Currently, many printers have a technique for obtaining an optimal print result by switching color conversion processing, halftone pattern, and the like according to the type of object (text, graphics, raster, etc.) to be printed. For example, in a vector object such as a character or a graphic, the number of lines on the screen is set to a high resolution so that the edge of the character becomes clear or the gradation pattern becomes inconspicuous. In addition, raster data such as photographs emphasizes the gradation that makes the change in color smooth by setting the number of screen lines to be low. In addition, for color conversion processing, text and graphics use a color table that emphasizes saturation, and for photos, a color table that emphasizes gradation so that natural colors can be expressed, Color conversion is performed.
しかしながら、パーソナルコンピュータの画面上では、テキストやグラフィックスで描画されているが、PDL(Page Description Language)の種類によって、ラスタデータとして生成される場合がある。プリンタへ送信されるPDLコマンドデータに含まれるラスタデータは、写真データ(自然画)ばかりではない。オブジェクトの種類に応じて画像処理を行っても、印刷結果が最適でない場合がある。 However, although it is drawn as text or graphics on the screen of a personal computer, it may be generated as raster data depending on the type of PDL (Page Description Language). The raster data included in the PDL command data transmitted to the printer is not only photographic data (natural image). Even if image processing is performed according to the type of object, the print result may not be optimal.
例えば、図3、4に示すように、同じ赤い長方形をアプリケーションで描画した場合でも、ベクタグラフィックス(グラフィックス)でPDLコマンドデータが生成されたとき、図3のような印刷画像となる。ラスタデータ(ラスタ画像)でPDLコマンドデータが生成されたとき、図4のような印刷画像となる。このように、PDLコマンドデータを受けた画像処理装置において、異なるカラーテーブルやハーフトーンが使用されるため、パーソナルコンピュータの画面上では同じに見えるオブジェクトが印刷結果では異なったものになってしまう。 For example, as shown in FIGS. 3 and 4, even when the same red rectangle is drawn by an application, when PDL command data is generated by vector graphics (graphics), a print image as shown in FIG. 3 is obtained. When PDL command data is generated with raster data (raster image), a print image as shown in FIG. 4 is obtained. In this way, since different color tables and halftones are used in the image processing apparatus that has received the PDL command data, objects that look the same on the screen of the personal computer will be different in the print result.
ここで、特許文献1に開示された技術は、画像の種類と画素数から注目するラスタデータの判定を行い、この判定結果に応じて最適な画像処理を行う方法が開示されている。
特許文献1に開示された技術では、ラスタデータに含まれる画素の種類および画素数から明度、彩度、色数をカウントし、その結果からラスタ画像の種別を判定している。しかし、画像の種別を確実に判定するためには、ビットマップを構成する画素の種類を細かく分類し、カウントする必要があった。そのため、判定に対する処理が複雑となる。
In the technique disclosed in
本発明は、上記に鑑み、オブジェクトに応じて、簡単にかつ適切に画像処理を行える画像処理装置の提供を目的とする。 In view of the above, an object of the present invention is to provide an image processing apparatus that can easily and appropriately perform image processing according to an object.
本発明は、ページ記述言語で記述された印刷データからオブジェクトの種類を判定する種類判定部と、オブジェクトの画像データを第1の色空間から第2の色空間に色空間変換する色空間変換部と、色空間変換された画像データの属性を判定する属性判定部と、オブジェクトの種類および属性に基づいて印刷データを画像処理して、印刷用の画像データを生成する画像処理部とを備えたものである。 The present invention relates to a type determination unit that determines the type of an object from print data described in a page description language, and a color space conversion unit that converts image data of an object from a first color space to a second color space. And an attribute determination unit that determines the attribute of the image data subjected to color space conversion, and an image processing unit that performs image processing on the print data based on the type and attribute of the object to generate image data for printing. Is.
これにより、オブジェクトの種類および属性が判明するので、最適な画像処理を選択することができる。すなわち、種類判定部は、オブジェクトの種類がラスタ画像かベクタ画像かを判定する。ベクタ画像と判定されると、属性判定部は、オブジェクトの属性を文字/グラフィックスと判定する。 As a result, the type and attribute of the object can be determined, and the optimum image processing can be selected. That is, the type determination unit determines whether the type of the object is a raster image or a vector image. If it is determined as a vector image, the attribute determination unit determines the attribute of the object as character / graphics.
ラスタ画像と判定されたとき、オブジェクトの画像データが第1の色空間を使用している場合、色空間変換部は、画像データを第2の色空間に変換する。属性判定部は、画像データのカラー属性を判定する。 If the image data of the object uses the first color space when it is determined as a raster image, the color space conversion unit converts the image data to the second color space. The attribute determination unit determines the color attribute of the image data.
具体的には、種類判定部により、ラスタ画像と判定されたとき、そのラスタデータが第1の色空間で構成されているかどうかを判定する色空間判定部を備える。色空間判定部により、第1の色空間と判定されたとき、色空間変換部がラスタデータを第2の色空間に変換する。そして、属性判定部は、第2の色空間で構成されたラスタデータの各画素から画像データの属性を判定する。画像処理部は、判定された属性に基づいて第1の色空間で構成されたラスタデータを処理する。ここで、第1の色空間はRGB色空間で構成され、第2の色空間はYCbCr色空間で構成される。色空間判定部により、第1の色空間でないと判定された場合、色空間変換は行わず、属性判定部は、ラスタデータの各画素から画像データの属性を判定する。 Specifically, a color space determination unit that determines whether or not the raster data is configured in the first color space when the type determination unit determines that the image is a raster image. When the color space determination unit determines that the color space is the first color space, the color space conversion unit converts the raster data into the second color space. The attribute determining unit determines the attribute of the image data from each pixel of the raster data configured in the second color space. The image processing unit processes the raster data configured in the first color space based on the determined attribute. Here, the first color space is composed of an RGB color space, and the second color space is composed of a YCbCr color space. When the color space determination unit determines that the color space is not the first color space, color space conversion is not performed, and the attribute determination unit determines the attribute of the image data from each pixel of the raster data.
属性判定部は、第2の色空間で構成されたラスタデータのうち、各画素の輝度値が一定であるか否かによって、当該ラスタデータの属性を決定する。これにより、ベタ画像であるか否かが決まる。 The attribute determining unit determines an attribute of the raster data depending on whether or not the luminance value of each pixel is constant among the raster data configured in the second color space. This determines whether the image is a solid image.
属性判定部は、第2の色空間で構成されたラスタデータのうち、各画素の色差値が一定であるか否かによって、当該ラスタデータの属性を決定する。これにより、カラー属性がカラーあるいはグレーに決まる。 The attribute determination unit determines an attribute of the raster data depending on whether or not the color difference value of each pixel is constant among the raster data configured in the second color space. As a result, the color attribute is determined to be color or gray.
本発明によると、オブジェクトの属性だけでなくラスタデータの特性から、そのラスタデータが自然画像かベタ画像かを判定することにより、各オブジェクトに対して簡単にかつ最適な画像処理を行うことが可能となる。 According to the present invention, it is possible to easily and optimally perform image processing on each object by determining whether the raster data is a natural image or a solid image from the characteristics of the raster data as well as the object attributes. It becomes.
本実施形態の画像処理装置を図1に示す。本画像処理装置はデジタル複合機であり、装置外部から与えられる画像データに基づき、用紙Paに対してフルカラーまたはモノクロの画像を形成した用紙Pbを出力する。画像処理装置は、露光ユニット19と、感光体ドラム12a〜12dと、現像装置13a〜13dと、トナーカートリッジ23a〜23dと、画像を形成するための中間転写ベルト11、二次転写ローラ14、および一次転写ローラと、加熱ローラ(定着ローラとも言う)および加圧ローラからなる定着ユニット21と、用紙さばきローラ16と、排紙トレイ18とを備えている。なお、図1において、用紙の搬送路は一点鎖線で示されており、搬送ローラを含む所定のローラ等により用紙が搬送路を導かれるが、詳しい説明は省略する。
An image processing apparatus of this embodiment is shown in FIG. This image processing apparatus is a digital multi-function peripheral, and outputs a paper Pb on which a full color or monochrome image is formed on a paper Pa based on image data given from the outside of the apparatus. The image processing apparatus includes an
この画像処理装置は、ブラック(K)、並びに減法混色の3原色であるシアン(C)、マゼンタ(M)、およびイエロー(Y)からなる4色の各色相に対応した画像データに基づき画像形成を行う。例えば、画像処理装置には、ブラックの画像形成を行うため、感光体ドラム12a、現像装置13a、帯電ローラおよびクリーニングユニットが備えられ、他の3色の画像形成を行うため、同様の構成(感光体ドラム12b〜12dおよび現像装置13b〜13d等)が備えられている。これらの構成要素は、中間転写ベルト11の移動方向に沿って図1に示されるように一列に配置されている。
This image processing apparatus forms an image based on image data corresponding to each hue of four colors including black (K) and three subtractive primary colors, cyan (C), magenta (M), and yellow (Y). I do. For example, the image processing apparatus includes a
帯電ローラは、像の担持体である感光体ドラム12a〜12dの表面を所定の電位になるよう均一に帯電させる接触方式の帯電器である。なお、本実施形態では帯電装置として上記帯電ローラを使用しているが、使用される帯電装置は上記帯電ローラに限定されるものではなく、例えばファーブラシ、磁気ブラシ、コロナワイヤーを使用するものや、ノコ歯状のもの、またはイオン発生装置等、感光体に対して所望の帯電電位を付与するものであれば、使用可能である。
The charging roller is a contact-type charger that uniformly charges the surfaces of the
レーザビーム走査装置である露光ユニット19は、半導体レーザと、ポリゴンミラー15と、複数の反射ミラー等とを含んでいる。ブラック、シアン、マゼンタ、およびイエローの各色相に対応した画像データに基づき変調された4つのレーザビームのそれぞれが、対応する感光体ドラム12a〜12dの表面に照射される。このことにより、感光体ドラム12a〜12dの表面には、ブラック、シアン、マゼンタ、およびイエロー各色相に対応した画像データに基づく静電潜像が形成される。なお、上記半導体レーザに代えて、例えばELやLEDなどをアレイ状に配列した周知の書込みヘッドを使用してもよい。
The
トナーカートリッジ23a〜23dは、現像装置13a〜12dの上部近傍に着脱自在に取り付けられ、ブラック、シアン、マゼンタ、またはイエローの色相に対応した現像剤であるトナーを貯留する。
The
現像装置13a〜13dは、静電潜像が形成された感光体ドラム12a〜12dの表面にトナーを供給し、静電潜像を現像剤像であるトナー像に顕像化する。具体的には現像装置13a〜13dは、上部に取り付けられたトナーカートリッジ23a〜23dの図示されない供給口から上記色相に対応したトナーを受けとり、このトナーにより感光体ドラム12a〜12dに形成された色相に対応した静電潜像をブラック、シアン、マゼンタ、またはイエローの色相に対応したトナー像に顕像化する。また、クリーニングユニット17は、現像および画像転写後における感光体ドラム12a〜12dの表面に残留したトナーを除去し回収する。
The developing
中間転写ベルト11は、厚さ100〜150μm程度のフィルムが無端状に形成された構造であって、駆動ローラと従動ローラとの間に張架されて図1に示されるようなループ状の移動経路を形成している。この中間転写ベルト11の外周面は、感光体ドラム12d、感光体ドラム12c、感光体ドラム12b、および感光体ドラム12aに対向している。中間転写ベルト11はこれらの順番で各感光体ドラム12a〜12dに対向するよう回転する。この中間転写ベルト11を挟んで各感光体ドラム12a〜12dに対向する位置には、一次転写ローラが配置されている。これらの一次転写ローラは、直径8〜10mmの金属製(例えばステンレス製)の軸をベースとし、その表面が導電性の弾性材(例えばEPDMや発泡ウレタン等)により覆われているローラである。この導電性の弾性材により、中間転写ベルト11に対して均一に高電圧を印加することができる。なお、ここではローラ形状であるものとしたが、ブラシなどであってもよい。
The intermediate transfer belt 11 has a structure in which a film having a thickness of about 100 to 150 μm is formed in an endless manner. The intermediate transfer belt 11 is stretched between a driving roller and a driven roller and looped as shown in FIG. Forming a pathway. The outer peripheral surface of the intermediate transfer belt 11 faces the photosensitive drum 12d, the
フルカラー画像を形成する場合、この一次転写ローラには、感光体ドラム12a〜12dの表面に担持されたトナー像を中間転写ベルト11上に転写するために、トナーの帯電極性(−)と逆極性(+)の定電圧である一次転写バイアスが印加される。また、この一次転写ローラは、中間転写ベルト11の内周面に所定のニップ圧で圧接されている。これによって、感光体ドラム12a〜12dに形成された各色相に対応するトナー像は中間転写ベルト11の外周面に順次重ねられるように転写され、中間転写ベルト11の外周面にフルカラーのトナー像が形成される。また、モノクロ画像を形成する場合には、ブラックの感光体ドラム12aに対向する位置に配置される一次転写ローラのみが帯電し、その他の感光体ドラム12b〜12dに対向する位置に配置される一次転写ローラは帯電せず、所定の離接機構により中間転写ベルト11から所定距離だけ離される。これにより、中間転写ベルト11の外周面にはブラックのトナー像のみが形成される。
When forming a full-color image, the primary transfer roller has a reverse polarity to the toner charging polarity (-) in order to transfer the toner image carried on the surface of the
このように中間転写ベルト11の外周面に転写されたトナー像は、中間転写ベルト11の回転によって、二次転写ローラ14と対向する位置に搬送される。二次転写ローラ14は、画像形成時において、内周面が駆動ローラの周面に接触する中間転写ベルト11の外周面に所定のニップ圧で圧接されている。なお、このように圧接する場合、1対のローラの一方は金属等の硬質材料からなり、他方は弾性ゴムローラまたは発泡性樹脂ローラ等の弾性材料からなる。
The toner image transferred onto the outer peripheral surface of the intermediate transfer belt 11 in this way is conveyed to a position facing the
用紙Paは、給紙カセットから用紙Paを一枚ずつ引き出す用紙さばきローラ16により給紙される。用紙Paは、二次転写ローラ14と中間転写ベルト11との間を通過する際に、トナーの帯電極性とは逆極性の高電圧を二次転写ローラ14によって印加される。これにより、中間転写ベルト11の外周面から用紙Paの表面にフルカラーまたはモノクロのトナー像が転写される。なお、中間転写ベルト11に付着したトナーのうち用紙上に転写されることなく中間転写ベルト11上に残存したトナーは、混色を防止するため、従動ローラに摺接するよう設けられるクリーニングブレードを含むクリーニングユニットによって回収される。
The paper Pa is fed by a
このフルカラーまたはモノクロ画像であるトナー像が転写された用紙Paは、定着ユニット21に導かれ、定着ユニット21を構成する加熱ローラと加圧ローラとの間を通過して加熱および加圧を受ける。なお、加熱ローラは、図示されない温度検出器からの信号に基づいて制御部によって所定の定着温度となるように設定されている。この定着ユニット21の動作によって、トナー像は、用紙Paの表面に堅牢に定着する。トナー像が定着した用紙Pbは、排紙ローラによって排紙トレイ18上に(印刷面を下側に向けて)排出される。
The paper Pa on which the toner image, which is a full-color or monochrome image, is transferred is guided to the fixing
以上のような画像形成動作は、図示されない電動モータやギヤなどを含む複数の駆動部と、これらの駆動部を制御する制御部とにより行われる。制御部の機能は、図示されないセンサや操作入力部などの情報を受け付けるマイクロコンピュータにより実現される。 The image forming operation as described above is performed by a plurality of driving units including an electric motor and gears (not shown) and a control unit that controls these driving units. The function of the control unit is realized by a microcomputer that receives information such as a sensor and an operation input unit (not shown).
この制御部の機能を含む本画像処理装置の機能的な構成について説明する。図2に示すように、画像処理装置10は、外部のコンピュータ端末であるデータ処理装置2等から所定の通信回線を介して与えられる印刷データを受け取り、受け取った印刷データに応じた画像を所定の用紙上に出力する。
A functional configuration of the image processing apparatus including the function of the control unit will be described. As shown in FIG. 2, the image processing apparatus 10 receives print data given via a predetermined communication line from the
なお、上記印刷データは、具体的には画像処理装置10において解釈可能なページ記述言語(PDL)により記述されるデータを含むファイルである。また、画像処理装置10とデータ処理装置2とは、所定のケーブルやハブなどからなるLAN(LocalArea Network)5により相互に通信可能に接続される。なお、このLAN5に代えて、WAN(WideArea Network)やインターネットなど周知の相互通信網、またはUSB(UniversalSerial Bus)接続や各種パラレルインタフェースなどの通信接続手段が使用されてもよい。
The print data is a file including data described in a page description language (PDL) that can be interpreted by the image processing apparatus 10. Further, the image processing apparatus 10 and the
この画像処理装置10は、CPU101、メモリ(半導体メモリ)102、および各種インタフェースなどにより構成されるプリンタコントローラ100と、液晶ディスプレイ等からなる表示装置とタッチパネルやボタンなどからなる入力装置とを含む操作表示部20と、ディスク状の磁気記憶媒体を含むハードディスク記憶装置(以下「ハードディスク」または「HDD」と略称する)30と、用紙に画像を形成して当該用紙を装置外へ排出するための画像形成部40とを備えている。
The image processing apparatus 10 includes an operation display including a
画像形成部40は、ビデオコントローラ115を介して印刷のためのビットマップデータを受け取り、対応する画像を所定の用紙上に形成する。なお、画像形成部40における画像形成機構の詳細な構成については前述したとおりである。
The
制御部であるプリンタコントローラ100は、CPU101と、メモリ102と、操作表示部20との接続インタフェースである操作表示部インタフェース112と、ハードディスク30との接続インタフェースであるハードディスクインタフェース113と、後述するバンドデータを圧縮または伸張する圧縮伸張回路114と、画像形成部40との接続インタフェースであるビデオコントローラ115と、LAN5を介してデータ処理装置2との間で通信を行うネットワークインタフェース116とを備える。
The
なお、上記CPU101と、自由に読み書き可能なメモリであるRAMと読み出し専用のメモリであるROMからなるメモリ102と上記各種インタフェースとは、それぞれ所定のバス(メモリバス、システムバス、またはペリフェラルバスなど)で接続されている。これらのバスによる接続は一般的なコンピュータにおける周知の構成であるため、その詳しい説明は省略する。
The
プリンタコントローラ100は、対象となる原稿の画像を光学的に読み取る図示されないスキャナユニットにより読み取られた画像を所定の用紙上に形成して出力する、いわゆる複写機能や、外部のデータ処理装置2から受け取った印刷データ(画像データ)を所定の用紙上に形成して出力する、いわゆるプリンタ機能などの周知の各種機能を有している。
The
これらの機能は、典型的にはメモリ102のROMに内蔵され、またはRAMに展開された所定のプログラムをCPU101が実行することにより実現される。ここで、上記プログラムは、例えば、そのプログラムを記録したCD−ROM等の記録媒体によって提供される。すなわち、上記プログラムの記録媒体としてのCD−ROMが画像処理装置10内に補助記憶装置として内蔵された図示されないCD−ROM駆動装置に装着され、CD−ROMから上記プログラムが読み出されて、ハードディスク30にインストールされる。また、上記プログラムは、CD−ROM以外の記録媒体や通信回線を介して提供されてもよい。そして、画像処理装置10の起動のための所定操作がなされると、ハードディスク30にインストールされた所定プログラムは、上記RAMに転送されて、そこに展開され、CPU101によって実行される。これにより、上記各種機能が実現される。
These functions are typically realized by the
プリンタコントローラ100は、図5に示すPDLインタプリンタ200を有している。PDLインタプリンタ200は、入力インタフェース部201、コマンド解析部202、色空間判定部203、色空間変換部204、属性判定部205、中間データ生成部206、レンダリング部207、印刷処理部208から構成されている。
The
入力インタフェース部201、コマンド解析部202、色空間判定部203、色空間処理部204、属性判定部205、中間データ生成部206、レンダリング部207、印刷処理部208は、ソフトウェアにより実現され、プログラムのコードの形態でメモリ102に格納されている。なお、これらの全部または一部をハードウェアにより実現することもできる。
The
入力インタフェース部201は、ホストコンピュータ等のデータ処理装置2から送られてきたPDLコマンドデータを取得して、一時的に格納する。入力インタフェース部201に格納されたPDLコマンドデータは、コマンド解析部202に渡され、順次解析される。解析されたPDLコマンドがラスタデータの場合には、色空間判定部203でこのラスタデータがRGB空間であるか否かが判定される。RGB色空間(第1の色空間)と判定された場合は、色空間変換部204によって、YCbCr色空間(第2の色空間)へと変換される。属性判定部205は、YCbCr色空間の情報に基づいて、ラスタデータの属性を判定する。中間データ生成部206は、解析されたPDLコマンドをオブジェクト及びバンド単位で分類された中間データを生成する。中間データには、描画すべきオブジェクト及びその属性(オブジェクトの種類、座標、色情報等)が記述されている。レンダリング部207は、各バンド単位で、中間データに基づき印刷用画像データを生成する。印刷処理部208は、レンダリング部207で生成された印刷用画像データをプリントエンジンに送信する。
The
ここで、コマンド解析部202は、ページ記述言語で記述された印刷データからオブジェクトの種類を判別する種類判別部として機能し、オブジェクトの種類がラスタ画像かベクタ画像かを判別する。色空間判定部203は、ラスタ画像に対して、RGB色空間で構成されているかどうかを判定する。属性判定部205は、YCbCr色空間で構成されたラスタデータのうち、各画素の輝度値が一定であるか否かによって、当該ラスタデータの属性を決定するとともに、ラスタデータの各画素の色差値が一定であるか否かによって、当該ラスタデータの属性を決定する。中間データ生成部206およびレンダリング部207は、オブジェクトの種類および属性に基づいて印刷データを画像処理して、印刷用の画像データを生成する画像処理部として機能する。
Here, the
次に、ラスタデータの画像の特性から、当該ラスタデータがどのような画像かを判定する方法について説明する。
Y:輝度、Cb:色差(青)、Cr:色差(赤)とし、各値は0から255の範囲とすると、RGBからYCbCrへ変換は、次の変換式によって行われる。
Next, a method for determining what kind of image the raster data is based on the characteristics of the raster data image will be described.
When Y is luminance, Cb is color difference (blue), Cr is color difference (red), and each value is in the range of 0 to 255, conversion from RGB to YCbCr is performed by the following conversion formula.
Y=0.2990R+0.5870G+0.1140B
Cb=−0.1687R−0.3313G+0.5000B+128
Cr=0.5000R−0.187G−0.0813B+128
例えば、赤(R=255,G=0,B=0)をYCbCr値へ変換した場合は、
Y=0.299x255=76
Cb=−0.1687x255+128=85
Cr=0.5x255+128=255
となる。
Y = 0.2990R + 0.5870G + 0.1140B
Cb = −0.1687R−0.3313G + 0.5000B + 128
Cr = 0.5000R-0.187G-0.0813B + 128
For example, when red (R = 255, G = 0, B = 0) is converted to a YCbCr value,
Y = 0.299x255 = 76
Cb = −0.1687 × 255 + 128 = 85
Cr = 0.5 × 255 + 128 = 255
It becomes.
図4のビットマップの場合、全画素値Yが76になるので、Yが一定値であれば、ベタ画像と判定する。また、例えば、50%グレー(R=128,G=128,B=128)をYCbCr値へ変換した場合は、
Y=0.299x128+0.5870x128+0.114x128=143
Cb=−0.1687x128−0.3313x128+0.5x128+128
=128
Cr=0.5x128−0.4187x128−0.0813x128+128
=128
となる。
In the case of the bitmap of FIG. 4, since the total pixel value Y is 76, if Y is a constant value, it is determined as a solid image. For example, when 50% gray (R = 128, G = 128, B = 128) is converted into a YCbCr value,
Y = 0.299x128 + 0.5870x128 + 0.114x128 = 143
Cb = −0.1687 × 128−0.3313 × 128 + 0.5 × 128 + 128
= 128
Cr = 0.5 × 128−0.4187 × 128−0.0813 × 128 + 128
= 128
It becomes.
グレーの場合、Cb=Cr=128となる。したがって、Cb=Cr=128であれば、グレー画像と判定する。このようにして、ラスタデータがどのような画像であるかを判定する。 In the case of gray, Cb = Cr = 128. Therefore, if Cb = Cr = 128, it is determined as a gray image. In this way, it is determined what kind of image the raster data is.
次に、データ処理装置2からLAN5を介して与えられるPDLコマンドデータの画像処理について図6、7を参照して詳細に説明する。データ処理装置2から画像処理装置に送られてきたPDLデータは、PDLインタプリンタ200によってコマンドが順次解析される(S101)。コマンドの種類からオブジェクトの種類が判定される(S102)。
Next, image processing of PDL command data given from the
注目するオブジェクトがラスタデータ以外、すなわちベクタ画像と判定された場合は、オブジェクトの属性を文字/グラフィックスに設定する(S114)。オブジェクトがラスタデータ(ビットマップ)と判定された場合は、そのラスタデータが使用している色空間を確認する。ラスタデータで使用される色空間は、RGBカラー及び白黒があり、その色空間に応じたラスタデータとなっている。色空間がRGBでない場合は、当該ラスタデータは白黒であると判断し、オブジェクトの属性をラスタ(ビットマップ)に設定し、カラー属性を白黒に設定する(S113)。 If it is determined that the object of interest is not raster data, that is, a vector image, the attribute of the object is set to character / graphics (S114). If the object is determined to be raster data (bitmap), the color space used by the raster data is confirmed. The color space used in the raster data includes RGB color and black and white, and is raster data corresponding to the color space. If the color space is not RGB, it is determined that the raster data is black and white, the object attribute is set to raster (bitmap), and the color attribute is set to black and white (S113).
S103でラスタデータの色空間がRGBと判定された場合は、まず、オブジェクトの属性を文字/グラフィックスに、カラー属性をグレーに設定しておく(S104)。次に、ラスタデータの1画素を前述した変換式でRGB色空間からYCbCr色空間に変換する(S105)。注目画素のY(輝度)の値を参照する前に、オブジェクトの属性がラスタであるか否かをチェックする(S106)。オブジェクトの属性が既にラスタデータに設定されている場合は、それ以降Y値を参照する必要はなくなる。 If it is determined in S103 that the color space of the raster data is RGB, first, the object attribute is set to character / graphics and the color attribute is set to gray (S104). Next, one pixel of the raster data is converted from the RGB color space to the YCbCr color space using the conversion formula described above (S105). Before referring to the Y (luminance) value of the target pixel, it is checked whether or not the attribute of the object is raster (S106). If the object attribute is already set in the raster data, it is no longer necessary to refer to the Y value.
オブジェクトの属性がラスタでない場合には、Y(輝度)の値を参照し、ひとつ前の画素のY値と比較する(S107)。前の画素とY値が同じ値でなければ、当該ラスタデータはベタ画像ではないと判断し、オブジェクトの属性をラスタに設定する(S108)。前の画素とY値が同じ値であれば、オブジェクトの属性は変更せず、S109に進む。 If the attribute of the object is not raster, the Y (luminance) value is referred to and compared with the Y value of the previous pixel (S107). If the Y value is not the same as the previous pixel, it is determined that the raster data is not a solid image, and the attribute of the object is set to raster (S108). If the Y value is the same as that of the previous pixel, the object attribute is not changed and the process proceeds to S109.
次に、CbとCrの値を参照し、Cb=Cr=128であるかどうか確認する(S109)。Cb=Cr=128でなければ、グレー画像ではないと判定し、カラー属性をカラーに設定する(S110)。変換する画素がなくなるまでステップ105からS110を繰り返す。 Next, referring to the values of Cb and Cr, it is confirmed whether Cb = Cr = 128 (S109). If Cb = Cr = 128, it is determined that the image is not a gray image, and the color attribute is set to color (S110). Steps S110 to S110 are repeated until there are no more pixels to be converted.
S106で、オブジェクトの属性がラスタに設定されている場合は、カラー属性がカラーに設定されているかどうか確認する(S112)。カラー属性がカラーに設定されている場合、カラーの自然画と判定し、画素の確認処理から抜け、S201へ進む。カラー属性がカラーに設定されていない場合には、S109へ進み、処理を続ける。 If the attribute of the object is set to raster in S106, it is checked whether the color attribute is set to color (S112). If the color attribute is set to color, it is determined that the image is a natural color image, the process of checking the pixels is terminated, and the process proceeds to S201. If the color attribute is not set to color, the process proceeds to S109 and the process is continued.
ラスタデータの属性が決定したら、図7に示すように、現在処理しているオブジェクトの画像処理のモードを決定するため、オブジェクトの属性を読み出す(S201)。オブジェクトの種類によって、色変換処理、グレー処理及びハーフトーン処理を切り替える。 When the raster data attribute is determined, as shown in FIG. 7, the object attribute is read to determine the image processing mode of the currently processed object (S201). Color conversion processing, gray processing, and halftone processing are switched depending on the type of object.
図8にオブジェクト毎の画像処理の描画モードを示す。オブジェクトの種類およびカラー属性に応じて、描画モードは4つ設定されている。 FIG. 8 shows a drawing mode of image processing for each object. Four drawing modes are set according to the object type and color attribute.
S201で読み出したオブジェクト属性がラスタであるか否か確認し(S202)、ラスタでなければ、描画モードをモード1に設定し(S210)、現在処理しているオブジェクトの中間コードを生成する(S206)。S201で読み出したオブジェクト属性がラスタの場合は、カラー属性を読み出し(S203)、カラー属性がカラーか否かを確認する(S204)。カラーであれば、描画モードをモード4に設定し、現在処理しているオブジェクトの中間コードを生成する(S206)。S211でカラー属性がグレーであれば、描画モードをモード3に設定し(S212)、中間コードを生成する(S206)。グレーでない場合は、描画モードをモード2に設定し(S213)、現在処理しているオブジェクトの中間コードを生成する(S206)。処理すべきPDLコマンドがあるか否かを確認し(S207)、PDLコマンドがある場合には、S101からS206までの処理を繰り返す。すべてのPDLコマンドの処理が終わったら、生成した中間コードを印刷用のビットマップデータへ変換する(S208)。その後、印刷処理を実行し(209)、プリント処理を終了する。 It is confirmed whether or not the object attribute read in S201 is a raster (S202). If it is not a raster, the drawing mode is set to mode 1 (S210), and an intermediate code of the object currently being processed is generated (S206). ). If the object attribute read in S201 is raster, the color attribute is read (S203), and it is confirmed whether the color attribute is color (S204). If it is color, the drawing mode is set to mode 4 and an intermediate code of the object currently being processed is generated (S206). If the color attribute is gray in S211, the drawing mode is set to mode 3 (S212), and an intermediate code is generated (S206). If not gray, the drawing mode is set to mode 2 (S213), and an intermediate code of the object currently being processed is generated (S206). It is confirmed whether there is a PDL command to be processed (S207). If there is a PDL command, the processes from S101 to S206 are repeated. When all the PDL commands have been processed, the generated intermediate code is converted into bitmap data for printing (S208). Thereafter, the printing process is executed (209), and the printing process is terminated.
なお、本発明は、上記実施形態に限定されるものではなく、本発明の範囲内で上記実施形態に多くの修正および変更を加え得ることは勿論である。本画像処理装置は、複合機に限らず、カラープリンタでもよい。 In addition, this invention is not limited to the said embodiment, Of course, many corrections and changes can be added to the said embodiment within the scope of the present invention. The image processing apparatus is not limited to a multifunction machine, and may be a color printer.
2 データ処理装置
10 画像処理装置
20 操作表示部
30 ハードディスク
40 画像形成部
100 プリンタコントローラ
200 PDLインタプリンタ
201 入力インターフェース部
202 コマンド解析部
203 色空間判定部
204 色空間変換部
205 属性判定部
206 中間データ生成部
207 レンダリング部
208 印刷処理部
2 Data processing device 10
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007009798A JP2008177882A (en) | 2007-01-19 | 2007-01-19 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007009798A JP2008177882A (en) | 2007-01-19 | 2007-01-19 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2008177882A true JP2008177882A (en) | 2008-07-31 |
Family
ID=39704567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007009798A Pending JP2008177882A (en) | 2007-01-19 | 2007-01-19 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2008177882A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238235A (en) * | 2009-03-30 | 2010-10-21 | Sharp Corp | Printing system and printing system control method |
| US8339671B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data by partitioning a graphics list |
| US8339653B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data based on overlap characteristics |
| US8339672B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data using graphic-list partitions and associated rendering processors |
| US8339670B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data based on graphic-list partitioning |
-
2007
- 2007-01-19 JP JP2007009798A patent/JP2008177882A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010238235A (en) * | 2009-03-30 | 2010-10-21 | Sharp Corp | Printing system and printing system control method |
| US8339671B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data by partitioning a graphics list |
| US8339653B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data based on overlap characteristics |
| US8339672B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data using graphic-list partitions and associated rendering processors |
| US8339670B2 (en) | 2009-03-30 | 2012-12-25 | Sharp Laboratories Of America, Inc. | Methods and systems for rendering data based on graphic-list partitioning |
| US8411319B2 (en) | 2009-03-30 | 2013-04-02 | Sharp Laboratories Of America, Inc. | Methods and systems for concurrent rendering of graphic-list elements |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8094335B2 (en) | Image processing apparatus for converting print data to bitmap data, and outputting a color or monochrome image | |
| US8228557B2 (en) | Image processing apparatus and image processing method | |
| JP2010091813A (en) | Image forming apparatus | |
| JP4228620B2 (en) | Image forming apparatus | |
| JP2008177882A (en) | Image processing device | |
| US20120050759A1 (en) | Image processing apparatus, image processing apparatus control method, information processing apparatus, information processing apparatus control method, and storage medium storing program | |
| JP2006003816A (en) | Image forming apparatus and density correction data generation method used therefor | |
| JP5383137B2 (en) | Image forming apparatus | |
| JP6516224B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM | |
| US11039040B2 (en) | Display device, printing system, and non-transitory computer readable medium | |
| JP2008227956A (en) | Image forming apparatus, image processing method, image processing program, and storage medium with image processing program stored thereon | |
| JP2013026900A (en) | Image processing apparatus and image formation apparatus | |
| US9229383B2 (en) | Image forming apparatus, control apparatus, and control methods thereof | |
| JP2008221673A (en) | Image processing device | |
| JP4237165B2 (en) | Image processing apparatus and image forming apparatus | |
| JP2019139083A (en) | Image forming apparatus | |
| US10578994B2 (en) | Image forming apparatus that determines a fixing temperature for a fixing operation based on toner amounts of blocks of image data and related image forming method and storage medium | |
| JP4750001B2 (en) | Image processing apparatus, image forming apparatus, program, computer-readable recording medium, and image processing method | |
| JP6119115B2 (en) | Image forming apparatus | |
| JP4965353B2 (en) | Image processing device | |
| JP2016224229A (en) | Image forming apparatus, information formation method, and program | |
| JP2007178489A (en) | Image forming apparatus, image forming method, image adjusting method and program | |
| JP5932730B2 (en) | Image forming apparatus | |
| JPH09265223A (en) | Image forming device | |
| JP2011124905A (en) | Image processor |