JP2023134195A - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- Publication number
- JP2023134195A JP2023134195A JP2022039573A JP2022039573A JP2023134195A JP 2023134195 A JP2023134195 A JP 2023134195A JP 2022039573 A JP2022039573 A JP 2022039573A JP 2022039573 A JP2022039573 A JP 2022039573A JP 2023134195 A JP2023134195 A JP 2023134195A
- Authority
- JP
- Japan
- Prior art keywords
- color conversion
- color
- data
- conversion method
- intermediate 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
- 238000003672 processing method Methods 0.000 title claims 5
- 238000006243 chemical reaction Methods 0.000 claims abstract description 290
- 238000000034 method Methods 0.000 claims abstract description 256
- 239000003086 colorant Substances 0.000 claims abstract description 102
- 238000004458 analytical method Methods 0.000 claims abstract description 87
- 238000007639 printing Methods 0.000 claims abstract description 20
- 238000009877 rendering Methods 0.000 abstract description 7
- 238000013500 data storage Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000006837 decompression Effects 0.000 description 3
- 238000011084 recovery Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 2
- 239000000470 constituent Substances 0.000 description 1
Images
Abstract
Description
本発明は、カラーデータをモノクロ印刷するための画像処理技術に関するものである。 The present invention relates to an image processing technique for monochrome printing of color data.
画像形成装置がRGB形式などで複数の色成分で表される複数の色を含むカラー原稿をグレースケール形式で出力する場合、一般的には、入力されるRGB値を、全カラー値を対象とする一律の変換式(NTSC変換など)を用いてグレー値に変換して出力する。全カラー値を対象として行われる色変換(以下、全カラー対象色変換と呼ぶ。)は、階調性が求められている原稿に有効である。 When an image forming apparatus outputs a color original in grayscale format that includes multiple colors represented by multiple color components, such as in RGB format, the input RGB values are generally converted to include all color values. It is converted into a gray value using a uniform conversion formula (such as NTSC conversion) and output. Color conversion performed on all color values (hereinafter referred to as all-color color conversion) is effective for documents requiring gradation.
一方、原稿の同一ページ内で使用されている色に変換対象を絞り、各色の濃度値と各ページで使用される色数に応じてグレーの濃度値間隔を出来るだけ大きく設定する色変換方法が提案されている。この方法は、色分けされた要素間の弁別性が重要なグラフなどを含む原稿に有効である。特許文献1には、PDLデータを解析して生成された1ページ分の色変換テーブルに基づき、レンダリング開始前に中間データの使用色テーブルを書き換える技術が開示されている。 On the other hand, there is a color conversion method that narrows down the conversion target to the colors used within the same page of the original and sets the gray density value interval as large as possible according to the density value of each color and the number of colors used on each page. Proposed. This method is effective for manuscripts that include graphs and the like in which distinguishability between color-coded elements is important. Patent Document 1 discloses a technique for rewriting a color table used in intermediate data before starting rendering, based on a color conversion table for one page generated by analyzing PDL data.
ところで画像形成装置では、1ページ分の中間データを生成している途中でメモリオーバーフローが発生すると、それまでに生成した中間データを一旦レンダリングし、残りを別の中間データとして生成するフォールバック処理が行われる。しかしながら、特許文献1の技術では、フォールバック処理が行われ、ページ途中までの中間データからラスタ画像データを生成すると、その後に生成されたラスタ画像データとの間で描画色の不整合が生じる場合がある。これは、色変換テーブルに設定される色が中間データを生成する過程で逐次追加されるため、色数に基づきグレー値の間隔を設定する場合、例えばページ途中とページ全体とでは色変換テーブルに設定される色数が変化してグレー値も変化するためである。 By the way, in an image forming apparatus, if a memory overflow occurs while generating intermediate data for one page, a fallback process is performed that temporarily renders the intermediate data generated so far and generates the remaining intermediate data as other intermediate data. It will be done. However, in the technology of Patent Document 1, fallback processing is performed, and when raster image data is generated from intermediate data up to the middle of the page, a mismatch in drawing color may occur with raster image data generated after that. There is. This is because the colors set in the color conversion table are added sequentially during the process of generating intermediate data, so when setting gray value intervals based on the number of colors, for example, in the middle of a page and on the entire page, the color conversion table is This is because the number of colors set changes and the gray value also changes.
そこで、本発明は、カラーデータをモノクロで印刷する際、同一ページ内の描画色に不整合が生じるのを防止することを目的とする。 SUMMARY OF THE INVENTION Therefore, an object of the present invention is to prevent mismatching of drawn colors on the same page when printing color data in monochrome.
本発明は、画像処理装置であって、カラーデータをモノクロで印刷するための印刷ジョブに含まれるPDLデータに基づき印刷用のラスタ画像データを生成する画像処理装置であって、
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換手段に対して前記第1の色変換方法と異なる第2の色変換方法を設定する設定手段と、前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、を備えることを特徴とする。
The present invention is an image processing apparatus that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis means for analyzing the PDL data to generate intermediate data for each drawing command and sequentially storing the generated intermediate data in a storage device; and a plurality of colors represented by a plurality of color components specified in the PDL data. color conversion means for converting each density value into a single color density value using a color conversion method specified in the print job; and a first color conversion means for improving distinctiveness as the color conversion method in the print job. When a color conversion method is specified and the intermediate data obtained while the analysis means is generating one page of intermediate data cannot be stored in the storage device, the color conversion method is a setting means for setting a second color conversion method different from the first color conversion method; and a setting means for setting a second color conversion method different from the first color conversion method; An image processing means for generating raster image data.
本発明によれば、カラーデータをモノクロで印刷する際、同一ページ内の描画色に不整合が生じるのを防止することができる。 According to the present invention, when color data is printed in monochrome, it is possible to prevent mismatching of drawn colors within the same page.
以下、本発明を実施するための形態について図面を用いて説明する。なお、以下の実施の形態に記載されている構成要素は、本発明の例としての形態を示すものであり、本発明の範囲をそれらのみに限定するものではない。 EMBODIMENT OF THE INVENTION Hereinafter, the form for implementing this invention is demonstrated using drawings. Note that the constituent elements described in the following embodiments represent exemplary embodiments of the present invention, and the scope of the present invention is not limited thereto.
<第1実施形態>
以下、本発明を実施するための第1実施形態について図面を用いて説明する。第1実施形態は、印刷データのページ毎に使用される色数を取得し、所定の色数を超えた場合に色変換方法を切り替えるものである。
<First embodiment>
DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment for carrying out the present invention will be described below with reference to the drawings. The first embodiment acquires the number of colors used for each page of print data, and switches the color conversion method when the number of colors exceeds a predetermined number.
図1は、本発明に適用される印刷システムの構成例を示す図である。本システムでは、ホストコンピュータ101と画像形成装置110とがLAN102を介して接続されている。ユーザは、印刷するページ情報を示すPDLデータをホストコンピュータ101において生成し、ホストコンピュータ101からLAN102を介して画像形成装置110に送信する。本実施形態における画像形成装置110は、MFP(Multi Function Printer)であっても、SFP(Single Function Printer)のうちいずれのプリンタであってもよい。また、画像形成装置110は、MFPやSFP以外のプリンタであってもよい。
FIG. 1 is a diagram showing an example of the configuration of a printing system to which the present invention is applied. In this system, a
[画像形成装置におけるハードウェア構成について]
図1を用いて、第1実施形態の画像形成装置110におけるハードウェア構成例を説明する。画像形成装置110は、例えば、画像出力デバイスであり、記録媒体に画像を形成するプリンタ部111を含む。また、画像形成装置110は、ホストコンピュータ101からLANを介してPDLデータ(ページ記述言語で記述された印刷データ)を取得する。
[About the hardware configuration of the image forming apparatus]
An example of the hardware configuration in the
プリンタ部111は、デバイスI/F235と接続され、CPU220で生成された画像データをシート(紙)に出力する処理を行う。CPU220は、画像形成装置110の全体(各部)を制御するための中央処理部である。RAM222は、CPU220が動作するためのシステムワークメモリである。また、RAM222は、取得したPDLデータや、画像形成処理のために生成される中間データ、レンダリング処理を行う際の作業領域であるワーク領域や、入力された画像データを一時的に格納するためのメモリでもある。ROM221は、例えばブートROMであり、システムのブートプログラムが格納されている。記憶部223は、例えばハードディスクドライブであり、各種処理のためのシステムソフトウェアおよび取得したPDLデータを格納する。
The
操作部I/F225は、各種メニューや印刷指示された印刷データに関する情報等を表示するための表示部を有する操作部113に対するインターフェース部であり、操作部113に対して操作画面データを出力する。また、操作部I/F225は、操作部113を介してユーザが入力した情報をCPU220に伝える。ネットワークI/F226は、LAN102を介して外部装置(例えばホストコンピュータ101)との間で情報のやり取りを行うためのインターフェースである。これらCPU220、ROM221、RAM222、記憶部223、操作部I/F225およびネットワークI/F226は、システムバス227に接続されている。
The operation unit I/
画像バスI/F228は、システムバス227と画像データを高速に転送する画像バス230とを接続するためのインターフェースであり、データ構造を変換するバスブリッジである。画像バス230には、RIP(ラスタイメージプロセッサ)231、画像編集部232、画像圧縮部233、画像伸長部234、デバイスI/F235が接続されている。これらは、CPU220によって制御されるハードウェアであるが、CPU220とは異なる命令を有するプログラムを実行可能なサブプロセッサによって制御される構成でも可能である。
The image bus I/F 228 is an interface for connecting the system bus 227 and the image bus 230 that transfers image data at high speed, and is a bus bridge that converts data structure. A RIP (raster image processor) 231, an
RIP231は、CPU220からの指示に基づき、PDLデータコードや中間データ(ディスプレイリスト、DL)を解析し、印刷用のラスタ画像データに展開する。またRIP231は、ラスタ画像データの他に、ラスタ画像データの各画素が、文字や線、グラフィック、イメージ、背景等のどのオブジェクトに対応するかを示す属性データを生成する。
The
画像編集部232は、RIP231によって展開されたラスタ画像データに対し、色空間変換や輪郭補正といった画素単位の画像編集を行う。
The
画像圧縮部233は、印刷処理に応じてRIP231のイメージ展開で得られる画像を圧縮し、画像バスI/F228を通してRAM222に格納する。
The
画像伸長部234は、RAM222に格納された画像を伸長し、印刷処理に応じて画像バス230を通してRIP231やデバイスI/F235に伸長結果を転送する。画像圧縮部233と画像伸長部234はユーザによってボックス保存が指定された場合に、RIP231による展開後のラスタ画像データを保存し、ユーザの指示に応じて印刷する際に使用する。また、RIP231による展開処理がプリンタ部111の印刷処理よりも早い場合に、一時的に保存するために使用する場合もある。
The
デバイスI/F235は、プリンタ部111にデータを送信するためのインターフェースである。
The device I/
図2は、本発明に関わる画像形成装置110において、CPU220がROM221や記憶部223からRAM222に展開し実行するソフトウェアモジュール構成の一例を示す図である。
FIG. 2 is a diagram showing an example of the configuration of software modules that the
データ入力部201は、ホストコンピュータ101からネットワークI/F226とLAN102を介して印刷データを受信するモジュールである。
The
ジョブ解析部202は、図2に示すモジュールの設定を受信した印刷データを解析して取得する、または印刷データから取得できなかった場合は予め画像形成装置110に設定された設定値を取得するモジュールである。より具体的には、印刷データに含まれるPJL(Printer Job Language)やJDF(Job Definition Format)等のPDLデータや色変換方法などを指定する印刷設定情報を取得し解析する。
The
ページ解析部203は、ページ毎の情報解析を行うモジュールである。具体的には印刷データに含まれるページ記述言語(PDL:Printer DeScription Language)を取得し、各ページに含まれる描画命令を解析し、中間データを生成する。
The
画像処理制御部204は、RIP231、画像編集部232、画像圧縮部233、画像伸長部234を制御するモジュールである。
The image
プリンタ制御部205は、デバイスI/F235とプリンタ部111を制御するモジュールである。
The
色情報取得部211は、印刷データに含まれる色処理に関わる設定を取得するモジュールである。従って、図2に示す設定の他にも、ガンマ補正値や使用するICCプロファイルの指定も含まれるが、本実施形態においては説明を省略する。
The color
色変換方法設定部212は、ページ解析部203がページ毎の描画命令から描画色に関する情報を解析するモジュールである。第1実施形態では、ページ内で使われている色値とその数を解析対象とする場合を説明する。なお、色値とは、複数の色成分によって表される色の濃度値である。
The color conversion
色変換部213は、色情報取得部212の解析結果に基づき、濃度強調用の色変換テーブル、または全カラー対象グレースケール化するための変換式に基づき、中間データの使用色テーブルの色値の変換を実施するモジュールである。なお、濃度強調用の色変換テーブルは、色変換方法に「濃度強調」が設定されている場合、色変換部213が生成する。また、色変換方法に「全カラー対象グレースケール化」が設定されている場合、色変換部213は、予め指定された色変換式に基づき使用色テーブルの色値の変換を行う。なお、本開示ではPDLデータで指定された色値をグレー値に変換する構成を例に説明するが、カラーモノクロ変換であればグレー以外の他の単一の色に変換する構成としてもよい。
The
以上が、第1実施形態におけるソフトウェアモジュール構成であるが、各モジュール内にサブモジュールが存在するといった構成も当然可能である。以降、第1実施形態におけるデータ入力からプリンタ部111への出力までの処理についてフローチャートを用いて説明する。
The above is the software module configuration in the first embodiment, but it is of course possible to have a configuration in which submodules exist within each module. Hereinafter, processing from data input to output to the
図3に、第1実施形態における、モノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に色変換方法を全カラー対象グレースケール化に切り替える処理を説明するフローチャートを示す。 FIG. 3 shows the process of switching the color conversion method to grayscale for all colors when fallback processing is performed in a print job in which density emphasis is set as the color conversion method for monochrome printing in the first embodiment. A flowchart for explanation is shown.
S301において、ジョブ解析部202は、データ入力部201が取得した印刷ジョブに含まれる印刷データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。
In S301, the
S302において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法を「濃度強調」に設定する。また、濃度強調処理で必要となるページ内の色数カウントを0にして初期化する。
In S302, the
S303において、ページ解析部203は、描画命令を読み込む。
In S303, the
S304において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S303で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S305に移行する。色変換方法が「濃度強調」でない、または、S303で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S313に移行する。
In S304, if the color conversion method is "density emphasis" and the drawing command read in S303 is a command related to drawing within the page, such as a fill color specification command, the
S305において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントした色については、その後、同じ色が出てきても色数にカウントしない。
In S305, the color conversion
S306において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換できるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S307に移行し、使用色の色数が所定の閾値を超えた場合は、S308に移行する。
In S306, the color conversion
S307において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。
In S307, the
S308において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。
In S308, the color conversion
S309において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。
In S309, the
S310において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、変換した中間データをRAM222に順次格納し、S303に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S311に移行する。
In S310, the
S311において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。フォールバック処理を行う場合、フォールバック処理の実施に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」に変更したことを示すログを残す、また、ユーザに通知する構成にしても構わない。
In S311, the color conversion
S312において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データに満たない中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S303に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。S312の詳細については、図4(a)に示すフローチャートを用いて後述する。
In S312, the image
このように、色変換方法が「濃度強調」であり、かつ、S303で読み込んだ描画命令がページ内の描画に関わる命令である間は、S303からS312までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S303で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S313に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S303 is a command related to drawing within the page, the processes from S303 to S312 are repeated. Then, if the color conversion method is not "density emphasis" or if the drawing command read in S303 is not a command related to drawing within the page, the process moves to S313.
S313において、ページ解析部203は、S303で読み込んだ描画命令が改ページ命令か否かを判定し、改ページ命令であった場合、S314に移行し、改ページ命令でない場合、S315に移行する。
In S313, the
S314において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。
In S314, the
S315において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S302に戻る。S315の詳細については、図4(b)に示すフローチャートを用いて後述する。
In S315, the image
S316において、ページ解析部203は、S303で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合は、S316に移行し、ジョブ終了命令でない場合は、S309に移行する。
In S316, the
S317において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。
In S317, the
図4(a)に、第1実施形態に係る画像処理制御部204によるフォールバック処理を説明するフローチャートを示す。
FIG. 4A shows a flowchart illustrating fallback processing by the image
S411において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。なお、本実施形態においてフォールバック処理が行われる場合、色変換方法は「全カラー対象グレースケール化」に設定されている。
In S411, the image
S412において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。
In S412, the image
S413において、画像処理制御部204は、RIP231を用いて、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。
In S413, the image
S414において、画像処理制御部204は、S413で生成したラスタ画像データを、RAM222に格納できなかった中間データに背景画像として登録し、ラスタ画像データを生成済みの中間データに代えてRAM222に格納する。
In S414, the image
図4(b)に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のRIP231を用いたラスタ画像データ生成処理を説明するフローチャートを示す。
FIG. 4B shows a flowchart illustrating raster image data generation processing using the
S421において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。
In S421, the image
S422において、画像処理制御部204は、設定されている色変換方法を判定し、「濃度強調」が設定されていればS423に移行し、「全カラー対象グレースケール化」が設定されていればS424に移行する。
In S422, the image
S423において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度強調用の色変換テーブルを取得し、取得した色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。
In S423, the image
S424において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。
In S424, the image
S425において、画像処理制御部204は、RIP231を用いて、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。
In S425, the image
以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203により生成された中間データに対してRIP231によって実行される。従って、図3に示すジョブ解析とページ解析は、図4に示すラスタ画像データ生成処理と並列に動作することになる。
The above is the raster image data generation process of the image
これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、濃度強調の色変換処理をキャンセルすることで、描画色の不整合を防止できる。 With these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, mismatching of drawn colors can be prevented by canceling the density emphasis color conversion process.
<第2実施形態>
以下、本発明を実施するための第2実施形態について図面を用いて説明する。第2実施形態は、濃度強調が設定された印刷ジョブで、フォールバックが発生した時に全カラー対象グレースケール化および輪郭強調に処理を切り替えてリカバリするものである。なお、第2実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Second embodiment>
A second embodiment for carrying out the present invention will be described below with reference to the drawings. In the second embodiment, when a fallback occurs in a print job in which density emphasis is set, the process is switched to grayscale for all colors and edge emphasis for recovery. Note that the configuration of the print control device of the second embodiment is similar to the configuration of the first embodiment shown in FIG. Below, points different from the first embodiment will be explained.
図5に、第2実施形態に係るモノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に色変換方法を全カラー対象グレースケール化に切り替え、かつ輪郭強調処理を行う処理を説明するフローチャートを示す。 FIG. 5 shows that in a print job in which density emphasis is set as the color conversion method for monochrome printing according to the second embodiment, the color conversion method is switched to grayscale for all colors when fallback processing is performed, and A flowchart illustrating processing for performing contour enhancement processing is shown.
S501において、ジョブ解析部202はデータ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。
In S501, the
S502において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。
In S502, the
S503において、ページ解析部203は、描画命令を読み込む。
In S503, the
S504において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S503で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S505に移行する。色変換方法が「濃度強調」でない、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S913に移行する。
In S504, if the color conversion method is "density emphasis" and the drawing command read in S503 is a command related to drawing within the page, such as a fill color specification command, the
S505において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントされた色については、その後、同じ色が出てきても色数にカウントしない。
In S505, the color conversion
S506において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換することができるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S507に移行し、使用色の色数が所定の閾値を超えた場合は、S508に移行する。
In S506, the color conversion
S507において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。
In S507, the
S508において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」および「輪郭強調」に設定変更する。「輪郭強調」設定時は、RIP231で生成される属性データを輪郭強調用の属性データに変換するよう指示する属性データ変換指示を画像処理制御部204に通知する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。
In S508, the color conversion
S509において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。
In S509, the
S510において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、生成した中間データをRAM222に順次格納し、S503に戻り、次の描画命令を読み込みに行く。フォールバック処理する場合は、S511に移行する。
In S510, the
S511において、色変換部213は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」および「輪郭強調」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。「輪郭強調」が設定された場合は、ラスタ画像データの各画素に対応するオブジェクトの属性を示す属性データを輪郭強調用の属性データに変換するよう画像処理制御部204に通知する。フォールバック処理を行う場合、フォールバック処理の実施に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」および「輪郭強調」に変更したことをログに残す、また、ユーザに通知する構成にしても構わない。
In S511, the
S512において、画像処理制御部204は、属性データ変換指示を取得し、RAM222に格納されている中間データを「全カラー対象グレースケール化」でレンダリングする。そしてレンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S503に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS512のフォールバック処理は、第1実施形態のS312と同様に図4(a)に示すフローチャートで説明するように行う。
In S512, the image
このように、色変換方法が「濃度強調」であり、かつ、S503で読み込んだ描画命令がページ内の描画に関わる命令である間は、S503からS512までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S503で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S513に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S503 is a command related to drawing within the page, the processes from S503 to S512 are repeated. Then, if the color conversion method is not "density emphasis" or if the drawing command read in S503 is not a command related to drawing within the page, the process moves to S513.
S513において、ページ解析部203は、S503で読み込んだ描画命令が改ページ命令か否かを判定し、改ページ命令であった場合、S514に移行し、改ページ命令でなかった場合、S515に移行する。
In S513, the
S514において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。
In S514, the
S515において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S502に戻る。このS515の詳細については、図6に示すフローチャートを用いて後述する。
In S515, the image
S516において、ページ解析部203は、S503で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合は、S516に移行し、ジョブ終了命令でない場合は、S509に移行する。
In S516, the
S517において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。
In S517, the
図6に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231および画像編集部232を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。
FIG. 6 shows a flowchart illustrating raster image data generation processing performed by the image
S601において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。
In S601, the image
S602において、画像処理制御部204は、色変換方法として「濃度強調」が設定されているか否かを判定し、「濃度強調」が設定されている場合はS603に移行し、「濃度強調」が設定されていない場合はS603に移行する。
In S602, the image
S603において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度強調用の色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。
In S603, the image
S604において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。
In S604, the image
S605において、画像処理制御部204は、属性データ変換指示に従って、属性データを、単一の色の濃度値間隔が所定の閾値以下となるオブジェクト間の境界を決定するための輪郭強調用の属性データに変換する。
In step S605, the image
S606において、画像処理制御部204は、画像処理制御部204が中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。
In S606, the image
S607において、画像処理制御部204は、輪郭強調用の属性データが含まれているか否かを判定し、輪郭強調用の属性データが含まれている場合は、S608に移行し、輪郭強調用の属性データが含まれていない場合は、本シーケンスを終了する。
In S607, the image
S608において、画像処理制御部204は、画像編集部232を用いて、輪郭強調用の属性データに基づき、単一の色の濃度値間隔が所定の閾値以下である画素領域間の境界を強調する輪郭強調処理をラスタ画像データに対して実行する。輪郭強調処理の具体的手段は従来技術と差異が無いため説明を省略する。
In S608, the image
以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理である。これらの処理は、CPU220が実行するページ解析部203により生成された中間データに対して、RIP231や画像編集部232によって実行される。従って、図5に示すジョブ解析部202とページ解析部203の処理は、図6に示すラスタ画像データ生成処理と並列に動作することになる。
The above is the raster image data generation process of the image
これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、色変換方法を全カラー対象グレースケール化に切り替え、かつ輪郭強調処理を行う。その結果、ユーザに弁別性向上と描画色の不整合の防止を実現できる。 As a result of these processes, when fallback processing is performed on a print job for which density emphasis is set as the color conversion method, the color conversion method is switched to grayscale conversion for all colors, and edge emphasis processing is performed. As a result, it is possible for the user to improve discrimination and prevent mismatching of drawn colors.
<第3実施形態>
以下、本発明を実施するための第3実施形態について図面を用いて説明する。第3実施形態は、濃度強調が設定された印刷ジョブで、フォールバック処理が行われた時に中間データをレンダリングせずに補助記憶装置223に退避して処理を継続するリカバリである。なお、第3実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Third embodiment>
A third embodiment for implementing the present invention will be described below with reference to the drawings. The third embodiment is a recovery process in which intermediate data is saved to the
図7に、第3実施形態における、モノクロ印刷のための色変換方法に「濃度強調」が設定された印刷ジョブで、フォールバック処理が行われる時に中間データをレンダリングせずに補助記憶装置223に退避して処理を継続する処理のフローチャートを示す。
FIG. 7 shows that in a print job in which "density emphasis" is set as the color conversion method for monochrome printing in the third embodiment, intermediate data is stored in the
S701において、ジョブ解析部202は、データ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。
In S701, the
S702において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。
In S702, the
S703において、ページ解析部203は、描画命令を読み込む。
In S703, the
S704において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S703にて読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S705に移行する。色変換方法が「濃度強調」でない、または、S703で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S713に移行する。
In S704, if the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, such as a fill color specification command, the
S705において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令から使用される色数をカウントする。なおこの時、同一ページ内で一度カウントされた色については、その後、同じ色が出てきても色数にカウントしない。
In S705, the color conversion
S706において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換することができるか否かを判定する。使用色の色数が所定の閾値以下の場合は、S707に移行し、使用色の色数が所定の閾値を超えた場合は、S708に移行する。
In S706, the color conversion
S707において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。
In S707, the
S708において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。
In S708, the color conversion
S709において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。
In S709, the
S710において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、生成した中間データをRAM222に順次格納し、S703に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S711に移行する。
In S710, the
S711において、ページ解析部203は、中間データをRAM222から補助記憶装置223に退避して格納(スプール)が可能か否かを判定する。中間データを補助記憶装置223に退避可能である場合は、S712に移行し、退避できない場合は、S713に移行する。
In S711, the
S712において、ページ解析部203は、RAM222に格納された中間データおよびRAM222に格納できなかった中間データを補助記憶装置223に格納し、S703に戻り、次の描画命令を読み込む。
In S712, the
S713において、色変換方法設定部213は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に設定変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。中間データを補助記憶装置223に退避できず、フォールバック処理を行う場合、フォールバック処理に伴って「濃度強調」を取り消して「全カラー対象グレースケール化」に変更したことをログに残す、また、ユーザに通知する構成にしても構わない。
In S713, the color conversion
S714において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データに背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、使用色テーブルの色値を「全カラー対象グレースケール化」用の色変換式で算出したグレー値に基づき行われる。そして中間データを格納するための領域をRAM222、または補助記憶装置223に確保し、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222、または補助記憶装置223に格納する。その後、S703に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS714のフォールバック処理は、第1実施形態のS312と同様に図4(a)に示すフローチャートで説明するように行う。
In S714, the image
このように、色変換方法が「濃度強調」であり、かつ、S703で読み込んだ描画命令がページ内の描画に関わる命令である間は、S703からS714までの処理を繰り返す。そして、色変換方法が「濃度強調」でなく、または、S703で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S715に移行する。 In this way, as long as the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, the processes from S703 to S714 are repeated. If the color conversion method is not "density emphasis" or if the drawing command read in S703 is not a command related to drawing within the page, the process moves to S715.
S715において、ページ解析部203は、S703で読み込んだ描画命令が改ページ命令であるか否かを判定し、改ページ命令であった場合、S716に移行し、改ページ命令でなかった場合、S717に移行する。
In S715, the
S716において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。
In S716, the
S717において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S702に戻る。このS717の詳細については、図8に示すフローチャートを用いて後述する。
In S717, the image
S718において、ページ解析部203は、S703で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合、S718に移行し、ジョブ終了命令でない場合は、S709に移行する。
In S718, the
S719において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。
In S719, the
図8に、RAM222または補助記憶装置223に格納された1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。
FIG. 8 shows a flowchart illustrating raster image data generation processing performed by the image
S801において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。
In S801, the image
S802において、画像処理制御部204は、色変換方法として、「濃度強調」が設定されているか否かを判定し、「濃度強調」が設定されている場合、S803に移行し、「濃度強調」が設定されていない場合、S804に移行する。
In S802, the image
S803において、画像処理制御部204は、色変換部213を用いて、色変換結果の濃度変調用の色変換テーブルを用いて中間データの使用色テーブルの色値を変換する。
In S803, the image
S804において、画像処理制御部204は、色変換部213を用いて、全カラー対象グレースケール化用の色変換式に基づき中間データの使用色テーブルの色値を変換する。
In S804, the image
S805において、画像処理制御部204は、中間データおよびグレースケール化した使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。
In S805, the image
以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203の指示により、RIP231によって実行される。従って、図7に示すジョブ解析とページ解析は図8に示す画像形成処理と並列に動作することになる。
The above is the raster image data generation process of the image
これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、中間データを記憶装置に退避して処理を継続する。その結果、濃度強調による弁別性向上と描画色の不整合の防止を実現できる。また、記憶装置にも退避できない場合は濃度強調処理をキャンセルすることで、描画色の不整合を防止することができる。 As a result of these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, intermediate data is saved to the storage device and processing continues. As a result, it is possible to improve discrimination by emphasizing density and prevent mismatching of drawn colors. Furthermore, if the data cannot be saved to the storage device, the density enhancement process can be canceled to prevent mismatching of drawn colors.
<第4実施形態>
以下、本発明を実施するための第4実施形態について図面を用いて説明する。第4実施形態は、色変換方法に濃度強調が設定された印刷ジョブで、フォールバック処理が行われる時に濃度強調用の色変換テーブルの生成は継続し、中間データではなくラスタ画像データに対して濃度強調用の色変換を実行するリカバリ処理である。なお、第4実施形態の印刷制御装置の構成は、図1に示す第1実施形態の構成と同様である。以下では、第1実施形態と異なる点について説明する。
<Fourth embodiment>
Hereinafter, a fourth embodiment for implementing the present invention will be described using the drawings. In the fourth embodiment, for a print job in which density emphasis is set as the color conversion method, the generation of the color conversion table for density emphasis continues when fallback processing is performed, and the color conversion table for density emphasis is generated for raster image data instead of intermediate data. This is recovery processing that executes color conversion for density emphasis. Note that the configuration of the print control device of the fourth embodiment is similar to the configuration of the first embodiment shown in FIG. Below, points different from the first embodiment will be explained.
図9に、第4実施形態に係るモノクロ印刷のための色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる時に濃度強調用の色変換テーブルの生成を継続し、ラスタ画像データに対して色変換を行う処理を説明するフローチャートを示す。 FIG. 9 shows that when fallback processing is performed in a print job in which density emphasis is set as the color conversion method for monochrome printing according to the fourth embodiment, generation of a color conversion table for density emphasis is continued, and the raster image is A flowchart illustrating a process of performing color conversion on data is shown.
S901において、ジョブ解析部202は、データ入力部201が取得した入力データからジョブ開始命令を読み込む。続いて、ジョブ解析部202は色情報取得部211を用いてカラーモード設定命令を読み込む。色情報取得部211の読み込んだ結果から、グレーデータへの変換が必要な印刷ジョブである場合、かつ、色変換方法に「濃度強調」が設定されている場合の処理についてのみ説明する。その他の指定だった場合は、従来技術の通りであるため説明を省略する。
In S901, the
S902において、ページ解析部203は、ページ開始命令を読み込む。このとき、ページに対する色変換方法に「濃度強調」を設定する。また、濃度強調処理で必要となるページ内の色数カウントを0で初期化する。
In S902, the
S903において、ページ解析部203は、描画命令を読み込む。
In S903, the
S904において、ページ解析部203は、色変換方法が「濃度強調」であり、かつ、S903で読み込んだ描画命令が、塗りつぶしカラー指定命令等のページ内の描画に関わる命令だった場合、命令内容を色変換方法設定部212に伝え、S905に移行する。色変換方法が「濃度強調」でない、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でなかった場合、S913に移行する。
In S904, if the color conversion method is "density emphasis" and the drawing command read in S903 is a command related to drawing within the page, such as a fill color specification command, the
S905において、色変換方法設定部212は、ページ解析部203が読み込んだ色指定に関わる描画命令からページ内で使用される色数をカウントする。なおこの時、同一ページ内で一度カウントした色については、その後、同じ色を色数にカウントしない。
In S905, the color conversion
S906において、色変換方法設定部212は、ページ内で使用される色数が、所定の閾値を超えたか否かを判定する。より具体的には、色数の合計がプリンタ部111で表現可能なグレーデータの階調数を超えた場合など、カラーデータを視認可能な濃度差を持つグレーデータに変換できるか否かを判定する。色数が所定の閾値以下の場合は、S907に移行し、色数が所定の閾値を超えた場合は、S908に移行する。輪郭強調を用いる色変換方法に切り替えることになる。
In S906, the color conversion
S907において、色変換部213は、濃度強調用の色変換テーブルを生成する。色変換テーブルについては従来技術になるため、説明を省略する。
In S907, the
S908において、色変換方法設定部212は、色変換方法を「濃度強調」から「全カラー対象グレースケール化」に変更する。この色変換方法の変更により、以降、色変換部213は、濃度強調用の色変換テーブルを生成しない。
In S908, the color conversion
S909において、ページ解析部203は、描画命令に基づき中間データを生成する。具体的には、相対座標とベジェ曲線で表現される描画命令や登録された文字(フォント)を実際の出力解像度と用紙サイズに合わせた絶対座標のパス点列に変換する。
In S909, the
S910において、ページ解析部203は、1ページ分の中間データを生成中に得られた途中の中間データがRAM222の中間データ格納領域内に収まらないためにフォールバック処理を行うか否かを判定する。フォールバック処理を行わない場合は、変換した中間データをRAM222に順次格納し、S903に戻り、次の描画命令を読み込む。フォールバック処理を行う場合は、S911に移行する。
In S910, the
S911において、画像処理制御部204は、RAM222に格納されている中間データを一旦レンダリングし、レンダリング後のラスタ画像データをRAM222に格納できなかった中間データの背景画像として登録する、フォールバック処理を実行する。このときRAM222に格納されている、1ページ分の中間データのうちの一部の中間データのレンダリングは、描画命令で指定された色値のままの使用色テーブルに基づき行われる。そして中間データを格納するための領域をRAM222に確保して、RAM222に格納できなかった、レンダリング後のラスタ画像データが背景画像として登録された中間データをRAM222に順次格納し、S903に戻って次の描画命令を読み込む。RAM222に中間データを格納するための領域を確保する方法としては、レンダリング済みの中間データを削除または上書き可能にするようにしてもよい。このS911のフォールバック処理は、図10(a)に示すフローチャートを用いて後述する。
In S911, the image
このように、色変換方法が「濃度強調」であり、かつ、S703で読み込んだ描画命令がページ内の描画に関わる命令である間は、S903からS911までの処理を繰り返し、濃度強調用の色変換テーブルの生成も継続する。そして、色変換方法が「濃度強調」でなく、または、S903で読み込んだ描画命令がページ内の描画に関わる命令でない場合、S912に移行する。 In this way, while the color conversion method is "density emphasis" and the drawing command read in S703 is a command related to drawing within the page, the processes from S903 to S911 are repeated, and the color for density emphasis is Conversion table generation continues. If the color conversion method is not "density emphasis" or if the drawing command read in S903 is not a command related to drawing within the page, the process moves to S912.
S912において、ページ解析部203は、S903で読み込んだ描画命令が改ページ命令であるか否かを判定し、改ページ命令であった場合、S913に移行し、改ページ命令でなかった場合、S914に移行する。
In S912, the
S913において、ページ解析部203は、中間データにページ終了を意味するジョブ終了命令を追加し、1ページ分の中間データと色変換方法を画像処理制御部204およびRIP231に通知する。
In S913, the
S914において、画像処理制御部204は、通知された1ページ分の中間データに基づきラスタ画像データを生成して、S902に戻る。このS914の詳細については、図10に示すフローチャートを用いて後述する。
In S914, the image
S915において、ページ解析部203は、S903で読み込んだ描画命令がジョブ終了命令であるか否かを判定し、ジョブ終了命令である場合、S915に移行し、ジョブ終了命令でない場合は、S909に移行する。
In S915, the
S916において、ページ解析部203は、ジョブ解析部202に印刷ジョブに含まれる全ページ分の中間データ変換が完了した旨を通知し、本シーケンスを終了する。
In S916, the
図10(a)に、第4実施形態に係る画像処理制御部204によるフォールバック処理を説明するフローチャートを示す。
FIG. 10A shows a flowchart illustrating fallback processing by the image
S1011において、画像処理制御部204は、中間データのおよび色変換テーブルの格納場所、実行すべき色変換方法を取得する。
In S1011, the image
S1012において、画像処理制御部204は、RIP231を用いて、中間データおよび描画命令で指定された色値の使用色テーブルに基づき出力解像度と用紙サイズに合わせたラスタ画像データの生成を行う。
In S1012, the image
S1013において、画像処理制御部204は、S1012で生成したラスタ画像データを、RAM222に格納できなかった中間データに背景画像として登録し、ラスタ画像データを生成済みの中間データに代えてRAM222に格納する。
In S1013, the image
図10(b)に、1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204がRIP231および画像編集部232を用いて行うラスタ画像データ生成処理を説明するフローチャートを示す。
FIG. 10B shows a flowchart illustrating raster image data generation processing performed by the image
S1021において、画像処理制御部204は、中間データの場所、色変換テーブルの場所、実行すべき色変換方法を取得する。
In S1021, the image
S1022において、画像処理制御部204は、RIP231を用いて、中間データと使用色テーブルに基づき、出力解像度と用紙サイズに合わせたカラーのラスタ画像データの生成を行う。
In step S1022, the image
S1023において、画像処理制御部204は、色変換方法として「濃度強調」が設定されているか否か判定し、「濃度強調」が設定されている場合はS1024に移行し、「濃度強調」が設定されていない場合はS1025に移行する。
In S1023, the image
S1024において、画像処理制御部204は、画像編集部232を用いて、色変換結果の濃度強調用の色変換テーブルを用いてラスタ画像データの色値を画素単位で比較して、ラスタ画像データの各画素の色値をグレー値に変換する。
In S1024, the image
S1025において、画像処理制御部204は、画像編集部232を用いて、全カラー対象グレースケール化用の色変換式に基づきラスタ画像データの各画素の画素値をグレー値に変換する。
In S1025, the image
以上が1ページ分の中間データと色変換方法の通知を受けた画像処理制御部204のラスタ画像データ生成処理であり、これらの処理は、CPU220が実行するページ解析部203の指示により、RIP231や画像編集部232によって実行される。従って、図9に示すジョブ解析とページ解析は図10に示すラスタ画像データ生成処理と並列に動作することになる。
The above is the raster image data generation process of the image
これらの処理により、色変換方法に濃度強調が設定された印刷ジョブでフォールバック処理が行われる場合、中間データから色変換せずにラスタ画像データを生成する。そして、継続して生成した濃度強調用の色変換テーブルに基づき、生成したラスタ画像データに対して濃度強調の色変換を実施する。その結果、濃度強調による弁別性向上と描画色の不整合の防止を実現できる。 Through these processes, when fallback processing is performed for a print job in which density emphasis is set as the color conversion method, raster image data is generated from intermediate data without color conversion. Then, based on the continuously generated color conversion table for density emphasis, color conversion for density emphasis is performed on the generated raster image data. As a result, it is possible to improve discrimination by emphasizing density and prevent mismatching of drawn colors.
なお本実施形態では、ラスタ画像データに対する色変換は、画像編集部232を用いて行う構成としたが、ラスタ画像データに対する色変換を色変換部213に持たせ、色変換部213を用いて行う構成としてもよい。
Note that in this embodiment, color conversion for raster image data is performed using the
(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention provides a system or device with a program that implements one or more of the functions of the embodiments described above via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
203 ページ解析部
204 画像処理制御部
212 色変換方法設定部
213 色変換部
203
Claims (19)
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換手段に対して前記第1の色変換方法と異なる第2の色変換方法を設定する設定手段と、
前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、
を備えることを特徴とする画像処理装置。 An image processing device that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis unit that analyzes the PDL data to generate intermediate data for each drawing command, and sequentially stores the generated intermediate data in a storage device;
color conversion means for converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis means uses intermediate data obtained while generating intermediate data for one page. a setting means for setting a second color conversion method different from the first color conversion method to the color conversion means when the color cannot be stored in the storage device;
image processing means for generating raster image data of the single color based on intermediate data stored in the storage device and a color conversion result by the color conversion means;
An image processing device comprising:
前記第2の色変換方法は、前記複数の色の数に応じて前記複数の色のそれぞれの濃度値に対応する前記単一の色の濃度値を変えない色変換方法である、
ことを特徴とする請求項1に記載の画像処理装置。 The first color conversion method is a color conversion method that changes the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors,
The second color conversion method is a color conversion method that does not change the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors.
The image processing device according to claim 1, characterized in that:
ことを特徴とする請求項1又は2に記載の画像処理装置。 The first color conversion method converts the density value of each of the plurality of colors into the corresponding unit based on a color conversion table in which density value intervals of the single color are set according to the number of the plurality of colors. It is a color conversion method that converts to the density value of one color.
The image processing device according to claim 1 or 2, characterized in that:
ことを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。 When the first color conversion method is specified and the number of the plurality of colors exceeds a predetermined threshold, the setting means causes the color conversion means to perform the first color conversion. canceling the method and setting a second color conversion method different from the first color conversion method;
The image processing apparatus according to any one of claims 1 to 3, characterized in that:
前記画像処理手段は、前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、ページの一部を成す前記単一の色のラスタ画像データを生成し、
前記解析手段は、前記記憶装置に格納できなかった前記途中の中間データに対して前記ページの一部を成すラスタ画像データを背景画像として登録して前記記憶装置に格納する、
ことを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。 If the analysis means is unable to store the intermediate data in the storage device,
The image processing means generates raster image data of the single color forming part of a page based on intermediate data stored in the storage device and a color conversion result by the color conversion means,
The analysis means registers raster image data forming a part of the page as a background image for the intermediate data that could not be stored in the storage device, and stores the raster image data in the storage device.
The image processing apparatus according to any one of claims 1 to 4.
をさらに備えることを特徴とする請求項1乃至5のいずれか1項に記載の画像処理装置。 an edge enhancement unit that performs edge enhancement processing on the raster image data to emphasize boundaries between pixel areas where the density value interval of the single color is equal to or less than a predetermined threshold;
The image processing apparatus according to any one of claims 1 to 5, further comprising: an image processing apparatus according to claim 1;
前記輪郭強調手段は、前記属性データに基づき前記境界を決定する、
ことを特徴とする請求項6に記載の画像処理装置。 The image processing means generates attribute data in which a value indicating an attribute of the object is stored for a pixel corresponding to the object included in the one page of intermediate data,
The contour emphasizing means determines the boundary based on the attribute data,
The image processing apparatus according to claim 6, characterized in that:
前記画像処理手段は、前記記憶装置に格納された前記1ページ分の中間データである前記複数の中間データに基づき、前記色変換手段による色変換結果に基づきラスタ画像データの生成を行う、
ことを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。 The analysis means generates a plurality of pieces of intermediate data that are less than one page of intermediate data that constitute the one page of intermediate data, and stores them in the storage device;
The image processing means generates raster image data based on the color conversion result by the color conversion means based on the plurality of intermediate data that is intermediate data for one page stored in the storage device.
The image processing device according to any one of claims 1 to 7.
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析手段と、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換手段と、
前記記憶装置に格納されている中間データおよび前記色変換手段による色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理手段と、
を備え、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析手段が1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記画像処理手段は、前記記憶装置に格納されている中間データに基づき前記色変換結果を用いずに前記複数の色を含むラスタ画像データを生成し、前記色変換手段は、前記複数の色を含むラスタ画像データの各画素の画素値に対して前記第1の色変換方法で変換を行う、
ことを特徴とする画像処理装置。 An image processing device that generates raster image data for printing based on PDL data included in a print job for printing color data in monochrome,
an analysis unit that analyzes the PDL data to generate intermediate data for each drawing command, and sequentially stores the generated intermediate data in a storage device;
color conversion means for converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
image processing means for generating raster image data of the single color based on intermediate data stored in the storage device and a color conversion result by the color conversion means;
Equipped with
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis means uses intermediate data obtained while generating intermediate data for one page. If the image cannot be stored in the storage device, the image processing means generates raster image data including the plurality of colors based on the intermediate data stored in the storage device without using the color conversion result; The color conversion means converts the pixel value of each pixel of the raster image data including the plurality of colors using the first color conversion method.
An image processing device characterized by:
ことを特徴とする請求項9に記載の画像処理装置。 The first color conversion method is a color conversion method that changes the density value of the single color corresponding to the density value of each of the plurality of colors according to the number of the plurality of colors.
The image processing device according to claim 9.
ことを特徴とする請求項9又は10に記載の画像処理装置。 The first color conversion method is a color conversion method that sets an interval between density values of the single color according to the number of the plurality of colors.
The image processing apparatus according to claim 9 or 10.
前記画像処理手段は、前記記憶装置に格納された中間データに基づき、ページの一部を成す前記複数の色を含むラスタ画像データを生成し、
前記解析手段は、前記記憶装置に格納できなかった前記途中の中間データに対して前記ページの一部を成すラスタ画像データを背景画像として登録して前記記憶装置に格納する、
ことを特徴とする請求項9乃至11のいずれか1項に記載の画像処理装置。 If the analysis means is unable to store the intermediate data in the storage device,
The image processing means generates raster image data including the plurality of colors forming part of a page based on intermediate data stored in the storage device,
The analysis means registers raster image data forming a part of the page as a background image for the intermediate data that could not be stored in the storage device, and stores the raster image data in the storage device.
The image processing device according to any one of claims 9 to 11.
をさらに備えることを特徴とする請求項9乃至12のいずれか1項に記載の画像処理装置。 When the first color conversion method is specified in the print job, if the number of the plurality of colors exceeds a predetermined threshold, the first color conversion method is specified for the color conversion means. setting means for canceling the color conversion method and setting a second color conversion method different from the first color conversion method;
The image processing device according to any one of claims 9 to 12, further comprising:
ことを特徴とする請求項1乃至8、13のいずれか1項に記載の画像処理装置。 The second color conversion method is a color conversion method that converts each density value of the plurality of colors into a corresponding density value of the single color based on the density value of each of the plurality of colors.
The image processing apparatus according to any one of claims 1 to 8 and 13.
ことを特徴とする請求項1乃至14のいずれか1項に記載の画像処理装置。 The first color conversion method converts the density value of each of the plurality of colors into the corresponding unit based on a color conversion table in which density value intervals of the single color are set according to the number of the plurality of colors. It is a color conversion method that converts to the density value of one color.
The image processing device according to any one of claims 1 to 14.
前記画像処理装置により生成されたラスタ画像データに基づき記録媒体に画像を形成する画像形成手段と、
を備えることを特徴とする画像形成装置。 An image processing device according to any one of claims 1 to 10,
image forming means for forming an image on a recording medium based on raster image data generated by the image processing device;
An image forming apparatus comprising:
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析ステップと、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換ステップと、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析ステップが1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記色変換ステップに対して前記第1の色変換方法を取り消して前記第1の色変換方法と異なる第2の色変換方法を設定する設定ステップと、
前記記憶装置に格納されている中間データおよび前記色変換ステップによる色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理ステップと、
を有することを特徴とする画像処理方法。 An image processing method for generating raster image data for printing based on PDL data included in a print job for printing color data in monochrome, the method comprising:
an analysis step of analyzing the PDL data to generate intermediate data for each drawing command, and sequentially storing the generated intermediate data in a storage device;
a color conversion step of converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis step uses intermediate data obtained during generation of intermediate data for one page. a setting step of canceling the first color conversion method for the color conversion step and setting a second color conversion method different from the first color conversion method if the color conversion method cannot be stored in the storage device;
an image processing step of generating raster image data of the single color based on the intermediate data stored in the storage device and the color conversion result of the color conversion step;
An image processing method comprising:
前記PDLデータを解析して描画命令ごとに中間データを生成し、生成した中間データを記憶装置に順次格納する解析ステップと、
前記PDLデータにおいて指定された複数の色成分によって表される複数の色のそれぞれの濃度値を、前記印刷ジョブにおいて指定された色変換方法で単一の色の濃度値に変換する色変換ステップと、
前記記憶装置に格納されている中間データおよび前記色変換ステップによる色変換結果に基づき、前記単一の色のラスタ画像データを生成する画像処理ステップと、
を有し、
前記印刷ジョブにおいて前記色変換方法として弁別性を向上させる第1の色変換方法が指定されているときに、前記解析ステップが1ページ分の中間データを生成中に得られた途中の中間データを前記記憶装置に格納できなくなった場合、前記画像処理ステップにおいて、前記色変換結果を用いずに前記複数の色を含むラスタ画像データを生成し、1ページ分の当該複数の色を含むラスタ画像データの各画素の画素値に対して前記第1の色変換方法で色変換する、
ことを特徴とする画像処理方法。 An image processing method for generating raster image data for printing based on PDL data included in a print job for printing color data in monochrome, the method comprising:
an analysis step of analyzing the PDL data to generate intermediate data for each drawing command, and sequentially storing the generated intermediate data in a storage device;
a color conversion step of converting each density value of a plurality of colors represented by a plurality of color components specified in the PDL data into a single color density value using a color conversion method specified in the print job; ,
an image processing step of generating raster image data of the single color based on the intermediate data stored in the storage device and the color conversion result of the color conversion step;
has
When the first color conversion method that improves discriminability is specified as the color conversion method in the print job, the analysis step uses intermediate data obtained during generation of intermediate data for one page. If the image cannot be stored in the storage device, in the image processing step, raster image data including the plurality of colors is generated without using the color conversion results, and one page of raster image data including the plurality of colors is generated. converting the pixel value of each pixel using the first color conversion method;
An image processing method characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022039573A JP2023134195A (en) | 2022-03-14 | 2022-03-14 | Image processing apparatus, image processing method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022039573A JP2023134195A (en) | 2022-03-14 | 2022-03-14 | Image processing apparatus, image processing method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023134195A true JP2023134195A (en) | 2023-09-27 |
Family
ID=88143700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022039573A Pending JP2023134195A (en) | 2022-03-14 | 2022-03-14 | Image processing apparatus, image processing method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023134195A (en) |
-
2022
- 2022-03-14 JP JP2022039573A patent/JP2023134195A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4574457B2 (en) | Image processing apparatus and method | |
JP4817934B2 (en) | Image processing apparatus and method | |
JP6824052B2 (en) | Image processing device, its control method, and program | |
JP2010103681A (en) | Image processing device and method | |
JPH111029A (en) | Color print system, color printer, and computer readable recording medium storing computer executable program | |
JP2017024321A (en) | Image processor, image formation device, and image processing time prediction method and program | |
US11671548B2 (en) | Image processing apparatus, method, and product for converting color data of objects into gray data based on positions of objects for improved discriminability | |
JP2023134195A (en) | Image processing apparatus, image processing method, and program | |
JP2014200014A (en) | Image processing device and image processing method | |
JP2022037793A (en) | Image processing apparatus, control method of image processing apparatus and program | |
JP2016115963A (en) | Image processing apparatus, image processing method and program | |
US20090244559A1 (en) | Image rasterizing apparatus and image rasterizing method | |
US8437046B2 (en) | Image processing apparatus and method for outputting an image subjected to pseudo-halftone processing | |
JP2011139162A (en) | Image encoding device, control method, and program | |
JP2001169120A (en) | Method, device, and system for image processing | |
JP2006285792A (en) | Image processor and image processing method | |
JP2023033977A (en) | Image forming device, image forming device control method and program | |
JP4086425B2 (en) | Image processing apparatus and method | |
JP7005796B2 (en) | Image forming device, its control method, and program | |
JP2023033978A (en) | Image forming device, image forming device control method, image processing device, image processing method and program | |
JP5599033B2 (en) | Image processing apparatus and method, and program | |
JP7150487B2 (en) | Information processing device, information processing method, and program | |
JP6775558B2 (en) | Image stretcher and its control method and program | |
JP5202265B2 (en) | Image processing apparatus, program, and control method for image processing apparatus | |
JP2009194458A (en) | Image processing apparatus, and image processing method |