JP4822960B2 - Image processing apparatus and image processing method - Google Patents
Image processing apparatus and image processing method Download PDFInfo
- Publication number
- JP4822960B2 JP4822960B2 JP2006188680A JP2006188680A JP4822960B2 JP 4822960 B2 JP4822960 B2 JP 4822960B2 JP 2006188680 A JP2006188680 A JP 2006188680A JP 2006188680 A JP2006188680 A JP 2006188680A JP 4822960 B2 JP4822960 B2 JP 4822960B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel data
- conversion
- image processing
- data
- converted
- 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
Images
Description
本発明は、印刷装置に配された画像処理装置における画像処理技術に関するものである。 The present invention relates to an image processing technique in an image processing apparatus arranged in a printing apparatus.
印刷装置において印刷を行う際に用いられる画像処理機能として、従来より、図1に示す各機能が知られている。 Conventionally, each function shown in FIG. 1 is known as an image processing function used when printing is performed in a printing apparatus.
同図において、101は画像構成部であり、受信した印刷データを描画展開し一連の画素データからなる描画データを生成する。102は色変換部であり、印刷データの色空間である入力色空間を、印刷装置の色空間である出力色空間に変換し、色材ごとの描画データに変換する。特許文献1には、色変換部102における色空間変換処理にルックアップテーブルを用いる構成が提案されている。
In the figure,
103は量子化部であり、色材ごとの描画データを印刷部104の解像度および階調数における色材量データに変換する。104は印刷部であり、色材量データに基づいて印刷ヘッドが動作し、紙などの媒体上に印刷を行う。印刷方式としては、例えば、インクジェット方式や電子写真方式等がある。
ここで、上述のような印刷装置の色空間変換処理で用いられるルックアップテーブルを、例えばダイナミックラム等に格納して利用しようとすると、格子点データの読み出しに時間がかかり、色空間変換処理に遅延が生じてしまう。この結果、印刷処理全体も遅延することとなる。このため、上述のような印刷装置では色空間変換処理の処理負荷を軽減させ、色空間変換処理の遅延を回避することが求められている。 Here, if the look-up table used in the color space conversion process of the printing apparatus as described above is to be stored and used in, for example, a dynamic ram or the like, it takes time to read grid point data, and the color space conversion process is performed. There will be a delay. As a result, the entire printing process is also delayed. For this reason, the printing apparatus as described above is required to reduce the processing load of the color space conversion process and avoid the delay of the color space conversion process.
本発明は、上記課題に鑑みてなされたものであり、印刷装置のための色空間変換処理負荷の軽減を図ることを目的とする。 The present invention has been made in view of the above problems, and an object thereof is to reduce the load of color space conversion processing for a printing apparatus.
上記の目的を達成するために本発明に係る画像処理装置は以下のような構成を備える。即ち、
印刷部を動作させるための動作データを生成する画像処理装置であって、
一連の画素データを、同じ値の画素データが連続する数を示す回数情報と当該画素データとに変換する第1の変換手段と、
前記第1の変換手段により変換された画素データを、前記印刷部の色空間の画素データに変換する第2の変換手段と、
前記第1の変換手段により変換された回数情報と画素データのうち、画素データを前記第2の変換手段により変換された画素データを用いて置換する置換手段と、
前記置換手段によって置換された画素データを、前記回数情報が表わす回数繰り返して出力する出力手段と、
前記出力手段の出力した画素データを、前記動作データとしての解像度および階調数に変換する第3の変換手段とを備える。
In order to achieve the above object, an image processing apparatus according to the present invention comprises the following arrangement. That is,
An image processing apparatus that generates operation data for operating a printing unit,
First conversion means for converting a series of pixel data into number information indicating the number of consecutive pixel data of the same value and the pixel data;
Second conversion means for converting the pixel data converted by the first conversion means into pixel data in a color space of the printing unit;
Of the number information and pixel data converted by the first conversion means, replacement means for replacing pixel data using pixel data converted by the second conversion means;
Output means for repeatedly outputting the pixel data replaced by the replacement means a number of times represented by the number-of-times information;
And third conversion means for converting the pixel data output from the output means into the resolution and the number of gradations as the operation data .
本発明によれば、印刷装置のための色空間変換処理負荷の軽減が実現できる。 According to the present invention, it is possible to reduce the load of color space conversion processing for a printing apparatus.
以下、添付図面を参照しながら、本発明の好適な実施形態について説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
[第1の実施形態]
図2は本発明の第1の実施形態にかかる画像処理装置を備える印刷装置の機能構成を示す図である。
[First Embodiment]
FIG. 2 is a diagram illustrating a functional configuration of a printing apparatus including the image processing apparatus according to the first embodiment of the present invention.
201は画像構成部であり、入力された印刷データを描画展開し、一連の画素データからなる描画データを生成する。
An
202は圧縮部であり、画像構成部201によって生成された一連の画素データからなる描画データを圧縮し、第1の圧縮符号列を生成する。描画データの圧縮方式としては、例えば、ランレングス圧縮方式が挙げられる。
A
なお、ここでは、画像構成部201より出力される描画データを構成する画素データが、R、G、Bの各色成分量により表現されているものとする。そうすると、ランレングス圧縮方式により圧縮された第1の圧縮符号列は、図3に示すように、RGB色空間で各画素の色を表現する部分符号301と、同一の値の画素データの連続数を示す部分符号302とによって構成されることとなる。
Here, it is assumed that the pixel data constituting the drawing data output from the
つまり、圧縮部202では、描画データを所定の順序で処理した際に、同一の値の画素データが連続していた場合には、部分符号302を用いることで、それらの画素データをまとめる処理を行う。一方、処理対象となっている画素データが直前に処理した画素データと異なっていた場合には、該処理対象となっている画素データはまとめられることなく上記第1の圧縮符号列に追加されることとなる。また、部分符号302の値が所定の閾値を越えた場合にも、該閾値を超えた際に処理対象となっていた画素データが上記第1の圧縮符号列に追加されることとなる。通常の印刷データの場合、このような簡単な圧縮方式でも良好な圧縮効果が得られる。
That is, in the
図2に戻る。203は抽出部であり、圧縮部202より出力された第1の圧縮符号列のうち、色を表現する情報からなる部分符号301を抽出し、色変換部204に送出する。また、抽出部203では、あわせて第1の圧縮符号列全体を置換部205に送出する。
Returning to FIG.
204は色変換部であり、RGB色空間の画素データからCMYK色空間の画素データへと色空間変換処理を行う。
A
205は置換部であり、色変換部204においてCMYK色空間の画素データに変換された部分符号301を用いて、抽出部203より送出された第1の圧縮符号列を置換し、第2の圧縮符号列を生成する。
A
図4は、第2の圧縮符号列の一例を示す図である。図4に示すように、第2の圧縮符号列は、CMYK色空間の画素データで表現された部分符号401と、同一の値の画素データの連続数を示す部分符号402とによって構成される。第1の圧縮符号列では、部分符号301がRGB色空間の画素データであるのに対し、第2の圧縮符号列では、部分符号401がCMYK色空間の画素データとなっている。このため、図4に示すように部分符号401の符号長は部分符号301の符号長とは異なってくる。
FIG. 4 is a diagram illustrating an example of the second compression code string. As shown in FIG. 4, the second compression code string includes a
再び、図2に戻る。206は伸張部であり、置換部205において生成された第2の圧縮符号列を非圧縮形式に伸張する。207は量子化部であり、画像構成部201の解像度および色変換部204の出力階調数を、印刷部208に応じた解像度・階調数に変換し、色材量データを生成する。
Returning again to FIG.
208は印刷部であり、色材量データに基づいて印刷ヘッドが動作し、紙などの媒体上に出力する。 20 8 is a printing unit, operates the printing head on the basis of the color material amount data, and outputs on a medium such as paper.
以上の説明から明らかなように、本実施形態によれば、色変換部の前に描画データを圧縮する圧縮部を設け、色変換部において処理される描画データのデータ量を削減することにより、色空間変換処理負荷の軽減を実現することが可能となる。 As is clear from the above description, according to the present embodiment, by providing a compression unit that compresses drawing data before the color conversion unit, and reducing the amount of drawing data processed in the color conversion unit, It is possible to reduce the load of color space conversion processing.
なお、本実施形態によれば、圧縮部から伸長部までの間の描画データのデータ量が削減されるため、この間に配されるバッファ(不図示)についてのメモリ容量を削減できるという付帯的な効果も得られる。 According to the present embodiment, since the amount of drawing data between the compression unit and the decompression unit is reduced, it is incidental that the memory capacity of a buffer (not shown) arranged therebetween can be reduced. An effect is also obtained.
[第2の実施形態]
上記第1の実施形態では、一連の画素データからなる描画データにおいて同一の値の画素データが連続していた場合に、該連続する画素データのうちの1つを部分符号301とし、連続する回数を部分符号302として第1の圧縮符号列を生成した。しかしながら、本発明における第1の圧縮符号列は特にこれに限定されない。以下、本実施形態の詳細について説明する。なお、本実施形態にかかる印刷装置の機能構成は図1と同様であるため、ここでは説明を省略する。
[Second Embodiment]
In the first embodiment, when pixel data having the same value is consecutive in drawing data composed of a series of pixel data, one of the continuous pixel data is set as a
1.圧縮部202で生成される第1の圧縮符号列(その1)
図5は、圧縮部202において生成される第1の圧縮符号列の構成を示す図である。同図は、圧縮部202が一連の画素データからなる描画データを処理していくにあたり、それまでに処理していなかった画素データを処理対象とした場合に生成される第1の圧縮符号列の一例である。
1. First compression code string generated by the compression unit 202 (part 1)
FIG. 5 is a diagram illustrating a configuration of a first compression code string generated in the
図5に示すように、この場合の第1の圧縮符号列は、2種類の符号(画素データ登録符号501、連続数符号502)から構成される。501は画素データ登録符号であり、符号の種類を判別するためのフラグ501−1と、後述する辞書Dに登録するRGB色空間の画素データ501−2とを備える。一方、502は連続数符号であり、符号の種類を判別するためのフラグ502−1と、辞書Dに登録された画素データ501−2を識別するための辞書インデックス(識別情報)502−2と、連続する画素データの連続数502−3とを備える。
As shown in FIG. 5, the first compression code string in this case is composed of two types of codes (pixel
2.圧縮部202で生成される第1の圧縮符号列(その2)
図6は、圧縮部202において生成される第1の圧縮符号列の他の構成を示す図である。同図は、圧縮部202が一連の画素データからなる描画データを処理していくにあたり、処理対象となる画素データの値と同一の値の画素データをすでに処理していた場合に生成される第1の圧縮符号列の一例である。
2. First compression code string generated by the compression unit 202 (part 2)
FIG. 6 is a diagram illustrating another configuration of the first compression code string generated by the
図6に示すように、この場合の第1の圧縮符号列は、1種類の符号(連続数符号602)のみから構成される。602は連続数符号であり、符号の種類を判別するためのフラグ602−1と、当該画素データに対応する辞書インデックス602−2と、連続する画素データの連続数602−3とを備える。
As shown in FIG. 6, the first compression code string in this case is composed of only one type of code (continuous number code 602).
3.置換部205で生成される第2の圧縮符号列(その1)
図7は、置換部205で生成される第2の圧縮符号列の構成を示す図であり、圧縮部202において、図5に示す第1の圧縮符号列(画素データ登録符号501と連続数符号502とを備える)が生成された場合に、生成される第2の圧縮符号列を示す図である。
3. Second compression code string generated by replacement section 205 (part 1)
FIG. 7 is a diagram illustrating a configuration of the second compression code string generated by the
図5で示したように、それまでに処理していなかった画素データを処理対象とした場合に圧縮部202にて生成される第1の圧縮符号列には、画素データ登録符号501と連続数符号502とが含まれる。この場合、画素データ登録符号501の画素データ登録符号501−2(RGB色空間の画素データ)は、抽出部203で抽出され、色変換部204で色空間変換処理がなされた後、置換部205に送信される。また、あわせて第1の圧縮符号列全体が抽出部203から置換部205に送信される。
As shown in FIG. 5, the pixel
このため、図7に示すように、第2の圧縮符号列は、2種類の符号(画素データ登録符号701、連続数符号502)から構成されることとなる。701は画素データ登録符号であり、符号の種類を判別するためのフラグ701−1と、CMYK色空間の画素データ701−2とを備える。502は圧縮部202で生成された連続数符号である。
Therefore, as shown in FIG. 7, the second compression code string is composed of two types of codes (pixel
つまり、第2の圧縮符号列を構成する2種類の符号のうち、連続数符号502は、圧縮部202で生成された第1の圧縮符号列の連続数符号502そのものである。
That is, among the two types of codes constituting the second compression code string, the
一方、第2の圧縮符号列を構成する2種類の符号のうち、画素データ登録符号701は、色変換部204において色空間変換処理された処理結果を受け取って、第1の圧縮符号列の画素データ501−2を置換することで得られたものである。
On the other hand, among the two types of codes constituting the second compression code string, the pixel
なお、色変換部204で色空間変換処理されることで得られた画素データ701−2は、辞書インデックス502−2と対応付けて辞書Dに登録される。
Note that pixel data 701-2 obtained by color space conversion processing by the
4.置換部205で生成される第2の圧縮符号列(その2)
図8は、置換部205で生成される第2の圧縮符号列の構成を示す図であり、圧縮部202において、図6に示す第1の圧縮符号列(連続数符号602のみを備える)が生成された場合に、生成される第2の圧縮符号列を示す図である。
4). Second compression code string generated by replacement section 205 (part 2)
FIG. 8 is a diagram illustrating a configuration of the second compression code string generated by the
上述のように、圧縮部202が一連の画素データからなる描画データを処理していくにあたり、処理対象となる画素データの値と同じ値の画素データをすでに処理していた場合に生成される第1の圧縮符号列には、連続数符号602のみが含まれる。この場合、連続数符号602のみが抽出部203を介して置換部205に送信される。
As described above, when the
このため、図8に示すように、第2の圧縮符号列は、連続数符号602のみから構成されることとなる。連続数符号602は、圧縮部202で生成された第1の圧縮符号列の連続数符号602そのものである。つまり、置換部205では圧縮部202で生成された第1の圧縮符号列の連続数符号602を第2の圧縮符号列として出力する。
For this reason, as shown in FIG. 8, the second compression code string is composed of only the
5.辞書Dの構成
図9は、辞書Dの構成を示す図である。同図に示すように、辞書Dは、圧縮部202で生成された第1の圧縮符号列に含まれる画素データ501−2(RGB色空間の画素データ)および辞書インデックス502−2を備える。また、色変換部204で色空間変換処理がなされ、置換部205に送信された画素データ701−2(CMYK色空間の画素データ)を備える(これらは互いに対応付けられて、リストとして格納されている)。
5. Configuration of Dictionary D FIG. 9 is a diagram showing the configuration of the dictionary D. As shown in the figure, the dictionary D includes pixel data 501-2 (RGB color space pixel data) and a dictionary index 502-2 included in the first compression code string generated by the
つまり、処理対象となる画素データの値と同一の値の画素データをすでに処理していた場合には、辞書Dを用いることで当該画素データについての色空間変換処理後の画素データを取得することができる。つまり、色変換部204を用いる必要がない。なお、辞書Dより色空間変換処理後の画素データを取得するにあたっては、辞書インデックス602−2を検索条件として用いる。
That is, when pixel data having the same value as the pixel data to be processed has already been processed, the dictionary D is used to obtain pixel data after color space conversion processing for the pixel data. Can do. That is, it is not necessary to use the
6.圧縮部202における処理の流れ
図10は、本実施形態における第1の圧縮符号列を生成するための、圧縮部202における処理の流れを示す図である。
6). Process stream view 10 of the
ステップS1001では、辞書Dの初期化を行う。ステップS1002では、一連の画素データからなる描画データのうち、最初の画素データ(RGB)を得る。ステップS1003では、ステップS1002で得られた最初の画素データ(RGB)を辞書Dに登録する。その際に、当該最初の画素データを含む画素データ登録符号501を出力する。なお、辞書Dへの登録に際して付される辞書インデックスは、登録順に付されるものとする。 In step S1001, the dictionary D is initialized. In step S1002, the first pixel data (RGB) is obtained from the drawing data including a series of pixel data. In step S1003, the first pixel data (RGB) obtained in step S1002 is registered in the dictionary D. At that time, it outputs the pixel data registration code 5 01 including the first pixel data. It is assumed that the dictionary index attached at the time of registration in the dictionary D is attached in the order of registration.
ステップS1004では、同一の値の画素データの連続判定に用いるパラメータである前処理画素データPおよび同一の値の画素データの連続数カウンタNが設定される。具体的には、前処理画素データPには、当該最初の画素データが設定される。また、連続数カウンタNには1が設定される。以下、引き続き一連の画素データからなる描画データの各画素データを全て処理するためにステップS1005乃至ステップS1012の処理が繰り返される。 In step S1004, preprocessed pixel data P, which is a parameter used for continuous determination of pixel data having the same value, and a continuous number counter N of pixel data having the same value are set. Specifically, the first pixel data is set in the preprocessed pixel data P. Further, 1 is set in the continuous number counter N. Subsequently, the processing from step S1005 to step S1012 is repeated to process all the pixel data of the drawing data including a series of pixel data.
ステップS1005では、次の処理対象の画素データ(RGB)を得る。ステップS1006では、同一の値の画素データが連続しているか否かを判定する。具体的には、該処理対象の画素データ(RGB)が前処理画素データPと等しいか否かにより判定する。処理対象の画素データ(RGB)が前処理画素データPと等しいと判定された場合には、ステップS1007に進む。一方、等しくないと判定された場合には、ステップS1008に進む。 In step S1005, pixel data (RGB) to be processed next is obtained. In step S1006, it is determined whether pixel data having the same value is continuous. Specifically, the determination is made based on whether or not the pixel data (RGB) to be processed is equal to the preprocessed pixel data P. If it is determined that the pixel data (RGB) to be processed is equal to the preprocessed pixel data P, the process proceeds to step S1007. On the other hand, if it is determined that they are not equal, the process proceeds to step S1008.
ステップS1007では、連続数カウンタNのカウントアップを行う。一方、ステップS1008では、前処理画素データPの辞書インデックスおよび連続数カウンタNを含む連続数符号602を出力する。
In step S1007, the continuous number counter N is counted up. On the other hand, in step S1008, the
ステップS1009では、処理対象の画素データ(RGB)を辞書D内で検索し、該画素データ(RGB)が辞書Dに登録されているか否かを判定する。処理対象となる画素データが既に辞書Dに登録されていると判定された場合には、ステップS1011に進む。一方、登録されていないと判定された場合には、ステップS1010に進む。 In step S1009, pixel data (RGB) to be processed is searched in the dictionary D, and it is determined whether or not the pixel data (RGB) is registered in the dictionary D. If it is determined that the pixel data to be processed is already registered in the dictionary D, the process proceeds to step S1011. On the other hand, if it is determined that it is not registered, the process proceeds to step S1010.
ステップS1010では、ステップS1003と同様に、画素データ(RGB)を新たに辞書Dに登録する。新たに使用する辞書インデックスは直前に登録したものより一つ大きいものとする。ただし、辞書Dに登録可能な所定の色数を超える場合には、既に登録されている画素データのうち最初に登録されたものを削除して、以降、削除されたものと同じ辞書インデックスを新たに登録する画素データで使用するものとする。 In step S1010, pixel data (RGB) is newly registered in the dictionary D as in step S1003. It is assumed that the dictionary index to be newly used is one larger than that registered immediately before. However, when the number of colors that can be registered in the dictionary D is exceeded, the first registered pixel data among the already registered pixel data is deleted, and thereafter, the same dictionary index as the deleted one is newly added. It is assumed that it is used for pixel data registered in.
なお、辞書Dに登録可能な所定の色数を超えた場合の処理については、特にこれに限られない。例えば、画素データ登録符号602について辞書インデックスを指定する欄を設け、さらに、辞書Dに登録された画素データの参照順序、もしくは、参照頻度に基づいて削除する辞書インデックスを選択するように構成してもよい。
The processing when the predetermined number of colors that can be registered in the dictionary D is not particularly limited. For example, a column for designating a dictionary index for the pixel
一方、ステップS1011では、検索された辞書インデックスを取得する。 On the other hand, in step S1011, the searched dictionary index is acquired.
ステップS1012では、同一の値の画素データの連続判定に用いる前処理画素データPおよび同一の値の画素データの連続数カウンタNを設定する。具体的には、現在の処理対象の画素データ(RGB)が前処理画素データPに設定される。また、連続数カウンタNには1が設定される。 In step S1012, the preprocess pixel data P used for continuous determination of pixel data having the same value and the continuous number counter N of pixel data having the same value are set. Specifically, the current pixel data (RGB) to be processed is set as the preprocessed pixel data P. Further, 1 is set in the continuous number counter N.
以上、ステップS1005よりステップS1012までを所定回数繰り返す。ステップS1013では、前処理画素データPの辞書インデックスおよび連続数カウンタNを含む連続数符号602を出力する。これにより最後の画素データに対応する連続数符号602が出力される。
As described above, steps S1005 to S1012 are repeated a predetermined number of times. In step S1013, the
以上の手順で一連の描画データに含まれる画素データについての第1の圧縮符号列が得られる。抽出部203では、当該第1の圧縮符号列を順次置換部205に送出する。その際、画素データ登録符号501を検出した場合は、これを抽出し、色変換部204に送出すると共に、色変換部204対して色空間変換処理を行うよう指示を出す。
With the above procedure, a first compression code string for pixel data included in a series of drawing data is obtained. The
置換部205では、第1の圧縮符号列中、連続数符号502または602と同じものを第2の圧縮符号列の連続数符号502または602として出力する。また、画素データ登録符号501については色変換部204より得られる色空間変換結果(CMYK値)701−2で置換し、画素データ登録符号701として出力する。
The
6.伸長部206における処理の流れ
図11は伸張部206における伸張処理の流れを示す図である。伸張部206は所定の色数を登録することが可能な辞書Dを用いて伸張を行う。
6). Figure processing flow in the
ステップS1101では、辞書Dおよび伸張処理の初期化を行う。ステップS1102乃至S1109の一連の処理を繰り返すことによって所定数の画素データを得ることができる。 In step S1101, the dictionary D and expansion processing are initialized. A predetermined number of pixel data can be obtained by repeating a series of processes in steps S1102 to S1109.
ステップS1102では、第2の圧縮符号列の入力の要否を判定する。すなわち、以前の連続数符号502(または602)による連続数502−3(または602−3)が0になるまでの間は、直前と同じ画素データ(CMYK)を出力するようにステップS1103以降の処理を飛ばしてステップS1109へと進む。 In step S1102, it is determined whether or not it is necessary to input the second compression code string. That is, until the continuous number 502-3 (or 602-3) based on the previous continuous number code 502 (or 602) becomes 0, the same pixel data (CMYK) as that immediately before is output from step S1103 onward. The process is skipped and the process proceeds to step S1109.
ステップS1103では、第2の圧縮符号列の画素データ登録符号701と連続数符号502(または602)のフラグF(701−1、502−1、602−1)を入力する。
In step S1103, the pixel
ステップS1104では、フラグFの内容によって、ステップS1105もしくはステップS1107へと分岐する。具体的には、第2の圧縮符号列が、画素データ登録符号701と連続数符号502とを含むものであった場合(すなわち、図7に示す第2の圧縮符号列であった場合)には、ステップS1105に進む。一方、第2の圧縮符号列が、連続数符号602のみを含むものであった場合(すなわち、図8に示す第2の圧縮符号列であった場合)には、ステップS1107に進む。
In step S1104, the process branches to step S1105 or step S1107 depending on the content of the flag F. Specifically, (ie, when was the second compressed code string shown in FIG. 7) the second compressed code string, when was comprised of a continuous number code 5 02 pixel
ステップS1105では、辞書Dに登録すべき画素データ(CMYK)701−2を取得する。更にステップS1106では、当該画素データ(CMYK)701−2を辞書Dに登録する。 In step S1105, pixel data (CMYK) 701-2 to be registered in the dictionary D is acquired. In step S1106, the pixel data (CMYK) 701-2 is registered in the dictionary D.
一方、ステップS1107では、辞書インデックス602−2および連続数602−3を取得するとともに、取得した連続数602−3を連続数カウンタNに設定する。ステップS1108では、辞書Dを用いて辞書インデックス602−2より画素データ(CMYK)を得る(これにより、色空間変換処理後の画素データが得られる。つまり、図8に示す第2の圧縮符号列であった場合には、伸長部が色空間変換処理を行う色変換部として機能する)。ステップS1109では、当該取得した画素データを出力するとともに、連続数カウンタNをデクリメントする。 On the other hand, in step S1107, the dictionary index 602-2 and the continuous number 602-3 are acquired, and the acquired continuous number 602-3 is set in the continuous number counter N. In step S1108, pixel data (CMYK) is obtained from the dictionary index 602-2 using the dictionary D (thereby, pixel data after color space conversion processing is obtained. That is, the second compression code string shown in FIG. 8 is obtained. The expansion unit functions as a color conversion unit that performs color space conversion processing). In step S1109, the acquired pixel data is output and the continuous number counter N is decremented.
以上の説明から明らかなように、本実施形態によれば、圧縮部202において処理対象となる画素データが辞書Dに登録されていた場合には、画素データ登録符号501が発生せず、色変換部204での色空間変換処理は行われない。つまり、色空間変換処理は画素データ登録符号501毎に1回行われるだけとなるため、第1の実施形態と比較して、色空間変換処理の処理負荷がさらに軽減されることとなる。
As is clear from the above description, according to the present embodiment, when pixel data to be processed is registered in the dictionary D in the
画素データ登録符号501が発生するのは、各色が最初に使用されるとき、もしくは、辞書Dから削除されて以降最初に使用されるときに限られる。つまり、画素データ登録符号501が発生するケースとは、色空間変換処理においてルックアップテーブルにキャッシュを適用した場合の、キャッシュミスが発生したケースに相当すると考えることができる。しかしながら、色空間変換処理にキャッシュを用いた構成と比較すると、本実施形態の場合は、圧縮によるデータ量削減により、バッファのメモリ量が削減できるという更なる効果がある。また、圧縮によるデータ量削減により色空間変換処理の回数を削減できるため、機器の消費電力を削減できるという効果もある。
The pixel
[他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
[Other Embodiments]
Note that the present invention can be applied to a system (for example, a copier, a facsimile machine, etc.) consisting of a single device even when applied to a system composed of a plurality of devices (for example, a host computer, interface device, reader, printer, etc.). You may apply.
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給するよう構成することによっても達成されることはいうまでもない。この場合、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することにより、上記機能が実現されることとなる。なお、この場合、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。 Needless to say, the object of the present invention can also be achieved by supplying a system or apparatus with a storage medium storing software program codes for realizing the functions of the above-described embodiments. In this case, the above functions are realized by the computer (or CPU or MPU) of the system or apparatus reading and executing the program code stored in the storage medium. In this case, the storage medium storing the program code constitutes the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、フロッピ(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。 As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like is used. be able to.
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現される場合に限られない。例えば、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Further, the present invention is not limited to the case where the functions of the above-described embodiments are realized by executing the program code read by the computer. For example, an OS (operating system) running on a computer performs part or all of actual processing based on an instruction of the program code, and the functions of the above-described embodiments may be realized by the processing. Needless to say, it is included.
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、前述した実施形態の機能が実現される場合も含まれる。つまり、プログラムコードがメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって実現される場合も含まれる。 Furthermore, after the program code read from the storage medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the functions of the above-described embodiments are realized. Is also included. That is, after the program code is written in the memory, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing based on the instruction of the program code, and is realized by the processing. This is also included.
101 画像構成部
102 色変換部
103 量子化部
104 印刷部
201 画像構成部
202 圧縮部
203 抽出部
204 色変換部
205 置換部
206 伸張部
207 量子化部
208 印刷部
DESCRIPTION OF
Claims (5)
一連の画素データを、同じ値の画素データが連続する数を示す回数情報と当該画素データとに変換する第1の変換手段と、
前記第1の変換手段により変換された画素データを、前記印刷部の色空間の画素データに変換する第2の変換手段と、
前記第1の変換手段により変換された回数情報と画素データのうち、画素データを前記第2の変換手段により変換された画素データを用いて置換する置換手段と、
前記置換手段によって置換された画素データを、前記回数情報が表わす回数繰り返して出力する出力手段と、
前記出力手段の出力した画素データを、前記動作データとしての解像度および階調数に変換する第3の変換手段と
を備えることを特徴とする画像処理装置。 An image processing apparatus that generates operation data for operating a printing unit,
First conversion means for converting a series of pixel data into number information indicating the number of consecutive pixel data of the same value and the pixel data;
Second conversion means for converting the pixel data converted by the first conversion means into pixel data in a color space of the printing unit;
Of the number information and pixel data converted by the first conversion means, replacement means for replacing pixel data using pixel data converted by the second conversion means;
Output means for repeatedly outputting the pixel data replaced by the replacement means a number of times represented by the number-of-times information;
An image processing apparatus comprising: third conversion means for converting pixel data output from the output means into resolution and gradation number as the operation data.
第1の変換手段が、一連の画素データを、同じ値の画素データが連続する数を示す回数情報と当該画像データとに変換する第1の変換工程と、
第2の変換手段が、前記第1の変換工程において変換された画素データを、前記印刷部の色空間の画素データに変換する第2の変換工程と、
置換手段が、前記第1の変換工程において変換された回数情報と画素データのうち、画素データを前記第2の変換工程において変換された画素データを用いて置換する置換工程と、
出力手段が、前記置換工程において置換された画素データを、前記回数情報が表わす回数繰り返して出力する出力工程と、
第3の変換手段が、前記出力工程において出力された画素データを、前記動作データとしての解像度および階調数に変換する第3の変換工程と
を備えることを特徴とする画像処理方法。 An image processing method in an image processing apparatus for generating operation data for operating a printing unit,
A first conversion step in which a first conversion unit converts a series of pixel data into frequency information indicating the number of consecutive pixel data of the same value and the image data;
A second conversion step in which a second conversion unit converts the pixel data converted in the first conversion step into pixel data in a color space of the printing unit;
A replacement step of replacing the pixel data with the pixel data converted in the second conversion step, out of the number information and the pixel data converted in the first conversion step;
An output step in which the output means repeatedly outputs the pixel data replaced in the replacement step a number of times represented by the frequency information;
An image processing method comprising: a third conversion step, wherein the third conversion unit converts the pixel data output in the output step into a resolution and a gradation number as the operation data.
前記一連の画素データを順次処理するにあたり、同じ値の画素データが連続して連なっている場合に、前記変換した1の画素データを識別する識別情報と対応付けて該1の画素データをリストに登録し、
同じ値の画素データが連続して連なっている場合であって、該画素データが既に前記リストに登録された画素データと同じであった場合には、該連続する複数の画素データを、該連続する回数を表す回数情報と該画素データを識別する識別情報とに変換し、
前記第2の変換工程は、前記色空間に変換した画素データを、前記画素データを識別する識別情報と対応付けて前記リストに登録することを特徴とする請求項2に記載の画像処理方法。 The first conversion step includes
When sequentially processing the series of pixel data, when the pixel data of the same value are continuously connected, the one pixel data is listed in association with the identification information for identifying the converted one pixel data. Register,
When pixel data having the same value is continuously connected and the pixel data is the same as the pixel data already registered in the list, the plurality of continuous pixel data are The number of times representing the number of times to be converted into identification information for identifying the pixel data,
The image processing method according to claim 2 , wherein the second conversion step registers the pixel data converted into the color space in the list in association with identification information for identifying the pixel data.
一連の画素データを、同じ値の画素データが連続する数を示す回数情報と当該画素データとに変換する第1の変換手順と、
前記第1の変換手順において変換された画素データを、前記印刷部の色空間の画素データに変換する第2の変換手順と、
前記第1の変換手順において変換された回数情報と画素データのうち、画素データを前記第2の変換手順において変換された画素データを用いて置換する置換手順と、 前記置換手順において置換された画素データを、前記回数情報が表わす回数繰り返して出力する出力手順と、
前記出力手順において出力された画素データを、前記動作データとしての解像度および階調数に変換する第3の変換手順と
をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute an image processing procedure for generating operation data for operating a printing unit,
A first conversion procedure for converting a series of pixel data into frequency information indicating the number of consecutive pixel data of the same value and the pixel data;
A second conversion procedure for converting the pixel data converted in the first conversion procedure into pixel data in a color space of the printing unit;
Of the number-of-times information and pixel data converted in the first conversion procedure, a replacement procedure for replacing pixel data with the pixel data converted in the second conversion procedure, and a pixel replaced in the replacement procedure An output procedure for repeatedly outputting the data the number of times represented by the frequency information;
A program for causing a computer to execute a third conversion procedure for converting pixel data output in the output procedure into resolution and gradation number as the operation data.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006188680A JP4822960B2 (en) | 2006-07-07 | 2006-07-07 | Image processing apparatus and image processing method |
US11/772,981 US8134742B2 (en) | 2006-07-07 | 2007-07-03 | Output device and method for outputting density data corresponding to a color material to a printing unit |
US13/351,656 US8320018B2 (en) | 2006-07-07 | 2012-01-17 | Method and means for converting image data in encoded format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006188680A JP4822960B2 (en) | 2006-07-07 | 2006-07-07 | Image processing apparatus and image processing method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2008017361A JP2008017361A (en) | 2008-01-24 |
JP2008017361A5 JP2008017361A5 (en) | 2009-08-06 |
JP4822960B2 true JP4822960B2 (en) | 2011-11-24 |
Family
ID=39073948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006188680A Expired - Fee Related JP4822960B2 (en) | 2006-07-07 | 2006-07-07 | Image processing apparatus and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4822960B2 (en) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3680931B2 (en) * | 2000-02-23 | 2005-08-10 | 富士ゼロックス株式会社 | Image processing apparatus and image processing method |
-
2006
- 2006-07-07 JP JP2006188680A patent/JP4822960B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008017361A (en) | 2008-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5558767B2 (en) | Image processing apparatus and processing method thereof | |
JP2010103681A (en) | Image processing device and method | |
JP5267255B2 (en) | Image processing apparatus, image processing method, and program | |
JP3461309B2 (en) | Huffman coded data compression device | |
JP4089736B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2011254405A (en) | Image processor and image processing method | |
US8320018B2 (en) | Method and means for converting image data in encoded format | |
JP4822960B2 (en) | Image processing apparatus and image processing method | |
JP4009808B2 (en) | Image processing device | |
JP6741463B2 (en) | Image processing apparatus, image processing method, and program | |
US8582168B2 (en) | Image processing apparatus and processing method thereof | |
KR102568052B1 (en) | Image decompressing apparatus, control method thereof, and computer program | |
JP4771095B2 (en) | Image compression device | |
JP4435586B2 (en) | Data compression apparatus and data compression program | |
US9049404B2 (en) | Image processing apparatus and method that perform multiple image processes, and storage medium storing a program thereof, for decompressing a compressed image according to first and second information indicating image processing to be performed | |
JPH11105354A (en) | Image processor | |
JP2008287440A (en) | Image processor and program | |
JP6142552B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP4196424B2 (en) | Gradation data receiving apparatus and gradation data receiving method | |
JP2005260420A (en) | Data compression apparatus and data compression program | |
JP2009038562A (en) | Image processing apparatus, method, and program | |
JPH09218762A (en) | Printing processing system | |
JPH09218763A (en) | Printing processing system | |
JP2002254725A (en) | Page printer | |
JP2005267084A (en) | Image processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090622 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090622 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110210 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110411 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110428 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110726 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20110808 |
|
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: 20110902 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110906 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4822960 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140916 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |