JP5771976B2 - Image processing apparatus, image processing method, and program thereof - Google Patents
Image processing apparatus, image processing method, and program thereof Download PDFInfo
- Publication number
- JP5771976B2 JP5771976B2 JP2010283061A JP2010283061A JP5771976B2 JP 5771976 B2 JP5771976 B2 JP 5771976B2 JP 2010283061 A JP2010283061 A JP 2010283061A JP 2010283061 A JP2010283061 A JP 2010283061A JP 5771976 B2 JP5771976 B2 JP 5771976B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- color space
- data
- image
- color
- 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.)
- Expired - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 95
- 238000003672 processing method Methods 0.000 title claims description 15
- 238000006243 chemical reaction Methods 0.000 claims description 52
- 239000003086 colorant Substances 0.000 claims description 39
- 238000007906 compression Methods 0.000 claims description 21
- 230000006835 compression Effects 0.000 claims description 17
- 238000000034 method Methods 0.000 description 25
- 230000006870 function Effects 0.000 description 21
- 238000009877 rendering Methods 0.000 description 11
- 238000012546 transfer Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000002844 melting Methods 0.000 description 1
- 230000008018 melting Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
本発明は、画像処理装置、画像処理方法及びそのプログラムに関する。 The present invention relates to an image processing apparatus, an image processing method, and a program thereof.
従来、メモリーに圧縮された画像データが記憶され、解凍した画像データがRGB等の第1の色空間の画像データの場合は、CMYK等の第2の色空間の画像データに色変換して印刷エンジンに供給し、解凍した画像データが第2の色空間の画像データの場合は色変換することなく印刷エンジンに供給するものが提案されている(例えば、特許文献1参照)。この装置では、RGBの画像データとCMYKの画像データの両方を処理することができ、印刷速度を高くすることができる。 Conventionally, when compressed image data is stored in a memory and the decompressed image data is image data in a first color space such as RGB, color conversion is performed to image data in a second color space such as CMYK and printing. When the image data supplied to the engine and decompressed is image data in the second color space, it has been proposed to supply the image data to the print engine without color conversion (see, for example, Patent Document 1). In this apparatus, both RGB image data and CMYK image data can be processed, and the printing speed can be increased.
しかしながら、上述の装置では、第1の色空間から第2の色空間へ色変換する画像処理を行う場合、この変換時間がかかることがあった。この変換処理にかかる時間を短縮することが望まれていた。 However, in the above-described apparatus, when performing image processing for color conversion from the first color space to the second color space, this conversion time may be required. It has been desired to shorten the time required for this conversion process.
本発明は、このような課題に鑑みなされたものであり、画像変換の処理時間をより短縮することができる画像処理装置、画像処理方法及びそのプログラムを提供することを主目的とする。 The present invention has been made in view of such a problem, and a main object of the present invention is to provide an image processing apparatus, an image processing method, and a program thereof that can further reduce the image conversion processing time.
本発明は、上述の主目的を達成するために以下の手段を採った。 The present invention adopts the following means in order to achieve the main object described above.
本発明の画像処理装置は、
第1の色空間の第1画像データと、前記第1の色空間と異なる色空間であり複数の基本色からなる第2の色空間の第2画像データと、の変換を行う画像処理装置であって、
前記第1の色空間の第1画像データを取得する画像データ取得手段と、
前記第1画像データの画素の色の連続数を取得する連続数取得手段と、
前記第2の色空間の第2画像データを生成するに際し、前記取得した前記第1画像データの画素値を前記第2の色空間の画素値へ変換し、該変換後の画素値を前記第2の色空間の基本色ごとの画像データに格納して前記第2画像データを生成すると共に、前記第1画像データにおいて色が連続する画素については、前記変換後の画素値と前記色の連続数とを前記基本色ごとに前記画像データに格納して前記第2画像データを生成するデータ生成手段と、
を備えたものである。
The image processing apparatus of the present invention
An image processing apparatus that performs conversion between first image data in a first color space and second image data in a second color space that is a different color space from the first color space and includes a plurality of basic colors. There,
Image data acquisition means for acquiring first image data of the first color space;
Continuous number acquisition means for acquiring a continuous number of colors of pixels of the first image data;
When generating the second image data of the second color space, the pixel value of the acquired first image data is converted to the pixel value of the second color space, and the pixel value after the conversion is converted to the first color data. The second image data is generated by storing in the image data for each basic color in the two color spaces, and the pixel value after the conversion and the continuation of the color for the pixels in which the colors are continuous in the first image data Data generating means for storing the number for each basic color in the image data and generating the second image data;
It is equipped with.
この画像処理装置では、第1の色空間の第1画像データを取得し、第1画像データの画素の色の連続数を取得し、第2の色空間の第2画像データを生成するに際し、第1画像データの画素値を第2の色空間の画素値へ変換し、この変換後の画素値を第2の色空間の基本色ごとの画像データに格納して第2画像データを生成すると共に、第1画像データにおいて色が連続する画素については、変換後の画素値と色の連続数とを基本色ごとに画像データに格納して第2画像データを生成する。このように、色空間を変換した画像データを生成するに際して、色が連続する画素については、連続数を用いて表現した画像データとするのである。したがって、画像変換の処理時間をより短縮することができる。ここで、データ生成手段は、前記第2画像データを生成するに際して、前記第1画像データにおいて色が連続する画素については、画素値の繰り返しコピーを行わないものとしてもよい。 In this image processing apparatus, when acquiring the first image data of the first color space, acquiring the continuous number of colors of the pixels of the first image data, and generating the second image data of the second color space, The pixel value of the first image data is converted into the pixel value of the second color space, and the converted pixel value is stored in the image data for each basic color of the second color space to generate the second image data. At the same time, for the pixels in which the colors are continuous in the first image data, the converted pixel value and the number of continuous colors are stored in the image data for each basic color to generate the second image data. As described above, when generating the image data in which the color space is converted, the pixels in which the colors are continuous are set as the image data expressed using the continuous number. Therefore, the processing time for image conversion can be further shortened. Here, when generating the second image data, the data generation means may not perform repeated copying of pixel values for pixels having continuous colors in the first image data.
本発明の画像処理装置において、前記データ生成手段は、前記色が連続する画素において色の画素値及び連続数が格納されない画素は空欄として前記第2画像データを生成するものとしてもよい。こうすれば、色が連続する画素については空欄の画素にすることによって、画像変換の処理時間をより短縮することができる。 In the image processing apparatus according to the aspect of the invention, the data generation unit may generate the second image data by leaving a pixel in which the color pixel value and the number of continuations are not stored in the pixels in which the colors are continuous. In this case, the processing time of image conversion can be further shortened by setting the pixels having continuous colors to blank pixels.
本発明の画像処理装置において、前記連続数取得手段は、前記第1の色空間の第1画像データに格納された前記連続数を該第1画像データから取得するものとしてもよい。こうすれば、比較的容易に連続数を取得して画像変換の処理時間をより短縮することができる。 In the image processing apparatus of the present invention, the continuous number acquisition unit may acquire the continuous number stored in the first image data of the first color space from the first image data. By doing this, it is possible to obtain the number of consecutive images relatively easily and further reduce the image conversion processing time.
本発明の画像処理装置は、ベクターデータを取得し該取得したベクターデータからラスターデータである前記第1の色空間の第1画像データを生成すると共に、該ラスターデータの画素の色の連続数をカウントし該カウントした連続数を該第1画像データに格納する第1画像生成手段、を備えたものとしてもよい。こうすれば、全画素値が格納されたラスターデータの生成時に色の連続数をも記録するため、より効率よく連続数をカウントすることができる。 The image processing apparatus according to the present invention acquires vector data, generates first image data of the first color space, which is raster data, from the acquired vector data, and calculates a continuous number of colors of pixels of the raster data. A first image generation unit that counts and stores the counted continuous number in the first image data may be provided. In this way, since the number of continuous colors is also recorded when generating raster data in which all pixel values are stored, the number of continuous can be counted more efficiently.
本発明の画像処理装置において、前記第1の色空間は、RGB色空間であり、前記第2の色空間は、CMYK色空間であるものとしてもよい。こうすれば、表示画像によく用いられるRGB色空間と、印刷画像によく用いられるCMYK色空間との色変換の際に画像変換の処理時間をより短縮することができる。 In the image processing apparatus of the present invention, the first color space may be an RGB color space, and the second color space may be a CMYK color space. In this way, it is possible to further reduce the image conversion processing time when performing color conversion between the RGB color space often used for display images and the CMYK color space often used for print images.
本発明の画像処理装置は、記録媒体上に画像を形成する画像形成装置へ前記生成した第2の色空間の第2画像データを出力する出力手段、を備えたものとしてもよい。こうすれば、色変換した画像データを画像形成装置で用いることができる。 The image processing apparatus of the present invention may include an output unit that outputs the generated second image data of the second color space to an image forming apparatus that forms an image on a recording medium. In this way, the color-converted image data can be used in the image forming apparatus.
本発明の画像処理方法は、
第1の色空間の第1画像データと、前記第1の色空間と異なる色空間であり複数の基本色からなる第2の色空間の第2画像データと、の変換を行う画像処理装置が実行する画像処理方法であって、
(a)前記第1の色空間の第1画像データを取得するステップと、
(b)前記第1画像データの画素の色の連続数を取得する連続数取得手段と、
(c)前記第2の色空間の第2画像データを生成するに際し、前記取得した前記第1画像データの画素値を前記第2の色空間の画素値へ変換し、該変換後の画素値を前記第2の色空間の基本色ごとの画像データに格納して前記第2画像データを生成すると共に、前記第1画像データにおいて色が連続する画素については、前記変換後の画素値と前記色の連続数とを前記基本色ごとに前記画像データに格納して前記第2画像データを生成するステップと、
を含むものである。
The image processing method of the present invention includes:
An image processing apparatus that performs conversion between first image data in a first color space and second image data in a second color space that is a different color space from the first color space and includes a plurality of basic colors. An image processing method to be executed,
(A) obtaining first image data of the first color space;
(B) continuous number acquisition means for acquiring a continuous number of colors of pixels of the first image data;
(C) When generating the second image data of the second color space, the pixel value of the acquired first image data is converted into the pixel value of the second color space, and the pixel value after the conversion In the image data for each basic color in the second color space to generate the second image data, and for the pixels in which the colors are continuous in the first image data, the converted pixel value and the Storing the number of consecutive colors in the image data for each basic color to generate the second image data;
Is included.
この画像処理方法では、上述した画像処理装置と同様に、色空間を変換した画像データを生成するに際して、色が連続する画素については、連続数を用いて表現した画像データとすることにより、画像変換の処理時間をより短縮することができる。なお、この画像処理方法において、上述した画像処理装置の種々の態様を採用してもよいし、また、上述した画像処理装置の各機能を実現するようなステップを追加してもよい。 In this image processing method, similar to the above-described image processing apparatus, when generating image data in which the color space is converted, pixels having continuous colors are converted into image data expressed using the continuous number. Conversion processing time can be further reduced. In this image processing method, various aspects of the above-described image processing apparatus may be adopted, and steps for realizing each function of the above-described image processing apparatus may be added.
本発明のプログラムは、上述した画像処理方法の各ステップを1又は複数のコンピューターに実現させるためのものである。このプログラムは、コンピューターが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピューターから別のコンピューターへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピューターに実行させるか又は複数のコンピューターに各ステップを分担して実行させれば、上述した画像処理方法の各ステップが実行されるため、この画像処理方法と同様の作用効果が得られる。 The program of the present invention is for causing one or more computers to realize each step of the above-described image processing method. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.) or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by a single computer or if each step is shared and executed by a plurality of computers, each step of the above-described image processing method is executed. Therefore, the same effect as this image processing method can be obtained. can get.
次に、本発明の実施の形態を図面を用いて説明する。図1は、本実施形態であるプリンターシステム10の構成の概略の一例を示す構成図である。本実施形態のプリンターシステム10は、図1に示すように、印刷データの印刷処理を行う画像形成装置として機能するプリンター20と、プリンター20へデータ通信可能に接続され印刷データを出力する画像処理装置として機能するパソコン(PC)40とを備えている。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram illustrating an example of a schematic configuration of a printer system 10 according to the present embodiment. As shown in FIG. 1, a printer system 10 according to the present embodiment includes a
プリンター20は、図1に示すように、プリンター20の全体の制御を司るコントローラー21と、図示しないネットワークに接続された各機器とのデータの入出力を司るネットワークインターフェイス(I/F)26と、プリンター機構31及びプリンターASIC32を含んで構成されるプリンターユニット30と、を備えている。これら、コントローラー21、I/F26及びプリンターユニット30は、図示しないバスを介して互いにデータのやり取りが可能なように接続されている。
As shown in FIG. 1, the
コントローラー21は、CPU22を中心とするマイクロプロセッサーとして構成されており、各種処理プログラムを記憶したフラッシュROM23と、一時的にデータを記憶したりデータを保存したりするRAM24とを備えている。このコントローラー21は、プリンターASIC32へ印刷指令信号を出力したり、プリンターASIC32から印刷動作信号を入力したりする。また、コントローラー21は、I/F26を介してPC40とデータのやり取りを行う。
The
プリンター機構31は、タンデム型で中間転写方式を採用したフルカラーの電子写真方式のプリンター機構として構成されている。このプリンター機構31は、イエロー(Y),マゼンタ(M),シアン(C),ブラック(K)の各色の着色剤(トナー)を格納したトナーカートリッジ34Y,34M,34C,34Kと、図示しない露光器により形成された静電潜像をカートリッジ内に収容されたトナーで現像する現像ローラー35とを備えている。また、現像ローラ35の各トナー像が重なり合うよう一次転写される転写ベルト36と、用紙カートリッジ33から搬送された記録紙Sに転写ベルト36上の4色のトナー像を二次転写する転写ローラー37と、記録紙S上に転写された4色のトナー像を溶融し定着させる定着ローラー38とを備えている。
The
PC40は、ユーザーが使用する画像処理装置として構成されたパソコンである。このPC40は、装置全体の制御を司るコントローラー41と、各種アプリケーションプログラム(単にアプリケーションと称する)や各種データファイルを記憶する大容量メモリであるHDD45と、プリンター20などの外部機器とのデータの入出力を行うネットワークインターフェイス(I/F)46とを備えている。コントローラー41は、各種制御を実行するCPU42や各種制御プログラムを記憶するフラッシュROM43、データを一時記憶するRAM44などを備えている。また、PC40は、ユーザーが各種指令を入力するキーボード及びマウス等の入力装置47や、各種情報を表示するディスプレイ48などを備えている。このPC40は、ディスプレイ48に表示されたカーソル等をユーザーが入力装置47を介して入力操作するとその入力操作に応じた動作を実行する機能を有している。コントローラー41やHDD45、I/F46、入力装置47、ディスプレイ48などは、バス49によって電気的に接続され、各種制御信号やデータのやり取りができるよう構成されている。
The
このPC40のHDD45には、アプリケーションプログラムである第1アプリケーション12や、印刷データの生成を行う印刷ドライバー50などが格納されている。第1アプリケーション12は、例えば文書作成プログラムや、写真画像修正プログラム、表計算プログラムなどとしてもよく、ベクター形式の画像データの印刷処理を指令する機能を有している。印刷ドライバー50は、アプリケーション側から受けた印刷ジョブをプリンター20で直接印刷処理可能な印刷データへ変換してプリンター20側へ出力(送信)するプログラムである。この印刷ドライバー50は、レンダリング処理部51や、連続数計数部52、データ取得部53、連続数取得部54、データ生成部55、ルックアップテーブル(LUT)56、圧縮処理部57、データ出力部58などを有している。レンダリング処理部51は、アプリケーション側からベクターデータを取得し、取得したベクターデータからラスターデータであるRGB色空間(第1の色空間)の第1画像データを生成する機能を有している。連続数計数部52は、レンダリング処理部51で生成したラスターデータを用い、ラスターデータの画素の色の連続数をカウントし、カウントした連続数を第1画像データに格納する機能を有している。データ取得部53は、生成した第1画像データを入力する機能を有している。連続数取得部54は、第1画像に格納されている色の連続数を読み出す機能を有している。データ生成部55は、LUT56を利用してRGB色空間からCMYKの色空間の第2画像データに変換しプリンター20で印刷可能な印刷データを生成する機能を有している。LUT56は、RGB色空間の画素値とCMYKの色空間の画素値とが1対1で対応付けられている対応関係情報である。このLUT56は、3次元のRGB空間のR軸、G軸、B軸のそれぞれを所定のグリッド数で分割した格子点データを有しており、この格子点データには、RGBの値に対応するCMYKの値が対応付けられており、画像データに含まれる画素のRGB値とCMYK値との変換が可能である。このLUT56は、格子点の間のデータを周知の四面体補間処理を行うことによって、より格子点データの多いLUTに展開して利用される。圧縮処理部57は、データ生成部55により生成した第2画像データ(印刷データ)を所定の圧縮方式により圧縮処理する機能を有している。圧縮処理部57は、左右に隣り合う画素の値と上下行に隣り合う画素の値との関係に基づいてデータを圧縮する圧縮方式を採用している。データ出力部58は、圧縮処理された印刷データをI/F46を介してプリンター20へ送信する機能を有している。このレンダリング処理部51や、連続数計数部52、データ取得部53、連続数取得部54、データ生成部55、圧縮処理部57、データ出力部58は、それぞれ、プログラムとしてのレンダリング処理モジュール、連続数計数モジュール、データ取得モジュール、連続数取得モジュール、データ生成モジュール、圧縮処理モジュール、データ出力モジュールとして印刷ドライバー50に組み込まれている。そして、これらのモジュールがコントローラー41により実行されることによりそれぞれ上述した機能を発現するものとした。なお、例えば、印刷ジョブは、アプリケーションプログラムに応じたデータであって文字データなどのベクターデータを含むものとしてもよいし、印刷データは、プリンター20の各色の着色剤に応じたラスタデータなどとしてもよい。
The
次に、こうして構成された本実施形態のPC40の動作について、特に印刷対象である印刷ジョブを印刷データに変換してプリンター20に印刷させる処理について説明する。図2は、コントローラー41のCPU42により実行される印刷データ変換処理ルーチンの一例を示すフローチャートである。このルーチンは、HDD45に記憶され、印刷処理の実行指令が入力されたあとに実行される。印刷処理の実行指令は、例えば、ディスプレイ48に表示された、第1アプリケーション12の編集画面上で画像データを編集したあと、この画面上に表示された印刷実行ボタンをクリックすることにより入力されるものとしてもよい。また、印刷データ変換処理は、レンダリング処理部51や、連続数計数部52、データ取得部53、連続数取得部54、データ生成部55、LUT56、圧縮処理部57、データ出力部58などの各機能によって実行されるものとした。
Next, regarding the operation of the
このルーチンを実行すると、CPU42は、印刷ジョブを取得し(ステップS100)、取得した印刷ジョブに格納された画像データのレンダリング処理を実行する(ステップS110)。このレンダリング処理では、ベクターデータからラスターデータであるRGB色空間(第1の色空間)の第1画像データを生成する処理をレンダリング処理部51の機能を用いて行う。次に、CPU42は、生成したRGB色空間の第1画像データに含まれる、色が連続する、即ち画素値の連続する数である連続数をカウントし、カウントした連続数を第1画像データに書き込む処理を実行する(ステップS120)。ここで、連続数は、画像の左右方向に同じ画素値が連続する画素の数を連続数計数部52の機能を用いてカウントするものとした。図3は、RGB色空間の画像データに連続数を格納する処理の説明図である。図3に示すように、例えば、4つの画素が連続する場合は、先頭の画素を除き、連続数を3としてカウントするものとした。また、第1画像データでは、画素値として、R値、G値、B値及び連続数を含むRGBXのデータ形式で各値を格納するものとした。このように、まず、ベクターデータから画素値の連続数を含むRGB色空間の第1画像データ(ラスターデータ)を作成するのである。
When this routine is executed, the
RGB色空間の第1画像データを生成すると、次に、CPU42は、RGB色空間の第1画像データから、RGB色空間とは異なる色空間でありCMYKを基本色とするCMYK色空間(第2の色空間)の第2画像データへ変換する色空間変換処理を行う(ステップS130〜S190)。この処理では、まず、CPU42は、データ取得部53の機能を用いてRGB色空間の第1画像データの画素値を読み込み(ステップS130)、データ生成部55の機能を用いてRGB色空間の画素値からCMYK色空間の画素値へ変換し(ステップS140)、CMYKの各値を、各色のシートのうち対応するシートにそれぞれ格納する処理を行う(ステップS150)。ここで、読み込み画素は、例えば、最上段且つ左端の画素が初期画素に設定されており、右側に順次移行し、右端に至ると1段下の左端から右側に順に設定されるものとした。また、色空間の変換処理は、LUT56を用いてRGB色空間の画素値に対応するCMYK色空間の画素値を読み出す処理を行うものとした。次に、CPU42は、連続数取得部54の機能を用い、読み込み画素に連続数があるか否かを判定する(ステップS160)。連続数がないときには、全画素が終了したか否かを判定し(ステップS190)、全画素が終了していないときには、ステップS130以降の処理、即ち次の読み込み画素の画素値を読み込み、色空間の変換処理を繰り返し実行する。一方、ステップS160で連続数があるときには、画素値を書き込んだ次の画素に連続数を書き込み(ステップS170)、連続数に応じて空欄画素を設けると共にRGB色空間の第1画像データの読み込み画素を連続数に応じて読み飛ばす処理を行い(ステップS180)、ステップS190以降の処理を行う。
When the first image data in the RGB color space is generated, the
図4は、RGB色空間からCMYK色空間の画像データを生成し圧縮処理を実行する概要の説明図である。本実施形態の色空間変換処理では、RGBX形式データから、各色の画像データ(シート)を含むCMYKX形式データをダイレクトで生成する(図4の3段目参照)。図4では、理解の容易のため、本発明の処理では作成しないCMYK形式データを図4の2段目に示した。ここで、具体例として、RGBX形式データの読み込み画素がRGB=(a,b,c)、連続数X=3であり、これに対応するのがCMYK=(m,n,o,p)である場合の色空間変換処理について説明する。この色空間変換処理では、RGB値に対応するCMYK値を読み出すと、シアンシート、マゼンタシート、イエローシート及びブラックシートの対応画素の位置に変換後の画素値を格納する。即ち、CMYK=(m,n,o,p)では、シアンシートの対応画素に「m」、マゼンタシートの対応画素に「n」、イエローシートの対応画素に「o」、ブラックシートの対応画素に「p」の各画素値を格納する。更に、連続数X=3であるので、画素値を格納した画素の隣に「3」を格納する。更に、連続数に応じた空欄画素、例えば、連続数を格納した画素数を連続数から差し引いた数「2」の空欄画素を設ける。このとき、読み込み画素も連続数に応じた数「3」だけ読み飛ばす。このように、連続数を用いて読み込み画素の読み飛ばしを行うと共に、連続画素の画素値のコピーを省略する(CMYK形式データを作成しない)ことにより、変換効率を高めるのである。 FIG. 4 is an explanatory diagram of an outline of generating image data in the CMYK color space from the RGB color space and executing compression processing. In the color space conversion process of the present embodiment, CMYKX format data including image data (sheet) of each color is directly generated from RGBX format data (see the third row in FIG. 4). In FIG. 4, for easy understanding, the CMYK format data not created by the processing of the present invention is shown in the second row of FIG. Here, as a specific example, RGBX format data read pixels are RGB = (a, b, c), continuous number X = 3, and CMYK = (m, n, o, p) corresponds to this. A color space conversion process in a certain case will be described. In this color space conversion process, when the CMYK values corresponding to the RGB values are read, the converted pixel values are stored in the corresponding pixel positions of the cyan sheet, magenta sheet, yellow sheet, and black sheet. That is, when CMYK = (m, n, o, p), the corresponding pixel of the cyan sheet is “m”, the corresponding pixel of the magenta sheet is “n”, the corresponding pixel of the yellow sheet is “o”, and the corresponding pixel of the black sheet Each pixel value of “p” is stored in. Further, since the consecutive number X = 3, “3” is stored next to the pixel storing the pixel value. Furthermore, blank pixels corresponding to the continuous number, for example, “2” blank pixels obtained by subtracting the number of pixels storing the continuous number from the continuous number are provided. At this time, the read pixels are skipped by the number “3” corresponding to the continuous number. As described above, the conversion efficiency is improved by skipping the read pixels using the continuous number and omitting the copy of the pixel values of the continuous pixels (no CMYK format data is created).
ステップS190で色空間の変換が全画素終了したときには、CPU42は、圧縮処理部57の機能を用い、CMYK色空間の第2画像データの圧縮処理を行う(ステップS200)。ここで、圧縮処理は、左右に隣り合う画素の値と上下行に隣り合う画素の値との関係に基づいてデータを圧縮する。ここで、第2画像データでは、色が連続する画素については空欄画素としており(図4の3段目参照)、例えば、空欄画素を詰めた場合に比して、上下との関係を把握しやすく、圧縮処理をより円滑に行うことができる。圧縮処理を行うと、CPU42は、データ出力部58の機能を用い、圧縮後の第2画像データ(印刷データ)をI/F46を介してプリンター20へ送信し(ステップS210)、このルーチンを終了する。印刷データを受信したプリンター20のコントローラー21は、圧縮されている印刷データを解凍してCMYKの各色のラスターデータに解凍してこれをプリンターASIC32に出力する。これを入力したプリンターASIC32はプリンター機構31を駆動し、CMYKの各色の画像データに基づいて、4色のトナー像をそれぞれ形成し、4色のトナー像を、転写ベルト36上に転写したのち記録紙S上に更に転写して定着する印刷処理を実行する。
When the color space conversion is completed for all pixels in step S190, the
ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のコントローラー41及びデータ取得部53が本発明の画像データ取得手段に相当し、コントローラー41及び連続数取得部54が連続数取得手段に相当し、コントローラー41及びデータ生成部55がデータ生成手段に相当し、コントローラー41とレンダリング処理部51と連続数計数部52とが本発明の第1画像生成手段に相当し、データ出力部58が出力手段に相当する。また、RGB色空間が本発明の第1の色空間に相当し、CMYK色空間が第2の色空間に相当し、プリンター20が画像形成装置に相当し、PC40が画像処理装置に相当する。なお、本実施形態では、PC40の動作を説明することにより本発明の画像処理方法の一例も明らかにしている。
Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The
以上詳述した本実施形態のPC40によれば、ベクターデータを取得し、取得したベクターデータからラスターデータであるRGB色空間の第1画像データを生成すると共に、このラスターデータの画素の色の連続数をカウントし、カウントした連続数を第1画像データに格納する処理を行う。また、RGB色空間の第1画像データの画素値及び連続数を取得し、第1画像データの画素値を第2の色空間の画素値へ変換する。この変換後の画素値を第2の色空間の基本色ごとの画像データに格納して第2画像データを生成すると共に、第1画像データにおいて色が連続する画素については、変換後の画素値と色の連続数とを基本色ごとに画像データに格納して第2画像データを生成する。また、第1画像データにおいて色が連続する画素については、画素値の繰り返しコピーを行わずに第2画像データを生成する。このように、色空間を変換した画像データを生成するに際して、色が連続する画素については、連続数を用いて表現した画像データとするのである。また、画素値の繰り返しコピーを行わず、即ちCMYK形式データ(図4の2段目参照)の作成を省略するのである。したがって、画像変換の処理時間をより短縮することができる。また、全画素値が格納されたラスターデータの生成時に色の連続数をも記録するため、より効率よく連続数をカウントすることができる。
According to the
また、色が連続する画素において色の画素値及び連続数が格納されない画素は空欄として第2画像データを生成するため、画素値のコピー処理を省略することにより、画像変換の処理時間をより短縮することができる。更に、第2画像データを生成したのちに、例えば、上下行の値との差分によりこれを圧縮処理する場合があるが、空欄画素の存在により、この圧縮処理の処理時間をも短縮することができる。更にまた、RGB色空間の第1画像データに格納された連続数を取得するため、比較的容易に連続数を取得して画像変換の処理時間をより短縮することができる。そして、RGB色空間からCMYK色空間へ画像データを変換するため、表示画像によく用いられるRGB色空間と、印刷画像によく用いられるCMYK色空間との色変換の際に画像変換の処理時間をより短縮することができる。そしてまた、圧縮した第2画像データを出力するため、色変換した画像データをプリンター20で用いることができる。
In addition, since the second image data is generated for the pixels in which the color pixel value and the continuous number are not stored in the pixels where the colors are continuous, the image conversion processing time is further shortened by omitting the pixel value copy processing. can do. Furthermore, after generating the second image data, for example, there is a case where the compression processing is performed based on the difference from the value of the upper and lower rows. However, the processing time of the compression processing may be shortened due to the presence of the blank pixel. it can. Furthermore, since the continuous number stored in the first image data in the RGB color space is acquired, the continuous number can be acquired relatively easily and the processing time for image conversion can be further shortened. Then, in order to convert the image data from the RGB color space to the CMYK color space, the image conversion processing time is reduced when performing color conversion between the RGB color space often used for display images and the CMYK color space often used for print images. It can be shortened more. In addition, since the compressed second image data is output, the color-converted image data can be used by the
なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。 It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.
例えば、上述した実施形態では、ベクターデータからラスターデータに変換して第1画像データを生成するものとしたが、第1画像データを取得するものとすれば、特にこれに限定されず、第1画像データの生成処理を省略するものとしてもよい。 For example, in the above-described embodiment, the first image data is generated by converting the vector data into the raster data. However, the first image data is not particularly limited as long as the first image data is acquired. Image data generation processing may be omitted.
上述した実施形態では、画素値及び連続数が格納されない画素は空欄画素として第2画像データを生成するものとしたが、この空欄画素を省略してもよい。こうすれば、圧縮処理で処理時間がかかることはあるが、画像変換の処理時間をより短縮することはできる。 In the embodiment described above, the second image data is generated as a blank pixel for a pixel in which the pixel value and the continuous number are not stored. However, this blank pixel may be omitted. In this way, the compression processing may take a long processing time, but the image conversion processing time can be further shortened.
上述した実施形態では、変換した第2画像データを圧縮処理するものとしたが、特にこれに限定されず、圧縮処理を省略してもよい。こうしても、画像変換の処理時間をより短縮することができる。 In the embodiment described above, the converted second image data is compressed. However, the present invention is not particularly limited to this, and the compression process may be omitted. Even in this case, the processing time for image conversion can be further shortened.
上述した実施形態では、隣り合う画素の色の連続数を第1画像データに格納したRGBX形式の画像データとしたが、特にこれに限定されない。また、連続数を第1画像データから取得するものとしたが、特にこれに限定されない。例えば、連続数を第1画像データの生成時に連続数をカウントするものとしたが、RGB色空間からCMYK色空間への変換時に行うものとしてもよい。 In the above-described embodiment, the RGBX format image data in which the continuous number of colors of adjacent pixels is stored in the first image data is used. However, the present invention is not limited to this. Further, although the continuous number is obtained from the first image data, the present invention is not particularly limited to this. For example, the continuous number is counted when the first image data is generated, but may be performed when converting from the RGB color space to the CMYK color space.
上述した実施形態では、RGB色空間とCMYK色空間との変換処理を行うものとしたが、第1色空間と、これと異なる第2色空間との画像変換処理を行うものとすれば、特にこれに限定されない。 In the above-described embodiment, the conversion process between the RGB color space and the CMYK color space is performed. However, if the image conversion process between the first color space and the second color space different from the first color space is performed, the conversion process is performed. It is not limited to this.
上述した実施形態では、生成した第2画像データをプリンター20へ出力するものとしたが、特にこれに限定されない。例えば、プリンターシステム10では、プリンター20とPC40とを備えるものとしたが、図5に示すように、画像処理装置(PC40)の機能を兼ね備えたプリンター20B(画像形成装置)としてもよい。なお、図5では、上述したプリンター20と同様の構成については同じ符号を付与してその説明を省略する。こうしても、画像変換の処理時間をより短縮することができる。
In the above-described embodiment, the generated second image data is output to the
上述した実施形態では、電子写真方式のフルカラーのプリンター機構31を備えたプリンター20としたが、特にこれに限定されず、例えば、圧電素子又は加熱により加圧してインクを吐出するインクジェット方式のプリンター機構としてもよいし、熱転写式のプリンター機構としてもよいし、ドットインパクト方式のプリンター機構としてもよい。また、PC40のような画像処理装置としたが、画像処理方法としてもよいし、これを実行可能なプログラムの形式にしてもよい。
In the above-described embodiment, the
ここで、上述した印刷データ変換処理ルーチンによる色変換処理の時間短縮効果について検証した。ここでは、RGBX形式データ(図4の1段目)からCMYKX形式データ(図4の3段目)へ変換し圧縮した印刷データ(図4の4段目)を生成する処理(便宜的に本発明の色変換処理と称する)と、RGBX形式データからCMYK形式データ(図4の2段目)へ変換し圧縮した印刷データ(図4の4段目)を生成する処理(便宜的に参考処理と称する)との時間を計測し比較した。この本発明の色変換処理と参考処理とでは、最終的に生成される圧縮した印刷データの形式及び内容は同一である。なお、この参考処理においても、RGBX形式データに含まれる連続数を用いてCMYKの画素値をコピーする一方、連続数分だけRGBX形式データの画素値を読み飛ばす処理を行うことにより、CMYK形式データの作成の高速化を図るものとした。変換元となる第1画像として、文書データ、表計算データ、プレゼンテーションデータ、PDFデータ、グラデーション画像、画像付き文書データなどをモデルデータとして用い、変換処理時間を検証した。測定結果を表1に示すが、本発明の色変換処理では、参考処理に比して3倍程度、処理速度が向上する結果が得られた。このように、画像変換の処理時間をより短縮することができることが明らかとなった。 Here, the time reduction effect of the color conversion process by the print data conversion process routine described above was verified. Here, a process of converting the RGBX format data (first row in FIG. 4) to CMYKX format data (third row in FIG. 4) and generating compressed print data (fourth row in FIG. 4) (this is for convenience). (Referred to as color conversion processing of the invention) and processing for generating compressed print data (fourth row in FIG. 4) converted from RGBX format data to CMYK format data (second row in FIG. 4) (reference processing for convenience) Measured) and compared. In the color conversion process and the reference process of the present invention, the format and content of the finally generated compressed print data are the same. In this reference processing, the CMYK format data is copied by copying the CMYK pixel values using the continuous number included in the RGBX format data, while skipping the pixel values of the RGBX format data by the continuous number. To speed up the creation of As the first image to be converted, document data, spreadsheet data, presentation data, PDF data, gradation image, document data with image, etc. were used as model data, and the conversion processing time was verified. The measurement results are shown in Table 1. In the color conversion processing of the present invention, the processing speed was improved by about 3 times compared to the reference processing. Thus, it has become clear that the processing time of image conversion can be further shortened.
10 プリンターシステム、12 第1アプリケーション、20,20B プリンター、21 コントローラー、22 CPU、23 フラッシュROM、24 RAM、26 ネットワークインターフェイス(I/F)、30 プリンターユニット、31 プリンター機構、32 プリンターASIC、33 用紙カートリッジ、34C,34M,34Y,34K トナーカートリッジ、36 転写ベルト、37 転写ローラー、38 定着ローラー、40 パソコン(PC)、41 コントローラー、42 CPU、43 フラッシュROM、44 RAM、45 HDD、46 I/F、47 入力装置、48 ディスプレイ、49 バス、50 印刷ドライバー、51 レンダリング処理部、52 連続数計数部、53 データ取得部、54 連続数取得部、55 データ生成部、56 LUT、57 圧縮処理部、58 データ出力部、S 記録紙。 10 Printer system, 12 First application, 20, 20B Printer, 21 Controller, 22 CPU, 23 Flash ROM, 24 RAM, 26 Network interface (I / F), 30 Printer unit, 31 Printer mechanism, 32 Printer ASIC, 33 Paper Cartridge, 34C, 34M, 34Y, 34K Toner cartridge, 36 Transfer belt, 37 Transfer roller, 38 Fixing roller, 40 Personal computer (PC), 41 Controller, 42 CPU, 43 Flash ROM, 44 RAM, 45 HDD, 46 I / F , 47 input device, 48 display, 49 bus, 50 print driver, 51 rendering processing unit, 52 continuous number counting unit, 53 data acquisition unit, 54 continuous number acquisition , 55 data generation unit, 56 LUT, 57 compression processing unit, 58 a data output unit, S paper.
Claims (7)
前記第1の色空間の第1画像データを取得する画像データ取得手段と、
前記第1画像データの画素の色の連続数を取得する連続数取得手段と、
前記第2の色空間の第2画像データを生成するに際し、前記取得した前記第1画像データの画素値を前記第2の色空間の画素値へ変換し、該変換後の画素値を前記第2の色空間の基本色ごとの画像データに格納して前記第2画像データを生成すると共に、前記第1画像データにおいて色が連続する画素については、前記変換後の画素値と前記色の連続数とを前記基本色ごとに前記画像データに格納し、前記色が連続する画素において色の画素値及び連続数が格納されない画素は空欄として前記第2画像データを生成するデータ生成手段と、
前記生成した第2画像データを左右に隣り合う画素の値と上下行に隣り合う画素の値との関係に基づいて圧縮処理する圧縮処理部と、
を備えた画像処理装置。 An image processing apparatus that performs conversion between first image data in a first color space and second image data in a second color space that is a different color space from the first color space and includes a plurality of basic colors. There,
Image data acquisition means for acquiring first image data of the first color space;
Continuous number acquisition means for acquiring a continuous number of colors of pixels of the first image data;
When generating the second image data of the second color space, the pixel value of the acquired first image data is converted to the pixel value of the second color space, and the pixel value after the conversion is converted to the first color data. The second image data is generated by storing in the image data for each basic color in the two color spaces, and the pixel value after the conversion and the continuation of the color for the pixels in which the colors are continuous in the first image data stores the number in the image data for each of the basic colors, the pixel color of the pixel values and the number of consecutive not stored in the pixel where the color is continuous data generating means for generating said as a blank second image data,
A compression processing unit that compresses the generated second image data based on the relationship between the value of pixels adjacent to the left and right and the value of pixels adjacent to the upper and lower rows;
An image processing apparatus.
ベクターデータを取得し該取得したベクターデータからラスターデータである前記第1の色空間の第1画像データを生成すると共に、該ラスターデータの画素の色の連続数をカウントし該カウントした連続数を該第1画像データに格納する第1画像生成手段、を備えた画像処理装置。 An image processing apparatus according to claim 1 or 2,
Vector data is acquired, and first image data of the first color space, which is raster data, is generated from the acquired vector data, and the number of continuous colors of the pixels of the raster data is counted, and the counted number of continuous data is calculated. An image processing apparatus comprising: first image generation means for storing the first image data.
前記第2の色空間は、CMYK色空間である、請求項1〜3のいずれか1項に記載の画像処理装置。 The first color space is an RGB color space;
The second color space is a CMYK color space, the image processing apparatus according to any one of claims 1-3.
記録媒体上に画像を形成する画像形成装置へ前記生成した第2の色空間の第2画像データを出力する出力手段、を備えた画像処理装置。 An image processing apparatus according to any one of claims 1-4,
An image processing apparatus comprising: an output unit that outputs the generated second image data of the second color space to an image forming apparatus that forms an image on a recording medium.
(a)前記第1の色空間の第1画像データを取得するステップと、
(b)前記第1画像データの画素の色の連続数を取得する連続数取得手段と、
(c)前記第2の色空間の第2画像データを生成するに際し、前記取得した前記第1画像データの画素値を前記第2の色空間の画素値へ変換し、該変換後の画素値を前記第2の色空間の基本色ごとの画像データに格納して前記第2画像データを生成すると共に、前記第1画像データにおいて色が連続する画素については、前記変換後の画素値と前記色の連続数とを前記基本色ごとに前記画像データに格納し、前記色が連続する画素において色の画素値及び連続数が格納されない画素は空欄として前記第2画像データを生成するステップと、
(d)前記生成した第2画像データを左右に隣り合う画素の値と上下行に隣り合う画素の値との関係に基づいて圧縮処理するステップと、
を含む画像処理方法。 An image processing apparatus that performs conversion between first image data in a first color space and second image data in a second color space that is a different color space from the first color space and includes a plurality of basic colors. An image processing method to be executed,
(A) obtaining first image data of the first color space;
(B) continuous number acquisition means for acquiring a continuous number of colors of pixels of the first image data;
(C) When generating the second image data of the second color space, the pixel value of the acquired first image data is converted into the pixel value of the second color space, and the pixel value after the conversion In the image data for each basic color in the second color space to generate the second image data, and for the pixels in which the colors are continuous in the first image data, the converted pixel value and the a step to store a number of successive colors on the image data for each of the basic colors, for generating the second image data and color pixel a pixel value and the number of consecutive not stored with the blank in the pixel where the color is continuous ,
(D) compressing the generated second image data based on a relationship between a value of a pixel adjacent to the left and right and a value of a pixel adjacent to the upper and lower rows;
An image processing method including:
A program that causes one or more computers to implement each step of the image processing method according to claim 6 .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010283061A JP5771976B2 (en) | 2010-12-20 | 2010-12-20 | Image processing apparatus, image processing method, and program thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010283061A JP5771976B2 (en) | 2010-12-20 | 2010-12-20 | Image processing apparatus, image processing method, and program thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2012134622A JP2012134622A (en) | 2012-07-12 |
| JP5771976B2 true JP5771976B2 (en) | 2015-09-02 |
Family
ID=46649730
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010283061A Expired - Fee Related JP5771976B2 (en) | 2010-12-20 | 2010-12-20 | Image processing apparatus, image processing method, and program thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5771976B2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0591295A (en) * | 1991-09-25 | 1993-04-09 | Nec Off Syst Ltd | Image processing device |
| JP3680931B2 (en) * | 2000-02-23 | 2005-08-10 | 富士ゼロックス株式会社 | Image processing apparatus and image processing method |
| JP4096650B2 (en) * | 2002-07-22 | 2008-06-04 | セイコーエプソン株式会社 | Printer driver, computer readable medium, and image data conversion apparatus |
-
2010
- 2010-12-20 JP JP2010283061A patent/JP5771976B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2012134622A (en) | 2012-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6217339B2 (en) | Print control apparatus, print control method, and program | |
| US8768232B2 (en) | Information processing apparatus, image forming system, and computer program product | |
| EP2650775B1 (en) | Display processing apparatus, display processing system, display processing method, and computer program | |
| US8724171B2 (en) | Method of compressing color reproduction range and profile creation device using same | |
| US20130278952A1 (en) | Print controlling apparatus, print controlling system, print controlling method, and computer program product | |
| US20150070738A1 (en) | Image processing apparatus, image processing system, and image processing method | |
| JP2010137467A (en) | Image formation device, the printing support method, and printing support program | |
| JP2010118927A (en) | Program, recording medium, image processing apparatus, image processing method, and sheet for gradation correction parameter generation | |
| JP5671978B2 (en) | Image processing method, image processing apparatus, image processing program, and recording medium | |
| JP2011249996A (en) | Image processor, image transmitter, and program | |
| JP5135362B2 (en) | Image forming apparatus and image processing program | |
| JP5771976B2 (en) | Image processing apparatus, image processing method, and program thereof | |
| JP2010056769A (en) | Device and method for processing image | |
| JP6119115B2 (en) | Image forming apparatus | |
| JP5807471B2 (en) | Print control apparatus, calculation method, and program | |
| JP4868016B2 (en) | Image processing apparatus, image forming apparatus, and program | |
| JP2018107649A (en) | Image processing device and computer program | |
| JP2009177307A (en) | Image forming apparatus and method for generating thumbnail image | |
| CN104660841B (en) | Information processor and information processing method | |
| JP6390155B2 (en) | Color conversion program and color conversion apparatus | |
| JP5126693B2 (en) | Image forming apparatus and printing control method | |
| JP6287403B2 (en) | Color adjustment apparatus, image forming apparatus, and program | |
| JP6209913B2 (en) | Image processing apparatus, image processing system, image processing method, and program | |
| JP2016200999A (en) | Printing instruction device, printing system, and program | |
| JP5454259B2 (en) | Information processing apparatus, image processing system, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20131210 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140917 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141014 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141204 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20150602 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150615 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5771976 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |