JP2008221673A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2008221673A JP2008221673A JP2007064487A JP2007064487A JP2008221673A JP 2008221673 A JP2008221673 A JP 2008221673A JP 2007064487 A JP2007064487 A JP 2007064487A JP 2007064487 A JP2007064487 A JP 2007064487A JP 2008221673 A JP2008221673 A JP 2008221673A
- Authority
- JP
- Japan
- Prior art keywords
- image
- color space
- data
- attribute
- image data
- 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
- Record Information Processing For Printing (AREA)
- Color, Gradation (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
【課題】モノクロ印刷するとき、オブジェクトに応じて適切な画像処理を行う。
【解決手段】ページ記述言語で記述された印刷データからラスタデータを判定するコマンド解析部202と、ラスタデータがカラー画像か白黒画像かを判定する色空間判定部203と、カラー画像と判定されたとき、ラスタデータをYCbCr色空間に変換する色空間変換部204と、ラスタデータの各画素から画像データの属性が自然画像であるかベタ画像であるかを判定する属性判定部205と、判定されたオブジェクトの属性に基づいて印刷データを処理して、モノクロ印刷用の画像データを生成する中間データ生成部206およびレンダリング部207を備えている。
【選択図】図3When performing monochrome printing, appropriate image processing is performed according to an object.
A command analysis unit 202 for determining raster data from print data described in a page description language, a color space determination unit 203 for determining whether raster data is a color image or a monochrome image, and a color image are determined. A color space conversion unit 204 that converts the raster data into the YCbCr color space, and an attribute determination unit 205 that determines whether the attribute of the image data is a natural image or a solid image from each pixel of the raster data. An intermediate data generation unit 206 and a rendering unit 207 that process print data based on the object attributes and generate image data for monochrome printing.
[Selection] Figure 3
Description
本発明は、モノクロ印刷可能な複写機、プリンタ、印刷機等の画像処理装置に関する。 The present invention relates to an image processing apparatus such as a copying machine capable of monochrome printing, a printer, and a printing machine.
現在、多くのプリンタ等の画像処理装置は、印刷対象であるオブジェクト(テキスト、グラフィックス、ラスタ等)の種類に応じて色変換処理やハーフトーンパターン等を切り替え、最適な印刷結果を得る技術を備えている。例えば、文字、グラフィックス等のベクタ画像に対しては、スクリーン線数を高くして高解像度に設定し、文字のエッジをはっきりさせたり、グラデーションのパターンを目立たないようにしている。また、写真等のラスタ画像に対しては、スクリーン線数を低めにして、低解像度に設定し、色の変化を滑らかにした階調性を重視したものになっている。さらに、色変換処理についても、テキストやグラフィックスは、彩度を重視したカラーテーブルを使用し、写真については、自然な色が表現できるような階調性を重視したカラーテーブルを使用して、色変換を行っている。 Currently, many image processing apparatuses such as printers have a technique for obtaining an optimal print result by switching color conversion processing or halftone pattern according to the type of object (text, graphics, raster, etc.) to be printed. I have. For example, for vector images such as characters and graphics, the number of screen lines is set to a high resolution so that the edges of the characters are clear and the gradation pattern is not conspicuous. Also, for raster images such as photographs, importance is given to the gradation property by reducing the number of screen lines, setting the resolution low, and smoothing the color change. 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 image processing apparatus 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.
ここで、特許文献1に開示された技術は、画像の種類と画素数から注目するラスタデータの判定を行い、この判定結果に応じて最適な画像処理を行う方法が開示されている。
パソコンで作成される画像データやデジタルカメラから出力される画像データは、カラー情報を有するデータとなっている。その結果、画像処理装置において、フルカラーの画像が印刷される。しかしながら、オフィスで画像処理装置を使用する場合、カラー印刷に比べてモノクロ印刷のコストが安いため、カラー画像であっても、モノクロ印刷するケースが多い。 Image data created by a personal computer and image data output from a digital camera are data having color information. As a result, a full color image is printed in the image processing apparatus. However, when an image processing apparatus is used in an office, the cost of monochrome printing is lower than that of color printing, so even a color image is often printed in monochrome.
パソコン等のデータ処理装置から画像処理装置に入力される印刷データには、カラー情報が含まれている。画像処理装置では、このような印刷データが入力されると、カラー画像データからモノクロ画像データへの変換が行われ、モノクロ印刷が行われる。このとき、カラー画像の印刷時のようなオブジェクトに応じた画像処理が行われていない。そのため、写真、絵画等のラスタ画像では、元の色の変化に対応する諧調の変化が滑らかにならず、自然な画像が得られない。 The print data input from the data processing apparatus such as a personal computer to the image processing apparatus includes color information. In the image processing apparatus, when such print data is input, conversion from color image data to monochrome image data is performed, and monochrome printing is performed. At this time, image processing corresponding to the object is not performed as in printing a color image. For this reason, in a raster image such as a photograph or painting, the gradation change corresponding to the original color change is not smooth, and a natural image cannot be obtained.
そこで、本発明は、上記に鑑み、オブジェクトに応じて、モノクロ印刷に適した画像処理を行える画像処理装置の提供を目的とする。 In view of the above, an object of the present invention is to provide an image processing apparatus capable of performing image processing suitable for monochrome printing in accordance with 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 for determining the attribute of the image data of the object or the image data subjected to color space conversion, image processing of the print data based on the type of the object and the attribute of the image data, and image data for monochrome printing And an image processing unit to be generated.
これにより、オブジェクトの種類および画像データの属性が判明するので、モノクロ印刷するために最適な画像処理を選択することができる。すなわち、種類判定部は、オブジェクトの種類がラスタ画像かベクタ画像かを判定する。ベクタ画像と判定されると、属性判定部は、オブジェクトの属性を文字/グラフィックスと判定する。 As a result, the type of object and the attributes of the image data are known, so that it is possible to select an optimal image processing for monochrome printing. 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の色空間を使用しているかが判定される。使用している場合、カラー画像と判定され、使用していない場合、白黒画像と判定される。オブジェクトの画像データが第1の色空間を使用している場合、色空間変換部は、画像データを第2の色空間に変換する。なお、第1の色空間を使用していない場合、画像データは第2の色空間に変換されない。第1の色空間はRGB色空間で構成され、第2の色空間はYCbCr色空間で構成される。 When it is determined as a raster image, it is determined whether the image data of the object uses the first color space. When it is used, it is determined as a color image, and when it is not used, it is determined as a monochrome image. When the image data of the object uses the first color space, the color space conversion unit converts the image data to the second color space. Note that when the first color space is not used, the image data is not converted to the second color space. The first color space is composed of an RGB color space, and the second color space is composed of a YCbCr color space.
具体的には、種類判定部により、ラスタ画像と判定されたとき、その画像データが第1の色空間で構成されているかどうかを判定する色空間判定部を備える。色空間判定部により、第1の色空間と判定されたとき、色空間変換部が画像データを第2の色空間に変換する。 Specifically, a color space determination unit that determines whether the image 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 image data into the second color space.
属性判定部は、画像データの各画素から画像データの属性を判定する。すなわち、属性判定部は、オブジェクトの画像データが第1の色空間を使用している場合、すなわちカラー画像の場合、色空間変換された画像データの属性がベタ画像か自然画像かを判定する。オブジェクトの画像データが第1の色空間を使用していない場合、すなわち白黒画像の場合、色空間変換されていないオブジェクトの画像データの属性がベタ画像か自然画像かを判定する。 The attribute determination unit determines the attribute of the image data from each pixel of the image data. That is, the attribute determination unit determines whether the attribute of the image data subjected to the color space conversion is a solid image or a natural image when the object image data uses the first color space, that is, a color image. If the image data of the object does not use the first color space, that is, if it is a monochrome image, it is determined whether the attribute of the image data of the object that has not been color space converted is a solid image or a natural image.
ここで、属性判定部は、画像データの輝度情報に基づいて、画像データの属性がベタ画像か自然画像かを判定する。各画素の輝度値が一定であるか否かによって、当該ラスタデータの属性が決定され、一定であれば、ベタ画像とされ、一定でなければ、自然画像とされる。画像処理部は、ラスタ画像とベクタ画像とによって、画像処理を選択する。さらに、ラスタ画像の場合、カラー画像、白黒画像と、ベタ画像、自然画像との組み合わせに応じて画像処理を選択して、モノクロ印刷用の画像データを生成する。 Here, the attribute determination unit determines whether the attribute of the image data is a solid image or a natural image based on the luminance information of the image data. Depending on whether or not the luminance value of each pixel is constant, the attribute of the raster data is determined. If it is constant, it is a solid image, and if it is not constant, it is a natural image. The image processing unit selects image processing based on the raster image and the vector image. Further, in the case of a raster image, image processing for monochrome printing is generated by selecting image processing according to a combination of a color image, a monochrome image, a solid image, and a natural image.
本発明によると、オブジェクトの種類だけでなく画像データの属性から、自然画像かベタ画像かを判定することにより、オブジェクトに対してモノクロ印刷するときに、最適な画像処理を行うことが可能となる。したがって、文字やグラフィックの画像では、輪郭のはっきりした印刷画像が得られ、写真や絵画の画像では、滑らかな濃淡の変化となり、自然な表現の印刷画像が得られる。 According to the present invention, it is possible to perform optimum image processing when monochrome printing is performed on an object by determining whether the image is a natural image or a solid image from the attribute of the image data as well as the type of the object. . Therefore, a printed image with a clear outline can be obtained in a character or graphic image, and a smooth gradation change can be obtained in a photograph or painting image, and a printed image with a natural expression can be obtained.
本実施形態の画像処理装置を図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に示すように、外部のコンピュータ端末であるデータ処理装置2において、印刷データが作成される。画像処理装置10は、データ処理装置2から所定の通信回線を介して送信される印刷データを受け取り、受け取った印刷データに応じた画像を所定の用紙上に出力する。
As shown in FIG. 2, print data is created in a
なお、上記印刷データは、具体的には画像処理装置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は、図3に示す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
例えば、同じ赤い長方形をアプリケーションで描画した場合、グラフィックス(ベクタ画像)でPDLコマンドデータが生成されたとき、図4に示すような印刷画像となる。ラスタデータ(ラスタ画像)でPDLコマンドデータが生成されたとき、図5に示すような印刷画像となる。このように、PDLコマンドデータを受けた画像処理装置において、異なるカラーテーブルやハーフトーンが使用されるため、パーソナルコンピュータの画面上では同じに見えるオブジェクトが印刷結果では異なったものになる。 For example, when the same red rectangle is drawn by an application, when PDL command data is generated by graphics (vector image), a print image as shown in FIG. 4 is obtained. When PDL command data is generated with raster data (raster image), a print image as shown in FIG. 5 is obtained. As described above, 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 are different in the print result.
ここで、コマンド解析部202は、ページ記述言語で記述された印刷データからオブジェクトの種類を判別する種類判別部として機能し、オブジェクトの種類がラスタ画像かベクタ画像かを判別する。色空間判定部203は、ラスタ画像に対して、RGB色空間で構成されているかどうかを判定する。属性判定部205は、YCbCr色空間で構成されたラスタデータのうち、各画素の輝度値が一定であるか否かによって、当該ラスタデータの属性を決定するとともに、ラスタデータの各画素の色差値が一定であるか否かによって、当該ラスタデータの属性を決定する。中間データ生成部206およびレンダリング部207は、オブジェクトの種類および属性に基づいて印刷データを画像処理して、印刷用の画像データを生成する画像処理部として機能する。
Here, the
本画像処理装置では、オブジェクトにかかわらずモノクロ印刷を行うとき、適切な画像処理を行うために、属性判定部205は、ラスタデータの場合、その属性が自然画像であるかベタ画像であるかを判定する。この判定に際して、色空間判定部205は、RGB色空間の使用の有無により、ラスタデータがカラー画像であるか白黒画像であるかを先に判定する。そして、カラー画像である場合、色空間変換部204により色空間変換されたラスタデータに対して属性を判定し、白黒画像である場合、色空間変換せずに属性を判定する。
In the present image processing apparatus, in order to perform appropriate image processing when performing monochrome printing regardless of the object, 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.
図5のビットマップの場合、全画素値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 in FIG. 5, 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
注目するオブジェクトがラスタ画像以外、すなわちベクタ画像と判定された場合は、オブジェクトの属性を文字/グラフィックスに設定して(S116)、図7のS201に進む。 If it is determined that the object of interest is not a raster image, that is, a vector image, the attribute of the object is set to character / graphics (S116), and the process proceeds to S201 in FIG.
オブジェクトがラスタデータ(ビットマップ)と判定された場合は、そのラスタデータが使用している色空間を確認する(S103)。ラスタデータで使用される色空間は、RGBカラー及び白黒があり、その色空間に応じたラスタデータとなっている。 If it is determined that the object is raster data (bitmap), the color space used by the raster data is confirmed (S103). The color space used in the raster data includes RGB color and black and white, and is raster data corresponding to the color space.
S103でラスタデータの色空間がRGBと判定された場合、すなわちカラー画像と判定された場合、最初にオブジェクトの属性を文字/グラフィックスに、カラー属性をグレーに設定する(S104)。次に、オブジェクトの属性がラスタ(ビットマップ)であるか否かをチェックする(S105)。最初は、属性が文字/グラフィックスに設定されているので、ラスタデータの1画素を前述した変換式でRGB色空間からYCbCr色空間に変換する(S106)。 If the color space of the raster data is determined to be RGB in S103, that is, if it is determined to be a color image, the object attribute is first set to character / graphics and the color attribute is set to gray (S104). Next, it is checked whether the attribute of the object is raster (bitmap) (S105). Initially, since the attribute is set to character / graphics, one pixel of raster data is converted from the RGB color space to the YCbCr color space by the above-described conversion formula (S106).
オブジェクトの属性がラスタでない場合には、Y(輝度)の値を参照し、ひとつ前の画素のY値と比較する(S107)。前の画素とY値が同じ値でなければ、当該ラスタデータの属性はベタ画像ではない、すなわち自然画像であると判断し、オブジェクトの属性をラスタに設定する(S108)。前の画素とY値が同じ値であれば、オブジェクトの属性はベタ画像と判断し、そのままS109に進む。変換する画素がなくなるまでステップ105からS109を繰り返す。この繰り返しの途中において、オブジェクトの属性が既にラスタに設定されている場合は、それ以降Y値を比較する必要はないので、図7のS201に進む。 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 value as the previous pixel, it is determined that the raster data attribute is not a solid image, that is, a natural image, and the object attribute is set to raster (S108). If the Y value is the same as that of the previous pixel, the object attribute is determined to be a solid image, and the process proceeds directly to S109. Steps 105 to S109 are repeated until there are no more pixels to be converted. If the attribute of the object has already been set to raster during the repetition, it is not necessary to compare the Y values thereafter, and the process proceeds to S201 in FIG.
色空間がRGBでない場合、当該ラスタデータは白黒であると判断する。最初にオブジェクトの属性を文字/グラフィックスに設定する(S110)。次に、オブジェクトの属性がラスタ(ビットマップ)であるか否かをチェックする(S111)。最初は、属性が文字/グラフィックスに設定されているので、ラスタデータから1画素を読み出す(S112)。なお、白黒のラスタデータの場合、明るさ成分のみのデータとなっているため、色空間変換を行わない。前の画素のY値と比較する(S113)。 If the color space is not RGB, it is determined that the raster data is black and white. First, the attribute of the object is set to character / graphics (S110). Next, it is checked whether or not the attribute of the object is a raster (bitmap) (S111). Initially, since the attribute is set to character / graphics, one pixel is read out from the raster data (S112). In the case of black-and-white raster data, since only the brightness component is data, color space conversion is not performed. The Y value of the previous pixel is compared (S113).
前の画素とY値が同じ値でなければ、当該ラスタデータの属性はベタ画像ではない、すなわち自然画像であると判断し、オブジェクトの属性をラスタに設定する(S114)。前の画素とY値が同じ値であれば、オブジェクトの属性はベタ画像と判断し、そのままS115に進む。変換する画素がなくなるまでステップ111からS115を繰り返す。この繰り返しの途中において、オブジェクトの属性が既にラスタに設定されている場合は、それ以降Y値を比較することなく、図7のS201に進む。 If the Y value is not the same as the previous pixel, it is determined that the attribute of the raster data is not a solid image, that is, a natural image, and the attribute of the object is set to raster (S114). If the Y value is the same as that of the previous pixel, the object attribute is determined to be a solid image, and the process proceeds directly to S115. Steps 111 to S115 are repeated until there are no more pixels to be converted. If the attribute of the object is already set to raster during the repetition, the process proceeds to S201 in FIG. 7 without comparing the Y value thereafter.
オブジェクトの属性は、オブジェクトの種類と画像データの属性によって上記のように決められる。オブジェクトの種類として、ラスタと文字/グラフィックスとがある。画像データの属性として、カラーあるいは白黒と、自然画像あるいはベタ画像とがある。これらの組み合わせによって、オブジェクトの属性が決められる。カラーのラスタ画像で自然画像の場合、属性はラスタとされる。白黒のラスタ画像で自然画像の場合も、属性はラスタとされる。カラーあるいは白黒のラスタ画像でベタ画像の場合、属性は文字/グラフィックスとされる。ベクタ画像の場合、属性は文字/グラフィックスとされる。 The attribute of the object is determined as described above according to the type of the object and the attribute of the image data. Object types include raster and character / graphics. As attributes of image data, there are color or black and white, natural image or solid image. The attribute of the object is determined by these combinations. When a color raster image is a natural image, the attribute is a raster. Even in the case of a natural image such as a monochrome raster image, the attribute is a raster. In the case of a color or monochrome raster image and a solid image, the attribute is character / graphics. In the case of a vector image, the attribute is character / graphics.
オブジェクトの属性が決定したら、図7に示すように、現在処理しているオブジェクトの画像処理のモードを決定するため、オブジェクトの属性を読み出す(S201)。オブジェクトの属性によって、トーンカーブ処理およびハーフトーン処理を切り替える。図8にオブジェクト毎の画像処理の描画モードを示す。 When the attribute of the object is determined, as shown in FIG. 7, the attribute of the object is read in order to determine the image processing mode of the currently processed object (S201). Tone curve processing and halftone processing are switched depending on the attribute of the object. FIG. 8 shows a drawing mode of image processing for each object.
オブジェクトの属性を読み出し(S201)、その属性がラスタ(ビットマップ)であるか文字/グラフィックスであるかを確認する(S202)。ラスタ以外の文字/グラフィックスであれば、描画モードをモード1に設定する(S204)。ラスタであれば、描画モードをモード2に設定する(S203)。 The attribute of the object is read (S201), and it is confirmed whether the attribute is raster (bitmap) or character / graphics (S202). For characters / graphics other than rasters, the drawing mode is set to mode 1 (S204). If it is a raster, the drawing mode is set to mode 2 (S203).
モード設定後、現在処理しているオブジェクトの中間コードを生成する(S205)。処理すべきPDLコマンドがあるか否かを確認し(S206)、PDLコマンドがある場合には、S101からS206までの処理を繰り返す。すべてのPDLコマンドの処理が終わったら、生成した中間コードをモノクロ印刷用のビットマップデータへ変換する(S207)。その後、印刷処理を実行し(208)、プリント処理を終了する。 After setting the mode, an intermediate code of the object currently being processed is generated (S205). It is checked whether there is a PDL command to be processed (S206). If there is a PDL command, the processing from S101 to S206 is repeated. When all the PDL commands have been processed, the generated intermediate code is converted into bitmap data for monochrome printing (S207). Thereafter, the printing process is executed (208), and the printing process is terminated.
これによって、モノクロ印刷を行うために、オブジェクトに応じてハーフトーン処理や出力ガンマの特性等を変更して、最適な画像処理を行える。例えば、文字やグラフィックスの画像に対しては、スクリーン線数を高くして高解像度に設定される。文字のエッジが明瞭となったり、グラデーションのパターンが目立たなくなる。写真や絵画等のラスタ画像に対しては、スクリーン線数を低くして低解像度に設定される。元の色の変化が滑らかに表現され、諧調性がよくなる。出力ガンマの特性の変更により、文字やグラフィックスの画像では、コントラストが強調される。トーンカーブの補正により、ラスタ画像では、自然な表現が得られる。 As a result, in order to perform monochrome printing, optimum image processing can be performed by changing halftone processing, output gamma characteristics, and the like according to the object. For example, for characters and graphics images, the number of screen lines is increased and the resolution is set high. The edge of the character becomes clear and the gradation pattern becomes inconspicuous. For raster images such as photographs and paintings, the number of screen lines is reduced and the resolution is set low. The change of the original color is expressed smoothly and the tone is improved. By changing the characteristics of the output gamma, the contrast is enhanced in characters and graphics images. A natural expression can be obtained in the raster image by correcting the tone curve.
なお、本発明は、上記実施形態に限定されるものではなく、本発明の範囲内で上記実施形態に多くの修正および変更を加え得ることは勿論である。本画像処理装置は、複合機に限らず、カラープリンタあるいはモノクロプリンタでもよい。また、写真や文字が混在するオブジェクトにおいても、各画像ごとに属性を判定して、それぞれの画像データに適切な画像処理を行う。これにより、各画像の特徴を損なわずにモノクロ印刷を行うことができる。 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 or a monochrome printer. In addition, even for an object in which photographs and characters are mixed, an attribute is determined for each image and appropriate image processing is performed on each image data. Thereby, monochrome printing can be performed without impairing the characteristics of each image.
2 データ処理装置
10 画像処理装置
20 操作表示部
30 ハードディスク
40 画像形成部
100 プリンタコントローラ
200 PDLインタプリンタ
201 入力インターフェース部
202 コマンド解析部
203 色空間判定部
204 色空間変換部
205 属性判定部
206 中間データ生成部
207 レンダリング部
208 印刷処理部
2 Data processing device 10
Claims (7)
理装置。 The image processing apparatus according to claim 2, wherein the attribute determination unit determines whether the attribute of the image data is a solid image or a natural image based on luminance information of the image data.
Science device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007064487A JP2008221673A (en) | 2007-03-14 | 2007-03-14 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007064487A JP2008221673A (en) | 2007-03-14 | 2007-03-14 | Image processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2008221673A true JP2008221673A (en) | 2008-09-25 |
Family
ID=39840832
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007064487A Pending JP2008221673A (en) | 2007-03-14 | 2007-03-14 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2008221673A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230362312A1 (en) * | 2022-05-09 | 2023-11-09 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and recording medium |
-
2007
- 2007-03-14 JP JP2007064487A patent/JP2008221673A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230362312A1 (en) * | 2022-05-09 | 2023-11-09 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, and recording medium |
| US11831839B1 (en) * | 2022-05-09 | 2023-11-28 | Canon Kabushiki Kaisha | Image processing apparatus, method, and program product for printing based on PDL data in print job for printing monochrome representation of color data |
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 | |
| JP4810450B2 (en) | Image processing apparatus, image processing method, computer program, and recording medium | |
| JP4950977B2 (en) | Image forming apparatus | |
| JP5959815B2 (en) | Image processing apparatus and method | |
| JP4228620B2 (en) | Image forming apparatus | |
| US20120050759A1 (en) | Image processing apparatus, image processing apparatus control method, information processing apparatus, information processing apparatus control method, and storage medium storing program | |
| JP2008177882A (en) | Image processing device | |
| JP2005295333A (en) | Image forming apparatus, image forming method, and program | |
| US20210311676A1 (en) | Information processing apparatus and method for controlling the same | |
| US11039040B2 (en) | Display device, printing system, and non-transitory computer readable medium | |
| JP6516224B2 (en) | IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM | |
| JP2008227956A (en) | Image forming apparatus, image processing method, image processing program, and storage medium with image processing program stored thereon | |
| JP2008221673A (en) | Image processing device | |
| JP4237165B2 (en) | Image processing apparatus and image forming apparatus | |
| JP2006094116A (en) | Image processing apparatus and method, and program thereof | |
| 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 | |
| JP5045663B2 (en) | Image processing apparatus, image processing method, image processing program, and recording medium | |
| JP2016224229A (en) | Image forming apparatus, information formation method, and program | |
| JP2007178489A (en) | Image forming apparatus, image forming method, image adjusting method and program | |
| JP2013026729A (en) | Image processing device, image forming device, image processing method, and computer program | |
| JP4965353B2 (en) | Image processing device | |
| JP5794042B2 (en) | Color material amount reduction method and image processing apparatus | |
| JP2011124905A (en) | Image processor | |
| JP5183792B2 (en) | Image forming apparatus and method |