JP5891721B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP5891721B2
JP5891721B2 JP2011246192A JP2011246192A JP5891721B2 JP 5891721 B2 JP5891721 B2 JP 5891721B2 JP 2011246192 A JP2011246192 A JP 2011246192A JP 2011246192 A JP2011246192 A JP 2011246192A JP 5891721 B2 JP5891721 B2 JP 5891721B2
Authority
JP
Japan
Prior art keywords
plane
resolution
thinning
achromatic
chromatic
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.)
Active
Application number
JP2011246192A
Other languages
Japanese (ja)
Other versions
JP2013103337A5 (en
JP2013103337A (en
Inventor
松平 正年
正年 松平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2011246192A priority Critical patent/JP5891721B2/en
Publication of JP2013103337A publication Critical patent/JP2013103337A/en
Publication of JP2013103337A5 publication Critical patent/JP2013103337A5/ja
Application granted granted Critical
Publication of JP5891721B2 publication Critical patent/JP5891721B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method.

従来、画像処理装置としては、サンプリング対象のJPEG画像に対しハフマン復号化、ランレングスハフマン復号化及び逆量子化を行い、得られた8×8のブロックの各々に対して全64画素のうち画素値取得対象の画素を選択し、選択した画素のみについて逆DCT演算を行うことにより、圧縮画像をサンプリングして表示するものが提案されている(例えば、特許文献1参照)。この装置では、選択した画素のみについて逆DCT演算を行うことから、圧縮画像をサンプリングして表示するための処理負担を軽減してその処理時間長を短縮することができる。   Conventionally, as an image processing apparatus, Huffman decoding, run-length Huffman decoding, and inverse quantization are performed on a sampling target JPEG image, and a pixel out of a total of 64 pixels is obtained for each of the obtained 8 × 8 blocks. There has been proposed a method of sampling and displaying a compressed image by selecting a pixel from which a value is to be acquired and performing an inverse DCT operation on only the selected pixel (see, for example, Patent Document 1). In this apparatus, since the inverse DCT calculation is performed only on the selected pixel, the processing load for sampling and displaying the compressed image can be reduced, and the processing time length can be shortened.

特開2002−271794号公報JP 2002-271794 A

ところで、黒の解像度とカラーの解像度とが異なるノズルを備えた印刷装置がある。このような印刷装置において、黒の解像度とカラーの解像度とを考慮したJPEG圧縮データの解凍処理は考えられていなかった。このような印刷装置に用いる圧縮データの解凍処理の負担及び処理時間を低減することが求められていた。   By the way, there is a printing apparatus provided with nozzles having different black resolution and color resolution. In such a printing apparatus, decompression processing of JPEG compressed data in consideration of black resolution and color resolution has not been considered. There has been a demand for reducing the burden and processing time of decompression processing of compressed data used in such a printing apparatus.

本発明は、このような課題に鑑みなされたものであり、彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍である印刷装置に利用される圧縮データの解凍処理の負担及び処理時間をより低減することができる画像処理装置及び画像処理方法を提供することを主目的とする。   The present invention has been made in view of such problems, and decompression processing of compressed data used in a printing apparatus in which the nozzle resolution for achromatic printing is X times the nozzle resolution for chromatic printing. An object of the present invention is to provide an image processing apparatus and an image processing method that can further reduce the burden and processing time.

本発明は、上述の主目的を達成するために以下の手段を採った。   The present invention adopts the following means in order to achieve the main object described above.

本発明の画像処理装置は、
彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍(Xは2以上の整数)である印刷装置に用いられ、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データを解凍して画像データを生成する画像処理装置であって、
無彩色のプレーンに対して彩色のプレーンを1/Xの間引率で画素を間引きして前記圧縮データを解凍する解凍処理手段、
を備えたものである。
The image processing apparatus of the present invention
Used in a printing apparatus in which the nozzle resolution for achromatic printing is X times (X is an integer of 2 or more) with respect to the nozzle resolution for chromatic printing, and has an achromatic and chromatic plane and is accompanied by a DCT operation. An image processing apparatus that generates image data by decompressing compressed data of a compression method,
A decompression processing means for decompressing the compressed data by thinning out pixels at a thinning rate of 1 / X with respect to the achromatic plane;
It is equipped with.

この画像処理装置では、彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍である印刷装置で利用される、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データを解凍して画像データを生成する際に、無彩色のプレーンに対して彩色のプレーンを1/Xの間引率で画素を間引きして圧縮データを解凍する。このように、ノズル解像度に合わせて、彩色のプレーンを間引きして解凍処理可能であり、例えば逆量子化処理や逆DCT演算処理などを省略することができる。したがって、彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍である印刷装置に利用される圧縮データの解凍処理の負担及び処理時間をより低減することができる。ここで、彩色の印刷用のノズルはカラーのノズル、無彩色の印刷用のノズルは黒のノズルとしてもよいし、彩色のプレーンはCbプレーンやCrプレーンとし、無彩色のプレーンはYプレーンとしてもよい。また、「間引率」とは、間引き前の画素数に対する間引き後の縦横の画素数の比率をいうものとし、間引率1は間引きなしであり、間引率1/2,1/4,1/8となると画像データの画素数が小さくなるように間引きを行うものとする。このとき、前記解凍処理手段は、前記設定された間引率を用いて画素を間引きして逆量子化及び逆DCT演算を行い前記画像データを生成するものとしてもよい。   In this image processing apparatus, a compression having achromatic and chromatic planes and a DCT operation is used in a printing apparatus in which the nozzle resolution for achromatic printing is X times the nozzle resolution for chromatic printing. When decompressing the compressed data of the method and generating the image data, the compressed data is decompressed by thinning out the pixels with a thinning ratio of 1 / X with respect to the achromatic plane. As described above, it is possible to perform the decompression process by thinning the chromatic plane in accordance with the nozzle resolution. For example, the inverse quantization process, the inverse DCT calculation process, and the like can be omitted. Accordingly, it is possible to further reduce the burden and processing time of the decompression processing of compressed data used in a printing apparatus in which the nozzle resolution for achromatic printing is X times the nozzle resolution for chromatic printing. Here, the chromatic printing nozzle may be a color nozzle, the achromatic printing nozzle may be a black nozzle, the chromatic plane may be a Cb plane or a Cr plane, and the achromatic color plane may be a Y plane. Good. The “decimation rate” refers to the ratio of the number of vertical and horizontal pixels after thinning to the number of pixels before thinning, the thinning rate 1 is no thinning, and the thinning rates 1/2, 1/4, 1 / When the value is 8, thinning is performed so that the number of pixels of the image data is reduced. At this time, the decompression processing means may generate the image data by performing dequantization and inverse DCT calculation by thinning out pixels using the set thinning rate.

本発明の画像処理装置は、前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が等倍である前記圧縮データを取得したときには、前記無彩色のプレーンに対して前記彩色のプレーンの間引率を1/Xに設定する間引率設定手段、を備え、前記解凍処理手段は、前記間引率設定手段により設定された間引率で前記取得した圧縮データを解凍するものとしてもよい。こうすれば、圧縮データの内容に合わせて、圧縮データの解凍処理の負担及び処理時間をより低減することができる。このとき、前記間引率設定手段は、前記圧縮データを取得したときには前記無彩色プレーンの解像度と前記彩色プレーンの解像度とに基づき、前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が等倍であるときには、前記無彩色プレーンの間引率に対して前記彩色のプレーンの間引率を1/X倍に設定する一方、前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が1/X倍であるときには前記無彩色プレーンの間引率に対して前記彩色のプレーンの間引率を等倍に設定するものとしてもよい。   In the image processing apparatus of the present invention, when the compressed data in which the resolution of the chromatic plane is equal to the resolution of the achromatic plane is acquired, the thinning ratio of the chromatic plane is set to the achromatic plane. Thinning rate setting means for setting to 1 / X, and the decompression processing means may decompress the acquired compressed data at a thinning rate set by the thinning rate setting means. By so doing, it is possible to further reduce the burden and processing time of decompression processing of compressed data in accordance with the contents of the compressed data. At this time, when the compressed data is acquired, the thinning rate setting unit is configured such that the resolution of the chromatic plane is equal to the resolution of the achromatic color plane based on the resolution of the achromatic color plane and the resolution of the chromatic color plane. In some cases, the thinning ratio of the chromatic plane is set to 1 / X times the thinning ratio of the achromatic color plane, while the resolution of the chromatic plane is 1 / X times the resolution of the achromatic color plane. In some cases, the thinning ratio of the achromatic plane may be set to be equal to the thinning ratio of the achromatic color plane.

間引率を設定する態様を採用した本発明の画像処理装置において、前記間引率設定手段は、指定された印刷サイズと解凍後の画像サイズとに基づいて定められる縮小倍率に応じて間引率を設定し、彩色の解像度に対して無彩色の解像度をX倍で印刷するときには、前記無彩色のプレーンに対して前記彩色のプレーンの間引率を1/Xに設定するものとしてもよい。こうすれば、印刷サイズと画像サイズとをも考慮し、圧縮データの解凍処理の負担及び処理時間を更に低減することができる。   In the image processing apparatus of the present invention adopting an aspect of setting a thinning rate, the thinning rate setting means sets a thinning rate according to a reduction ratio determined based on a designated print size and a decompressed image size. When the achromatic color resolution is printed at X times the chromatic color resolution, the chromatic color plane thinning rate may be set to 1 / X with respect to the achromatic color plane. By so doing, it is possible to further reduce the burden and processing time of the decompression processing of the compressed data in consideration of the print size and the image size.

間引率を設定する態様を採用した本発明の画像処理装置において、前記間引率設定手段は、前記解凍後の画像サイズが指定された印刷サイズ以上となるように前記間引率を設定するものとしてもよい。こうすれば、印刷画像の画質低下をより抑制しつつ、圧縮データの解凍処理の負担及び処理時間をより低減することができる。   In the image processing apparatus of the present invention adopting an aspect of setting a thinning rate, the thinning rate setting unit may set the thinning rate so that the image size after decompression is equal to or larger than a specified print size. Good. In this way, it is possible to further reduce the burden and processing time of the decompression processing of the compressed data while further suppressing the deterioration of the image quality of the printed image.

本発明の画像処理装置において、彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度が2n倍(nは正数)であり、前記解凍処理手段は、無彩色のプレーンに対して彩色のプレーンを1/2nの間引率で画素を間引きして前記圧縮データを解凍するものとしてもよい。圧縮データは、2n×2nのプレーンを有するため、間引処理をより簡素化可能であり、圧縮データの解凍処理の負担及び処理時間をより容易に低減することができる。 In the image processing apparatus of the present invention, the nozzle resolution for achromatic printing is 2 n times (n is a positive number) with respect to the nozzle resolution for chromatic printing, and the decompression processing means is arranged on an achromatic plane. On the other hand, the compressed data may be decompressed by thinning out the pixels of the color plane at a thinning rate of 1/2 n . Since the compressed data has 2 n × 2 n planes, the thinning process can be further simplified, and the burden and processing time of the compressed data decompression process can be more easily reduced.

本発明の画像処理装置において、前記圧縮データは、JPEGデータ、MPEGデータのうちいずれか1以上であるものとしてもよい。   In the image processing apparatus of the present invention, the compressed data may be one or more of JPEG data and MPEG data.

本発明の画像処理方法は、
彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍である印刷装置に用いられ、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データを解凍する画像処理方法であって、
無彩色のプレーンに対して彩色のプレーンを1/Xの間引率で画素を間引きして前記圧縮データを解凍するステップ、
を含むものである。
The image processing method of the present invention includes:
Used in a printing apparatus in which the nozzle resolution for achromatic printing is X times the nozzle resolution for chromatic printing, and decompresses compressed data of a compression method having achromatic and chromatic planes and DCT operation. An image processing method comprising:
Decompressing the compressed data by thinning out the pixels at a thinning rate of 1 / X with respect to the achromatic plane,
Is included.

この画像処理方法では、画像処理装置と同様に、ノズル解像度に合わせて、彩色のプレーンを間引きして解凍処理可能であり、圧縮データの解凍処理の負担及び処理時間をより低減することができる。なお、この画像処理方法において、上述した画像処理装置の種々の態様を採用してもよいし、また、上述した画像処理装置の各機能を実現するようなステップを追加してもよい。   In this image processing method, similarly to the image processing apparatus, it is possible to perform decompression processing by thinning out the color planes in accordance with the nozzle resolution, and it is possible to further reduce the burden and processing time of decompression processing of compressed data. 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などの通信網)を介してあるコンピューターから別のコンピューターへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを1つのコンピューターに実行させるか又は複数のコンピューターに各ステップを分担して実行させれば、上述した画像処理方法の各ステップが実行されるため、この画像処理方法と同様の作用効果が得られる。   The program of the present invention causes one or more computers to realize each step of the above-described control method of the 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.

プリンターシステム10の構成の概略を示す構成図。1 is a configuration diagram showing an outline of the configuration of a printer system 10. FIG. 印刷ヘッド31の構成の概略を示す構成図。FIG. 2 is a configuration diagram showing an outline of the configuration of a print head 31. 印刷処理ルーチンの一例を示すフローチャート。6 is a flowchart illustrating an example of a print processing routine. 間引解凍処理ルーチンの一例を示すフローチャート。7 is a flowchart illustrating an example of a thinning and thawing process routine. 間引解凍処理の概念図。FIG.

次に、本発明の実施の形態の一例を図面を用いて説明する。図1は本実施形態であるプリンターシステム10の構成の概略を示す構成図である。本実施形態のプリンターシステム10は、本発明の画像処理装置としてのプリンター20と、プリンター20に接続され入力装置47及びディスプレイ48を備え印刷指示などを行うパソコン(PC)40とを備えている。プリンター20は、プリンター20の全体をコントロールするコントローラー21と、ガラス面に載置された読取原稿を読み取る読取機構25と、着色剤を用い印刷媒体に画像を形成する印刷機構26とを備えている。また、プリンター20は、外部機器との情報のやりとりを行うインターフェイス(I/F)27と、各種情報の表示やユーザーからの入力を受け付ける操作パネル28と、メモリーカードとのデータの入出力を司るメモリーカードリーダー30とを備えている。このプリンター20は、読取機構25と印刷機構26とを備え、プリンター機能、スキャナー機能及びコピー機能を有するマルチファンクションプリンターとして構成されている。このプリンター20では、コントローラー21や読取機構25、印刷機構26、I/F27、操作パネル28及びメモリーカードリーダー30は、バス29によって電気的に接続されている。   Next, an example of an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of a configuration of a printer system 10 according to the present embodiment. The printer system 10 according to the present embodiment includes a printer 20 as an image processing apparatus according to the present invention, and a personal computer (PC) 40 that is connected to the printer 20 and includes an input device 47 and a display 48 and issues a print instruction. The printer 20 includes a controller 21 that controls the entire printer 20, a reading mechanism 25 that reads a reading document placed on a glass surface, and a printing mechanism 26 that forms an image on a printing medium using a colorant. . The printer 20 controls input / output of data with an interface (I / F) 27 for exchanging information with an external device, an operation panel 28 for receiving display of various information and input from a user, and a memory card. And a memory card reader 30. The printer 20 includes a reading mechanism 25 and a printing mechanism 26, and is configured as a multifunction printer having a printer function, a scanner function, and a copy function. In the printer 20, the controller 21, the reading mechanism 25, the printing mechanism 26, the I / F 27, the operation panel 28 and the memory card reader 30 are electrically connected by a bus 29.

コントローラー21は、CPU22を中心とするマイクロプロセッサーとして構成されており、一時的にデータを記憶したりデータを保存したりするRAM23と、各種処理プログラムを記憶しデータを書き換え可能なフラッシュメモリー24とを備えている。このコントローラー21は、画像読取処理を実行するよう読取機構25を制御すると共に、印刷処理を実行するよう印刷機構26を制御する。   The controller 21 is configured as a microprocessor centered on the CPU 22, and includes a RAM 23 that temporarily stores data and saves data, and a flash memory 24 that stores various processing programs and can rewrite data. I have. The controller 21 controls the reading mechanism 25 to execute the image reading process and also controls the printing mechanism 26 to execute the printing process.

また、このコントローラー21は、機能ブロックとして、間引率設定部36、解凍処理部37及び補正実行処理部38を備えている。間引率設定部36は、圧縮データであるJPEGデータを解凍する際に画素を間引く間引率を設定する処理を実行する。この間引率設定部36は、詳しくは後述するが、印刷ヘッド31のノズル解像度に合わせ、JPEGデータのYプレーン(無彩色プレーン)に対しCb,Crプレーン(彩色プレーン;以下C,Cプレーンとも称する)の間引率を1/X倍に設定する処理を実行する。なお、間引率とは、間引き前の画素数に対する間引き後の縦横の画素数の比率をいうものとし、間引率1は間引きなしであり、間引率1/2,1/4,1/8となると画像データの画素数が小さくなるように間引きを行うものとする。解凍処理部37は、間引率設定部36により設定された間引率を用いて画素を間引きして逆量子化及び逆DCT演算を行いJPEGデータを解凍して画像データを生成する処理を実行する。補正実行処理部36は、画像に対して補正を実行する処理部であり、画像をサンプリングすることにより得られた補正値を用いて各種補正処理(例えばシャープネスやコントラストなど)を画像データに反映させる処理を実行する。   The controller 21 also includes a thinning rate setting unit 36, a decompression processing unit 37, and a correction execution processing unit 38 as functional blocks. The thinning rate setting unit 36 executes processing for setting a thinning rate for thinning out pixels when decompressing JPEG data that is compressed data. As will be described in detail later, the thinning rate setting unit 36 matches Cb and Cr planes (color planes; hereinafter also referred to as C and C planes) with respect to the Y plane (achromatic plane) of JPEG data in accordance with the nozzle resolution of the print head 31. A process of setting the thinning rate to 1 / X times is executed. The thinning rate means the ratio of the number of vertical and horizontal pixels after thinning to the number of pixels before thinning, the thinning rate 1 is no thinning, and the thinning rates are 1/2, 1/4, 1/8. Then, thinning is performed so that the number of pixels of the image data is reduced. The decompression processing unit 37 performs processing for decompressing JPEG data and generating image data by performing dequantization and inverse DCT calculation by thinning out pixels using the thinning rate set by the thinning rate setting unit 36. The correction execution processing unit 36 is a processing unit that performs correction on an image, and reflects various correction processes (for example, sharpness and contrast) on the image data using correction values obtained by sampling the image. Execute the process.

読取機構25は、フラットベッド式であり、原稿台に載置された原稿を画像データ(圧縮データ)として読み取る読取センサーと、原稿を読み取る際に読取センサーを移動させる移動機構とを備えた周知のイメージスキャナーとして構成されている。読取センサーは、原稿に向かって発光したあとの反射光をレッド(R)、グリーン(G)、ブルー(B)の各色に分解してスキャンデータとするセンサーである。   The reading mechanism 25 is of a flat bed type and includes a reading sensor that reads a document placed on a document table as image data (compressed data) and a moving mechanism that moves the reading sensor when reading the document. Configured as an image scanner. The reading sensor is a sensor that separates the reflected light after emitting light toward the document into red (R), green (G), and blue (B) colors to obtain scan data.

印刷機構26は、印刷媒体へインクを吐出することにより印刷を行う印刷ヘッド31と、印刷ヘッド31へインクを供給するカートリッジ34とを備えた周知のインクジェット方式のカラープリンター機構として構成されている。印刷ヘッド31は、圧電素子に電圧をかけることによりこの圧電素子を変形させてインクを加圧する方式によりノズルから各色のインクを吐出する。なお、インクへ圧力をかける機構は、ヒーターの熱による気泡の発生によるものとしてもよい。   The printing mechanism 26 is configured as a known inkjet color printer mechanism including a print head 31 that performs printing by ejecting ink onto a print medium and a cartridge 34 that supplies ink to the print head 31. The print head 31 ejects ink of each color from the nozzles by applying a voltage to the piezoelectric element to deform the piezoelectric element and pressurize the ink. The mechanism for applying pressure to the ink may be based on the generation of bubbles due to the heat of the heater.

印刷ヘッド31は、図2に示すように、CMYの各色のインクを個別に吐出可能なノズル32C,32M,32Yが記録紙Sの搬送方向(副走査方向)に沿って配置されたノズル群33C,33M,33Yと、ブラック(K)のインクを吐出可能なノズル32Kが副走査方向に沿って配置されたノズル群33K1,33K2とが形成されている。ここで、各ノズル群の構成について、シアン(C)のノズル群33Cを例に挙げて説明する。ノズル群33Cは、2つのノズル列C1,C2からなり、各ノズル列C1,C2はそれぞれピッチが所定長さLとなるようにノズル32Cが配置されている。また、ノズル列C1のノズル32Cとノズル列C2のノズル32Cとは副走査方向に沿って千鳥(ジグザグ)になるよう配置され、そのピッチが所定長さLの半分の長さL/2となっている。本実施形態では、所定長さLはドットが150dpiの解像度となるように設定されており、ノズル列C1によって形成されるドットとノズル列C2によって形成されるドットとが副走査方向に交互に一列に並ぶように印刷を行なうことにより、シアン(C)のドットの解像度は300dpiとなる。マゼンタ(M)のノズル群33Mおよびイエロー(Y)のノズル群33Yも同様に構成され、得られる解像度は300dpiとなる。また、ブラック(K)のノズル群33K1,33K2も同様にそれぞれ2つのノズル列K11,K12および2つのノズル列K21,K22からなる。さらに、ノズル群33K1のノズル32Kとノズル群33K2のノズル32Kとの副走査方向のピッチが長さL/2の半分の長さL/4となるよう配置されている。このため、ノズル群33K1によって形成されるドットとノズル群33K2によって形成されるドットとが副走査方向に交互に一列に並ぶように印刷を行なうことにより、ブラック(K)のドットの解像度は600dpiとなる。このように、印刷ヘッド31は、合計10列のノズル列を備え、CMYのドットの解像度が300dpi、Kのドットの解像度が600dpiとなるよう構成されている。即ち、CMYのノズル密度に比してKのノズル密度が2倍(X倍,2n倍)高密度となっている。この印刷機構26では、ノズル群33K1,K2を用いることにより黒の解像度をカラーに対してX倍(ここではX=2)の解像度で印刷する黒解像度X倍印刷モードや、ノズル群33K1を用いることにより黒とカラーとを同じ解像度で印刷する通常印刷モードとを実行することができる。 As shown in FIG. 2, the print head 31 includes a nozzle group 33 </ b> C in which nozzles 32 </ b> C, 32 </ b> M, and 32 </ b> Y that can individually eject CMY inks are arranged along the conveyance direction (sub-scanning direction) of the recording paper S. , 33M, 33Y, and nozzle groups 33K1, 33K2 in which nozzles 32K capable of ejecting black (K) ink are arranged along the sub-scanning direction. Here, the configuration of each nozzle group will be described using the cyan (C) nozzle group 33C as an example. The nozzle group 33C is composed of two nozzle rows C1 and C2, and the nozzles 32C are arranged so that each nozzle row C1 and C2 has a predetermined length L in pitch. The nozzles 32C of the nozzle row C1 and the nozzles 32C of the nozzle row C2 are arranged in a zigzag pattern along the sub-scanning direction, and the pitch is a length L / 2 that is half the predetermined length L. ing. In the present embodiment, the predetermined length L is set so that the dots have a resolution of 150 dpi, and the dots formed by the nozzle row C1 and the dots formed by the nozzle row C2 are alternately arranged in the sub-scanning direction. By performing printing so that the dots are arranged in a line, the resolution of cyan (C) dots is 300 dpi. The magenta (M) nozzle group 33M and the yellow (Y) nozzle group 33Y are similarly configured, and the obtained resolution is 300 dpi. Similarly, the black (K) nozzle groups 33K1 and 33K2 include two nozzle rows K11 and K12 and two nozzle rows K21 and K22, respectively. Furthermore, the nozzles 32K of the nozzle group 33K1 and the nozzles 32K of the nozzle group 33K2 are arranged such that the pitch in the sub-scanning direction is a length L / 4 that is half the length L / 2. Therefore, by performing printing so that the dots formed by the nozzle group 33K1 and the dots formed by the nozzle group 33K2 are alternately arranged in a line in the sub-scanning direction, the resolution of the black (K) dots is 600 dpi. Become. As described above, the print head 31 includes a total of 10 nozzle rows, and is configured so that the resolution of CMY dots is 300 dpi and the resolution of K dots is 600 dpi. That is, the nozzle density of K is twice (X times, 2 n times) higher than the nozzle density of CMY. The printing mechanism 26 uses a black resolution X-fold printing mode in which black resolution is printed at a resolution X times (X = 2 in this case) with respect to color by using the nozzle groups 33K1 and K2, and the nozzle group 33K1. Thus, it is possible to execute the normal printing mode in which black and color are printed at the same resolution.

操作パネル28は、表示部28aと操作部28bとを備えている。表示部28aには、メニューの選択や設定を行う各種操作画面などが表示される。また、操作部28bは、電源をオンオフするための電源キーやカーソルを上下左右に移動させるカーソルキー、入力をキャンセルするキャンセルキー,選択内容を決定する決定キーなどがあり、コントローラー21へユーザーの指示を入力できるようになっている。   The operation panel 28 includes a display unit 28a and an operation unit 28b. Various display screens for selecting and setting menus are displayed on the display unit 28a. The operation unit 28b includes a power key for turning on / off the power, a cursor key for moving the cursor up / down / left / right, a cancel key for canceling the input, a determination key for determining the selection, and the like. Can be entered.

メモリーカードリーダー30は、スロットに挿入されたメモリーカードとの間でデータの入出力を行う。このメモリーカードリーダー30は、メモリーカードが装着されているとき、メモリーカードに保存されているファイルを読み出してコントローラー21に送信したりコントローラー21からの命令を入力しこの命令に基づいてメモリーカードにデータを書き込んだりする。   The memory card reader 30 inputs and outputs data with the memory card inserted in the slot. The memory card reader 30 reads out a file stored in the memory card and sends it to the controller 21 or inputs a command from the controller 21 when the memory card is loaded, and receives data from the memory card based on the command. Or write.

次に、こうして構成された本実施形態のプリンター20の動作、特に、JPEGデータを解凍し、解凍した画像を印刷処理する際の動作について説明する。ここでは、主として、メモリーカードに記憶されたJPEGデータを読み込み、画素の間引処理を行い、このJPEGデータを解凍する処理について具体的に説明する。まずユーザーは、メモリーカードリーダー30にメモリーカードを装着し、図示しない印刷選択画面で印刷を行うJPEGデータを選択する。ユーザーは、操作部28bの各種キーを操作して印刷したい画像を選択し、図示しない印刷実行キーを押下する。すると、CPU22は、フラッシュメモリー24に記憶された印刷処理ルーチンを実行する。図3は、コントローラー21のCPU22により実行される印刷処理ルーチンの一例を示すフローチャートである。このルーチンでは、CPU22は、間引率設定部36、解凍処理部37及び補正実行処理部38を利用してJPEGデータの解凍処理(印刷用画像の生成処理)を行う。   Next, the operation of the printer 20 of the present embodiment configured as described above, particularly the operation when the JPEG data is decompressed and the decompressed image is subjected to print processing will be described. Here, the process of mainly reading JPEG data stored in a memory card, performing pixel thinning processing, and decompressing the JPEG data will be specifically described. First, the user attaches a memory card to the memory card reader 30 and selects JPEG data to be printed on a print selection screen (not shown). The user operates various keys of the operation unit 28b to select an image to be printed, and presses a print execution key (not shown). Then, the CPU 22 executes a print processing routine stored in the flash memory 24. FIG. 3 is a flowchart illustrating an example of a print processing routine executed by the CPU 22 of the controller 21. In this routine, the CPU 22 uses the thinning rate setting unit 36, the decompression processing unit 37, and the correction execution processing unit 38 to perform JPEG data decompression processing (print image generation processing).

図3の印刷処理ルーチンを開始すると、CPU22は、まず、JPEGデータのタグに格納された情報や、操作パネル28での入力内容から印刷設定の情報を取得する(ステップS100)。印刷設定情報には、JPEGデータのコンポーネントの情報(4:4:4、4:2:2及び4:2:0)や、黒の解像度をカラーの解像度に比してX倍(X=2)で印刷する黒解像度X倍印刷モードが選択されているか、通常印刷モードが選択されているかの情報が含まれている。また、印刷設定情報には、JPEGデータの画像サイズや、印刷用紙のサイズ(印刷サイズ)、シャープネス処理、コントラスト処理、ノイズ除去処理などの補正処理を実行するか否かの情報が含まれている。   When the print processing routine of FIG. 3 is started, the CPU 22 first acquires print setting information from the information stored in the JPEG data tag and the input content on the operation panel 28 (step S100). The print setting information includes JPEG data component information (4: 4: 4, 4: 2: 2 and 4: 2: 0), and black resolution X times the color resolution (X = 2). ) Includes information indicating whether the black resolution X-times print mode for printing is selected or the normal print mode is selected. The print setting information includes information on whether or not to execute correction processing such as image size of JPEG data, print paper size (print size), sharpness processing, contrast processing, and noise removal processing. .

次に、CPU22は、印刷サイズとJPEGデータの画像サイズとから、1/8以上の縮小印刷が可能であるか否かを判定し(ステップS110)、1/8以上の縮小印刷が可能であるときには、JPEGデータのYプレーンの間引率を1/8に設定すると共に、C,Cプレーンの間引率を1/8に設定する(ステップS120)。一方、1/8以上の縮小印刷が可能でないときには、1/4以上の縮小印刷が可能であるか否かを判定し(ステップS130)、1/4以上の縮小印刷が可能であるときには、Yプレーンの間引率を1/4に設定すると共に、C,Cプレーンの間引率を1/4に設定する(ステップS140)。一方、1/4以上の縮小印刷が可能でないときには、1/2以上の縮小印刷が可能であるか否かを判定し(ステップS150)、1/2以上の縮小印刷が可能であるときには、Yプレーンの間引率を1/2に設定すると共に、C,Cプレーンの間引率を1/2に設定する(ステップS160)。一方、1/2以上の縮小印刷が可能でないときには、Yプレーンの間引率を1に設定すると共に、C,Cプレーンの間引率を1に設定する(ステップS170)。即ち、間引処理を行わないよう間引率を設定する。このように、解凍後の画像サイズが指定された印刷サイズ以上となるように間引率を設定するのである。なお、間引率の設定は、間引率設定部36を利用して行われる。   Next, the CPU 22 determines whether or not reduction printing of 1/8 or more is possible from the print size and the image size of JPEG data (step S110), and reduction printing of 1/8 or more is possible. In some cases, the thinning rate of the Y plane of JPEG data is set to 1/8, and the thinning rate of the C and C planes is set to 1/8 (step S120). On the other hand, if 1/8 or more reduced printing is not possible, it is determined whether or not 1/4 or more reduced printing is possible (step S130). If 1/4 or more reduced printing is possible, Y is determined. The thinning rate of the plane is set to 1/4 and the thinning rate of the C and C planes is set to 1/4 (step S140). On the other hand, when the reduction printing of 1/4 or more is not possible, it is determined whether or not the reduction printing of 1/2 or more is possible (step S150), and when the reduction printing of 1/2 or more is possible, Y The thinning rate of the plane is set to 1/2, and the thinning rate of the C and C planes is set to 1/2 (step S160). On the other hand, when reduced printing of 1/2 or more is not possible, the thinning rate of the Y plane is set to 1 and the thinning rate of the C and C planes is set to 1 (step S170). That is, the thinning rate is set so as not to perform the thinning process. In this way, the thinning rate is set so that the image size after decompression is equal to or larger than the designated print size. The thinning rate is set using the thinning rate setting unit 36.

ステップS120,ステップS140,ステップS160及びステップS170で間引率を設定したあと、CPU22は、黒解像度X倍印刷モードが選択されているか否かを判定し(ステップS180)、黒解像度X倍印刷モードが選択されているときには、YプレーンとC,Cプレーンとが同解像度であるか否かを判定する(ステップS190)。ここでは、JPEGデータのコンポーネントが4:4:4及び4:2:2であるときは、YプレーンとC,Cプレーンとが同解像度であると判定し、JPEGデータのコンポーネントが4:2:0であるときは、Yプレーンに対しC,Cプレーンが1/2の同解像度であると判定するものとする。YプレーンとC,Cプレーンとが同解像度であるときには、C,Cプレーンの間引率が変更可能であるか否かを判定する(ステップS200)。この判定は、例えば、C,Cプレーンの間引率が1/8であるときに間引率が変更可能でないものと判定するものとする。さて、ステップS180で黒解像度X倍印刷モードが選択されていないとき、即ち通常印刷モードが選択されているとき、ステップS190でYプレーンとC,Cプレーンとが同解像度でないとき、即ちC,CプレーンがYプレーンの1/2の解像度であるとき、又は、ステップS200でC,Cプレーンの間引率が変更可能でないとき(間引率1/8)には、ステップS120〜S170で設定された間引率のまま、間引解凍処理を実行する(ステップS210)。   After setting the thinning rate in step S120, step S140, step S160, and step S170, the CPU 22 determines whether or not the black resolution X-times print mode is selected (step S180), and the black resolution X-times print mode is set. If it is selected, it is determined whether or not the Y plane and the C and C planes have the same resolution (step S190). Here, when the components of JPEG data are 4: 4: 4 and 4: 2: 2, it is determined that the Y plane and the C and C planes have the same resolution, and the components of JPEG data are 4: 2: 2. When it is 0, it is determined that the C and C planes have the same resolution of 1/2 with respect to the Y plane. When the Y plane and the C and C planes have the same resolution, it is determined whether or not the thinning rate of the C and C planes can be changed (step S200). In this determination, for example, when the thinning rate of the C and C planes is 1/8, it is determined that the thinning rate is not changeable. When the black resolution X-times printing mode is not selected at step S180, that is, when the normal printing mode is selected, when the Y plane and the C, C plane are not at the same resolution at step S190, that is, C, C When the plane is half the resolution of the Y plane, or when the thinning rate of the C and C planes is not changeable (decimation rate 1/8) in step S200, the interval set in steps S120 to S170 The thinning and thawing process is executed with the pull rate (step S210).

ここで、間引解凍処理について説明する。図4は、間引解凍処理ルーチンの一例を示すフローチャートである。このルーチンは、解凍処理部37を利用して実行される。このルーチンを実行すると、CPU22は、JPEGデータをエントロピー復号(ハフマン復号)し(ステップS300)、グループ復号し(ステップS310)、ランレングス復号する(ステップS320)。この結果、N×N(例えばN=8)の量子化前のDCT係数の周波数ブロックが得られる。この状態で、N×Nのブロックから所望の値だけを用いる、いわゆる間引処理が可能な状態になる。次に、CPU22は、間引解凍処理を行うか否かを設定された間引率に基づいて判定し(ステップS330)、間引解凍処理を行わない場合は(間引率=1)、DCT係数を全選択し(ステップS340)、DCT係数の周波数ブロックに対してDCT係数の逆量子化を行い(ステップS350)、逆離散コサイン変換(IDCT)を行い(ステップS360)、最小符号化ユニット(MCU)処理及び色変換を行い(ステップS370)、画像データを記憶し(ステップS380)、このルーチンを終了する。この処理の中で、逆DCT演算が最も処理負担が大きく、処理に時間を要する。この逆DCT演算などは、特開2002−271794号公報などに詳しいのでその説明を省略する。また、MCU処理及び色変換は、例えば、処理で得られた画素値を経験的に定められた補正係数を用いて補正するものとしてもよい。なお、DCT係数の逆量子化、逆離散コサイン変換は、Y,C,Cの各プレーン毎に行うものとする。   Here, the thinning and thawing process will be described. FIG. 4 is a flowchart illustrating an example of the thinning and thawing process routine. This routine is executed using the decompression processing unit 37. When this routine is executed, the CPU 22 performs entropy decoding (Huffman decoding) on the JPEG data (step S300), group decoding (step S310), and run length decoding (step S320). As a result, N × N (for example, N = 8) pre-quantization DCT coefficient frequency blocks are obtained. In this state, a so-called thinning process using only a desired value from the N × N block is possible. Next, the CPU 22 determines whether or not to perform the decimation / decompression process based on the set decimation rate (step S330). When the decimation / decompression process is not performed (decimation rate = 1), the DCT coefficient is determined. All are selected (step S340), DCT coefficient inverse quantization is performed on the frequency block of the DCT coefficient (step S350), inverse discrete cosine transform (IDCT) is performed (step S360), and the minimum coding unit (MCU). Processing and color conversion are performed (step S370), image data is stored (step S380), and this routine is terminated. Among these processes, the inverse DCT operation has the largest processing load, and the process takes time. Since the inverse DCT calculation is detailed in Japanese Patent Application Laid-Open No. 2002-271794, the description thereof is omitted. In the MCU process and the color conversion, for example, the pixel value obtained by the process may be corrected using an empirically determined correction coefficient. Note that the inverse quantization and inverse discrete cosine transform of the DCT coefficient are performed for each of the Y, C, and C planes.

一方、ステップS330で間引解凍処理を行う場合は、DCT係数を間引き選択する(ステップ390)。図5は、間引解凍処理の概念図である。図5に示すように、8×8のDCT係数の周波数ブロックを間引率1/2で間引きする場合は、例えば、8×8ブロックの全64個のうち、縦横それぞれ1/2を乗じた4×4個、計16個が分散的に残るように、以降の処理を行う周波数成分を選択する。また、間引率1/4で間引きする場合は、例えば、8×8ブロックの全64個のうち、縦横それぞれ1/4を乗じた2×2個、計4個が分散的に残るように、以降の処理を行う周波数成分を選択する。また、間引率1/8で間引きする場合は、例えば、8×8ブロックの全64個のうち、縦横それぞれ1/8を乗じた1個が残るように、以降の処理を行う周波数成分を選択する。そして、選択したDCT係数に対して、上記ステップS350〜S380と同様の、DCT係数の逆量子化、IDCT、MCU処理及び色変換を行い、各プレーンの画素とするのである。なお、各DCT係数を処理する際には、図5上段に示すように、ジグザグスキャンするものとしてもよい。こうすれば、より処理の高速化を図ることができる。このように、処理負担の大きい逆DCT演算の回数を間引率に応じて低減することができ、処理負担及び処理時間の低減をより図ることができる。また、ステップS180で黒解像度X倍印刷モードでない場合、YプレーンとC,Cプレーンとが同解像度でない場合、C,Cプレーンの間引率が変更可能でない場合(間引率1/8)には、ステップS120〜S170で設定した間引率のまま間引処理を実行するのである。   On the other hand, when the decimation / decompression process is performed in step S330, the DCT coefficient is decimation selected (step 390). FIG. 5 is a conceptual diagram of the thinning and thawing process. As shown in FIG. 5, in the case of thinning out frequency blocks of 8 × 8 DCT coefficients at a thinning rate of 1/2, for example, 4 out of a total of 64 8 × 8 blocks multiplied by 1/2 in the vertical and horizontal directions, respectively. The frequency components for the subsequent processing are selected so that a total of 16 × 4 pieces remain in a distributed manner. In addition, when thinning at a thinning rate of 1/4, for example, out of a total of 64 of 8 × 8 blocks, 2 × 2 multiplied by 1/4 each in length and width, so that a total of 4 remains in a distributed manner. A frequency component to be processed thereafter is selected. In addition, when thinning at a thinning rate of 1/8, for example, select frequency components for subsequent processing so that one of 8 × 8 blocks multiplied by 1/8 is left. To do. Then, the DCT coefficient inverse quantization, IDCT, MCU processing, and color conversion are performed on the selected DCT coefficient in the same manner as in steps S350 to S380, and the pixel of each plane is obtained. When each DCT coefficient is processed, a zigzag scan may be performed as shown in the upper part of FIG. In this way, the processing speed can be further increased. In this way, the number of inverse DCT operations with a large processing load can be reduced according to the thinning rate, and the processing load and processing time can be further reduced. In step S180, if the black resolution X-times printing mode is not used, the Y plane and the C and C planes are not the same resolution, and if the C and C plane thinning rates cannot be changed (thinning rate 1/8), The thinning process is executed with the thinning rate set in steps S120 to S170.

さて、図3の印刷処理ルーチンの説明に戻る。ステップS180で黒解像度X倍印刷モードが選択されており、ステップS190でYプレーンとC,Cプレーンとが同解像度であり、ステップS200でC,Cプレーンの間引率が変更可能であるときには、C,Cプレーンの間引率を更に1/X倍(ここではX=2)に設定し(ステップS220)、ステップS210の間引解凍処理を実行する。即ち、黒のノズル解像度に対してカラーのノズル解像度が1/Xとなる設定で印刷するときには、Yプレーンの解像度に対してC,Cプレーンの解像度が1/Xとなるように間引率を設定するのである。こうすれば、C,Cプレーンの間引率が更に1/Xとなるので、上述したステップS120〜S170で設定した間引率で解凍処理を行うよりも、更に解凍処理の負担及び処理時間を低減することができる。   Now, the description returns to the print processing routine of FIG. If the black resolution X times printing mode is selected in step S180, the Y plane and the C and C planes have the same resolution in step S190, and the thinning rate of the C and C planes can be changed in step S200, the C , C plane thinning rate is further set to 1 / X times (X = 2 in this case) (step S220), and the thinning / decompression process of step S210 is executed. That is, when printing with the color nozzle resolution set to 1 / X with respect to the black nozzle resolution, the thinning rate is set so that the resolution of the C and C planes becomes 1 / X with respect to the resolution of the Y plane. To do. In this way, since the thinning rate of the C and C planes is further reduced to 1 / X, the decompression processing load and processing time are further reduced as compared with the case where the decompression processing is performed at the thinning rates set in steps S120 to S170 described above. be able to.

ステップS210で間引解凍処理を実行したあと、CPU22は、必要に応じてC,Cのプレーンの解像度がYプレーンの解像度と同じになるよう画素の単純水増し処理を行い(ステップS230)、YCC−YCC色変換を行うエンハンス処理を実行する(ステップS240)。エンハンス処理は、補正実行処理部38が行うものとし、例えば、経験的に得られたYCC−YCC対応関係(例えばルックアップテーブル)を用いて、解凍した画像の色をプリンター20に適する色に補正する処理としてもよい。続いて、YCCからCMYKの画像データへのインク色変換処理を実行し(ステップS250)、印刷処理を実行し(ステップS260)、このルーチンを終了する。インク色変換は、経験的に得られたYCC−CMYK対応関係(例えばルックアップテーブル)を用いて、プリンター20で用いるインク色に変換する処理を行う。印刷処理において、通常印刷モードでの印刷では、ノズル群33C,33M,33Y,33K1を用いて印刷処理を実行する。一方、黒解像度X倍印刷モードでの印刷では、更にノズル群33K2を用いて黒の解像度がX倍となるよう印刷処理を実行する。   After executing the thinning / decompression process in step S210, the CPU 22 performs a simple padding process for pixels so that the resolution of the C and C planes is the same as the resolution of the Y plane as necessary (step S230). An enhancement process for performing YCC color conversion is executed (step S240). The enhancement processing is performed by the correction execution processing unit 38. For example, the decompressed image color is corrected to a color suitable for the printer 20 using an empirically obtained YCC-YCC correspondence (for example, a lookup table). It is good also as processing to do. Subsequently, an ink color conversion process from YCC to CMYK image data is executed (step S250), a print process is executed (step S260), and this routine is terminated. Ink color conversion uses an YCC-CMYK correspondence relationship (for example, a look-up table) obtained empirically to perform processing for conversion to an ink color used in the printer 20. In the printing process, in the printing in the normal printing mode, the printing process is executed using the nozzle groups 33C, 33M, 33Y, and 33K1. On the other hand, in printing in the black resolution X-times printing mode, printing processing is executed using the nozzle group 33K2 so that the black resolution is X times.

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態の間引率設定部36が間引率設定手段に相当し、解凍処理部37が解凍処理手段に相当する。なお、本実施形態では、プリンター20の動作を説明することにより本発明の画像処理方法の一例も明らかにしている。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. In this embodiment, the thinning rate setting unit 36 corresponds to a thinning rate setting unit, and the decompression processing unit 37 corresponds to a decompression processing unit. In the present embodiment, an example of the image processing method of the present invention is also clarified by describing the operation of the printer 20.

以上詳述した本実施形態のプリンター20によれば、印刷ヘッド31がカラー(彩色)の印刷用のノズル解像度に対して黒(無彩色)の印刷用のノズル解像度がX倍であり、Yプレーンに対してC,Cプレーンを1/Xの間引率で画素を間引きしてJPEGデータ(圧縮データ)を解凍する。このように、ノズル解像度に合わせて、C,Cプレーンを間引きして解凍処理可能であり、例えば逆量子化処理や逆DCT演算処理などを省略することができる。したがって、JPEGデータの解凍処理の負担及び処理時間をより低減することができる。また、Yプレーンの解像度に対しC,Cプレーンの解像度が等倍であるJPEGデータを取得したときには、Yプレーンに対してC,Cプレーンの間引率を1/Xに設定し、設定された間引率でJPEGデータを解凍するため、JPEGデータの内容に合わせて、解凍処理の負担及び処理時間をより低減することができる。更に、指定された印刷サイズと解凍後の画像サイズとに基づいて定められる縮小倍率に応じて間引率を設定し、カラーの解像度に対して黒の解像度をX倍で印刷するときには、Yプレーンに対してC,Cプレーンの間引率を1/Xに設定するため、印刷サイズと画像サイズとをも考慮し、圧縮データの解凍処理の負担及び処理時間を更に低減することができる。更にまた、解凍後の画像サイズが指定された印刷サイズ以上となるように間引率を設定するため、印刷画像の画質低下をより抑制しつつ、圧縮データの解凍処理の負担及び処理時間をより低減することができる。そして、カラーのノズル解像度に対して黒のノズル解像度が2n倍であり、Yプレーンに対してC,Cプレーンを1/2nの間引率で画素を間引きして圧縮データを解凍するため、圧縮データは2n×2nのプレーンを有することから、間引処理をより簡素化可能であり、圧縮データの解凍処理の負担及び処理時間をより容易に低減することができる。そしてまた、画像データとしてよく用いられるJPEGデータを間引解凍処理するから、本発明を適用する意義が高い。そして更に、プリンター20などの機器では、コントローラーの性能に限りがあることから、本発明を適用する意義が高い。 According to the printer 20 of the present embodiment described in detail above, the print head 31 has a black (achromatic) printing nozzle resolution of X times the color (chromatic) printing nozzle resolution, and the Y plane. In contrast, JPEG data (compressed data) is decompressed by thinning pixels of the C and C planes at a thinning rate of 1 / X. As described above, the C and C planes can be thinned and decompressed in accordance with the nozzle resolution. For example, inverse quantization processing, inverse DCT calculation processing, and the like can be omitted. Therefore, it is possible to further reduce the burden and processing time of JPEG data decompression processing. When JPEG data having the same resolution of the C and C planes as the resolution of the Y plane is acquired, the thinning rate of the C and C planes is set to 1 / X for the Y plane. Since the JPEG data is decompressed at the pull rate, the burden of decompression processing and the processing time can be further reduced according to the contents of the JPEG data. Furthermore, when setting the thinning rate in accordance with the reduction ratio determined based on the designated print size and the decompressed image size, and printing the black resolution at X times the color resolution, the Y plane On the other hand, since the thinning rate of the C and C planes is set to 1 / X, it is possible to further reduce the burden and processing time of the decompression processing of the compressed data in consideration of the print size and the image size. Furthermore, since the decimation rate is set so that the image size after decompression is greater than or equal to the specified print size, the burden and processing time of decompression processing of compressed data is further reduced while further suppressing the degradation of the print image quality. can do. Then, the black nozzle resolution is 2 n times the color nozzle resolution, and the compressed data is decompressed by thinning out the pixels at a thinning rate of 1/2 n between the C plane and the C plane with respect to the Y plane. Since the compressed data has 2 n × 2 n planes, the thinning process can be further simplified, and the burden and processing time of the decompression process of the compressed data can be more easily reduced. In addition, since JPEG data often used as image data is thinned and decompressed, it is highly significant to apply the present invention. Furthermore, since the performance of the controller is limited in devices such as the printer 20, it is highly meaningful to apply the present invention.

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   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.

例えば、上述した実施形態では、間引率設定部36により、間引率を設定するものとしたが、Yプレーンに対してC,Cプレーンを1/Xの間引率で画素を間引きして圧縮データを解凍するものとすれば、特にこれに限定されず、間引率の設定を省略してもよい。例えば、4:4:4及び4:2:2のコンポーネントのJPEGデータを、黒解像度X倍印刷モードでのみ印刷するものとしてもよい。こうしても、圧縮データの解凍処理の負担及び処理時間をより低減することができる。   For example, in the above-described embodiment, the thinning rate is set by the thinning rate setting unit 36, but the C and C planes are thinned with the 1 / X thinning rate with respect to the Y plane, and the compressed data is obtained. If it defrosts, it will not specifically limit to this, You may abbreviate | omit the setting of a thinning rate. For example, JPEG data of 4: 4: 4 and 4: 2: 2 components may be printed only in the black resolution X-times print mode. Even in this case, it is possible to further reduce the burden and processing time of the decompression processing of the compressed data.

上述した実施形態では、Yプレーンの解像度とC,Cプレーンの解像度とに基づき、Yプレーンの解像度に対しC,Cプレーンの解像度が等倍であるときには、Yプレーンの間引率に対してC,Cプレーンの間引率を1/X倍に設定する一方、Yプレーンの解像度に対しC,Cプレーンの解像度が1/X倍であるときにはYプレーンの間引率に対してC,Cプレーンの間引率を等倍に設定するものとしたが、特にこれに限定されず、各プレーンの解像度の考慮を省略してもよい。こうしても、Yプレーンに対してC,Cプレーンを1/Xの間引率で画素を間引きして圧縮データを解凍するものとすれば、解凍処理の負担及び処理時間をより低減することができる。   In the embodiment described above, based on the resolution of the Y plane and the resolution of the C and C planes, when the resolution of the C and C planes is the same as the resolution of the Y plane, While the thinning rate of the C plane is set to 1 / X, when the resolution of the C and C planes is 1 / X times the resolution of the Y plane, the thinning rate of the C and C planes to the thinning rate of the Y plane However, the present invention is not limited to this, and consideration of the resolution of each plane may be omitted. Even in this case, if the compressed data is decompressed by thinning out the pixels at the 1 / X thinning rate for the C and C planes with respect to the Y plane, it is possible to further reduce the burden of decompression processing and the processing time.

上述した実施形態では、指定された印刷サイズと解凍後の画像サイズとに基づいて定められる縮小倍率に応じて間引率を設定し、カラーの解像度に対して黒の解像度をX倍で印刷(黒解像度X倍印刷)するときには、Yプレーンに対してC,Cプレーンの間引率を1/Xに設定するものとしたが、特にこれに限定されず、縮小倍率に基づく間引率の設定を省略してもよいし、黒解像度X倍印刷に限定せずにYプレーンに対してC,Cプレーンの間引率を1/Xに設定するものとしてもよい。こうしても、解凍処理の負担及び処理時間をより低減することができる。   In the above-described embodiment, the thinning rate is set according to the reduction ratio determined based on the designated print size and the decompressed image size, and the black resolution is printed at X times the black resolution (black When printing with a resolution of X times, the thinning rate of the C and C planes is set to 1 / X for the Y plane. However, the present invention is not limited to this, and the setting of the thinning rate based on the reduction ratio is omitted. It is also possible to set the thinning rate of the C and C planes to 1 / X for the Y plane without being limited to black resolution X-times printing. Even in this case, it is possible to further reduce the burden and processing time of the thawing process.

上述した実施形態では、解凍後の画像サイズが指定された印刷サイズ以上となるように間引率を設定するものとしたが、印刷サイズを考慮せずに間引率を設定するものとしてもよい。こうしても、解凍処理の負担及び処理時間をより低減することができる。   In the above-described embodiment, the thinning rate is set so that the image size after decompression is equal to or larger than the specified print size. However, the thinning rate may be set without considering the print size. Even in this case, it is possible to further reduce the burden and processing time of the thawing process.

上述した実施形態では、カラーのノズル解像度に対して黒のノズル解像度が2倍(X倍)であり、Yプレーンに対してC,Cプレーンを1/2の間引率で画素を間引きするものとしたが、特にこれに限定されず、Xは2以上の整数であれば特に限定されない。また、X=2n(nは正数)としてもよい。圧縮データは2n×2nのプレーンを有することから、間引処理をより簡素化可能である。 In the above-described embodiment, the black nozzle resolution is twice (X times) the color nozzle resolution, and the C and C planes are thinned out with respect to the Y plane at a half rate. However, it is not particularly limited, and X is not particularly limited as long as it is an integer of 2 or more. Alternatively, X = 2 n (n is a positive number). Since the compressed data has 2 n × 2 n planes, the thinning process can be further simplified.

上述した実施形態では、メモリーカードリーダー30に装着されたメモリーカードに記憶された圧縮データを解凍して印刷するものとしたが、DCT演算を伴う圧縮方式の圧縮データを解凍して画像データを生成するものとすれば特にこれに限定されず、例えば、読取機構25で読み取った圧縮データを解凍する際や、PC40から送信された圧縮データを解凍する際としてもよい。   In the above-described embodiment, the compressed data stored in the memory card attached to the memory card reader 30 is decompressed and printed. However, the compressed data with the DCT operation is decompressed to generate image data. For example, the compressed data read by the reading mechanism 25 may be decompressed, or the compressed data transmitted from the PC 40 may be decompressed.

上述した実施形態では、圧縮データをJPEGデータとして説明したが、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データであれば特にこれに限定されず、例えば、MPEGデータとしてもよい。また、上述した実施形態では、カラーのノズル及び黒のノズルとして説明したが、彩色の印刷用のノズルは及び無彩色の印刷用のノズルとしてもよい。また、Cb,CrプレーンやYプレーンとして説明したが、彩色のプレーンや無彩色のプレーンとしてもよい。   In the above-described embodiment, the compressed data is described as JPEG data. However, the compressed data is not particularly limited as long as the compressed data includes achromatic and chromatic planes and includes DCT calculation. For example, MPEG data may also be used. Good. In the above-described embodiments, the color nozzle and the black nozzle have been described. However, the chromatic printing nozzle and the achromatic printing nozzle may be used. Further, although described as a Cb, Cr plane or Y plane, it may be a chromatic plane or an achromatic plane.

上述した実施形態では、印刷、スキャン及びコピーを実行可能なマルチファンクションプリンターを本発明の画像処理装置として説明したが、プリンター単体やスキャナー単体、FAXなどとしてもよい。あるいは、DCT演算を伴う圧縮方式の圧縮データを解凍して画像データを生成する装置であれば特に限定されず、例えば、パソコンやノートパソコンなどの情報処理機器、デジタルスチルカメラやデジタルビデオカメラなどの撮影機器、デジタルテレビやHDDレコーダーなどの映像機器、携帯用及び家庭用のゲーム機器、携帯電話などの通信機器などとしてもよい。また、読取機構25は、原稿を固定し読取センサーを移動して画像を読み取るフラットベッド式としたが、読取センサーを固定し原稿を移動して読み取る方式を採用してもよい。また、印刷機構26は、インクジェット方式としたが、電子写真方式や、熱転写方式、ドットインパクト方式としてもよい。また、プリンター20の態様で本発明を説明したが、画像処理方法の態様としてもよいし、この方法のプログラムの態様としてもよい。   In the above-described embodiments, the multifunction printer capable of executing printing, scanning, and copying has been described as the image processing apparatus of the present invention. However, a printer alone, a scanner alone, a FAX, or the like may be used. Or it will not specifically limit if it is an apparatus which decompress | decompresses the compression-type compressed data with DCT calculation, and produces | generates image data, For example, information processing equipment, such as a personal computer and a notebook personal computer, a digital still camera, a digital video camera It may be a photographing device, a video device such as a digital TV or an HDD recorder, a portable or home game device, or a communication device such as a mobile phone. The reading mechanism 25 is a flatbed type that fixes an original and moves a reading sensor to read an image, but may adopt a method in which the reading sensor is fixed and the original is moved and read. Further, although the printing mechanism 26 is an inkjet method, it may be an electrophotographic method, a thermal transfer method, or a dot impact method. Further, although the present invention has been described in the form of the printer 20, it may be in the form of an image processing method or in the form of a program for this method.

10 プリンターシステム、20 プリンター、21 コントローラー、22 CPU、23 RAM、24 フラッシュメモリー、25 読取機構、26 印刷機構、27 インターフェイス(I/F)、28 操作パネル、28a 表示部、28b 操作部、29 バス、30 メモリーカードリーダー、31 印刷ヘッド、32C,32M,32Y,32K ノズル群、33C,33M,33Y,33K1,33K2 ノズル、34 カートリッジ、36 間引率設定部、37 解凍処理部、38 補正実行処理部、40 パソコン(PC)、47 入力装置、48 ディスプレイ、S 記録紙。   10 Printer System, 20 Printer, 21 Controller, 22 CPU, 23 RAM, 24 Flash Memory, 25 Reading Mechanism, 26 Printing Mechanism, 27 Interface (I / F), 28 Operation Panel, 28a Display Unit, 28b Operation Unit, 29 Bus , 30 Memory card reader, 31 Print head, 32C, 32M, 32Y, 32K Nozzle group, 33C, 33M, 33Y, 33K1, 33K2 Nozzle, 34 Cartridge, 36 Thinning rate setting unit, 37 Defrosting processing unit, 38 Correction execution processing unit , 40 PC (PC), 47 input device, 48 display, S recording paper.

Claims (8)

彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍(Xは2以上の整数)である印刷装置に用いられ、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データを解凍して画像データを生成する画像処理装置であって、
無彩色のプレーンに対して彩色のプレーンを1/Xの間引率で画素を間引きして前記圧縮データを解凍する解凍処理手段、
を備えた画像処理装置。
Used in a printing apparatus in which the nozzle resolution for achromatic printing is X times (X is an integer of 2 or more) with respect to the nozzle resolution for chromatic printing, and has an achromatic and chromatic plane and is accompanied by a DCT operation. An image processing apparatus that generates image data by decompressing compressed data of a compression method,
A decompression processing means for decompressing the compressed data by thinning out pixels at a thinning rate of 1 / X with respect to the achromatic plane ;
An image processing apparatus.
請求項1に記載の画像処理装置であって、
前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が等倍である前記圧縮データを取得したときには、前記無彩色のプレーンに対して前記彩色のプレーンの間引率を1/Xに設定する間引率設定手段、を備え、
前記解凍処理手段は、前記間引率設定手段により設定された間引率で前記取得した圧縮データを解凍する、画像処理装置。
The image processing apparatus according to claim 1,
When the compressed data having the same resolution of the chromatic plane as the resolution of the achromatic plane is acquired, the decimating ratio for setting the decimating ratio of the chromatic plane to 1 / X with respect to the achromatic plane Setting means,
The decompression processing unit decompresses the acquired compressed data at a thinning rate set by the thinning rate setting unit .
前記間引率設定手段は、前記圧縮データを取得したときには前記無彩色プレーンの解像度と前記彩色プレーンの解像度とに基づき、前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が等倍であるときには、前記無彩色プレーンの間引率に対して前記彩色のプレーンの間引率を1/X倍に設定する一方、前記無彩色プレーンの解像度に対し前記彩色プレーンの解像度が1/X倍であるときには前記無彩色プレーンの間引率に対して前記彩色のプレーンの間引率を等倍に設定する、請求項2に記載の画像処理装置。 When the compressed data is acquired, the thinning rate setting unit is based on the resolution of the achromatic plane and the resolution of the chromatic plane, and when the resolution of the chromatic plane is equal to the resolution of the achromatic plane, While the thinning ratio of the chromatic color plane is set to 1 / X times the thinning ratio of the achromatic color plane, when the resolution of the chromatic color plane is 1 / X times the resolution of the achromatic color plane, The image processing apparatus according to claim 2 , wherein a thinning ratio of the chromatic plane is set to be equal to a thinning ratio of the chromatic plane . 前記間引率設定手段は、指定された印刷サイズと解凍後の画像サイズとに基づいて定められる縮小倍率に応じて間引率を設定し、彩色の解像度に対して無彩色の解像度をX倍で印刷するときには、前記無彩色のプレーンに対して前記彩色のプレーンの間引率を1/Xに設定する、請求項2又は3に記載の画像処理装置。  The thinning rate setting unit sets a thinning rate according to a reduction ratio determined based on a designated print size and a decompressed image size, and prints the achromatic color resolution at X times the chromatic resolution. 4. The image processing apparatus according to claim 2, wherein the thinning ratio of the chromatic color plane is set to 1 / X with respect to the achromatic color plane. 前記間引率設定手段は、前記解凍後の画像サイズが指定された印刷サイズ以上となるように前記間引率を設定する、請求項2〜4のいずれか1項に記載の画像処理装置。  The image processing apparatus according to claim 2, wherein the thinning rate setting unit sets the thinning rate so that the image size after the decompression is equal to or larger than a specified print size. 彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度が2  Nozzle resolution for achromatic printing is 2 compared to nozzle resolution for chromatic printing nn 倍(nは正数)であり、Times (n is a positive number)
前記解凍処理手段は、無彩色のプレーンに対して彩色のプレーンを1/2  The decompression processing means halves the chromatic plane with respect to the achromatic plane. nn の間引率で画素を間引きして前記圧縮データを解凍する、請求項1〜5のいずれか1項に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the compressed data is decompressed by thinning pixels at a thinning rate.
前記圧縮データは、JPEGデータ、MPEGデータのうちいずれか1以上である、請求項1〜のいずれか1項に記載の画像処理装置。 The compressed data, JPEG data is any one or more of the MPEG data, the image processing apparatus according to any one of claims 1-6. 彩色の印刷用のノズル解像度に対して無彩色の印刷用のノズル解像度がX倍である印刷装置に用いられ、無彩色及び彩色のプレーンを有しDCT演算を伴う圧縮方式の圧縮データを解凍する画像処理方法であって、  Used in a printing apparatus in which the nozzle resolution for achromatic printing is X times the nozzle resolution for chromatic printing, and decompresses compressed data of a compression method having achromatic and chromatic planes and DCT operation. An image processing method comprising:
無彩色のプレーンに対して彩色のプレーンを1/Xの間引率で画素を間引きして前記圧縮データを解凍するステップ、  Decompressing the compressed data by thinning out the pixels at a thinning rate of 1 / X with respect to the achromatic plane,
を含む画像処理方法。  An image processing method including:
JP2011246192A 2011-11-10 2011-11-10 Image processing apparatus and image processing method Active JP5891721B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011246192A JP5891721B2 (en) 2011-11-10 2011-11-10 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011246192A JP5891721B2 (en) 2011-11-10 2011-11-10 Image processing apparatus and image processing method

Publications (3)

Publication Number Publication Date
JP2013103337A JP2013103337A (en) 2013-05-30
JP2013103337A5 JP2013103337A5 (en) 2014-10-23
JP5891721B2 true JP5891721B2 (en) 2016-03-23

Family

ID=48623292

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011246192A Active JP5891721B2 (en) 2011-11-10 2011-11-10 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP5891721B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114103439B (en) * 2020-08-26 2023-02-21 森大(深圳)技术有限公司 Method, device and equipment for printing images with differentiated precision and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09290520A (en) * 1996-04-24 1997-11-11 Brother Ind Ltd Serial printer
JP2000232650A (en) * 1999-02-10 2000-08-22 Matsushita Electric Ind Co Ltd Image processing method, image processor and recording medium
JP2001018460A (en) * 1999-07-08 2001-01-23 Canon Inc Image forming apparatus and method, and facsimile apparatus
JP3979020B2 (en) * 2001-03-13 2007-09-19 セイコーエプソン株式会社 Image processing apparatus for sampling compressed image
JP4222982B2 (en) * 2004-08-20 2009-02-12 富士フイルム株式会社 Image decoding reduction apparatus and method
JP2011031592A (en) * 2009-08-06 2011-02-17 Seiko Epson Corp Image processing device and image processing method

Also Published As

Publication number Publication date
JP2013103337A (en) 2013-05-30

Similar Documents

Publication Publication Date Title
US8040557B2 (en) Image processing apparatus and image processing method
EP2675149B1 (en) Cell-based compression of digital images
JP2008017441A (en) Data processing apparatus, data processing method, and program
JP5267422B2 (en) Image processing method and program, and image processing apparatus
KR100967720B1 (en) Image processing apparatus, printing apparatus and image processing method
JP3661520B2 (en) Image processing apparatus, image processing method, image forming apparatus, and recording medium recording program
US9135540B2 (en) Image processing apparatus, image processing method, and program for processing black characters at high resolution
JP2004135313A (en) Device and method for image processing
JP4315176B2 (en) Printing apparatus, printing method, and printing program
JP5891721B2 (en) Image processing apparatus and image processing method
JP2020028989A (en) Image processing device and computer program
US8837848B2 (en) Image processing device and image processing method
JP2013111764A (en) Image processing device and image processing method
JP2011199432A (en) Image processing device and program
JP2011031548A (en) Image processor
JP2020028988A (en) Image processing device and computer program
US8749831B2 (en) Printing system and data transfer method
JP2010171926A (en) Printing system, printing apparatus, and image printing method
JP5884402B2 (en) Printing system and printing method
JP2009218809A (en) Image processing apparatus, method, and program
JP2013115535A (en) Image processing apparatus and image processing method
JP2005111843A (en) Printer, printing method, and program
JP2007110226A (en) Image forming apparatus
JP6443045B2 (en) Image reading apparatus, image recording apparatus, and image recording system
JP4811370B2 (en) Image processing apparatus, control method thereof, and program thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140904

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140904

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150625

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150813

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: 20160126

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160208

R150 Certificate of patent or registration of utility model

Ref document number: 5891721

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